From 03252080fd5c1b8c71a5ac3e7a1509f9563a42b4 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 10 Sep 2023 23:06:34 -0500 Subject: [PATCH] update doc maker - PLEASE READ requirements have changed remove .venv/req_installed before running --- res/docpdf/make_paper.py | 7 +++++-- res/docpdf/requirements.txt | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/res/docpdf/make_paper.py b/res/docpdf/make_paper.py index e15f278db..3f2ceff2f 100644 --- a/res/docpdf/make_paper.py +++ b/res/docpdf/make_paper.py @@ -91,7 +91,7 @@ if __name__ == "__main__": # each file is its own section html +='
%s
' % ( my_file.replace(os.path.sep, "__"), - markdown.markdown(data, extensions=['nl2br', GithubFlavoredMarkdownExtension()]) + markdown.markdown(data, extensions=['nl2br', 'mdx_breakless_lists', GithubFlavoredMarkdownExtension()]) ) # build html @@ -132,7 +132,7 @@ if __name__ == "__main__": font-family: 'IBM Plex Mono'; } ul { - padding-left: 4pt; + padding-left: 10pt; margin-right: 4pt; list-style-type: none; } @@ -209,6 +209,9 @@ if __name__ == "__main__": pre { font-size: .8em; } + li > p { + display: inline; + } table { display: block; width: 100%%; diff --git a/res/docpdf/requirements.txt b/res/docpdf/requirements.txt index 656a389bf..d06226b3c 100644 --- a/res/docpdf/requirements.txt +++ b/res/docpdf/requirements.txt @@ -5,6 +5,7 @@ fonttools==4.39.3 html5lib==1.1 Markdown==3.4.3 Pillow==9.4.0 +mdx-breakless-lists==1.0.1 py-gfm==2.0.0 pycparser==2.21 pydyf==0.5.0