mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-15 09:04:04 +02:00
b47cb4e29a
* Dekstop,CLI: enex_to_md: add html/md test file pairs * one pair for basic text formatting tags: strong, b, i, em * and one using span tags with inline styles for bold formatting Note: The html files include the Evernote-typical "linebreak tags inside of separate <div> tags" to represent empty lines! * Desktop,Cli: enex_to_md: support bold in span tags using inline styles * function isSpanWithStyle() checks if further processing of a span tag makes sense * function isSpanStyleBold() checks if bold formatting via styles is used - a similar function could be written for each span-inline-style-format that should be supported * Desktop,Cli: enex_to_md: fix saving span attrs in state object pushing attributes of span tag to state object now happens outside of isSpanWithStyle()
20 lines
885 B
HTML
20 lines
885 B
HTML
<div><strong>singleline strong text.</strong></div><div><br/></div>
|
|
<div><b>singleline bold text.</b></div><div><br/></div>
|
|
<div><strong>multiline strong
|
|
text.</strong></div><div><br/></div>
|
|
<div><b>multiline bold
|
|
text.</b></div><div><br/></div>
|
|
|
|
<div><em>singleline emphasized text.</em></div><div><br/></div>
|
|
<div><i>singleline italic text.</i></div><div><br/></div>
|
|
<div><em>multiline emphasized
|
|
text.</em><div><br/></div>
|
|
<div><i>multiline italic
|
|
text.</i><div><br/></div>
|
|
|
|
|
|
<div><b>singleline bold text</b> next to normal text with leading space.</div><div><br/></div>
|
|
<div><b>singleline bold text with trailing space </b>next to normal text.</div><div><br/></div>
|
|
<div><b>singleline bold text</b><b> next to more bold text with leading space.</b></div><div><br/></div>
|
|
<div><b>singleline bold text with trailing space </b><b>next to more bold text.</b></div><div><br/></div>
|