ids in headings
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
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Brett on 19 Sep, 2011 01:32 PM
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 = STDIN.read
puts input.gsub(/(h\d) id=".*?"/,"\\1")
Would remove them from the HTML output. Hope that helps.
-Brett
2 Posted by theostar on 20 Sep, 2011 10:51 AM
Thank you, Brett.
Best regards,
Theo
----
Website: http://www.theovanderster.nl
Blog: http://www.theovanderster.nl/blog/
Profiel: http://www.google.com/profiles/theostar
KvK Eindhoven 9089388
Brett closed this discussion on 20 Sep, 2011 10:54 AM.