Skip to content

How to define my own plugin to render a button with markdown? #1383

Closed Answered by ChristianMurphy
rockcs1992 asked this question in Q&A
Discussion options

You must be logged in to vote

Welcome @rockcs1992! 👋
I'd recommend reading https://github.com/micromark/micromark?tab=readme-ov-file#extending-markdown
Rather than creating a new flavor of markdown, consider leveraging a generic extension like directive https://github.com/remarkjs/remark-directive#readme along with a plugin like https://github.com/IGassmann/remark-directive-rehype

::button[button label to show the user]{href=https://example.com}

would be the syntax.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rockcs1992
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants