Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function Markdown(markdownText: string) {
const linkifySsbFeeds = linkifyRegex(Ref.feedIdRegex);
const linkifySsbMsgs = linkifyRegex(Ref.msgIdRegex);
return $(ReactMarkdown, {
source: remark()
.use(gemojiToEmoji)
.use(linkifySsbFeeds)
.use(linkifySsbMsgs)
.use(imagesToSsbServeBlobs)
.processSync(markdownText).contents,
astPlugins: [normalizeForReactNative()],
allowedTypes: Object.keys(renderers),
renderers,
});
}