TIHLDE / Kvark

Frontend of TIHLDE. Dev: https://dev.tihlde.org
https://tihlde.org
MIT License
13 stars 3 forks source link

Markdown Renderer and Editor #1085

Open MadsNyl opened 1 week ago

MadsNyl commented 1 week ago

Feature request

Our markdown renderer is shit.

This should be redesigned. For example is there no good way to add spaces between lines. We have to use HTML tags. The headings and text should also be better.

I don't know if this is relevant, but you should check out the prose lib for Tailwind.

Tailwindcss prose

EDIT(merged this issue with another): Also fix the issue with spacing and better header styling

Embretr commented 1 day ago

Hmm, this sounds wierd, as markdown renders a
if used correctly. https://stackoverflow.com/questions/35177253/why-markdown-syntax-requires-two-spaces-before-n-to-make-a-paragraph-out-of-it I think the titles would work better if we switched to the other markdown input that i provided.

Will try it out the line break issue in dev, and see if it is actually broken, or just working as intended.

Embretr commented 1 day ago

My comment on the original issue:

I suggest we then do markdown only under the hood, like here:

https://mdxeditor.dev/

I have used it before, and it's nice.

Embretr commented 1 day ago

@Alivki We will do this issue together. No need for a figma sketch, but we should test the new implementation heavily in dev, as this is an essential part of the site and would stop people from posting.