Adhere to stricter CommonMark specs so that a space character is needed after the # to denote a heading?

Joakim's Avatar

Joakim

14 Oct, 2019 09:05 PM

Hi,

Thanks for a great app. Could you consider adhering to the stricter CommonMark specs that say that a space character is needed after the # to denote a heading? I am using 'The Archive' app and when I export my Multi Markdown notes, the 'tags' (#tags) that I use becomes headings which looks a bit strange. If you do not want to change this, do you have any suggestion how I can go about to solve this issue?

Best regards,
Joakim

  1. Support Staff 1 Posted by Brett on 16 Oct, 2019 06:24 PM

    Brett's Avatar

    Marked relies directly on official implementations of MultiMarkdown and
    Discount, and I don't plan to modify either library at this point. I do
    already have processing worked in for Bear previews that handles this
    exact issue. It currently only enables when the preview comes from Bear,
    but I could expand it as an option that could be enabled for any note.

    In the meantime, you can always _not_ put the tags at the beginning of a
    line. I'm not sure if The Archive has an implementation that requires
    otherwise, but any character (or 3+ spaces) prior to the hashmark should
    avoid the issue entirely. You could start a line with:

         Tags: #tag1 #tag2

    etc.

    -Brett

  2. 2 Posted by Joakim on 21 Oct, 2019 06:58 AM

    Joakim's Avatar

    Thanks you your reply! I will use some empty spaces before the tags from now on.

  3. Brett closed this discussion on 22 Oct, 2019 01:55 PM.

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