Skip to content
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

Auto-generate HTML ids for headers #50

Closed
mnapoli opened this issue Dec 5, 2014 · 2 comments
Closed

Auto-generate HTML ids for headers #50

mnapoli opened this issue Dec 5, 2014 · 2 comments

Comments

@mnapoli
Copy link
Member

mnapoli commented Dec 5, 2014

It's pretty useful to be able to link to a sub-section of a page. To do this, we need to have HTML IDs on headers, like this:

<h2 id="introduction">Introduction</h2>

This is possible with Markdown Extra (supported by Couscous by default):

## Introduction {#introduction}

But that requires to use that notation everywhere.

What would be good is to automatically add the IDs for headers. To do this, we can probably reuse what I wrote here in Piwik's documentation: TitleIdPreprocessor. We could implement that as a new step in Couscous.

@wysow
Copy link
Member

wysow commented Dec 5, 2014

@mnapoli is that a duplicate of #39 no?

@mnapoli
Copy link
Member Author

mnapoli commented Dec 5, 2014

Wow I completely forgot I already opened it haha

@mnapoli mnapoli closed this as completed Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants