Change processing of <pre><code>

This commit is contained in:
Kiryl
2022-06-07 15:46:55 +03:00
parent acb2ce48c2
commit 5caec46f3c
6 changed files with 272 additions and 301 deletions

View File

@@ -557,10 +557,10 @@ class HTMLDocxPreprocessor:
"""
Function to find out:
what header shouldn't be numbered and can be treated as introduction chapter
Assume header(s) to be introduction if:
1. one header not numbered, before 1 numbered header
2. it is first header from the top level list, and it equals to 'introduction'
Returns
-------
None
@@ -665,6 +665,7 @@ class HTMLDocxPreprocessor:
Function
- process tags <li>.
- unwrap <p> tags.
Returns
-------
None