-
Notifications
You must be signed in to change notification settings - Fork 58
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
Provide an anchor/title mode #23
Comments
tttp, any chance you could provide that code? (I've been arguing with the author of my HTML generator, asking that the section divs be annotated with a class of some sort, so hopefully I won't need it - but I may fail.) |
I had to do a similar thing for the CouchDB guide example, however I would consider this a markup problem outside the realm of this plugin. @gwern you can see an example function in this commit: christophercliff/couchdb-guide@438d7d9#L0R318 |
Thanks for the example; I managed to get the simpler example page working for gwern.net. It's pretty nice, all in all, although the shapes of the sausages indicates to me that it may not be working perfectly with all my heavily nested sections and subsections. (BTW: "You're incouraged".) |
After some consideration, I'm reopening this. Came to my attention that one of the more valid use cases for this would be lengthy blog posts with many sections. Authors writing in Markdown most likely won't have the knowledge or desire to overhaul their pages to accommodate the sausage.js markup requirements. So the question is, how can this be accomplished without savaging the DOM? |
sausage is expecting the html structured around sections
However in my case (and I suspect others), I wanted it to work around anchors
I wrote a simple that looks for h2, adds the needed wrapping div "sections" between the h2 and the next one and it works. Was wondering if the need is common enough to be put back in sausage?
X+
The text was updated successfully, but these errors were encountered: