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
28d5a55352
commit
931ed3d3c7
9 changed files with 3812 additions and 2817 deletions
|
@ -282,11 +282,9 @@ export const parseStatus = (data) => {
|
|||
|
||||
if (data.akkoma) {
|
||||
const { akkoma } = data
|
||||
if (akkoma && akkoma.source && akkoma.source.mediaType === 'text/x.misskeymarkdown') {
|
||||
output.mfm_content = akkoma.source.content
|
||||
if (akkoma && akkoma.source) {
|
||||
output.media_type = akkoma.source.mediaType
|
||||
}
|
||||
} else {
|
||||
output.mfm_content = null
|
||||
}
|
||||
|
||||
output.in_reply_to_status_id = data.in_reply_to_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue