html - Rmarkdown Slidy indented lists -


i use rmarkdown slidy mostly. because can use html tags outside of r code chunks (perhaps do-able in other formats, no idea). run trouble indented lists.

--- title: "test" author: "me" date: "today" output:     slidy_presentation ---  ## test slide <ul>  <li>one bullet point </ul> 

this works charm.

output (html):

 <div id="test-slide" class="slide section level2">   <h1>test slide</h1>   <ul>   <li>   1 bullet point   </ul>  </div> 

however:

## test slide indented <ul>  <li>one bullet point    <ul>       <li>one indented bullet point    </ul> </ul> 

causes trouble. output (html again):

<div id="test-slide-indented" class="slide section level2">  <h1>test slide</h1>  <ul>  <li>  1 bullet point  <ul>  <pre><code>  &lt;li&gt;one indented bullet point</code></pre>  </ul>  </ul>  </div> 

and "list within list" appears code chunk rather indented list in html document.

you have 4 spaces preceding line list element. means pandoc interpret line code chunk. far know there's no option prevent this, need remove indenting before html tags.

http://rmarkdown.rstudio.com/authoring_pandoc_markdown.html#verbatim-code-blocks

i point out markdown supports nested lists there's no need use html tags in example:

- 1 bullet point     + 1 indented bullet 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -