How to display title metadata

halloleo's Avatar

halloleo

28 Oct, 2023 05:43 AM

When I have set the title in the metadata like this:

---
title: The Title of a non-existing paper
...

blb blb bla

how can I show this title in the Marked HTML rendering of the document?

  1. Support Staff 1 Posted by Brett on 28 Oct, 2023 12:54 PM

    Brett's Avatar

    You can set it up to convert YAML headers to MMD metadata, use the MMD
    Processor, and then put placeholders like [%title] in the document. If
    you just want to see the actual metadata at the top, you can try
    ignoring YAML headers and see how it renders, but the dividers will
    become horizontal rules and all of the keys will end up on one line.

    If you want it rendered as a table the way GitHub does, you'll need a
    custom processor to handle it.

    -Brett

    On 28 Oct 2023, at 0:45, halloleo 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