mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
fix(markdown): fix single-formatted headings & list items (#1820)
* fix(markdown): fix formatting & inline edge cases (show behavior before change) Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * add change and updated test data Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * update lock Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * improve test case Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> --------- Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
This commit is contained in:
11
tests/data/md/inline_and_formatting.md
vendored
11
tests/data/md/inline_and_formatting.md
vendored
@@ -11,8 +11,13 @@ Create your feature branch: `git checkout -b feature/AmazingFeature`.
|
||||
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
|
||||
4. Push to the branch (`git push origin feature/AmazingFeature`)
|
||||
5. Open a Pull Request
|
||||
6. **Whole list item has same formatting**
|
||||
7. List item has *mixed or partial* formatting
|
||||
|
||||
## *Second* section <!-- inline groups in headings not yet supported by serializers -->
|
||||
# *Whole heading is italic*
|
||||
|
||||
- **First**: Lorem ipsum.
|
||||
- **Second**: Dolor `sit` amet.
|
||||
Some *`formatted_code`*
|
||||
|
||||
## *Partially formatted* heading to_escape `not_to_escape`
|
||||
|
||||
[$$E=mc^2$$](https://en.wikipedia.org/wiki/Albert_Einstein)
|
||||
|
||||
Reference in New Issue
Block a user