summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-01-08 01:37:27 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-01-09 15:51:50 -0800
commit9d55c0f479aad655566f3a9e7841d155463d51a1 (patch)
tree2183a423d367a6e1b8294bc98bf5e105daeff3b6
parent07496597276b977057839a1cfb3cf15e751c5dab (diff)
downloadqtlocation-mapboxgl-9d55c0f479aad655566f3a9e7841d155463d51a1.tar.gz
[ios, macos] Replace <q> tags with quotation marks in code blocks
-rwxr-xr-xplatform/darwin/docs/theme/assets/js/jazzy.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/darwin/docs/theme/assets/js/jazzy.js b/platform/darwin/docs/theme/assets/js/jazzy.js
index 2e42193e38..e07f181acc 100755
--- a/platform/darwin/docs/theme/assets/js/jazzy.js
+++ b/platform/darwin/docs/theme/assets/js/jazzy.js
@@ -40,3 +40,8 @@ $(".token").click(function(event) {
}
event.preventDefault();
});
+
+// Dumb down quotes within code blocks that delimit strings instead of quotations.
+$("code q").replaceWith(function () {
+ return ["\"", $(this).contents(), "\""];
+});