Merge pull request 'marked-mfm fixes: spin direction, greentext' (#34) from marked-mfm into develop
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: AkkomaGang/pleroma-fe#34
This commit is contained in:
commit
3ff141a122
2 changed files with 4 additions and 6 deletions
|
@ -71,12 +71,10 @@ export default {
|
||||||
// NEVER EVER TOUCH DATA INSIDE RENDER
|
// NEVER EVER TOUCH DATA INSIDE RENDER
|
||||||
render () {
|
render () {
|
||||||
// Don't greentext MFM
|
// Don't greentext MFM
|
||||||
if (this.mfm) {
|
const greentext = this.mfm ? false : this.greentext
|
||||||
this.greentext = false
|
|
||||||
}
|
|
||||||
|
|
||||||
// Pre-process HTML
|
// Pre-process HTML
|
||||||
const { newHtml: html } = preProcessPerLine(this.html, this.greentext)
|
const { newHtml: html } = preProcessPerLine(this.html, greentext)
|
||||||
let currentMentions = null // Current chain of mentions, we group all mentions together
|
let currentMentions = null // Current chain of mentions, we group all mentions together
|
||||||
// This is used to recover spacing removed when parsing mentions
|
// This is used to recover spacing removed when parsing mentions
|
||||||
let lastSpacing = ''
|
let lastSpacing = ''
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
animation: mfm-spin 0.5s linear infinite;
|
animation: mfm-spin 0.5s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
._mfm_spin_[x] {
|
._mfm_spin_[data-x] {
|
||||||
animation-name: mfm-spinX;
|
animation-name: mfm-spinX;
|
||||||
}
|
}
|
||||||
._mfm_spin_[y] {
|
._mfm_spin_[data-y] {
|
||||||
animation-name: mfm-spinY;
|
animation-name: mfm-spinY;
|
||||||
}
|
}
|
||||||
._mfm_spin_[left] {
|
._mfm_spin_[left] {
|
||||||
|
|
Loading…
Reference in a new issue