diff --git a/.changeset/six-jars-joke.md b/.changeset/six-jars-joke.md new file mode 100644 index 0000000..b9edac5 --- /dev/null +++ b/.changeset/six-jars-joke.md @@ -0,0 +1,5 @@ +--- +"rehype-pretty-code": patch +--- + +Update docs with renamed shiki function: getHighlighter -> createHighlighter diff --git a/docs/src/content/docs/index.mdx b/docs/src/content/docs/index.mdx index b3662f5..4df2680 100644 --- a/docs/src/content/docs/index.mdx +++ b/docs/src/content/docs/index.mdx @@ -617,11 +617,11 @@ To completely configure the highlighter, use the to configure other Shiki options, such as `langs{:.meta.object-literal.key}`. ```js -import { getHighlighter } from "shiki"; +import { createHighlighter } from "shiki"; const options = { getHighlighter: (options) => - getHighlighter({ + createHighlighter({ ...options, langs: [ "plaintext",