H1 vs #-tag

lutz's Avatar

lutz

29 Feb, 2020 08:37 AM

I'm used to tag texts with a "#tag" and write H1-headlines as "# headline". I'm writing with different editors like Typora, iA Writer, The Archive and nvUltra beta. They all know the accept the difference between # with and without a blank and the next word.
Only on Marked 2 I have not yet found the button for it. Any tips?

  1. Support Staff 1 Posted by Brett on 29 Feb, 2020 10:27 AM

    Brett's Avatar

    Hi Lutz,

    If it’s at the beginning of a line, it’s an h1. That’s the markdown spec, space or no space. Put the tag after any other characters and it will work.

    - Brett

  2. 2 Posted by Lutz Essers on 29 Feb, 2020 11:07 AM

    Lutz Essers's Avatar

    Thank you, Brett.
    And there is no way to change this behaviour?
    All markdown-apps I have access to (Multimarkdown Composer, nvUltra, iA Writer, Typora) also show the first # as a tag, only Marked 2 plays by the rules.

    Couldn't we switch between conforming to the rules and "doing it like everybody else"?

  3. Support Staff 3 Posted by Brett on 29 Feb, 2020 11:15 AM

    Brett's Avatar

    This is already modified for Bear users (only active when opening a Bear
    file), wrapping #tags in a tag span for display. It's possible I'll make
    this default behavior. My concern has always been that deviating from
    the Markdown spec would confuse users who are used to standard Markdown
    behavior, but I didn't realize how widely it had been adopted.

    I wish people had stuck with @tags instead of using a character bound to
    headlines, but… whatever.

    -Brett

  4. Support Staff 4 Posted by Brett on 29 Feb, 2020 11:51 AM

    Brett's Avatar

    Done, added option for next update.

    -Brett

  5. 5 Posted by Lutz Essers on 29 Feb, 2020 12:58 PM

    Lutz Essers's Avatar

    I totally understand your point of view. That's why I asked for a switch, not to change the behaviour completely.
    Markdown is obviously a living organism with developmental potential.

  6. Support Staff 6 Posted by Brett on 01 Mar, 2020 05:29 PM

    Brett's Avatar

    Update is going out today (will take at least a day for MAS version to update) with the new option under Preferences->Processor.

  7. Brett closed this discussion on 01 Mar, 2020 05:29 PM.

  8. Lutz Essers re-opened this discussion on 01 Mar, 2020 05:59 PM

  9. 7 Posted by Lutz Essers on 01 Mar, 2020 05:59 PM

    Lutz Essers's Avatar

    That will be very helpfull.
    Thank you.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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