Boostnote: Wrong rendering in CodeBlock

Created on 20 Apr 2018  路  3Comments  路  Source: BoostIO/Boostnote

Hi, Boostnote team.
Boostnote is too useful tool and helps me always!

I report a somewhat strange behavior of Boostnote.

Current behavior

The rendering of CodeBlock goes wrong. ( I think this is an exceptional case. )
boostnote_issue

  1. &, <, >, and $ are renderd as HTML numerical character references
  2. Appear an unexpected close tag </tag>

Expected behavior

On GFM rendering it seems to be parsed as follows.

```c

?
<
>
$

<tag>

Steps to reproduce

Insert "```x" into the CodeBlock. (x is arbitrary characters)

Environment

  • Version : Boostnote 0.11.4
  • OS Version and name : macOS Hight Sierra version 10.13.3 and ArchLinux
bug

Most helpful comment

Looks critical. We should replace markdown renderer fast. I think I could take on it about 2 weeks later.

All 3 comments

Looks critical. We should replace markdown renderer fast. I think I could take on it about 2 weeks later.

I have another example of the appearance of a closing tag. The second word inside a tag is parsed as an argument to the tag. I tried it with different languages specified for the highlighting, but that makes no difference.

Maybe it will help you with a fix, but if markdown rendering is replaced it might be obsolete anyway.

Closing tag appears

~~~
std::map<std::string, int> map = boost::assign::map_list_of ("key1", 19) ("key2", 21);
~~~

Output

std::map map = boost::assign::map_list_of ("key1", 19) ("key2", 21);

Space after opening bracket (no closing tag)

~~~
std::map< std::string, int> map = boost::assign::map_list_of ("key1", 19) ("key2", 21);
~~~

Output

std::map< std::string, int> map = boost::assign::map_list_of ("key1", 19) ("key2", 21);

This issue is no longer present in the current version of Boostnote.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aurelkurtula picture aurelkurtula  路  3Comments

npeeples picture npeeples  路  3Comments

gavvvr picture gavvvr  路  3Comments

necan picture necan  路  3Comments

croulibri picture croulibri  路  3Comments