feat(ui): finalize E-TIB modernization with footer redesign, video optimization, and TS fixes
Former-commit-id: 67ac02c8404cc66893fdf97308574701cca6000c
This commit is contained in:
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../mdast-util-mdx@3.0.0/node_modules/mdast-util-mdx
|
||||
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../micromark-extension-mdxjs@3.0.0/node_modules/micromark-extension-mdxjs
|
||||
Generated
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// Augment node types:
|
||||
/// <reference types="mdast-util-mdx" />
|
||||
|
||||
/**
|
||||
* @typedef {import('./lib/index.js').Options} Options
|
||||
*/
|
||||
|
||||
export {default} from './lib/index.js'
|
||||
Generated
Vendored
+44
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* @import {ToMarkdownOptions} from 'mdast-util-mdx'
|
||||
* @import {Options as MicromarkOptions} from 'micromark-extension-mdxjs'
|
||||
* @import {Processor} from 'unified'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {MicromarkOptions & ToMarkdownOptions} Options
|
||||
* Configuration.
|
||||
*/
|
||||
|
||||
import {mdxFromMarkdown, mdxToMarkdown} from 'mdast-util-mdx'
|
||||
import {mdxjs} from 'micromark-extension-mdxjs'
|
||||
|
||||
/** @type {Readonly<Options>} */
|
||||
const emptyOptions = {}
|
||||
|
||||
/**
|
||||
* Add support for MDX (JSX: `<Video id={123} />`, export/imports: `export {x}
|
||||
* from 'y'`; and expressions: `{1 + 1}`).
|
||||
*
|
||||
* @this {Processor}
|
||||
* Processor.
|
||||
* @param {Readonly<Options> | null | undefined} [options]
|
||||
* Configuration (optional).
|
||||
* @returns {undefined}
|
||||
* Nothing.
|
||||
*/
|
||||
export default function remarkMdx(options) {
|
||||
const self = 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(mdxjs(settings))
|
||||
fromMarkdownExtensions.push(mdxFromMarkdown())
|
||||
toMarkdownExtensions.push(mdxToMarkdown(settings))
|
||||
}
|
||||
Generated
Vendored
+61
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"name": "remark-mdx",
|
||||
"version": "3.1.1",
|
||||
"description": "remark plugin to support MDX syntax",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"javascript",
|
||||
"jsx",
|
||||
"markdown",
|
||||
"mdast",
|
||||
"mdx",
|
||||
"plugin",
|
||||
"remark",
|
||||
"remark-plugin",
|
||||
"unified",
|
||||
"xml"
|
||||
],
|
||||
"homepage": "https://mdxjs.com",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/mdx-js/mdx",
|
||||
"directory": "packages/remark-mdx/"
|
||||
},
|
||||
"bugs": "https://github.com/mdx-js/mdx/issues",
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
},
|
||||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"contributors": [
|
||||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"Christian Murphy <christian.murphy.42@gmail.com>"
|
||||
],
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"exports": "./index.js",
|
||||
"files": [
|
||||
"lib/",
|
||||
"index.d.ts.map",
|
||||
"index.d.ts",
|
||||
"index.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"mdast-util-mdx": "^3.0.0",
|
||||
"micromark-extension-mdxjs": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
"test": "npm run test-coverage",
|
||||
"test-api": "node --conditions development test/index.js",
|
||||
"test-coverage": "c8 --100 --reporter lcov npm run test-api"
|
||||
},
|
||||
"xo": {
|
||||
"prettier": true,
|
||||
"rules": {
|
||||
"logical-assignment-operators": "off",
|
||||
"n/file-extension-in-import": "off",
|
||||
"unicorn/no-this-assignment": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user