Editor
Editor copied to clipboard
chore(deps): bump markdown-to-jsx from 7.1.5 to 7.4.0 in /sample-plugin
Bumps markdown-to-jsx from 7.1.5 to 7.4.0.
Release notes
Sourced from markdown-to-jsx's releases.
v7.4.0
Happy New Year! 🎆
markdown-to-jsx v7.4 features a new option
renderRule! — From the README:Supply your own rendering function that can selectively override how rules are rendered (note, this is different than
options.overrideswhich operates at the HTML tag level and is more general). You can use this functionality to do pretty much anything with an established AST node; here's an example of selectively overriding the "codeBlock" rule to process LaTeX syntax using the@matejmazur/react-katexlibrary:import { Markdown, RuleType } from 'markdown-to-jsx' import TeX from '@matejmazur/react-katex'const exampleContent = 'Some important formula:\n\n
latex\nmathbb{N} = { a in mathbb{Z} : a > 0 }\n\n'function App() { return ( <Markdown children={exampleContent} options={{ renderRule(next, node, renderChildren, state) { if (node.type === RuleType.codeBlock && node.lang === 'latex') { return ( <TeX as="div" key={state.key}>{String.raw
${node.text}}</TeX> ) }return next() }, }} />) }
The README docs around syntax highlighting have also been updated with sample code.
With the new year comes a push toward v8. Performance will be a top priority, reducing the complexity of the library's regexes to increase throughput for SSR use-cases and ideally eliminate rare but frustrating issues like catastrophic backtracking. In addition, the library will be pivoting into more of a pure compiler model, with a React adapter offered and ones added for other major frameworks as well. The idea is anywhere you can run JS, you can use [secret new library name].
Stay tuned and thanks for being part of the journey ✌🏼 Here's to a great 2024 🍾
markdown-to-jsx is maintained by
@quantizor, buy him a coffeeFull Changelog: https://github.com/quantizor/markdown-to-jsx/compare/v7.3.2...v7.4.0
v7.3.2
fix(types): path to esm types in "exports"
Full Changelog: https://github.com/probablyup/markdown-to-jsx/compare/v7.3.1...v7.3.2
... (truncated)
Commits
34531ebchore: bump version715e4e9chore: update docs8eb74dafix: ensuresrcprop is sanitized44122ebchore: switch RuleType back to an enumf665b00docs: add syntax highlighting examplec68b1fbchore: update doc site20c7a0brefactor: rename content to childrenc20733arefactor: strongly-type all nodes79d640brefactor: compile away priority mapping4b5f1c3chore: cuter styles- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.