Hello, on Saturday 14 May 2016 at 16:50, Svyatoslav Mishyn wrote: > (Sat, 14 May 16:14) Svyatoslav Mishyn: > > (Sat, 14 May 13:03) Marko Käning: > > > How to render a vertical line in a Markdown code snippet? > > > > > > I tried `|`, `\|` and `||` but all to no avail. The bare vertical in text > > > flow even caused fossil’s UI to try to render a table at one point. > > > > > > If I do the same in a multiline code block it works: > > > ` > > > | > > > ` > > > but how to get this done w/o trouble in a code snippet?? > > > > I think, it is a bug in libsoldout.
I would argue that it's not a clear-cut bug, but rather an unfortunate side-effect of the table structure being so light while having a higher precedence than spans. But yes, you encounter the same thing in libsoldout, and you have to work around it the same way. > It also works if a code snippet starts on a new line, i.e. > bla bla > `ps aux | grep firefox` zzz.. It's easier than that: you can't have a vertical bar (`|`) in the first line of a makrdown paragraph, unless it's preceeded by a backslash ("\|") (but then the backslash is not removed in a code span). Fortunately, whitespaces are collapsed in HTML, so all the alternatives below should render the vertical bar without table: bla bla `ps aux | grep firefox` zzz.. bla bla bla bla `ps aux | grep firefox` zzz.. bla bla `ps aux | grep firefox` zzz.. \ `ps aux | grep firefox` if you really need a code span at the beginning of the paragraph In other words, anything that pushes the vertical bar beyond the first line perevents the paragraph from being interepreted as a table. Hoping this help, Natacha Porté
signature.asc
Description: PGP signature
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users