Refactoring

This commit is contained in:
syuilo
2018-08-15 20:27:49 +09:00
parent 83dcfec053
commit 08b431723a
4 changed files with 6 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ export default function(text: string) {
return {
type: 'code',
content: code,
code: code.substr(3, code.length - 6).trim(),
html: genHtml(code.substr(3, code.length - 6).trim())
code: match[1],
html: genHtml(match[1])
} as TextElementCode;
}