BenjaminHoegh / ParsedownExtended

ParsedownExtended is an extention for Parsedown, offering additional features and functionalities.
https://benjaminhoegh.github.io/ParsedownExtended
MIT License
37 stars 7 forks source link

Bullets appear in tasks lists #43

Open snorky22 opened 1 year ago

snorky22 commented 1 year ago

Describe the bug

When tasks lists are created, the checkboxes are preceded by bullets (see screenshot in vanilla HTML+CSS attached using Safari WebKit)

CleanShot 2022-11-01 at 10 13 21@2x

Indeed, the code is

CleanShot 2022-11-01 at 10 15 00@2x

Expected Behavior

It would be nice to add a custom class for the <ul> or <li>elements so that the bullet can be removed.

Relevant log output

No response

Environment

I have written a RapidWeaver stack which basically gives ParsedownExtended the markdown code that has been input in the GUI. The PHP code is

<?php
    $Extra = new ParsedownExtended([
    "math" => true,
    "toc" => true,
    "typographer" => true,
    "sup" => true,
    "sub" => true

]);
    echo $Extra->text('%html%');
?>

where %html% is a macro that is replaced by the actual markdown code upon publishing the website.

Code of Conduct

BenjaminHoegh commented 1 year ago

I could update the script so you can add a class or a id to the list. By default ParsedownExtended doesn't add any styles