Component for styling HTML / Markdown #4920
Closed
larsrickert
started this conversation in
Ideas
Replies: 1 comment
-
|
Alternatively provide support / prose components for @nuxtjs/mdc since it can also be used without Nuxt and might be the cleaner solution |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why
In some applications it is required to e.g. render markdown content that is either fetched from some external source or that the user has entered in some place of the same application.
It would be nice if onyx provides an component (e..g
OnyxHTML) that applies pretty styles to the renderer HTML elements so that spacings, styles for headlines, links, lists, code blocks etc. are displayed correctly and the user does not have to take care about this.Out of scope: Sanitizing HTML, convert markdown etc.
Ideally, the style are the same as the prose components of the
@sit-onyx/nuxt-docspackage. But the component requested in this discussion should be independent of Nuxt so that it can also be used in regular Vue applications.Example use cases
Beta Was this translation helpful? Give feedback.
All reactions