aboutsummaryrefslogtreecommitdiffstats
path: root/book.json
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-16 17:41:10 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-16 17:41:10 +0200
commit8c82a12896a17bbd94d107bc15c03b1816a8420c (patch)
treeef6941d425272230ff41bba86787576d03e5bd94 /book.json
parente661ef5b90f40ef61a1f8c0030abcf597c2dcbc6 (diff)
Fixed and improved Note and Warning rendering.
Diffstat (limited to 'book.json')
-rw-r--r--book.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/book.json b/book.json
index 1f6efb9..dee1ed5 100644
--- a/book.json
+++ b/book.json
@@ -62,6 +62,16 @@
"substitute": "</div>"
},
{
+ "pattern": "<!-- warning -->",
+ "flags": "g",
+ "substitute": "<div class=\"warning\">"
+ },
+ {
+ "pattern": "<!-- endwarning -->",
+ "flags": "g",
+ "substitute": "</div>"
+ },
+ {
"pattern": "!\\[(.*?)\\]\\((.*?)(?:\\s+\"(.*)\")?\\){0,}{caption=1([^\\}]*)}",
"flags": "gmi",
"substitute": "<figure id=\"fig_PAGE_LEVEL_._INDEX_\"><img $3 alt=\"$1\" title=\"$1\" href=\"$2\"><figcaption></figcaption></figure>",