aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2020-04-26 17:36:55 -0600
committerAdam Hovorka <[email protected]>2020-04-26 17:36:55 -0600
commita1bf1965d47c770aed95cf7ef4a8d8d010273869 (patch)
tree26d431c84e3b7b0450fc393bc45bd0efd515dbf6
parentea2dc3f10d975977691bf920b72e180635a5912f (diff)
Add blockquote styles
-rw-r--r--markup.js2
-rw-r--r--style.css5
2 files changed, 6 insertions, 1 deletions
diff --git a/markup.js b/markup.js
index b39e0be..69adf9c 100644
--- a/markup.js
+++ b/markup.js
@@ -17,7 +17,7 @@ const outdent = str =>
const encodeAttr = str =>
(str+'').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
-return (md, prevLinks) => {
+return function parse(md, prevLinks) {
let tokenizer = new RegExp(
"((?:^|\\n+)(?:\\n---+|\\* \\*(?: \\*)+)\\n)|" +
"(?:^``` *(\\w*)\\n([\\s\\S]*?)\\n```$)|" +
diff --git a/style.css b/style.css
index fe59f89..95cd71f 100644
--- a/style.css
+++ b/style.css
@@ -157,6 +157,11 @@ strong {
font-weight: 900;
}
+blockquote {
+ padding-left: 1.4em;
+ border-left: 3px solid var(--border);
+}
+
section:not(.editing) .choice {
display: block;
margin: 1em 0;