Commit Graph
596 Commits
Author SHA1 Message Date
Panos Vagenas 65a82a158c chore: update text label for test doc creation (#195)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-03-17 14:14:03 +01:00
github-actions[bot] 87508b1391 chore: bump version to 2.23.1 [skip ci] v2.23.1 2025-03-17 12:34:06 +00:00
Michele Dolfi 11eb1dc5aa fix: new favicon url (#191)
fix favicon url

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2025-03-17 13:16:42 +01:00
Michele Dolfi 5739033408 chore: move to docling-project gh org (#190)
* chore: move to docling-project gh org

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* retrigger ci with DCO

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2025-03-14 09:28:17 +01:00
github-actions[bot] 73dcfc1181 chore: bump version to 2.23.0 [skip ci] v2.23.0 2025-03-13 17:56:39 +00:00
Panos Vagenas a7cdc87411 feat: add serializers, text formatting, update Markdown export (#182)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-03-13 17:54:32 +01:00
Christoph Auer a86a4a3aa3 feat: Add data model types from docling-parse (#186)
* Move model types from docling-parse

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Add BoundingRectangle.from_bounding_box method

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Add cell ID to model_validator

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Add ordering to model_validator

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* update comments

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Rewrite BoundingRectangle.to_bounding_box()

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Add PdfCellRenderingMode

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Update model_validator

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Typing fixes and cleanup

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

---------

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
2025-03-13 17:37:27 +01:00
github-actions[bot] db1035be21 chore: bump version to 2.22.0 [skip ci] v2.22.0 2025-03-12 15:28:13 +00:00
c065c4c7c6 feat: Add DoclingDocument.load_from_doctags method and DocTags data models (#187)
* Adding load_from_document_tokens method to Docling document

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* Added skeleton for the unit test

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* Processing ordered and unordered lists

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* Define new types for DocTags containers

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Implement load_from_doctags with container types

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Update tests

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* update test data

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Cleanup commented lines

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Fix for proper list groups

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* Check for number of page doctags must be equal to page images

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

---------

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Co-authored-by: Maksym Lysak <mly@zurich.ibm.com>
Co-authored-by: Christoph Auer <cau@zurich.ibm.com>
2025-03-12 16:11:56 +01:00
Lucas Morin 32398b8ac0 feat: add document tokens for SMILES (#176)
Signed-off-by: lum <lum@zurich.ibm.com>
2025-03-10 11:04:21 +01:00
github-actions[bot] a4a4e615cb chore: bump version to 2.21.2 [skip ci] v2.21.2 2025-03-06 08:46:42 +00:00
Yusik Kim ccde54aa29 fix: suppress warning for missing fallback case (#184)
chore: suppress warning for missing fallback case

Signed-off-by: Yusik Kim <kmyusk@gmail.com>
2025-03-05 14:55:38 +01:00
Panos Vagenas ee2d67b2ec chore: use GH cache for HF models (#183)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-03-04 13:12:44 +01:00
Panos Vagenas 53f6d099b0 fix(doctags): fix code export (#181)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-03-04 09:41:32 +01:00
Panos Vagenas 834db4bc66 fix(markdown): fix escaping in case of nesting (#180)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-03-03 14:51:59 -05:00
Panos Vagenas 419252c39b fix(HybridChunker): remove max_length from tokenization (#178)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-02-28 13:45:10 +01:00
github-actions[bot] 5b09c28754 chore: bump version to 2.21.1 [skip ci] v2.21.1 2025-02-28 07:37:11 +00:00
Panos Vagenas 349f7daa0c fix(markdown): fix handling of ordered lists (#175)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-02-27 16:08:05 +01:00
github-actions[bot] b2c974696c chore: bump version to 2.21.0 [skip ci] v2.21.0 2025-02-27 10:40:43 +00:00
Panos Vagenas c77c59bec0 fix(markdown): fix case of leading list (#174)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-02-27 11:10:42 +01:00
Panos Vagenas c560309245 chore: revert poetry.lock to poetry v1 (#173)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-02-27 09:50:29 +01:00
Panos Vagenas 2abaf9b537 feat: add inline groups, revamp Markdown export incl. list groups (#156)
* feat: add inline groups, update markdown export

Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>

* rename parameter for clarity

Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>

* drop redundant `traverse_inline`, use only `visited`

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

* update API usage after rebase

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

* minor refactor

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

* extend nesting logic to list groups

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

* (MD export) add inline formulas, placeholders for `KeyValueItem`, `FormItem`

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

* include 3rd-level list item in test

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

* update test file with more recent conversion result

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

* update list construction pattern so that sublists are added to actual ListItems

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

---------

Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
2025-02-25 09:48:10 +01:00
Yusik Kim 4708f933a7 fix: properly handle missing page image case for export_to_html (#166)
* fix: properly handle missing image case

Signed-off-by: Yusik Kim <kmyusk@gmail.com>

* chore: pre-commit changes

Signed-off-by: Yusik Kim <kmyusk@gmail.com>

* fix: simplify test and address broken test

Signed-off-by: Yusik Kim <kmyusk@gmail.com>

---------

Signed-off-by: Yusik Kim <kmyusk@gmail.com>
2025-02-25 09:43:39 +01:00
github-actions[bot] 28bd65c685 chore: bump version to 2.20.0 [skip ci] v2.20.0 2025-02-19 08:53:03 +00:00
d622800750 feat: Introduce Key-Value and Forms items (#158)
* Draft KeyValueItem content

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* added add_key_value_item method

Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>

* add KeyValueLink

Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>

* update an add_key_value_item argument

Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>

* remove KeyOrValueCellType and KeyValueLinkType

Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>

* update tests for KeyValueItem

Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>

* add union method to create bbox that covers all the given bboxes

Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>

* added the , and rewrote it to make it more general with a GraphItem, as well as having cell- and link-labels

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* updated the code due to MyPy and reformatted

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* updated the reference docs with form-key

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* updated image

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* removed the circle

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixed the figure, testing now ...

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* added square in image

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* removed square in image

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* tests should go through

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* update poetry.lock versions

Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>

* fix import issue

Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>

* add validator for links in GraphData

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* added field_validator

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* rename add_key_values and add_form

Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>

* rename union to enclosingbbox

Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>

---------

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Signed-off-by: Saidgurbuz <said.gurbuz@epfl.ch>
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
Co-authored-by: Christoph Auer <cau@zurich.ibm.com>
Co-authored-by: Peter Staar <taa@zurich.ibm.com>
2025-02-19 09:50:45 +01:00
github-actions[bot] 23fa0b50a7 chore: bump version to 2.19.1 [skip ci] v2.19.1 2025-02-17 14:40:22 +00:00
Christoph Auer c46995bca3 fix: Expose included_content_layers arg in export/save methods for MD+HTML (#164)
Expose included_content_layers arg in export/save methods for MD and HTML

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
2025-02-17 15:35:22 +01:00
github-actions[bot] 4e16dc869f chore: bump version to 2.19.0 [skip ci] v2.19.0 2025-02-17 11:45:43 +00:00
58ed6c8ab7 fix: Document Tokens (doc tags) clean up, fix iterate_items for content_layer (#161)
* Clean up removing unnused tags at the moment, reliance mainly on DocItemLabel and DocumentTokens when unavoidable.

Signed-off-by: Ahmed Nassar <ahn@zurich.ibm.com>

* fix: Fix inheritance of CodeItem for backward compatibility

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Update docs

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

---------

Signed-off-by: Ahmed Nassar <ahn@zurich.ibm.com>
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Co-authored-by: Ahmed Nassar <ahn@zurich.ibm.com>
Co-authored-by: Christoph Auer <cau@zurich.ibm.com>
2025-02-17 11:49:34 +01:00
Christoph Auer 7267c3f571 fix: Fix inheritance of CodeItem for backward compatibility (#162)
* fix: Fix inheritance of CodeItem for backward compatibility

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Update docs

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

---------

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
2025-02-14 17:48:34 +01:00
Peter W. J. StaarandMichele Dolfi 916323fb55 feat: Redefine CodeItem as floating object with captions (#160)
* updated the CodeItem with captions

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* use FloatItem and add captions to add_code interface

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
Co-authored-by: Michele Dolfi <dol@zurich.ibm.com>
2025-02-14 11:34:40 +01:00
f751b45b62 feat: Implementation of doc tags (#138)
* Migration to new DocTags, gt missing

Signed-off-by: Ahmed Nassar <ahn@zurich.ibm.com>

* fixed the tests

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* overloaded export to markdown in CodeItem to include code language

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* minor change

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* implemented page break token instead of page number

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* added figure classification in doc tags

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* changed table repr. to otsl

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* changed table repr. to otsl fixed new line

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* fixed new line bug

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* fixed new line bug

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* removed print in test

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* new normalization to 500 and top left coord

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* export of FOOTER AND HEADER

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* export of FOOTER AND HEADER

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* fix code bug

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* added export of standalon captions

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* added export of standalon captions

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* changed generate to False

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

* added export of furnitures and fixed bug in iterate_items function

Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>

---------

Signed-off-by: Ahmed Nassar <ahn@zurich.ibm.com>
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>
Co-authored-by: Ahmed Nassar <ahn@zurich.ibm.com>
Co-authored-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>
2025-02-13 13:26:28 +00:00
github-actions[bot] 021c63ef9d chore: bump version to 2.18.1 [skip ci] v2.18.1 2025-02-13 06:30:28 +00:00
Michele Dolfi a9afeda6d1 fix: update Pillow constraints (#157)
update pillow and relock all deps

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2025-02-12 17:39:51 +01:00
github-actions[bot] afcd41e507 chore: bump version to 2.18.0 [skip ci] v2.18.0 2025-02-10 10:25:57 +00:00
Christoph AuerandPanos Vagenas 786f0c6833 feat: Add ContentLayer attribute to designate items to body or furniture (#148)
* feat: Add ContentLayer attribute to designate items to body or furniture

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* introduce safer data gen mechanism, update chunking test data

Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>

* Do not make test rely on order in yaml

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* chore: format fixes

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* fix: legacy_to_docling_doc must use content_layer

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Add content_layer in iterate_items

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Bump format version, add model_validator for old page_header,page_footer in body

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* fix: Change to before model_validator

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Update tests

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Address review comments

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

---------

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
2025-02-10 10:58:41 +01:00
github-actions[bot] 794c00d082 chore: bump version to 2.17.2 [skip ci] v2.17.2 2025-02-06 15:22:48 +00:00
Christoph AuerandPeter Staar 3cf31cbe38 fix: Define LTR/RTL text direction in HTML export (#152)
* fix: Detect RTL text and put according HTML tags

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* proposal for cau/rtl-text

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fix: Form HTML tags with utility method

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Update tests

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Remove commented code

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Add back escaping

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

---------

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
Co-authored-by: Peter Staar <taa@zurich.ibm.com>
2025-02-05 13:37:39 +01:00
github-actions[bot] 327f90267f chore: bump version to 2.17.1 [skip ci] v2.17.1 2025-02-03 15:11:29 +00:00
Michele Dolfi eb9b4b39a1 fix: image fallback for malformed equations (#149)
fix mathml for malformed equations

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2025-02-03 15:52:13 +01:00
github-actions[bot] 285438d3ed chore: bump version to 2.17.0 [skip ci] v2.17.0 2025-02-03 08:31:52 +00:00
Michele Dolfi 23477f7674 feat(HTML): Fallback showing formulas as images (#146)
* remove un-needed logic

the labels allowlist is checked before

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* textitem cannot have label code

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* display formulas with mathml in exported html

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* expose argument in save_as_html

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* rename sanitize in prepare and add \n

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* fix mypy parsing

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* remove unused/impossible elif

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* remove strip()

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* add display none for latex annotation

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* fallback showing equations as image

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* add html placeholder

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* markdown placeholder

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2025-02-03 09:29:30 +01:00
Michele Dolfi ed36437346 feat(HTML): Export formulas with mathml (#144)
* remove un-needed logic

the labels allowlist is checked before

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* textitem cannot have label code

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* display formulas with mathml in exported html

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* expose argument in save_as_html

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* rename sanitize in prepare and add \n

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* fix mypy parsing

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* remove unused/impossible elif

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* remove strip()

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* add display none for latex annotation

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* make mathml the default

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* revert wrong commit

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2025-01-31 15:43:43 +01:00
Bill Murdock eb96e31ab6 chore: Fix typo in CHANGELOG (#145)
Fix typo in CHANGELOG

Signed-off-by: Bill Murdock <bmurdock@redhat.com>
2025-01-31 15:27:50 +01:00
Michele Dolfi c6590e83e2 fix: add html escape in md export and fix formula escapes (#143)
* add html escape in md export and fix formula escapes

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* escape also html export

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2025-01-31 11:31:35 +01:00
github-actions[bot] 0519d5046c chore: bump version to 2.16.1 [skip ci] v2.16.1 2025-01-30 10:00:27 +00:00
Rafael Teixeira de Lima d07a87e1fb fix: Add newline to md formula export (#142)
Add newline to md formula export

Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com>
2025-01-29 22:00:48 +01:00
Michele Dolfi 3cd14e3297 chore: fix release (#140)
* force version change

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* changelog

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
v2.16.0
2025-01-29 15:27:58 +01:00
github-actions[bot] ebb0301578 chore: bump version to 3.0.0 [skip ci] 2025-01-29 13:57:03 +00:00
Rafael Teixeira de Lima 0d5cd11326 feat: escape underscores that are within latex equations (#137)
* Add regex to escape underscores within latex equations

Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com>

* Remove debug

Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com>

* Handle block equations

Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com>

* Add double $ to standalone equations outputs

Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com>

---------

Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com>
2025-01-29 14:49:38 +01:00