showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.26k stars 1.56k forks source link

Feature: option to word-wrap generated markdown text #959

Open flynx opened 1 year ago

flynx commented 1 year ago

Hi,

Since the whole point of storing the layout in markdown is human readability, it would be great to be able to control the output formatting, and mainly line-wrapping in normal text.

I would suggest an option: lineWrapText with the following values:

Note: would also be logical to line-wrap (to the same value) the text in HTML output to make it more readable, but this is less critical.

Thanks!