Bug with missing whitespace or newlines in tables and lists
See original GitHub issueI’m using the fresh released version 2.0.5 👍
In trying to convert redmine textile with textile.js. I’ve observed that textile.js needs whitespace/newlines where e.g. https://textile-lang.com/ doesn’t.
The following textile code:
* [*H*]attric: *DO*
|*D*|Diversity|
|*O*|Obstacles|
should result in a ul
having a single li
, and a table
with two lines belonging to that li
.
In textile.js this results in following html code (<p>
ommitted)
<ul>
<li><strong>H</strong>attric: <strong>DO</strong><br>
|*D*|Diversity|<br>
|*O*|Obstacles|</li>
</ul>
where on https://textile-lang.com/ it results as follows (I think correctly)
<ul>
<li><strong>H</strong>attric: <strong>DO</strong><br />
<table>
<tr>
<td><strong>D</strong></td>
<td>Diversity</td>
</tr>
<tr>
<td><strong>O</strong></td>
<td>Obstacles</td>
</tr><br />
</table></li>
</ul>
Table rendering starts working, if there is a newline after the first line ([*H*]attric: *DO*
), but then the table does not belong to the li
element, but is rendered after the closing ul
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Match whitespace but not newlines - Stack Overflow
All whitespace characters are either vertical or horizontal with no overlap, ... The below regex would match white spaces but not of a...
Read more >116429 - Linebreaks/newlines missing from chrome ...
This bug is very serious. The reason why Chrome replaces all line-breaks in selectionText with spaces is probably that it wants to put...
Read more >How whitespace is handled by HTML, CSS, and in the DOM
Whitespace is any string of text composed only of spaces, tabs or line breaks (to be precise, CRLF sequences, carriage returns or line ......
Read more >Whitespace · Styleguide Markdown
Newline. End files with a single newline character. Always use unix-style LF linebreaks ( \n , denoted as ␊ ) and avoid the...
Read more >Help:Newlines and spaces - Meta-Wiki - Wikimedia
However, table and list code is sensitive to newlines, and if template expansion produces a newline at the start (or end), this cumulates...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I understand that. But the branch already helps us a lot. But maybe as time passes you get back to this (I hope so!) and this feature finds its way into the master branch. 😃
Sorry, releasing it also means supporting it. This is not something I am willing to release without more work and way more tests.