Boostnote: TOC generator handles the heading "X" as a checkbox

Created on 22 Jul 2019  路  1Comment  路  Source: BoostIO/Boostnote

Current behavior

Trivial bug: a heading X results in a [X] in the TOC section, which will be rendered as a checkbox.

Expected behavior

I suggest this edge case be handled specially. For example, [ X] gives the wanted output.

Steps to reproduce


Simply generate the TOC for # X:

<!-- toc -->

- [X](#X)

<!-- tocstop -->
# X

Environment

  • Version : 0.11.17
bug level 1

Most helpful comment

I found another edge case: # []

# X
# [ctrl]
# [link](google.com)
# - a
# * a
# + a

image

Environment

  • Version: 0.11.12

>All comments

I found another edge case: # []

# X
# [ctrl]
# [link](google.com)
# - a
# * a
# + a

image

Environment

  • Version: 0.11.12
Was this page helpful?
0 / 5 - 0 ratings

Related issues

NonlinearFruit picture NonlinearFruit  路  3Comments

cyber-arsenull picture cyber-arsenull  路  3Comments

Ocanamat picture Ocanamat  路  3Comments

dtgay picture dtgay  路  3Comments

Petroochio picture Petroochio  路  3Comments