ronds-metadata 1.1.63 → 1.1.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import React from "react";
6
6
  /*
7
7
  * @Author: wangxian
8
8
  * @Date: 2022-09-02 16:17:38
9
- * @LastEditTime: 2022-11-23 08:39:29
9
+ * @LastEditTime: 2022-11-23 09:09:46
10
10
  */
11
11
  import ReactMarkdown from 'react-markdown';
12
12
  import remarkGfm from 'remark-gfm';
@@ -41,18 +41,16 @@ var MdView = function MdView(props) {
41
41
  children = _ref.children,
42
42
  props = _objectWithoutProperties(_ref, _excluded);
43
43
 
44
- var match = /language-(\w+)/.exec(className || '');
44
+ var match = /language-(\w+)/.exec(className || 'javascript');
45
45
  return !inline && match ? /*#__PURE__*/React.createElement(SyntaxHighlighter, _extends({
46
46
  showLineNumbers: true,
47
47
  style: oneLight,
48
48
  language: match[1],
49
- PreTag: "div"
50
- }, props), String(children).replace(/\n$/, '')) : /*#__PURE__*/React.createElement(SyntaxHighlighter, _extends({
51
- showLineNumbers: true,
52
- style: oneLight,
53
- language: 'javascript',
54
- PreTag: "div"
55
- }, props), String(children).replace(/\n$/, ''));
49
+ PreTag: "div",
50
+ className: "self-highlighter"
51
+ }, props), String(children).replace(/\n$/, '')) : /*#__PURE__*/React.createElement("code", _extends({
52
+ className: className
53
+ }, props), children);
56
54
  }
57
55
  }
58
56
  }, source)), isMarkNav && /*#__PURE__*/React.createElement("div", {
@@ -219,12 +219,16 @@
219
219
  }
220
220
  }
221
221
  pre {
222
- padding: 0 !important;
223
- background-color: transparent;
222
+ padding: 10px !important;
223
+ background-color: rgb(250, 250, 250);
224
224
  code {
225
225
  font-weight: 300;
226
226
  background-color: transparent;
227
227
  }
228
+ .self-highlighter {
229
+ padding: 0 !important;
230
+ margin: 0 !important;
231
+ }
228
232
  }
229
233
 
230
234
  // list
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.1.63",
4
+ "version": "1.1.64",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",