Skip to content

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