From 4d00f1594402d61da18ecb3f2ed9c6b2d183f419 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Tue, 11 Jun 2024 21:36:08 +0200 Subject: [PATCH] fix: Changlog Detail page header formatting --- src/mdxOptions.js | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/mdxOptions.js b/src/mdxOptions.js index 948bcbaec1d93..b4e7f2e336bd7 100644 --- a/src/mdxOptions.js +++ b/src/mdxOptions.js @@ -1,5 +1,3 @@ -import {s} from 'hastscript'; -import rehypeAutolinkHeadings from 'rehype-autolink-headings'; import rehypePresetMinify from 'rehype-preset-minify'; import rehypePrismPlus from 'rehype-prism-plus'; // Rehype packages @@ -8,7 +6,6 @@ import rehypeSlug from 'rehype-slug'; // Remark packages import remarkComponentSpacing from './remark-component-spacing'; import remarkExtractFrontmatter from './remark-extract-frontmatter'; -import remarkTocHeadings from './remark-toc-headings'; export const mdxOptions = {}; // this is the recommended way to add custom remark/rehype plugins: @@ -17,38 +14,11 @@ export const mdxOptions = {}; mdxOptions.remarkPlugins = [ ...(mdxOptions.remarkPlugins ?? []), remarkExtractFrontmatter, - [remarkTocHeadings], remarkComponentSpacing, ]; mdxOptions.rehypePlugins = [ ...(mdxOptions.rehypePlugins ?? []), rehypeSlug, - [ - rehypeAutolinkHeadings, - { - behavior: 'wrap', - properties: { - ariaHidden: true, - tabIndex: -1, - className: 'autolink-heading', - }, - content: [ - s( - 'svg.anchor.before', - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - fill: 'currentColor', - viewBox: '0 0 24 24', - }, - s('path', { - d: 'M9.199 13.599a5.99 5.99 0 0 0 3.949 2.345 5.987 5.987 0 0 0 5.105-1.702l2.995-2.994a5.992 5.992 0 0 0 1.695-4.285 5.976 5.976 0 0 0-1.831-4.211 5.99 5.99 0 0 0-6.431-1.242 6.003 6.003 0 0 0-1.905 1.24l-1.731 1.721a.999.999 0 1 0 1.41 1.418l1.709-1.699a3.985 3.985 0 0 1 2.761-1.123 3.975 3.975 0 0 1 2.799 1.122 3.997 3.997 0 0 1 .111 5.644l-3.005 3.006a3.982 3.982 0 0 1-3.395 1.126 3.987 3.987 0 0 1-2.632-1.563A1 1 0 0 0 9.201 13.6zm5.602-3.198a5.99 5.99 0 0 0-3.949-2.345 5.987 5.987 0 0 0-5.105 1.702l-2.995 2.994a5.992 5.992 0 0 0-1.695 4.285 5.976 5.976 0 0 0 1.831 4.211 5.99 5.99 0 0 0 6.431 1.242 6.003 6.003 0 0 0 1.905-1.24l1.723-1.723a.999.999 0 1 0-1.414-1.414L9.836 19.81a3.985 3.985 0 0 1-2.761 1.123 3.975 3.975 0 0 1-2.799-1.122 3.997 3.997 0 0 1-.111-5.644l3.005-3.006a3.982 3.982 0 0 1 3.395-1.126 3.987 3.987 0 0 1 2.632 1.563 1 1 0 0 0 1.602-1.198z', - }) - ), - ], - }, - ], [rehypePrismPlus, {ignoreMissing: true}], rehypePresetMinify, ];