Created
April 29, 2025 09:36
-
-
Save sogaiu/669b64f60237cf5cdf63b9d175cc4ef7 to your computer and use it in GitHub Desktop.
use pyrmont's remarkable to look for loose lists in janet docstrings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import ./remarkable/init :as r) | |
(comment | |
(def content "hello") | |
(r/parse-md content) | |
# => | |
[:document @{:container? true | |
:open? true} | |
@[[:paragraph @{:inlines? true | |
:open? false} | |
@[@"hello"]]]] | |
) | |
(comment | |
(def loose-list | |
`` | |
There should be a loose list below: | |
* First item | |
* Second item | |
* Third item | |
``) | |
(r/parse-md loose-list) | |
# => | |
[:document @{:container? true | |
:open? true} | |
@[[:paragraph @{:inlines? true | |
:open? false} | |
@[@"There should be a loose list below:"]] | |
[:list @{:container? true | |
:has-blank? true | |
:kind :bullet | |
:marker "*" | |
:open? false | |
:tight? false} | |
@[[:list-item @{:container? true | |
:open? false | |
:width 2} | |
@[[:paragraph @{:inlines? true | |
:open? false} @[@"First item"]]]] | |
[:list-item @{:container? true | |
:open? false | |
:width 2} | |
@[[:paragraph @{:inlines? true | |
:open? false} @[@"Second item"]]]] | |
[:list-item @{:container? true | |
:open? false | |
:width 2} | |
@[[:paragraph @{:inlines? true | |
:open? false} @[@"Third item"]]]]]]]] | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment