Support for %% Comment markdown

greg.ferro's Avatar


12 Apr, 2014 10:29 PM

I'm using Scrivener to write a largish markdown file for LeanPub. I'm finding increasing use for inserting comments into the book writing and using the convention of %%.

I've enabled LeanPub mode, but Marked doesn't 'hide' the comments.

Is there a workaround or fix in the preferences ?

  1. Support Staff 1 Posted by Brett on 13 Apr, 2014 12:50 AM

    Brett's Avatar

    LeanPub mode isn't a full replication and is missing some of their newer
    syntax. %% is nowhere in the Markdown spec, so it would require me
    writing a way to do it from scratch. It's not something I'd be able to
    get to any time soon.

    Marked does support Scrivener's standard annotation syntax, though, and
    can hide them from view. I'm sure that doesn't help with the eventual
    port to LeanPub, though.

    If I can find an easy way to do it, I'll consider it, but no, there's no
    current support for it.


  2. 2 Posted by greg.ferro on 13 Apr, 2014 10:50 AM

    greg.ferro's Avatar

    Thanks Brett. Consider it a feature request then.

    I'm using the %% Comment idea much more when transferring from outline to paragraphs. I list out my bullet points as a comment and then write the paragraph under the bullet. Maybe I'm just doing it differently from everyone else.

    Thanks for the prompt response. Understand and accept the status.


  3. 3 Posted by lucb on 17 Apr, 2016 11:20 PM

    lucb's Avatar

    I'm a Leanpub author ( Cognitive Productivity). I've asked Leanpub to include support for XML comments, <!-- ---> , which would resolve the matter. They are working on the Markua spec. I see that their Markua spec now specifies support for such comments:

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


? 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