Releases: uiwjs/react-markdown-preview
v5.0.6
Documentation v5.0.6: https://raw.githack.com/uiwjs/react-markdown-preview/d113616/index.html
Comparing Changes: v5.0.5...v5.0.6
- 🐞 fix: modify
urlTransform
by default. c2340cc @jaywcjlove
npm i @uiw/[email protected]
v5.0.5
Documentation v5.0.5: https://raw.githack.com/uiwjs/react-markdown-preview/eb3cff1/index.html
Comparing Changes: v5.0.4...v5.0.5
- 📖 doc: Update react-markdown v9 document. a4b750b @jaywcjlove
- 📈 perf: remove redundant dependency. 5e0c7bd @jaywcjlove
npm i @uiw/[email protected]
v5.0.4
Documentation v5.0.4: https://raw.githack.com/uiwjs/react-markdown-preview/6cade36/index.html
Comparing Changes: v5.0.3...v5.0.4
- 🆎 type: fix nohighlight export type issue. 1a33640 @jaywcjlove
npm i @uiw/[email protected]
v5.0.3
Documentation v5.0.3: https://raw.githack.com/uiwjs/react-markdown-preview/a84db59/index.html
Comparing Changes: v5.0.2...v5.0.3
- 💄 chore: fix failed to parse source map issue. dbbf256 @jaywcjlove
- 💄 chore: add sponsor badge. 00d7fb1 @jaywcjlove
- 📖 doc: add katex example. 9bae701 @jaywcjlove
npm i @uiw/[email protected]
v5.0.2
Documentation v5.0.2: https://raw.githack.com/uiwjs/react-markdown-preview/328bb37/index.html
Comparing Changes: v5.0.1...v5.0.2
- 📖 doc: update document. (#247) f9508e2 @jaywcjlove
npm i @uiw/[email protected]
v5.0.1
Documentation v5.0.1: https://raw.githack.com/uiwjs/react-markdown-preview/075b929/index.html
Comparing Changes: v5.0.0...v5.0.1
- 📖 doc: Update document. (#248) fe4e50a @jaywcjlove
- 📖 doc: Update document. (#248) ddcc2c4 @jaywcjlove
- 🐞 fix: Fixed code highlighting - show line number, highlight line (#249) d680e3e @RARgames
- 📖 doc: update document. (#249) 1733d5b @jaywcjlove
npm i @uiw/[email protected]
v5.0.0
Documentation v5.0.0: https://raw.githack.com/uiwjs/react-markdown-preview/2f956a6/index.html
Comparing Changes: v4.2.2...v5.0.0
- 🐞 fix: Fixed merged comments into one node instead of multiple (#248) cc96b52 @RARgames
- 💄 chore(deps): update react monorepo to ~18.2.0 (#222) 8cd7605 @renovate-bot
- 💄 chore(deps): update dependency compile-less-cli to ~1.9.0 (#230) 2eb9dc2 @renovate-bot
- 🐞 fix: fix preview example. (#248) 92d9de6 @jaywcjlove
npm i @uiw/[email protected]
Upgrade v5.0.1+
to fix the problem => highlight line
and Show Line Numbers
feature are invalid and require upgrade.[email protected]
v4.2.2
Documentation v4.2.2: https://raw.githack.com/uiwjs/react-markdown-preview/e672a30/index.html
Comparing Changes: v4.2.1...v4.2.2
- 🐞 fix: export markdown.css issue (#247) 4cb0433 @cragonnyunt
npm i @uiw/[email protected]
v4.2.1
Documentation v4.2.1: https://raw.githack.com/uiwjs/react-markdown-preview/00b2b6e/index.html
Comparing Changes: v4.2.0...v4.2.1
- 🆎 type: add nohighlight to file fields in package.json 3d587a6 @jaywcjlove
npm i @uiw/[email protected]
v4.2.0
Documentation v4.2.0: https://raw.githack.com/uiwjs/react-markdown-preview/7ba1829/index.html
Comparing Changes: v4.1.16...v4.2.0
- 🌟 feat: add no highlight component. 2836e47 @jaywcjlove
- ⛑ test: fix test case error. 2269435 @jaywcjlove
npm i @uiw/[email protected]
Remove Code Highlight
The following example can help you exclude code highlighting code from being included in the bundle. @uiw/react-markdown-preview/nohighlight
component does not contain the rehype-prism-plus
code highlighting package, showLineNumbers
and highlight line
functions will no longer work. (#586)
import React from 'react';
import MarkdownPreview from '@uiw/react-markdown-preview/nohighlight';
const source = `
\`\`\`js
function () {
console.log('hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello')
}
\`\`\`
\`\`\`js
function () {
console.log('hello ')
}
\`\`\`
`;
export default function Demo() {
return (
<MarkdownPreview
source={source}
/>
);
}