#476  Improve display of Markdown files
Closed
Stephen S opened 2 years ago

Here is the top of an example Markdown file:

image.png

  • frontmatters are not managed as separate text blocks (here: ``tags: todo`)
  • tables are not aligned (the table here was aligned in the Markdown document). The reason is that the font you're using is not a monospace font
Robin Shen commented 2 years ago

frontmatters are not managed as separate text blocks (here: ``tags: todo`)

Can you please explain more here? I don't see any issue here

tables are not aligned (the table here was aligned in the Markdown document). The reason is that the font you're using is not a monospace font

Mono font is normally used when writing code. Even if mono font is used, table columns still can not be aligned when number of characters are different between rows (which is majority of the case). I checked GitHub and it behaves the same.

Stephen S commented 2 years ago

Well, that is not entirely true. Here is how Gitea displays a table in a Markdown document:

image_2.png

Stephen S commented 2 years ago

As per the frontmatter, it shgould IMO be displayed in a different color/font. Here is how Obsidian does it:

  1. Editing

image_3.png

  1. Preview

image_4.png

Stephen S commented 2 years ago

As it is currently displayed in OneDev, frontmatters appear like a head title, which they are not.

Robin Shen commented 2 years ago

Uses mono space will not help table align as you see the second column still can not be aligned due to different number of characters. Also using monospace font for markdown will make it less readable as monospace is not the best font for reading...

As to front matters, OneDev currently does not have that concept. Heading is just heading with large size in OneDev.

Robin Shen changed state to 'Closed' 2 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Improvement
Priority
Minor
Assignee
Issue Votes (0)
Watchers (3)
Reference
onedev/server#476
Please wait...
Page is in error, reload to recover