-
Notifications
You must be signed in to change notification settings - Fork 0
Handle single md better #14
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
Comments
Header anchors seems something we can handle. It's basically a link as in |
Actually, it's not that simple w/o some vicious and ugly special casing in the kramdown parsers. It can be done but no one is going to like it. We don't have way to move inside a single document. |
What has to be done here is a lot like if we had Shoes-manual.md in one big file. Currently the generated Shoes/Ruby to be evaluate is tied to a file name (.md) because in the general case there can be many md files in many directories - sections (or chapters if you like). The show_render navigation code knows that. It's certainly possible to call a different set of Kramdown parsers/converters - we already detect this situation as 'one file', 'no menus' and it just barely gives a Shoes experience. That said, it's a lot of work. |
* generate sections/subsections based on headers - level and text Just what we need for a Shoes-manual.md - if it existed * WIP - doesn't work
* create 'synthetic' section so we can display the opening info again. Other ebook 'types' need this too. * kramdowm -> Shoes/ruby really sucks.
I came across a README.md that was structured in an interesting way that I'm pretty sure would not fit with what we've done so far. It had a couple of paragraphs of how to install the gem followed by an in-page menu of created with md ordered lists, and sub lists 'ol, ul' in html terms that pointed to html page anchors ( url#my-2.3) And then the actual document with anchors mixed in to the headers. Very clever. I should have saved the url but it's easy enough to modify our README.md to create that.
The text was updated successfully, but these errors were encountered: