Add multiline math syntax
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
This commit is contained in:
parent
4398651841
commit
79d2374d8e
6 changed files with 62 additions and 17 deletions
|
|
@ -87,7 +87,13 @@ export default (tokens: MfmForest, mentionedRemoteUsers: INote['mentionedRemoteU
|
|||
return el;
|
||||
},
|
||||
|
||||
math(token) {
|
||||
mathInline(token) {
|
||||
const el = doc.createElement('code');
|
||||
el.textContent = token.node.props.formula;
|
||||
return el;
|
||||
},
|
||||
|
||||
mathBlock(token) {
|
||||
const el = doc.createElement('code');
|
||||
el.textContent = token.node.props.formula;
|
||||
return el;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue