upd: replace mfm with sfm
This commit is contained in:
parent
24ba0d1fff
commit
c92c2d065f
27 changed files with 49 additions and 111 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import * as mfm from 'mfm-js';
|
||||
import * as mfm from '@sharkey/sfm-js';
|
||||
|
||||
export function checkAnimationFromMfm(nodes: mfm.MfmNode[]): boolean {
|
||||
const animatedNodes = mfm.extract(nodes, (node) => {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
// test is located in test/extract-mentions
|
||||
|
||||
import * as mfm from 'mfm-js';
|
||||
import * as mfm from '@sharkey/sfm-js';
|
||||
|
||||
export function extractMentions(nodes: mfm.MfmNode[]): mfm.MfmMention['props'][] {
|
||||
// TODO: 重複を削除
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import * as mfm from 'mfm-js';
|
||||
import * as mfm from '@sharkey/sfm-js';
|
||||
import { unique } from '@/scripts/array.js';
|
||||
|
||||
// unique without hash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue