Skip to content

How to get metadata? #63

@GSoftwareDevelopment

Description

@GSoftwareDevelopment

How to get metadata using React component?
An example is given in the documentation:

var conv = new showdown.Converter({metadata: true});
var html = conv.makeHtml(someMd);
var metadata = conv.getMetadata(); // returns an object with the document metadata

However, I am using the library in the context of the React component:

import MarkdownView from "react-showdown";

<MarkdownView ... />

And here is the title question. How to get metadata from Showdown Rect? Is it even possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions