-
Notifications
You must be signed in to change notification settings - Fork 105
feat: rendering of checkboxes in markdown #381
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
Conversation
|
✅ DCO Check Passed Thanks @ErikApption, all your commits are properly signed off. 🎉 |
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 Require two reviewer for test updatesWonderful, this rule succeeded.When test data is updated, we require two reviewers
|
Signed-off-by: Erik <[email protected]>
I, Erik <[email protected]>, hereby add my Signed-off-by to this commit: 7af4704 Signed-off-by: Erik <[email protected]>
|
Interesting. More a curiosity: Do we know if the marko library we use in Docling to parse markdown will understand these checkboxes? |
|
I think we need to follow the standard markdown convention. In standard Markdown, checkboxes are represented using this syntax: Unselected checkbox: - [ ] Unchecked itemSelected checkbox: - [x] Checked item |
|
@ErikApption Could you do the fixes we requested? |
Done. Alternatively was wondering about making the checkbox renders as parameters the same way there is a parameter for page break but I think this will be a better ootb experience |
ok now you will need to rerun the test to generate the update ground-truth files and after that run the |
Updated the truth files. All unit tests are passing again |
yes, but you also need to run the formatting, you should see,? |
Got it! I was missing the |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
PeterStaar-IBM
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
|
@ErikApption nearly there, seems you need to sign of every commit ( |
I, Erik <[email protected]>, hereby add my Signed-off-by to this commit: fc7a57e I, Erik <[email protected]>, hereby add my Signed-off-by to this commit: 7ea737e I, Erik <[email protected]>, hereby add my Signed-off-by to this commit: 5c431b5 Signed-off-by: Erik <[email protected]>
This PR is to address docling-project/docling#2167
Checkboxes are labelled correctly by docling but are not rendered in the markdown.
[x]or[ ]to any text that is labelled as checkbox throughmarkdown.pyserializer.