Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
12
node_modules/remark-gfm/lib/index.d.ts
generated
vendored
Normal file
12
node_modules/remark-gfm/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Add support GFM (autolink literals, footnotes, strikethrough, tables,
|
||||
* tasklists).
|
||||
*
|
||||
* @param {Options | null | undefined} [options]
|
||||
* Configuration (optional).
|
||||
* @returns {undefined}
|
||||
* Nothing.
|
||||
*/
|
||||
export default function remarkGfm(options?: Options | null | undefined): undefined;
|
||||
import type { Options } from 'remark-gfm';
|
||||
//# sourceMappingURL=index.d.ts.map
|
1
node_modules/remark-gfm/lib/index.d.ts.map
generated
vendored
Normal file
1
node_modules/remark-gfm/lib/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAcA;;;;;;;;GAQG;AACH,4CALW,OAAO,GAAG,IAAI,GAAG,SAAS,GAExB,SAAS,CAoBrB;6BAtCyB,YAAY"}
|
41
node_modules/remark-gfm/lib/index.js
generated
vendored
Normal file
41
node_modules/remark-gfm/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* @import {Root} from 'mdast'
|
||||
* @import {Options} from 'remark-gfm'
|
||||
* @import {} from 'remark-parse'
|
||||
* @import {} from 'remark-stringify'
|
||||
* @import {Processor} from 'unified'
|
||||
*/
|
||||
|
||||
import {gfmFromMarkdown, gfmToMarkdown} from 'mdast-util-gfm'
|
||||
import {gfm} from 'micromark-extension-gfm'
|
||||
|
||||
/** @type {Options} */
|
||||
const emptyOptions = {}
|
||||
|
||||
/**
|
||||
* Add support GFM (autolink literals, footnotes, strikethrough, tables,
|
||||
* tasklists).
|
||||
*
|
||||
* @param {Options | null | undefined} [options]
|
||||
* Configuration (optional).
|
||||
* @returns {undefined}
|
||||
* Nothing.
|
||||
*/
|
||||
export default function remarkGfm(options) {
|
||||
// @ts-expect-error: TS is wrong about `this`.
|
||||
// eslint-disable-next-line unicorn/no-this-assignment
|
||||
const self = /** @type {Processor<Root>} */ (this)
|
||||
const settings = options || emptyOptions
|
||||
const data = self.data()
|
||||
|
||||
const micromarkExtensions =
|
||||
data.micromarkExtensions || (data.micromarkExtensions = [])
|
||||
const fromMarkdownExtensions =
|
||||
data.fromMarkdownExtensions || (data.fromMarkdownExtensions = [])
|
||||
const toMarkdownExtensions =
|
||||
data.toMarkdownExtensions || (data.toMarkdownExtensions = [])
|
||||
|
||||
micromarkExtensions.push(gfm(settings))
|
||||
fromMarkdownExtensions.push(gfmFromMarkdown())
|
||||
toMarkdownExtensions.push(gfmToMarkdown(settings))
|
||||
}
|
Reference in New Issue
Block a user