-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Parse markdown by adding sections for each header #902
Comments
I'm not in favour of adding this kind of stuff by default as that would lead to unused tags for many users (also detecting whether a section should be closed is not trivial). Now there's something that would allow you to do something pretty close to what you want and it's to write a
which would translate to what you said. It's maybe not as simple as To reproduce the There's kind of something like this in PkgPage: https://github.com/tlienart/PkgPage.jl/blob/7993cc04e359348c8d09f70ce44344a1e5d4e4a9/src/latex/environments.jl#L30-L60 |
Thank you very much for your help here. You don't have to add such section information by default, you can make it optional. I can understand if such an option is very special and because of this not worth adding to Franklin. |
Before I close this, do you know of another SSG that has something like what you wanted? I'd be interested to have a look. |
I unfortunately only have the link above where such section structure is really decisive. Then I simply realized how natural it would be to add this extra information by default to markdown documents. No experience with other SSG, just felt natural to me. |
Hi,
just tried to implement an interactive table-of-contents for Franklin markdown, but phased a crucial difficulty.
Concretely, header sections of the markdown are currently only translated to an respective headings
h1
,h2
,h3
, each with lovely ids.It would be awesome to have in addition a
section
structure, so that for each heading id there is a section including the whole document part until the next heading of same level.So instead of
we would have
Please also take a look at this nice example of implementing an interactive table-of-contents in only a very few lines of code It requires exactly these sections elements.
The text was updated successfully, but these errors were encountered: