This commit is contained in:
syuilo
2018-06-26 18:47:09 +09:00
parent 58064ec633
commit 55be57ad21
6 changed files with 0 additions and 159 deletions

View File

@ -40,17 +40,6 @@ export default Vue.component('misskey-flavored-markdown', {
ast = this.ast;
}
if (ast.filter(x => x.type != 'hashtag').length == 0) {
return;
}
while (ast[ast.length - 1] && (
ast[ast.length - 1].type == 'hashtag' ||
(ast[ast.length - 1].type == 'text' && ast[ast.length - 1].content == ' ') ||
(ast[ast.length - 1].type == 'text' && ast[ast.length - 1].content == '\n'))) {
ast.pop();
}
// Parse ast to DOM
const els = flatten(ast.map(token => {
switch (token.type) {