Skip to content

why does <h1>title<h1> can't wrap by <p> tag even when it's rendered as a string? #1309

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

You must be logged in to vote

Again, it would be really beneficial to give some context on the actual problem you are facing.
Currently you are really focused on what you think is a solution, adding a paragraph (XY Problem).
It's unclear if it will actually or effectively solve the underlying problem.
You can read more on the XY problem here: https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem

To answer your direct question, it is possible to add wrapping tags, through remark/rehype plugins https://unifiedjs.com/learn/

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mosade
Comment options

@ChristianMurphy
Comment options

Answer selected by mosade
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