fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
461 stars 10 forks source link

Format the *.md files in the repository manager #65

Open elendil-software opened 5 years ago

elendil-software commented 5 years ago

Hi,

I have seen that if there is a readme file at the root of a repository, it is displayed in the repository manager. It would be nice to have the displayed content formatted if the file contains Markdown syntax.

jerone commented 5 years ago

Yes, that would be great addition.

Example project: https://github.com/sindresorhus/refined-github#readme

TanyaPristupova commented 5 years ago

@jerone this is a good example why I don’t introduce the Markdown rendering.

Check the code. It’s not markdown! https://raw.githubusercontent.com/sindresorhus/refined-github/master/readme.md

Unfortunately I don’t see any easy way to render that.

jerone commented 5 years ago

@TanyaPristupova It's GFM.

I'm guessing you are using C#, try Markdig.

TanyaPristupova commented 5 years ago

We tried it already some time ago and the result was pretty bad.

I’ll try it again later and post what I get here.

SteveALee commented 5 years ago

I guess this is a 'nice to have ' as the entire point of MD is that the source is human readable too :)

PS I've head good things about Markdig which support CommonMark.

Otiel commented 5 years ago

@TanyaPristupova I've had good results using https://github.com/Kryptos-FR/markdig.wpf (which uses Markdig). One tricky step might be to adapt the style to make it work correctly with the light and the dark themes.

Vixb1122 commented 1 year ago

Is there any progress on this issue? I found a code repository, not sure if it would be helpful for this issue.

https://github.com/theunrepentantgeek/Markdown.XAML