aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-01-05 20:19:21 +0100
committerneodarz <neodarz@neodarz.net>2018-01-05 20:19:21 +0100
commitf0fa2102018c98079efafcce9beac4092e9a4471 (patch)
tree6d0d1d6c24f2f4e5098aad59fcd190acb8daff04
parent45a33765cc4cfe598e51e3fd90312c9df63aeb1c (diff)
downloadmy_new_personal_website-f0fa2102018c98079efafcce9beac4092e9a4471.tar.xz
my_new_personal_website-f0fa2102018c98079efafcce9beac4092e9a4471.zip
add pandoc patch switch script by version
Diffstat (limited to '')
-rw-r--r--README.md2
-rwxr-xr-xpandoc_version_switch.sh10
2 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3a184810..88c72a66 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,8 @@ The theme of this blog is largely based on that of [mort.ninja](http://mort.ninj
Self-hosted Google Web Fonts are downloaded from [google-webfonts-helper](https://google-webfonts-helper.herokuapp.com/fonts), courtesy of [Mario Ranftl](http://ranf.tl/2014/12/23/self-hosting-google-web-fonts/).
+Warning: If the link generation didin't work use the script : `pandoc_version_switch.sh`. Don't forget to adapt the pandoc version !
+
## Markdown features of `pyblog`
`pyblog` uses Pandoc for Markdown processing. The HTML template is
diff --git a/pandoc_version_switch.sh b/pandoc_version_switch.sh
new file mode 100755
index 00000000..165bdb32
--- /dev/null
+++ b/pandoc_version_switch.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if $(pandoc -v | grep --quiet "pandoc 2.0.6"); then
+ sed -i "s/'<p>– generate/'-– generate/g" pyblog
+elif $(pandoc -v | grep --quiet "pandoc 1.19.2.1"); then
+ sed -i "s/'-- generate/'<p>- generate/g" pyblog
+else
+ echo $(pandoc -v | grep --quiet "pandoc 2.0.6")
+fi
+