UNPKG

@uiw/react-markdown-preview

Version:

React component preview markdown text in web browser. The minimal amount of CSS to replicate the GitHub Markdown style.

88 lines (87 loc) 2.74 kB
{ "name": "@uiw/react-markdown-preview", "version": "3.1.0", "description": "React component preview markdown text in web browser. The minimal amount of CSS to replicate the GitHub Markdown style.", "homepage": "https://uiwjs.github.io/react-markdown-preview", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "scripts": { "prepare": "npm run build:lib", "doc": "kkt build --app-src ./website", "start": "kkt start --app-src ./website", "build": "npm run build:lib && npm run doc", "build:lib": "npm run ts:build && npm run types:esm && npm run types:cjs && npm run css:build && npm run css:build:dist", "watch": "npm run ts:watch & npm run types:watch & npm run css:watch", "types:build": "tsbb types --sourceRoot src --target ESNEXT", "types:watch": "npm run types:esm -- --watch & npm run types:cjs -- --watch", "types:esm": "npm run types:build -- --outDir ../lib/esm", "types:cjs": "npm run types:build -- --outDir ../lib/cjs", "css:build": "compile-less -d src -o lib/esm", "css:watch": "compile-less -d src -o lib/esm --watch", "css:build:dist": "compile-less -d src --combine dist/markdown.css --rm-global", "ts:watch": "tsbb watch --env-name esm:dev --env-name cjs --target react", "ts:build": "tsbb build --target react" }, "repository": { "type": "git", "url": "https://github.com/uiwjs/react-markdown-preview.git" }, "author": "kenny wang <wowohoo@qq.com>", "license": "MIT", "files": [ "lib", "dist", "src" ], "keywords": [ "react", "markdown", "prismjs", "react-markdown" ], "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" }, "dependencies": { "@babel/runtime": "7.13.10", "@mapbox/rehype-prism": "0.6.0", "rehype-raw": "5.1.0", "remark-gfm": "1.0.0", "remark-slug": "6.0.0", "remark-autolink-headings": "6.0.1", "rehype-rewrite": "1.0.2", "react-markdown": "6.0.2" }, "devDependencies": { "@kkt/less-modules": "6.9.0", "@kkt/raw-modules": "6.9.0", "@kkt/scope-plugin-options": "6.9.0", "@types/react": "17.0.5", "@types/react-dom": "17.0.4", "@uiw/react-codesandbox": "1.1.0", "@uiw/react-github-corners": "1.2.0", "@uiw/react-shields": "1.1.1", "@uiw/reset.css": "1.0.4", "compile-less-cli": "1.7.0", "kkt": "6.9.0", "react": "17.0.2", "react-dom": "17.0.2", "tsbb": "2.1.2" }, "eslintConfig": { "extends": "react-app" }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }