Description Usage Arguments Details Value Examples
pandoc
converts HTML to Markdown in part by inserting newlines where
there are <p> (</p>) elements in HTML. When those <p> elements are refined
by a class specification then formatting is lost.
1 | convert_pelements(html)
|
html |
The HTML whose <p>-elements will be converted |
To keep the class details, this function inserts a <div> behind each <p>. As a result, HTML such as:
<p class="newstyle">This is a p-element.</p>
becomes
<p><div class="newstyle">This is a p-element</div></p>
,
which then becomes
\n<div class="newstyle">This is a p-element</div>\n
after conversion to markdown and retains the information in class "newstyle".
An updated html page with <p><div>...</div></p>
1 2 | html <- <p class="newstyle">This is a p-element.</p>
convert_pelements(html)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.