YAML: Preferred Style?

ivo.welch's Avatar

ivo.welch

30 Jul, 2024 12:34 AM

Could Marked 2 pick up the default style from a yaml instruction? of course, this would require a parse in yaml and understanding something like marked2: "Amblin" ...

  1. Support Staff 1 Posted by Brett on 30 Jul, 2024 01:01 AM

    Brett's Avatar

    Just put “style: Amblin” in your meta (or in an html comment in the document) and it should pick it up.

    Thanks,
    Brett
    On Jul 29, 2024 at 7:36 PM -0500, ivo.welch <[email blocked]>, wrote:

  2. 2 Posted by ivo.welch on 30 Jul, 2024 01:24 AM

    ivo.welch's Avatar

    Great!

    Suggestion: ignore surrounding quotation marks.

  3. Support Staff 3 Posted by Brett on 30 Jul, 2024 01:26 AM

    Brett's Avatar

    The quotes in my reply were just to indicate what to type, not to be included. Is that what you mean?

    Thanks,
    Brett
    On Jul 29, 2024 at 8:24 PM -0500, ivo.welch <[email blocked]>, wrote:

  4. 4 Posted by ivo.welch on 30 Jul, 2024 01:44 AM

    ivo.welch's Avatar

    nope. I mean

    ---
    title: "I like all yaml quoted"
    style: "Amblin"
    ---
    

    would be nice if it worked, too. Right now, I think Marked only picks up style: Amblin but not style: "Amblin"

  5. Support Staff 5 Posted by Brett on 30 Jul, 2024 01:48 AM

    Brett's Avatar

    I’ll fix that.

    Thanks,
    Brett
    On Jul 29, 2024 at 8:44 PM -0500, ivo.welch <[email blocked]>, wrote:

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