-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
# convertor_md | ||
# Pandoc українською | ||
|
||
[Pandoc User’s Guide](https://pandoc.org/MANUAL.html) | ||
|
||
- [Synopsis](https://pandoc.org/MANUAL.html#synopsis) | ||
- [Description](description.md) ▸ | ||
- [Options](options.md) ▸ | ||
- [Exit codes](https://pandoc.org/MANUAL.html#exit-codes) | ||
- [Default files](https://pandoc.org/MANUAL.html#default-files) | ||
- [Templates](templates.md) ▸ | ||
- [Extensions](https://pandoc.org/MANUAL.html#extensions) ▸ | ||
- [Pandoc’s Markdown](https://pandoc.org/MANUAL.html#pandocs-markdown) ▸ | ||
- [Producing slide shows with pandoc](https://pandoc.org/MANUAL.html#producing-slide-shows-with-pandoc) ▸ | ||
- [Creating EPUBs with pandoc](https://pandoc.org/MANUAL.html#creating-epubs-with-pandoc) ▸ | ||
- [Creating Jupyter notebooks with pandoc](https://pandoc.org/MANUAL.html#creating-jupyter-notebooks-with-pandoc) | ||
- [Syntax highlighting](https://pandoc.org/MANUAL.html#syntax-highlighting) | ||
- [Custom Styles](https://pandoc.org/MANUAL.html#custom-styles) ▸ | ||
- [Custom writers](https://pandoc.org/MANUAL.html#custom-writers) | ||
- [A note on security](https://pandoc.org/MANUAL.html#a-note-on-security) | ||
- [Authors](https://pandoc.org/MANUAL.html#authors) |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pandoc ^ | ||
-s C:\xampp\htdocs\convertor_md\convert\1.md C:\xampp\htdocs\convertor_md\convert\text.md ^ | ||
-o ../result/output1.docx ^ | ||
--lua-filter=../docx/luafilters.lua ^ | ||
--reference-doc=../docx/custom-reference.docx |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python | ||
|
||
import re; | ||
import os | ||
import sys | ||
|
||
arguments = sys.argv[1:] | ||
|
||
if len(arguments) > 0 : | ||
file = arguments[0] | ||
dirname = os.path.dirname(file) | ||
dirname = dirname.capitalize() + '\{}' | ||
|
||
with open(file, 'r', encoding='utf-8') as myfile: | ||
text = myfile.read() | ||
|
||
links = re.findall(r"\w*\.md", text) | ||
map_links = map(dirname.format,links) | ||
str_links = ' '.join(map_links) | ||
|
||
print("start generate") | ||
os.system("pandoc -s " + str_links + " -o ../result/output.docx --lua-filter=../docx/luafilters.lua --reference-doc=../docx/custom-reference.docx" ) | ||
print("end generate") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# ігнорувати всі файли PowerPoint | ||
*.pptx | ||
*.ppt | ||
*.doc | ||
*.lnk | ||
*.docx | ||
source/ | ||
рис/ |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.