File tree Expand file tree Collapse file tree 2 files changed +66
-0
lines changed
Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : Show Table of Contents for R Markdown Posts
3+ date : ' 2017-06-22'
4+ slug : rmd-toc
5+ output :
6+ blogdown::html_page :
7+ toc : true
8+ ---
9+
10+ # One Section
11+
12+ A quick fox jumped over the lazy dog.
13+
14+ ![ quick fox] ( https://slides.yihui.name/gif/quick-fox.gif )
15+
16+ # Another Section
17+
18+ A quick fox jumped over the lazy dog.
19+
20+ ## A subsection
21+
22+ A quick fox jumped over the lazy dog.
23+
24+ ## Another subsection
25+
26+ A quick fox jumped over the lazy dog.
Original file line number Diff line number Diff line change 1+ ---
2+ title: Show Table of Contents for R Markdown Posts
3+ date: '2017-06-22'
4+ slug: rmd-toc
5+ output:
6+ blogdown::html_page:
7+ toc: true
8+ ---
9+
10+
11+ < div id ="TOC ">
12+ < ul >
13+ < li > < a href ="#one-section "> One Section</ a > </ li >
14+ < li > < a href ="#another-section "> Another Section</ a > < ul >
15+ < li > < a href ="#a-subsection "> A subsection</ a > </ li >
16+ < li > < a href ="#another-subsection "> Another subsection</ a > </ li >
17+ </ ul > </ li >
18+ </ ul >
19+ </ div >
20+
21+ < div id ="one-section " class ="section level1 ">
22+ < h1 > One Section</ h1 >
23+ < p > A quick fox jumped over the lazy dog.</ p >
24+ < div class ="figure ">
25+ < img src ="https://slides.yihui.name/gif/quick-fox.gif " alt ="quick fox " />
26+ < p class ="caption "> quick fox</ p >
27+ </ div >
28+ </ div >
29+ < div id ="another-section " class ="section level1 ">
30+ < h1 > Another Section</ h1 >
31+ < p > A quick fox jumped over the lazy dog.</ p >
32+ < div id ="a-subsection " class ="section level2 ">
33+ < h2 > A subsection</ h2 >
34+ < p > A quick fox jumped over the lazy dog.</ p >
35+ </ div >
36+ < div id ="another-subsection " class ="section level2 ">
37+ < h2 > Another subsection</ h2 >
38+ < p > A quick fox jumped over the lazy dog.</ p >
39+ </ div >
40+ </ div >
You can’t perform that action at this time.
0 commit comments