Skip to content

Commit

Permalink
Merge pull request #9383 from weseek/support/omit-remark-toc
Browse files Browse the repository at this point in the history
support: Omit remark-toc
  • Loading branch information
mergify[bot] authored Nov 11, 2024
2 parents dc64941 + 081f8f9 commit 33c68ce
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
1 change: 0 additions & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.1",
"remark-stringify": "^11.0.0",
"remark-toc": "^9.0.0",
"sanitize-filename": "^1.6.3",
"socket.io": "^4.7.5",
"stream-to-promise": "^3.0.0",
Expand Down
2 changes: 0 additions & 2 deletions apps/app/src/services/renderer/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import remarkDirective from 'remark-directive';
import remarkFrontmatter from 'remark-frontmatter';
import gfm from 'remark-gfm';
import math from 'remark-math';
import toc from 'remark-toc';
import deepmerge from 'ts-deepmerge';
import type { Pluggable, PluginTuple } from 'unified';

Expand Down Expand Up @@ -95,7 +94,6 @@ export const verifySanitizePlugin = (options: RendererOptions, shouldBeTheLastIt
export const generateCommonOptions = (pagePath: string|undefined): RendererOptions => {
return {
remarkPlugins: [
[toc, { maxDepth: 3, tight: true }],
gfm,
emoji.remarkPlugin,
pukiwikiLikeLinker,
Expand Down
29 changes: 0 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 33c68ce

Please sign in to comment.