Маркдаун в ДОК и ПДФ
Маркдаун в ДОК и ПДФ
Если у кого-то есть скрипты для превращения текстов в маркдауне в ДОК, ОДТ и ПДФ, поделитесь, пожалуйста.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
попробуйте Pandoc Helper плагин.
больше ничего не могу сказать.
===
Plugin for CudaText.
Gives command to call Pandoc tool, to convert current file to some format, which Pandoc supports.
Input format: detected by active lexer name, or, if unknown lexer, menu will be shown.
Output format: menu is always shown.
Notes:
- Plugin needs saved file, cannot handle unsaved text yet.
- Resulting file is made in the OS temp-folder, you will see filename after converting done.
- PDF is supported by Pandoc only with some additional tool (Latex), else you will see error message on converting to pdf.
Pandoc program name:
- Windows: pandoc.exe, w/o folder, so you should add it to system PATH.
- Linux: pandoc
- macOS: /usr/local/bin/pandoc
больше ничего не могу сказать.
===
Plugin for CudaText.
Gives command to call Pandoc tool, to convert current file to some format, which Pandoc supports.
Input format: detected by active lexer name, or, if unknown lexer, menu will be shown.
Output format: menu is always shown.
Notes:
- Plugin needs saved file, cannot handle unsaved text yet.
- Resulting file is made in the OS temp-folder, you will see filename after converting done.
- PDF is supported by Pandoc only with some additional tool (Latex), else you will see error message on converting to pdf.
Pandoc program name:
- Windows: pandoc.exe, w/o folder, so you should add it to system PATH.
- Linux: pandoc
- macOS: /usr/local/bin/pandoc
Code: Select all
{
"selector": "text.html.markdown",
"working_dir": "$file_path",
"cmd": [
"pandoc",
"-f", "markdown+smart",
"-t", "docx",
"-o", "$file_base_name.docx",
"$file_name"
]
}
Если да, как можно его запускать? В Саблайме есть вкладка "Билд-системы", и выбранная система вызывается по умолчанию Контрол+Б.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Работу билд-систем в Сублиме почти повторяет плагин Runner.
Разделы 8 (external tools) и 9 (Runner) вот тут -
https://wiki.freepascal.org/CudaText_plugins
Разделы 8 (external tools) и 9 (Runner) вот тут -
https://wiki.freepascal.org/CudaText_plugins