summaryrefslogtreecommitdiff
path: root/src/common/text/elements/inline-code.ts
diff options
context:
space:
mode:
authorAkihiko Odaki <nekomanma@pixiv.co.jp>2018-03-31 19:53:30 +0900
committerAkihiko Odaki <nekomanma@pixiv.co.jp>2018-03-31 20:30:28 +0900
commit7da60a0147116130a94274e4a20ae54dd7d59dea (patch)
tree442514d76f90ede80906659b14d5f7bbc531d32a /src/common/text/elements/inline-code.ts
parentSet empty array instead of null to mediaIds property of posts (diff)
downloadmisskey-7da60a0147116130a94274e4a20ae54dd7d59dea.tar.gz
misskey-7da60a0147116130a94274e4a20ae54dd7d59dea.tar.bz2
misskey-7da60a0147116130a94274e4a20ae54dd7d59dea.zip
Store texts as HTML
Diffstat (limited to 'src/common/text/elements/inline-code.ts')
-rw-r--r--src/common/text/elements/inline-code.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/common/text/elements/inline-code.ts b/src/common/text/elements/inline-code.ts
deleted file mode 100644
index 9f9ef51a2b..0000000000
--- a/src/common/text/elements/inline-code.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Code (inline)
- */
-
-import genHtml from '../core/syntax-highlighter';
-
-module.exports = text => {
- const match = text.match(/^`(.+?)`/);
- if (!match) return null;
- const code = match[0];
- return {
- type: 'inline-code',
- content: code,
- code: code.substr(1, code.length - 2).trim(),
- html: genHtml(code.substr(1, code.length - 2).trim())
- };
-};