showdown icon indicating copy to clipboard operation
showdown copied to clipboard

Feature: option to word-wrap generated markdown text

Open flynx opened this issue 3 years ago • 0 comments

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:

  • undefined or 0 -- line-wrapping disabled, default,
  • true -- line-wrapping on defaulting to 72 chars per line,
  • number (>0) -- wrap lines to this width in chars.

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!

flynx avatar Nov 02 '22 10:11 flynx