# Commented text at the very beginning of a text file shows

#### thetzger

30 Mar, 2019 10:49 AM

Hi!
If I outcomment text at the very beginning of a file, e.g. <!--comment-->, it will still show in the preview that Marked 2 creates. Normally the preview will not show outcommented text. Is this a bug or intentional? And can the behaviour be switched off?

1. Support Staff Posted by Brett on 30 Mar, 2019 12:36 PM

Appears to be a bug. Likely something to do with the way I allow multimarkdown metadata to be commented at the beginning of a file, but I'll need to look into it. It doesn't happen if the Preferences->Processor is set to Discount.

You can avoid it by simply putting a blank line in the first line of the document for now, though.

2. Posted by thetzger on 30 Mar, 2019 12:57 PM

Thanks, I appreciate the quick reply! I'm going to use Discount for now and will switch back to MMD as soon as the bug is fixed.

3. Support Staff Posted by Brett on 16 Apr, 2019 08:37 PM

FYI, I have this fixed up for the next update. Not sure when it will be ready for release, but probably within a couple weeks. Closing this for now.

4. Brett closed this discussion on 16 Apr, 2019 08:37 PM.

5. thetzger re-opened this discussion on 17 Apr, 2019 07:07 PM

6. Posted by thetzger on 17 Apr, 2019 07:07 PM

Hi Brett!

Thanks for letting me know!

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

 26 Feb, 2021 11:18 AM *manual* refresh needed when using mathjax from script 24 Feb, 2021 06:25 AM pdflatex not found 23 Feb, 2021 06:39 PM streaming preview beachballs when URL is supplied 21 Feb, 2021 05:24 PM LanguageTool support 21 Feb, 2021 01:11 PM Obsidian and link support

## Recent Articles

 Intra-document links in exported PDFs Using Ulysses with Marked Fenced code blocks inside indented code blocks Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked