Fixed 267U.pre2
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { extractApHashtagObjects } from "../models/tag.js";
|
||||
import { fromHtml } from "../../../mfm/from-html.js";
|
||||
export async function htmlToMfm(html, tag) {
|
||||
const hashtagNames = extractApHashtagObjects(tag).map((x)=>x.name).filter((x)=>x != null);
|
||||
return await fromHtml(html, hashtagNames);
|
||||
}
|
||||
Reference in New Issue
Block a user