ids in headings

's Avatar


19 Sep, 2011 10:52 AM

Marked is a great time-saver.

Is there any way to prevent marked from inserting ids in headings? Rather than:

Mission statement

I'd like my heading to look like:

Mission statement

I couldn't find this in the preferences.

Please advise.

Best regards,
Theo van der Ster

  1. Support Staff 1 Posted by Brett on 19 Sep, 2011 01:32 PM

    Brett's Avatar

    Hi Theo

    The "Compatibility Mode" setting will turn off id headers, but will also disable footnotes and tables, among other MultiMarkdown additions. It's possible to use a custom script to strip them after rendering, too. In Ruby, something like:

    #! /usr/bin/ruby

    input =
    puts input.gsub(/(h\d) id=".*?"/,"\\1")

    Would remove them from the HTML output. Hope that helps.


  2. 2 Posted by theostar on 20 Sep, 2011 10:51 AM

    theostar's Avatar

    Thank you, Brett.

    Best regards,
    KvK Eindhoven 9089388

  3. Brett closed this discussion on 20 Sep, 2011 10:54 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac