revite icon indicating copy to clipboard operation
revite copied to clipboard

add richtext improvements for markdown renderer

Open bdbch opened this issue 4 years ago • 6 comments

Currently markdown rendering looks broken (see old screenshot):

image

I added margins to the specific elements that were missing spacings completely to make it look like this:

image

bdbch avatar Sep 17 '21 10:09 bdbch

I'd agree on adding margins (although not as much as in picture) to list items but probably not the headings, too much wasted white space imo.

insertish avatar Sep 23 '21 16:09 insertish

What would be your suggestion since headlines should also be grouped together with the content it describes by law of proximity? https://lawsofux.com/law-of-proximity/

bdbch avatar Sep 24 '21 20:09 bdbch

First thing I could reduce is the bottom margin on headlines to remove some of the white space but I'd still keep a clean separation to the content above (if there is any content obv.)

bdbch avatar Sep 24 '21 20:09 bdbch

Any progress on this? (I agree that reducing the spacing slightly would be a good idea.)

Rexogamer avatar Jan 20 '22 19:01 Rexogamer

I removed the margin on headlines and tweaked blockquotes in combination with paragraphs.

image

bdbch avatar Jan 21 '22 02:01 bdbch

We've just switched from markdown-it to remark, so this will probably need to be re-implenented

Rexogamer avatar Jul 09 '22 23:07 Rexogamer

Closing due to rewrite, https://github.com/revoltchat/frontend.

insertish avatar Jan 24 '23 17:01 insertish