I've got a txt file with a list that looks like this
# Actors
Robert Mitchum
John Voight
# Musicians
Geddy Lee
Angus Young
I would like to add that text to a Github Wiki page, and make it render like this: (one line of text for each line of text in my txt-file)
But by default, github's flavor of markdown will render it like this
Is there any of the predefined edit modes in Github which could achieve this? Here's the list of the edit modes available
I like markdown overall, I just need a format that respects line breaks. Would prefer to continue using something with the same symbols as markdown. (But I basically only need #
symbols for headers) However I could switch to a completely different style if I had to. (search-and-replacing my hashtags to other symbols would be easy) I just want a format that respects newlines and has some basic formatting for headers.
Line Breaks To create a line break or new line ( <br> ), end a line with two or more spaces, and then type return.
On the app, I have selected GitHub Flavored in the Markdown options. According to GitHub, colors are allowed. I created a small text file as a test. I will show the code and how I expect it to look in the graphic below.
You can either use the syntactic sugar that GFM (or other GitHub-supported markup language you're using) provides or, since Markdown can contain raw HTML, you can enter the HTML tags manually.
GitHub Flavored Markdown, often shortened as GFM, is the dialect of Markdown that is currently supported for user content on GitHub.com and GitHub Enterprise. This formal specification, based on the CommonMark Spec, defines the syntax and semantics of this dialect. GFM is a strict superset of CommonMark.
Add 2 spaces at the end of line :
Like that :
# Actors
Robert Mitchum
John Voight
Robert Mitchum
John Voight
Geddy Lee
Angus Young
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With