Fix replacing text in itself
This commit is contained in:
parent
50d4d073ba
commit
34d46d03b9
1 changed files with 1 additions and 1 deletions
|
@ -10,4 +10,4 @@ for item in files:
|
||||||
os.system(f'pandoc -f markdown-smart --data-dir . --template {dir}/template.html -t html -o {item}.html {item}.md --metadata title=\"$(grep -m 1 -oP \'(?<=^# ).*\' {item}.md | cat)\"')
|
os.system(f'pandoc -f markdown-smart --data-dir . --template {dir}/template.html -t html -o {item}.html {item}.md --metadata title=\"$(grep -m 1 -oP \'(?<=^# ).*\' {item}.md | cat)\"')
|
||||||
|
|
||||||
# Replace 'language-' with 'language-' recursively
|
# Replace 'language-' with 'language-' recursively
|
||||||
os.system("find . \( ! -regex '.*/\..*' \) -type f | xargs sed -i 's/language-/language-/g'")
|
os.system("find . \( ! -regex './md2html.py' \) -type f | xargs sed -i 's/sourceCode /language-/g'")
|
||||||
|
|
Loading…
Reference in a new issue