savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[savannah-help-public] [sr #109696] markdown verbatim (for code snippets


From: Peter Liscovius
Subject: [savannah-help-public] [sr #109696] markdown verbatim (for code snippets) does not respect white-space
Date: Sat, 8 Jun 2019 05:03:39 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:67.0) Gecko/20100101 Firefox/67.0

Follow-up Comment #2, sr #109696 (project administration):

> First, we want to wrap those verbatim elements at reasonable width --- if
they aren't, long lines break rendering of whole item. 

I do not think it is necessary to change the content except XSS filter before
output. CSS has ammunition to handle overlong nasty strings for output not
destroying the layout and preserving whitespace in code snippets: 


overflow-wrap:
(former word-wrap:) see
https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap

white-space:
overflow: (or overflow-x: overflow-y:)
hyphens:



example long word in a paragraph

blabla
x1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

example long word in code snippet


blabla
x1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789



I use currently 


word-wrap:anywhere;


for the whole comment/item text/

and 


overflow:auto;

for code section

> Then, it's desirable to make this work with CSS-unaware browsers as well.
??? example? 

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/support/?109696>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]