remarkjs / react-markdown

Markdown component for React
https://remarkjs.github.io/react-markdown/
MIT License
13.29k stars 876 forks source link

Please add syntax for `{.tabset} ` #825

Closed KhoiUna closed 6 months ago

KhoiUna commented 6 months ago

Initial checklist

Problem

I'd love to use {.tabset} syntax for markdown, like mentioned here https://bookdown.org/yihui/rmarkdown-cookbook/html-tabs.html

Solution

n/a

Alternatives

n/a

ChristianMurphy commented 6 months ago

Welcome @KhoiUna! 👋

micromark and remark and their downstream packages follow commonmark https://commonmark.org/ tabset is not part of commonmark, so will not be added by default.

That said, micromark and remark support syntax plugins. You could use an existing one like remark-directive (recommended) https://github.com/remarkjs/remark-directive Or create your own syntax extension https://github.com/micromark/micromark?tab=readme-ov-file#extending-markdown

github-actions[bot] commented 6 months ago

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.