@aranova/tracking-next 0.20.1 → 0.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -596,6 +596,7 @@ function buildBlogSitemapEntries(posts, opts) {
596
596
 
597
597
  // ../tracking-core/src/resources/blog/toc.ts
598
598
  import GithubSlugger from "github-slugger";
599
+ import remarkGfm from "remark-gfm";
599
600
  import remarkMdx from "remark-mdx";
600
601
  import remarkParse from "remark-parse";
601
602
  import { unified } from "unified";
@@ -624,7 +625,7 @@ function headingText(node) {
624
625
  function extractBlogHeadings(mdx) {
625
626
  let tree;
626
627
  try {
627
- tree = unified().use(remarkParse).use(remarkMdx).parse(mdx);
628
+ tree = unified().use(remarkParse).use(remarkGfm).use(remarkMdx).parse(mdx);
628
629
  } catch {
629
630
  return [];
630
631
  }
@@ -657,6 +658,7 @@ function estimateReadingTime(mdx) {
657
658
  }
658
659
 
659
660
  // ../tracking-core/src/resources/blog/validate-mdx.ts
661
+ import remarkGfm2 from "remark-gfm";
660
662
  import remarkMdx2 from "remark-mdx";
661
663
  import remarkParse2 from "remark-parse";
662
664
  import { unified as unified2 } from "unified";
@@ -849,7 +851,7 @@ function validateBlogMdx(mdx, options) {
849
851
  }
850
852
  let tree;
851
853
  try {
852
- tree = unified2().use(remarkParse2).use(remarkMdx2).parse(mdx);
854
+ tree = unified2().use(remarkParse2).use(remarkGfm2).use(remarkMdx2).parse(mdx);
853
855
  } catch (error) {
854
856
  const line = error.line;
855
857
  return {
@@ -925,6 +927,7 @@ function validateBlogMdx(mdx, options) {
925
927
  // ../tracking-core/src/resources/blog/view/blog-post-view.tsx
926
928
  import { compileMDX } from "next-mdx-remote/rsc";
927
929
  import rehypeSlug from "rehype-slug";
930
+ import remarkGfm3 from "remark-gfm";
928
931
 
929
932
  // ../tracking-core/src/resources/blog/view/components.tsx
930
933
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1936,7 +1939,7 @@ async function BlogPostView({
1936
1939
  const compiled = await compileMDX({
1937
1940
  source: mdx,
1938
1941
  components: merged,
1939
- options: { mdxOptions: { rehypePlugins: [rehypeSlug] } }
1942
+ options: { mdxOptions: { remarkPlugins: [remarkGfm3], rehypePlugins: [rehypeSlug] } }
1940
1943
  });
1941
1944
  content = compiled.content;
1942
1945
  } catch {