mirror of
https://github.com/harness/drone.git
synced 2025-05-12 23:20:10 +08:00
Allow simple HTML tags such as details, summary, etc... similar to Github (#2062)
This commit is contained in:
parent
1f43f091de
commit
ed484b0d44
@ -184,7 +184,11 @@ module.exports = {
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.mjs', '.js', '.ts', '.tsx', '.json', '.ttf', '.scss'],
|
||||
plugins: [new TsconfigPathsPlugin()]
|
||||
plugins: [new TsconfigPathsPlugin()],
|
||||
alias: {
|
||||
'react/jsx-dev-runtime': 'react/jsx-dev-runtime.js',
|
||||
'react/jsx-runtime': 'react/jsx-runtime.js'
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
new MiniCssExtractPlugin({
|
||||
|
@ -51,7 +51,7 @@
|
||||
"@uiw/codemirror-extensions-color": "^4.19.9",
|
||||
"@uiw/codemirror-extensions-hyper-link": "^4.19.9",
|
||||
"@uiw/codemirror-themes-all": "^4.19.9",
|
||||
"@uiw/react-markdown-preview": "^4.1.12",
|
||||
"@uiw/react-markdown-preview": "^5.1.1",
|
||||
"anser": "^2.1.1",
|
||||
"classnames": "^2.2.6",
|
||||
"clipboard-copy": "^3.1.0",
|
||||
@ -85,9 +85,9 @@
|
||||
"react-split-pane": "^0.1.92",
|
||||
"react-table": "^7.1.0",
|
||||
"react-timeago": "^4.4.0",
|
||||
"rehype-external-links": "^2.0.1",
|
||||
"rehype-external-links": "^3.0.0",
|
||||
"rehype-sanitize": "^6.0.0",
|
||||
"rehype-video": "^1.2.2",
|
||||
"rehype-video": "^2.0.2",
|
||||
"restful-react": "15.6.0",
|
||||
"selecto": "^1.26.3",
|
||||
"webpack-retry-chunk-load-plugin": "^3.1.0",
|
||||
|
@ -102,7 +102,6 @@ export function MarkdownViewer({
|
||||
ref={ref}>
|
||||
<MarkdownPreview
|
||||
source={source}
|
||||
skipHtml={false}
|
||||
warpperElement={{ 'data-color-mode': darkMode ? 'dark' : 'light' }}
|
||||
rehypeRewrite={(node, _index, parent) => {
|
||||
if ((node as unknown as HTMLDivElement).tagName === 'a') {
|
||||
|
1400
web/yarn.lock
1400
web/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user