Ubuntu 20.04.3 server can Apache be made to render md documents like on GitHub?
Bo Berglund
bo.berglund at gmail.com
Thu Jan 13 10:50:04 UTC 2022
On Thu, 13 Jan 2022 00:11:21 +0100, Bo Berglund <bo.berglund at gmail.com> wrote:
>Test if the md file is handled via a browser:
>
>http://ubu-asa/LinuxCommands.md
>
>And voila! The md document is displayed and mostly readable, except parts seem
>to be non-recognized by the mod_markdown, so they look awful, not anywhere like
>they are rendered by the FireFox add-on when opened with a file system URL.
>
>I guess this can be solved using a style sheet so now I need to find such, which
>can render my file sensibly.
>
>
Does anyone here know where one can get hold of a working style sheet file for
md rendering using mod_markdown?
I found one such file from my earlier attempts and it half way works but is
having problems with code sections marked with triple backticks ( ``` ) marking
start and end of code sections.
It also uses a strange center view of the text with very big unused margins to
both sides. Not optimal for my use which needs full-width text and smaller
font..
Also line feeds using double spaces at the end of a line are not observed so
texts that are supposed to go on a number of separate lines are clobbered
together as one single paragraph.
There are more such things.....
So I need a better css file if possible.
BTW if I remove the css file then the built-in renderer becomes very dependent
on the local browser's default settings which also screws up stuff like font
sizes and such.
--
Bo Berglund
Developer in Sweden
More information about the ubuntu-users
mailing list