Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

[Desktop][Bug] Cannot preview Note item if content contains lists that have starting number as 0 #7

Open
chaojian-zhang opened this issue Sep 7, 2019 · 0 comments

Comments

@chaojian-zhang
Copy link
Collaborator

chaojian-zhang commented Sep 7, 2019

Description:

If a note item contains the following content then it cannot be previewed in Inventory Tab:

0. Item 1
1. Item 2

In Debug mode one can observer such content caused PreviewMarkdown = ActiveItem.Content line to throw an ArgumentException from Windows Source due to data binding claiming "0 is not a valid StartIndex". This issue is related to how Markdig handles transforming number lists to FlowDocument elements.

The issue is mentioned here.

@chaojian-zhang chaojian-zhang changed the title [Desktop][Bug] Note item cannot preview if content contains lists that have starting number as 0 [Desktop][Bug] Cannot preview Note item if content contains lists that have starting number as 0 Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant