Skip to content

Commit

Permalink
Update .changeset/cold-snakes-train.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
matthewp and sarah11918 authored Apr 10, 2024
1 parent 612a2d5 commit 5c463fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/cold-snakes-train.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def func():
\```
```

This allows retrieving the language in a rehype plugin:
This allows retrieving the language in a rehype plugin from `node.properties.dataLanguage` by accessing the `<pre>` element using `{ tagName: "pre" }`:
```js
// myRehypePre.js
import { visit } from "unist-util-visit";
Expand Down

0 comments on commit 5c463fc

Please sign in to comment.