question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug with missing whitespace or newlines in tables and lists

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
level420commented, Feb 5, 2020

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

0reactions
borgarcommented, Feb 5, 2020

Sorry, releasing it also means supporting it. This is not something I am willing to release without more work and way more tests.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found