H1 vs #-tag
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?
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 29 Feb, 2020 10:27 AM
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 Posted by Lutz Essers on 29 Feb, 2020 11:07 AM
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"?
Support Staff 3 Posted by Brett on 29 Feb, 2020 11:15 AM
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
Support Staff 4 Posted by Brett on 29 Feb, 2020 11:51 AM
Done, added option for next update.
-Brett
5 Posted by Lutz Essers on 29 Feb, 2020 12:58 PM
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.
Support Staff 6 Posted by Brett on 01 Mar, 2020 05:29 PM
Update is going out today (will take at least a day for MAS version to update) with the new option under Preferences->Processor.
Brett closed this discussion on 01 Mar, 2020 05:29 PM.
Lutz Essers re-opened this discussion on 01 Mar, 2020 05:59 PM
7 Posted by Lutz Essers on 01 Mar, 2020 05:59 PM
That will be very helpfull.
Thank you.