-
Notifications
You must be signed in to change notification settings - Fork 60
feat: add subscript & superscript formatting #319
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
Signed-off-by: Panos Vagenas <[email protected]>
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
|
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.
see comment
docling_core/types/doc/document.py
Outdated
@@ -836,6 +836,8 @@ class Formatting(BaseModel): | |||
italic: bool = False | |||
underline: bool = False | |||
strikethrough: bool = False | |||
subscript: bool = False |
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.
this will need to be an enum: you can not have subscript and superscript equal to false.
Signed-off-by: Panos Vagenas <[email protected]>
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
awesome!
Added subscript & superscript support, for now only leveraged in HTML (the Markdown syntax seems to be "uncommon" & won't render e.g. on VS Code).