(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.

/home/juef/dl/discount-2.2.0: cat test
Name | Description
---- | -----------
a    | b
c    | d


bla bla `ps aux | grep firefox` zzz..


# discount
/home/juef/dl/discount-2.2.0: ./markdown test
<table>
<thead>
<tr>
<th>Name </th>
<th> Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>a    </td>
<td> b</td>
</tr>
<tr>
<td>c    </td>
<td> d</td>
</tr>
</tbody>
</table>


<p>bla bla <code>ps aux | grep firefox</code> zzz..</p>


# libsoldout + discount extensions; however without them it works,
# but of course without a table..
/home/juef/dl/discount-2.2.0: mkd2html -d test
<table>
<thead>
  <tr>
    <th>Name</th>
    <th>Description</th>
  </tr>
</thead>
<tbody>
  <tr>
    <td>a</td>
    <td>b</td>
  </tr>
  <tr>
    <td>c</td>
    <td>d</td>
  </tr>
</tbody>
</table>

<table>
  <tr>
    <td>bla bla `ps aux</td>
    <td>grep firefox` zzz..</td>
  </tr>
</table>


# and finally fossil..
/home/juef/dl/discount-2.2.0: f test-th-eval "markdown {`cat test`}"
{} {<div class="markdown">

<table>
<thead>
  <tr>
    <th>Name</th>
    <th>Description</th>
  </tr>
</thead>
<tbody>
  <tr>
    <td>a</td>
    <td>b</td>
  </tr>
  <tr>
    <td>c</td>
    <td>d</td>
  </tr>
</tbody>
</table>

<table>
  <tr>
    <td>bla bla `ps aux</td>
    <td>grep firefox` zzz..</td>
  </tr>
</table>

</div>
}


-- 
https://www.juef.tk/
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to