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

Marked: Add anchors to headings - jshint/jshint#2938 #40

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

originalfoo
Copy link

Custom renderer for heading tags will add anchors to all headings in
rendered markdown content. Anchors are slug-like representations of the
heading text, same format as GFM.

Code from https://github.com/chjj/marked#overriding-renderer-methods
(MIT license)

Might need some CSS tweaks but just wanted to see if the code change
was acceptable first.

aubergine10 added 2 commits June 5, 2016 11:30
Custom renderer for heading tags will add anchors to all headings in
rendered markdown content. Anchors are slug-like representations of the
heading text, same format as GFM.

Code from https://github.com/chjj/marked#overriding-renderer-methods
(MIT license)

Might need some CSS tweaks but just wanted to see if the code change
was acceptable first.
PR inspired by jshint/jshint#2929

Added distinct sections for different ways to apply settings (inline,
settings files, CLI), ensuring clear example for each.

Removed some excess verbiage so that readers get to details quicker.

Applied some formatting for easier reading.

Wasn't sure about order of precedence so guessed - lmk if it's wrong.
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.

1 participant