This commit is contained in:
syuilo 2017-02-10 02:16:30 +09:00
parent 9c972b6bd6
commit 02a3300f25

View file

@ -221,7 +221,9 @@ const elements = [
// label
code => {
if (code[0] != '@') return null;
const label = code.match(/^@([a-zA-Z_-]+?)\n/)[0];
const match = code.match(/^@([a-zA-Z_-]+?)\n/);
if (!match) return null;
const label = match[0];
return {
html: `<span class="label">${label}</span>`,
next: label.length