mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-11-08 04:31:03 +00:00
fix(markdown): enable linkify, disable fuzzyLink
This commit is contained in:
1 parent
d82573b5fc
commit
3cf8c64d7c
2 files changed
+4
-1
No files matched your search
Vendored
+1
-1
Submodule external/lang updated: bf0fd028b7...faafd6e4f3.
@@ -48,6 +48,7 @@ if (typeof window !== "undefined") {
|
||||
|
||||
export const md: MarkdownIt = MarkdownIt({
|
||||
breaks: true,
|
||||
linkify: true,
|
||||
highlight: (str, lang) => {
|
||||
const v = Prism.languages[lang];
|
||||
if (v) {
|
||||
@@ -73,6 +74,8 @@ export const md: MarkdownIt = MarkdownIt({
|
||||
errorColor: "var(--error)",
|
||||
});
|
||||
|
||||
md.linkify.set({ fuzzyLink: false });
|
||||
|
||||
// TODO: global.d.ts file for defining globals
|
||||
declare global {
|
||||
interface Window {
|
||||
|
||||
Reference in new issue
Block a user