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

Enhancement: Add option to suppress wrapping content with <p></p> #92

Open
DavidBiesack opened this issue Mar 10, 2017 · 0 comments
Open

Comments

@DavidBiesack
Copy link

In some cases involving fine-grained use of Markdown, it is not appropriate to add <p>...</p> wrappers to the output. For example, the OpenAPI Specification uses Markdown for titles/summaries of items in a an OpenAPI doc. When generating HTML from that doc, these Markdown elements end up embedded in non-block contexts such as in <h2>...</h2>. These contexts are not "complete" Markdown documents, and not even block/paragraph constructs. However, Markdown such as text effects (emphasis, bold, links) are used.

I propose an option to simplify the output so that the caller can determine the context in which the Markdown is presented (the caller can wrap the converted text in a span, a div, a header, a paragraph, etc.)

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

1 participant