Loading toMkdocs/toMkdocs.py +3 −2 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class LineType(Enum): @dataclass class Line: """ Represents a line in the markdown file. """ text:str text:str = '' lineType:LineType = LineType.TEXT Loading Loading @@ -345,7 +345,8 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False if not includeHangingParagraphs: clauses[i].lines = [] else: clauses[i].lines = [Line("<mark>Editor note: This is a hanging paragraph and it must be moved to its own clause</mark>")] + clauses[i].lines clauses[i].title = "Hanging Paragraph" clauses[i].lines = [Line("<mark>Editor note: This is a hanging paragraph and it must be moved to its own clause</mark>"), Line()] + clauses[i].lines # Repair wrong markdown for indented lines. # Add 2 spaces to existing 2-space indentions Loading Loading
toMkdocs/toMkdocs.py +3 −2 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class LineType(Enum): @dataclass class Line: """ Represents a line in the markdown file. """ text:str text:str = '' lineType:LineType = LineType.TEXT Loading Loading @@ -345,7 +345,8 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False if not includeHangingParagraphs: clauses[i].lines = [] else: clauses[i].lines = [Line("<mark>Editor note: This is a hanging paragraph and it must be moved to its own clause</mark>")] + clauses[i].lines clauses[i].title = "Hanging Paragraph" clauses[i].lines = [Line("<mark>Editor note: This is a hanging paragraph and it must be moved to its own clause</mark>"), Line()] + clauses[i].lines # Repair wrong markdown for indented lines. # Add 2 spaces to existing 2-space indentions Loading