From 7487cdedd4c39c60f2c3ed466b774a4b725d8aca Mon Sep 17 00:00:00 2001 From: Vitaly Bogomolov Date: Wed, 22 Apr 2026 15:23:45 +0400 Subject: [PATCH 1/2] CLI script section in README. --- README.md | 6 ++++-- README_ru.md | 6 ++++-- makepdf.py | 4 ++++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2f4fd81..c9cc7fe 100644 --- a/README.md +++ b/README.md @@ -219,11 +219,13 @@ In the created file `plantuml.pdf`, you will see the following result: You can find a more detailed description of the plugins [here](plugins.md). -## Example +## Command Line Interface script. -As an example, you can download the [pdf file](examples/markdown_pdf.pdf) created from this md file. +As an example, you can download the [pdf file](examples/markdown_pdf.pdf) created from this README. This [Python script](makepdf.py) was used to create the PDF file. +You can create your own CLI script, tailored to your needs, using this script as a starting point. + ## Development ```bash diff --git a/README_ru.md b/README_ru.md index 4e0e0b1..1aacaf1 100644 --- a/README_ru.md +++ b/README_ru.md @@ -213,11 +213,13 @@ pdf.save("plantuml.pdf") Вы можете ознакомиться с более подробным [описанием плагинов](plugins_ru.md). -## Пример +## Скрипт командной строки (CLI). -В качестве примера вы можете загрузить созданный из этого md файла [pdf файл](examples/markdown_pdf_ru.pdf). +В качестве примера вы можете загрузить созданный из этого README [pdf файл](examples/markdown_pdf_ru.pdf). Для создания pdf файла использовался [этот скрипт](makepdf.py) Python. +Используя этот скрипт в качестве отправной точки, вы можете создать собственный скрипт командной строки, адаптированный под ваши нужды. + ## Разработка ```bash diff --git a/makepdf.py b/makepdf.py index 53916a7..806f803 100644 --- a/makepdf.py +++ b/makepdf.py @@ -1,3 +1,7 @@ +"""Call: + +python makepdf.py input.md output.pdf +""" import sys from markdown_pdf import MarkdownPdf, Section From b749f927940b13ef0194dedb8cb7d19e2ea51838 Mon Sep 17 00:00:00 2001 From: Vitaly Bogomolov Date: Fri, 24 Apr 2026 08:58:37 +0400 Subject: [PATCH 2/2] fix --- README.md | 2 +- README_ru.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c9cc7fe..8c89579 100644 --- a/README.md +++ b/README.md @@ -219,7 +219,7 @@ In the created file `plantuml.pdf`, you will see the following result: You can find a more detailed description of the plugins [here](plugins.md). -## Command Line Interface script. +## Command Line Interface script As an example, you can download the [pdf file](examples/markdown_pdf.pdf) created from this README. This [Python script](makepdf.py) was used to create the PDF file. diff --git a/README_ru.md b/README_ru.md index 1aacaf1..7514847 100644 --- a/README_ru.md +++ b/README_ru.md @@ -213,7 +213,7 @@ pdf.save("plantuml.pdf") Вы можете ознакомиться с более подробным [описанием плагинов](plugins_ru.md). -## Скрипт командной строки (CLI). +## Скрипт командной строки (CLI) В качестве примера вы можете загрузить созданный из этого README [pdf файл](examples/markdown_pdf_ru.pdf). Для создания pdf файла использовался [этот скрипт](makepdf.py) Python.