Hide tags from export

Hans Tammen's Avatar

Hans Tammen

20 Dec, 2020 07:23 PM

Hi,

my markdown documents are full of tags throughout each document. It would be great to have an option to exclude tags from the printout. Let me know if I overlooked something.

Hans

  1. Support Staff 1 Posted by Brett on 20 Dec, 2020 08:12 PM

    Brett's Avatar

    Please define "tags." I assume you mean hashtags?

    - Brett

  2. 2 Posted by Hans Tammen on 20 Dec, 2020 08:26 PM

    Hans Tammen's Avatar

    Hi Brett,

    ah, yes. Like #sound #history #ambient #flux

    I often have a tag after each paragraph.

  3. Support Staff 3 Posted by Brett on 21 Dec, 2020 04:22 PM

    Brett's Avatar

    I'll take this under consideration. Marked's support of tag highlighting is really just a convenience for Bear users, but it would be relatively easy to hide them, at least from PDF/Print export. My top priority right now is fixing PDF export on Big Sur, so this may have to wait a bit.

    In the meantime, you can do it yourself by using Preferences->Style->Additional CSS. Click the "Edit CSS" button and paste this into the popup window:

    @media print {
      #wrapper .mkstyledtag { display: none!important; }
    }
    

    Assuming you have #tags highlighted under Preferences->Processor->#Text is tag, this will hide the highlighted tags when printing or exporting as PDF.

  4. 4 Posted by Hans Tammen on 22 Dec, 2020 12:38 AM

    Hans Tammen's Avatar

    Cool, thanks - totally works for me!

    I could imagine lots of Markdown fans could use this, too, but then
    maybe not everybody has tons of tags dispersed between their paragraphs.

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