You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be a very nice feature to retreive the body separately with a different method.
example.md
# FooBar`FooBar` is a library to ...
[toc]## Installation
Do some weird stuff right now.
ParsedownToC::getBodyOnly()
<h1id="FooBar" name="FooBar">FooBar</h1><p><code>FooBar</code> is a library to ...</p><h2id="Installation" name="Installation">Installation</h2><p>Do some weird stuff right now.</p>
The purpose behind this is, e. g., to place the TOC in a different HTML section in the target document of an application and to omit the [toc] tag in the body. Currently ParsedownToC:body() is showing the [toc] tag unparsed / unreplaced.
The text was updated successfully, but these errors were encountered:
codekandis
changed the title
Method to get content without toc-tag
Method to get separated toc and content
Nov 24, 2021
codekandis
changed the title
Method to get separated toc and content
Methods to get separated TOC and content
Nov 24, 2021
codekandis
changed the title
Methods to get separated TOC and content
Method to get separated content without [toc] tag
Nov 24, 2021
It would be a very nice feature to retreive the body separately with a different method.
example.md
ParsedownToC::getBodyOnly()
The purpose behind this is, e. g., to place the TOC in a different HTML section in the target document of an application and to omit the
[toc]
tag in the body. CurrentlyParsedownToC:body()
is showing the[toc]
tag unparsed / unreplaced.The text was updated successfully, but these errors were encountered: