H1 vs #-tag

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 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"?

3. Support Staff 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

4. Support Staff 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.

6. Support Staff 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.

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. Posted by Lutz Essers on 01 Mar, 2020 05:59 PM

That will be very helpfull.
Thank you.

Internal reply

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

»

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 Blurs the current field

Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

 03 Apr, 2020 09:11 PM Marked 2 crashes as soon as I try to open a file 03 Apr, 2020 03:49 PM MathJax processing 31 Mar, 2020 12:27 AM Custom Processor Arguments without setting its state 30 Mar, 2020 04:20 PM Passing nonquoted boolean JSON argument to Preprocessor causes Marked to crash 25 Mar, 2020 08:19 PM Symlink to Custom Preprocessor Not Working

Recent Articles

 Fenced code blocks inside indented code blocks Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked License code has already been utilized Highlight sentences longer than a certain number of words