Feat: Added CSS class customization#74
Feat: Added CSS class customization#74CarcajadaArtificial wants to merge 1 commit intodenoland:mainfrom
Conversation
|
@hashrock please take a look |
|
I'm not sure about this feature. I think it might be useful, But It also seems to be an uncommon feature for markdown renderers (please let me know if any renderers implement similar features). I think most of the cases are solved by writing raw html inside markdown and applying raw CSS externally. |
|
My old website used |
|
@lino-levan I like the idea of this but agree with @hashrock that anything that is needed from this is already do-able with html in md and raw css. If we were to add this, could we do some more tests? |
Hello!
I'm really interested in md rendering native to Deno. I think adding CSS classes to the rendered markdown elements would be a fantastic feature. This would allow users to include their own styling without the need to rewrite the whole Marked Render class from scratch. Additionally, I think this works great for Fresh users (or other frameworks) because it gives them a way to add
twindclasses.Finally, I think that the requirement of markdown rendering extends further than sites that come from mostly markdown generation (like documentation sites). Frequently, in normal web app sites, I get the requirement of rendering a few static markdown blocks, for user instructions, pieces of documentation, or content that is more convenient to write with a markdown editor. Most of these would like to add their own styling to the rendered content.
I hope my previous arguments convince you of the potential of this feature. Even if you don't see it fit for this project, I would love to hear advice or recommendation. Thank you for reading and for this project.