diff --git a/src/code/colorful.js b/src/code/colorful.js
index ca4c771..438a8cc 100644
--- a/src/code/colorful.js
+++ b/src/code/colorful.js
@@ -62,12 +62,13 @@ export function colorHtml(code) {
}
})
}
- return `[tag]<${tag + attr}>[/tag]`
+ return `[tag]<${tag}[/tag]${attr}[tag]>[/tag]`
})
.replace(TAG_END_EXP, (m, tag) => {
return `[tag]</${tag}>[/tag]`
})
.replace(TAG_CM_EXP, '[cm]<!--$1-->[cm]')
+
return rebuild(code)
}
diff --git a/src/icon/svg.js b/src/icon/svg.js
index 9ed1703..e1819c6 100644
--- a/src/icon/svg.js
+++ b/src/icon/svg.js
@@ -197,4 +197,4 @@ const SVG_PATH = {
export default SVG_PATH
// console.log(Object.keys(SVG_PATH).length)
-// console.log(Object.keys(SVG_PATH))
+// console.log(Object.keys(SVG_PATH).join(','))
diff --git a/src/markd/core.js b/src/markd/core.js
index 7c6657d..f0fdf70 100644
--- a/src/markd/core.js
+++ b/src/markd/core.js
@@ -5,12 +5,16 @@
*/
const HR_LIST = ['=', '-', '_', '*']
-const LIST_REG = /^(([\+\-\*])|(\d+\.))\s/
-const TODO_REG = /^\-\s\[(x|\s)\]\s/
-const ESCAPE_REG = /\\([-+*_`])/g
-const QLINK_REG = /^\[(\d+)\]: ([\S]+)\s*?((['"])[\s\S]*?\4)?\s*?$/
-const TAG_REG = /<([\w\-]+)([\w\W]*?)>/g
-const ATTR_REG = /^[\s\S]*?(style="[^"]*?")[\s\S]*?$/
+const LIST_RE = /^(([\+\-\*])|(\d+\.))\s/
+const TODO_RE = /^\-\s\[(x|\s)\]\s/
+const ESCAPE_RE = /\\([-+*_`])/g
+const QLINK_RE = /^\[(\d+)\]: ([\S]+)\s*?((['"])[\s\S]*?\4)?\s*?$/
+const TAG_RE = /<([\w\-]+)([\w\W]*?)>/g
+const ATTR_RE = /\s*?on[a-zA-Z]+="[^"]*?"\s*?/g
+const CODEBLOCK_RE = /```(.*?)([\w\W]*?)```/g
+const BLOCK_RE = /<([\w\-]+)([^>]*?)>([\w\W]*?)<\/\1>/g
+const IS_DOM_RE = /^<([\w\-]+)[^>]*?>.*?<\/\1>$/
+const STYLE_RE = /`
+ })
delete this.list
delete this.__LINKS__
return html
diff --git a/src/pager/index.wc b/src/pager/index.wc
index a79f799..f9baa54 100644
--- a/src/pager/index.wc
+++ b/src/pager/index.wc
@@ -34,16 +34,25 @@
background: var(--color-teal-1);
color: #fff;
}
+
+ &.jump {
+ display: flex;
+ }
}
input {
width: 48px;
height: 36px;
padding: 0 4px;
- border: 2px solid var(--color-plain-2);
- border-radius: 4px;
+ border: 1px solid var(--color-grey-2);
+ border-radius: 3px;
text-align: center;
outline: none;
+ transition: box-shadow 0.15s linear;
+
+ &:focus {
+ box-shadow: 0 0 0 2px var(--color-plain-a);
+ }
}
}
@@ -140,7 +149,7 @@ const LAYOUT_DICT = {
curr: n => `${n}`,
info: (t, p) => `共 ${t}条, ${p}页`,
jump: n =>
- ``
+ ``
}
//