Log in Sign up

Custom heading IDs?

Does Blot support Markdown’s custom heading IDs? For example, using iA Writer it is possible to change the ID assigned to a heading when it's turned into HTML like so:

### This is a heading with a lot of text [short-id]

You'll then be able to link to #short-id instead of the full heading title.


2 years ago, 1 replies   Edit question

Yes, this is a feature supported by pandoc, which Blot uses for Markdown conversion. Per their documentation, you can assign attributes to headings using the following syntax:

{#identifier .class .class key=value key=value}

The following headings will all be assigned the identifier apple:

# My heading {#apple}

## My heading ##    {#apple}

My other heading   {#apple}
---------------
Answered 2 years ago · Edit answer