From 8ab4d195d9728127b386679a2562cabf13f97387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Mon, 13 Jun 2022 13:20:07 +0100 Subject: [PATCH] Properly copy content with math (#1225) --- assets/js/lib/markdown.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/lib/markdown.js b/assets/js/lib/markdown.js index 3a6da0f8d..70b0311bf 100644 --- a/assets/js/lib/markdown.js +++ b/assets/js/lib/markdown.js @@ -11,6 +11,8 @@ import rehypeParse from "rehype-parse"; import rehypeSanitize, { defaultSchema } from "rehype-sanitize"; import rehypeStringify from "rehype-stringify"; +import "katex/contrib/copy-tex"; + import { visit } from "unist-util-visit"; import { toText } from "hast-util-to-text"; import { removePosition } from "unist-util-remove-position";