Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+ character in a fragmented list does not work correctly #188

Closed
devkev opened this issue Dec 19, 2022 · 1 comment
Closed

+ character in a fragmented list does not work correctly #188

devkev opened this issue Dec 19, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@devkev
Copy link

devkev commented Dec 19, 2022

Describe the bug
If I have a fragmented list entry where the text of the line contains a + character, then the list item does not render correctly.

Samples to Reproduce

In all of the below cases, the list entries render correctly if the + is changed to -.

Example 1:

- foo
+ a + b

renders as:

- foo
- a - b

Example 2:

- foo
+ `a + b`

renders as

- foo
- a - &shy;<!-- .element: class="fragment" -->b

Example 3:

- foo
+ c = a + b

renders as

- foo
- c="true" =="true" a - b

Expected behavior
Fragmented list entries should always render identically to the corresponding non-fragmented list entry.

I believe that the problem is (or is related to) the list fragment replacement code erroneously considering all "+ " sub-strings in a line, when in fact it should only consider those at the start of the line or preceeded only by whitespace, ie. those matching a regex of "^\s*+". (h/t @rueckstiess for finding the problematic code)

@devkev devkev added the bug Something isn't working label Dec 19, 2022
@MSzturc
Copy link
Owner

MSzturc commented Feb 15, 2023

will be fixed with upcoming version

@MSzturc MSzturc closed this as completed Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants