Code
cli::cat_line(rd2html("\\subsection{A}{B}"))
Output
<div class='section' id='a'>
<h3>A</h3>
<p>B</p>
</div>
Code
cli::cat_line(rd2html("\\subsection{A}{\n p1\n\n p2\n }"))
Output
<div class='section' id='a'>
<h3>A</h3>
<p>p1</p>
<p>p2</p>
</div>
Code
cli::cat_line(rd2html("\\subsection{H3}{\\subsection{H4}{}}"))
Output
<div class='section' id='h-'>
<h3>H3</h3>
<div class='section' id='h-'>
<h4>H4</h4>
</div>
</div>
Code
rd2html("\\Sexpr[results=verbatim]{1}")
Condition
Error:
! \\Sexpr{result=verbatim} not yet supported
Code
rd2html("\\url{}")
Condition
Error:
! Failed to parse tag "\\url{}".
i Check for empty \url{} tags.
Code
rd2html("\\url{a\nb}")
Condition
Error:
! Failed to parse tag "\\url{}".
i This may be caused by a \url tag that spans a line break.
Code
rd2html("\\email{}")
Condition
Error:
! Failed to parse tag "\\email{}".
i empty
Code
rd2html("\\linkS4class{}")
Condition
Error:
! Failed to parse tag "\\linkS4class{}".
<dl>
<dt>Label 1</dt>
<dd><p>Contents 1</p></dd>
<dt>Label 2</dt>
<dd><p>Contents 2</p></dd>
</dl>
<dl>
<dt>Label</dt>
<dd><p>Paragraph 1</p>
<p>Paragraph 2</p></dd>
</dl>
<dl>
<dt id='fooabc'>abc<a class='anchor' aria-label='anchor' href='#fooabc'></a></dt>
<dd><p>Contents 1</p></dd>
<dt id='fooxyz'>xyz<a class='anchor' aria-label='anchor' href='#fooxyz'></a></dt>
<dd><p>Contents 2</p></dd>
</dl>
<dl>
<dt>Label</dt>
<dd>
<p>This text is indented in a way pkgdown doesn't like.</p></dd>
</dl>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.