marp-team / marp-core

The core of Marp converter
MIT License
775 stars 130 forks source link

Add support for hgroup #369

Closed gwen-lg closed 5 months ago

gwen-lg commented 5 months ago

Hello,

would it be possible to add support of element/tag : hgroup ? In my slideshow, I regularly wanted to add content linked to a title, but not in title. I see than hgroup seems to be done for this.

In markdown/commonmark side, I imagine than an indented text could be include in hgroup, while no-indented text should be processed like regular text.

Example :

# Marp slideshow
  [website](https://marp.app)

Marp is a great tool to easly create slideshow.

Thank you

yhatt commented 5 months ago

CommonMark does not seem to have a syntax for generating the hgroup element as you mentioned. Marp is not a library intended for active extension of Markdown and CommonMark, so we have no plans to adopt such syntax.

However, you can extend your own syntax using compatible (or created) markdown-it plugins or allow HTML tags to achieve the desired output:

<hgroup>

# Marp slideshow

[website](https://marp.app)

</hgroup>
gwen-lg commented 5 months ago

Ok, thank you