github-actions
released this
29 Jan 07:49
·
18 commits
to main
since this release
Minor Changes
-
2af679d: Adds
createFile
method toMemoryFileSystem
. -
dec8620: Removes predefined
MDXComponents
components since it's easy to instantiate yourself which allows overriding defaults. The same functionality can be achieved by defining the components directly:import { CodeBlock, CodeInline } from 'renoun/components' import type { MDXComponents } from 'renoun/mdx' const mdxComponents = { pre: (props) => { const { value, language } = CodeBlock.parsePreProps(props) return <CodeBlock value={value} language={language} /> }, code: (props) => { return <CodeInline value={props.children} language="typescript" /> }, } satisfies MDXComponents
-
2b4aa82: Renames
File#getModifier
toFile#getModifierName
to be more descriptive and avoid confusion.