feat(kompetenzen): enhance content presentation with split Problem/Solution UI layout
Former-commit-id: 413bd4371b72883ddb35a2bd3d1c27700a437fde
This commit is contained in:
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../acorn@8.16.0/node_modules/acorn
|
||||
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../acorn-jsx@5.3.2_acorn@8.16.0/node_modules/acorn-jsx
|
||||
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../micromark-extension-mdx-expression@3.0.1/node_modules/micromark-extension-mdx-expression
|
||||
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../micromark-extension-mdx-jsx@3.0.1/node_modules/micromark-extension-mdx-jsx
|
||||
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../micromark-extension-mdx-md@2.0.0/node_modules/micromark-extension-mdx-md
|
||||
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../micromark-extension-mdxjs-esm@3.0.0/node_modules/micromark-extension-mdxjs-esm
|
||||
Generated
Vendored
+39
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* @typedef {import('micromark-extension-mdx-expression').Options} Options
|
||||
* @typedef {import('micromark-util-types').Extension} Extension
|
||||
*/
|
||||
|
||||
import {Parser} from 'acorn'
|
||||
import acornJsx from 'acorn-jsx'
|
||||
import {mdxExpression} from 'micromark-extension-mdx-expression'
|
||||
import {mdxJsx} from 'micromark-extension-mdx-jsx'
|
||||
import {mdxMd} from 'micromark-extension-mdx-md'
|
||||
import {mdxjsEsm} from 'micromark-extension-mdxjs-esm'
|
||||
import {combineExtensions} from 'micromark-util-combine-extensions'
|
||||
|
||||
/**
|
||||
* Create an extension for `micromark` to enable MDX syntax.
|
||||
*
|
||||
* @param {Options | null | undefined} [options]
|
||||
* Configuration (optional).
|
||||
* @returns {Extension}
|
||||
* Extension for `micromark` that can be passed in `extensions` to enable MDX
|
||||
* syntax.
|
||||
*/
|
||||
export function mdxjs(options) {
|
||||
const settings = Object.assign(
|
||||
{
|
||||
acorn: Parser.extend(acornJsx()),
|
||||
acornOptions: {ecmaVersion: 2024, sourceType: 'module'},
|
||||
addResult: true
|
||||
},
|
||||
options
|
||||
)
|
||||
|
||||
return combineExtensions([
|
||||
mdxjsEsm(settings),
|
||||
mdxExpression(settings),
|
||||
mdxJsx(settings),
|
||||
mdxMd()
|
||||
])
|
||||
}
|
||||
Generated
Vendored
+87
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"name": "micromark-extension-mdxjs",
|
||||
"version": "3.0.0",
|
||||
"description": "micromark extension to support MDX.js",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"micromark",
|
||||
"micromark-extension",
|
||||
"mdx",
|
||||
"mdxjs",
|
||||
"esm",
|
||||
"jsx",
|
||||
"expression",
|
||||
"markdown",
|
||||
"unified"
|
||||
],
|
||||
"repository": "micromark/micromark-extension-mdxjs",
|
||||
"bugs": "https://github.com/micromark/micromark-extension-mdxjs/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)"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"index.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"acorn": "^8.0.0",
|
||||
"acorn-jsx": "^5.0.0",
|
||||
"micromark-extension-mdx-expression": "^3.0.0",
|
||||
"micromark-extension-mdx-jsx": "^3.0.0",
|
||||
"micromark-extension-mdx-md": "^2.0.0",
|
||||
"micromark-extension-mdxjs-esm": "^3.0.0",
|
||||
"micromark-util-combine-extensions": "^2.0.0",
|
||||
"micromark-util-types": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.0.0",
|
||||
"c8": "^8.0.0",
|
||||
"micromark": "^4.0.0",
|
||||
"prettier": "^3.0.0",
|
||||
"remark-cli": "^11.0.0",
|
||||
"remark-preset-wooorm": "^9.0.0",
|
||||
"type-coverage": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"xo": "^0.56.0"
|
||||
},
|
||||
"scripts": {
|
||||
"prepack": "npm run build && npm run format",
|
||||
"build": "tsc --build --clean && tsc --build && type-coverage",
|
||||
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
|
||||
"test-api-prod": "node --conditions production test.js",
|
||||
"test-api-dev": "node --conditions development test.js",
|
||||
"test-api": "npm run test-api-dev && npm run test-api-prod",
|
||||
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
|
||||
"test": "npm run build && npm run format && npm run test-coverage"
|
||||
},
|
||||
"prettier": {
|
||||
"bracketSpacing": false,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "none",
|
||||
"useTabs": false
|
||||
},
|
||||
"remarkConfig": {
|
||||
"plugins": [
|
||||
"remark-preset-wooorm"
|
||||
]
|
||||
},
|
||||
"typeCoverage": {
|
||||
"atLeast": 100,
|
||||
"detail": true,
|
||||
"ignoreCatch": true,
|
||||
"strict": true
|
||||
},
|
||||
"xo": {
|
||||
"prettier": true
|
||||
}
|
||||
}
|
||||
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions
|
||||
Reference in New Issue
Block a user