Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider hgroup handling #768

Open
gwen-lg opened this issue Apr 20, 2024 · 2 comments
Open

Consider hgroup handling #768

gwen-lg opened this issue Apr 20, 2024 · 2 comments

Comments

@gwen-lg
Copy link

gwen-lg commented Apr 20, 2024

Hello,

I seek it would be nice to have the possibility to generate associated content to a title from Markdown file.
This is handled in html by hgroup.

I imagine than indented content next to a title line, could be considered as heading related content.
Like with li where an indented line content is associated with previous line : Example 256

Example :

# CommonMark
  A strongly defined, highly compatible specification of Markdown

Next of content

Thank you

@taufik-nurrohman
Copy link

taufik-nurrohman commented Apr 20, 2024

Nice idea. It also very readable from the source. Not sure about the rich-ness. Usually people use Markdown only to write article content, so the usage for this syntax would be very rare. Must be only to mark up the very first heading and its description. And if you are using CMS to manage your content, chance that your main title and description data would be stored in their own separated table column in the database.

FYI, I do have made similar syntax to provide image and table caption on my own Markdown parser:

Image Caption

![alt text](image.jpg)
 Image caption.

![alt text](image.jpg)

 Image caption in a paragraph.

Table Caption

| Table Header
| ------------
| Table data.
  Table caption.

| Table Header
| ------------
| Table data.

  Table caption in a paragraph.

They should be degraded gracefully when parsed by other Markdown parser (usually becomes regular paragraph).

@gwen-lg
Copy link
Author

gwen-lg commented Apr 21, 2024

Markdown is also a relatively widespread use in slideshow creation with tools like Marp.
It is in this context that I missed this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants