mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe
synced 2025-05-01 03:19:29 +08:00
Use Marked and marked-mfm for MFM rendering (#29)
Reviewed-on: https://akkoma.dev/AkkomaGang/pleroma-fe/pulls/29 Co-authored-by: sfr <sol@solfisher.com> Co-committed-by: sfr <sol@solfisher.com>
This commit is contained in:
parent
2ab223e791
commit
9b49f7a21e
2 changed files with 5 additions and 3 deletions
|
@ -71,7 +71,9 @@ export default {
|
||||||
// NEVER EVER TOUCH DATA INSIDE RENDER
|
// NEVER EVER TOUCH DATA INSIDE RENDER
|
||||||
render () {
|
render () {
|
||||||
// Don't greentext MFM
|
// Don't greentext MFM
|
||||||
const greentext = this.mfm ? false : this.greentext
|
if (this.mfm) {
|
||||||
|
this.greentext = false
|
||||||
|
}
|
||||||
|
|
||||||
// Pre-process HTML
|
// Pre-process HTML
|
||||||
const { newHtml: html } = preProcessPerLine(this.html, greentext)
|
const { newHtml: html } = preProcessPerLine(this.html, greentext)
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
animation: mfm-spin 0.5s linear infinite;
|
animation: mfm-spin 0.5s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
._mfm_spin_[data-x] {
|
._mfm_spin_[x] {
|
||||||
animation-name: mfm-spinX;
|
animation-name: mfm-spinX;
|
||||||
}
|
}
|
||||||
._mfm_spin_[data-y] {
|
._mfm_spin_[y] {
|
||||||
animation-name: mfm-spinY;
|
animation-name: mfm-spinY;
|
||||||
}
|
}
|
||||||
._mfm_spin_[left] {
|
._mfm_spin_[left] {
|
||||||
|
|
Loading…
Reference in a new issue