文件名称:inline-mdx.macro:用于转换mdx内联的babel-macro
文件大小:85KB
文件格式:ZIP
更新时间:2024-06-06 02:29:51
mdx babel-plugin-macros JavaScript
inline-mdx.macro
用于将mdx转换为嵌入式组件的babel-macro。
/** @jsx mdx */
import { mdx } from '@mdx-js/react'
import { inline } from 'inline-mdx.macro'
const SomeMDXComponent = inline `
## This is some MDX source
【文件预览】:
inline-mdx.macro-master
----.prettierignore(9B)
----__fixtures__()
--------object-key-example()
--------dynamic-object-key-example()
--------imports-example()
--------object-key-with-imports()
--------object-key-indented-example()
--------basic-example()
----.prettierrc(111B)
----package.json(900B)
----readme.md(1KB)
----test.js(224B)
----inline-mdx.macro.js(2KB)
----yarn.lock(186KB)