Zettlr / Zettlr

Your One-Stop Publication Workbench
https://www.zettlr.com
GNU General Public License v3.0
9.8k stars 611 forks source link

Inconsistent Checkbox Rendering #5214

Open johnnyboisssss opened 3 weeks ago

johnnyboisssss commented 3 weeks ago

Description

This video contains reproducing steps and expected behavior.

https://github.com/Zettlr/Zettlr/assets/93165360/38bd5651-77d0-495a-8fed-c10fe4ab831f

Reproducing

https://github.com/Zettlr/Zettlr/assets/93165360/6f81f6b6-1848-488f-a208-9e9a151cfc3b

Zettlr Version

Stable (most recent version)

Specify version

No response

Installation Method

From the Website or GitHub

Your Platform

Architecture

Operating System Version

Mac OS 14.0

Additional Information

No response

nathanlesage commented 2 weeks ago

This behavior seems to come from an inconsistency between the plugin that, upon pressing Enter, sees if it can continue a given list that wants a space afterwards, and the parser, which accepts the markup without the following space.

I'll have to do some digging; right now I'm not sure if this is an inconsistency in the underlying Markdown package (since the parser apparently doesn't seem to style task markers if they aren't followed by a space in the default implementation, so I'm a bit confused why Zettlr does this) or in Zettlr.