Text wrapping in .txt file preview

Hi, I’m having a relatively simple issue that I’m hoping has a relatively simple fix. I’m using a repo to post and store plaintext writing (.txt) and I want the lines to wrap in the public preview on github but I can’t figure out how to do this. When I go to to edit the file the option is there to toggle soft wrap and that’s exactly how I want it to look. I know that if I use markdown I can fix this, but I like writing in plain txt 

Bonus points if anyone can explain how to simply make these files into a nice looking paragraphs on github pages (using .txt not markdown) 

Thanks!

Thanks for reaching out.

Unfortunately, there isn’t a method to make GitHub soft-wrap any code files, including plain text files, in the view mode on the website. Markdown files are considered to be “prose documents” and are handled differently along with a few other prose document types. If Markdown isn’t something you care for, you may want to check out one of the other markup languages that https://github.com/github/markup supports.

As far as getting Jekyll, the engine behind GitHub Pages, to render web pages from plain text documents, there is probably some configuration that would allow you to do that but I’m not aware of one off the top of my head.

I’m not entirely certain what the objection is to Markdown though? Given the example you show, if you simply changed the extension from .txt to .md, you would get everything you want with almost no effort. This is because Markdown, for the most part, is designed to work very similarly to plain text in many cases and the places where it doesn’t are very easy-to-understand conventions that many people use anyway for things like emails.

Let us know if you have more questions.