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

feat: Customize header ids #383

Merged
merged 6 commits into from
Jun 1, 2017
Merged

feat: Customize header ids #383

merged 6 commits into from
Jun 1, 2017

Conversation

timmarinin
Copy link
Contributor

This pull request adds new feature: customizable header ids.

It’s useful for non-Latin texts, where header might be, for example, in Russian, but user wants id to be in English.

This feature allows user to set id for header manually, using curly braces:

## Привет, мир {hello-world}

@tivie
Copy link
Member

tivie commented May 28, 2017

I'm currently looking into this and will try to merge before next release

@tivie tivie changed the base branch from master to develop May 31, 2017 23:42
@tivie tivie self-assigned this May 31, 2017
@tivie tivie merged commit 94c570a into showdownjs:develop Jun 1, 2017
@tivie
Copy link
Member

tivie commented Jun 1, 2017

merged this PR with some changes. The custom ID will be the last bracketed text.

# some header {foo} {bar} {baz}

results in:

<h1 id="baz">some header {foo} {bar}</h1>

@timmarinin
Copy link
Contributor Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants