vue-markdown-design 0.3.1 → 0.3.2
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.
- package/README.md +5 -1
- package/README.zh-CN.md +4 -0
- package/es/_virtual/_@oxc-project_runtime@0.115.0/helpers/asyncToGenerator.mjs +27 -0
- package/es/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.mjs +12 -0
- package/es/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.mjs +25 -0
- package/es/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.mjs +13 -0
- package/es/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutPropertiesLoose.mjs +12 -0
- package/es/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPrimitive.mjs +14 -0
- package/es/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.mjs +9 -0
- package/es/_virtual/_@oxc-project_runtime@0.115.0/helpers/typeof.mjs +11 -0
- package/es/hooks/use-element/index.mjs +21 -18
- package/es/hooks/use-scroll-element/index.mjs +44 -45
- package/es/index.mjs +7 -18
- package/es/markdown/Markdown.mjs +221 -316
- package/es/markdown/index.css +3 -0
- package/es/markdown/index2.mjs +6 -0
- package/es/render/Render.mjs +143 -173
- package/es/render/index.css +37 -21
- package/es/render/index2.mjs +6 -0
- package/es/search/Search.mjs +236 -285
- package/es/search/index.css +4 -0
- package/es/search/index2.mjs +6 -0
- package/es/sticky/Sticky.mjs +66 -99
- package/es/sticky/index2.mjs +6 -0
- package/es/toc/Toc.mjs +253 -347
- package/es/toc/index2.mjs +6 -0
- package/es/utils/constant.mjs +4 -4
- package/es/utils/dom.mjs +44 -68
- package/es/utils/format.mjs +33 -39
- package/es/utils/functions.mjs +5 -5
- package/es/utils/vue.mjs +10 -32
- package/lib/_virtual/_@oxc-project_runtime@0.115.0/helpers/asyncToGenerator.js +27 -0
- package/lib/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.js +12 -0
- package/lib/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.js +25 -0
- package/lib/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.js +13 -0
- package/lib/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutPropertiesLoose.js +12 -0
- package/lib/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPrimitive.js +14 -0
- package/lib/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.js +9 -0
- package/lib/_virtual/_@oxc-project_runtime@0.115.0/helpers/typeof.js +16 -0
- package/lib/_virtual/_rolldown/runtime.js +23 -0
- package/lib/hooks/use-element/index.js +23 -19
- package/lib/hooks/use-scroll-element/index.js +45 -45
- package/lib/index.js +24 -22
- package/lib/markdown/Markdown.js +224 -317
- package/lib/markdown/index.css +3 -0
- package/lib/markdown/index2.js +6 -0
- package/lib/render/Render.js +152 -176
- package/lib/render/index.css +37 -21
- package/lib/render/index2.js +6 -0
- package/lib/search/Search.js +242 -287
- package/lib/search/index.css +4 -0
- package/lib/search/index2.js +6 -0
- package/lib/sticky/Sticky.js +68 -99
- package/lib/sticky/index2.js +6 -0
- package/lib/toc/Toc.js +259 -349
- package/lib/toc/index2.js +6 -0
- package/lib/utils/constant.js +3 -3
- package/lib/utils/dom.js +46 -69
- package/lib/utils/format.js +33 -33
- package/lib/utils/functions.js +4 -4
- package/lib/utils/vue.js +10 -31
- package/package.json +4 -9
- package/es/markdown/index.mjs +0 -9
- package/es/render/index.mjs +0 -9
- package/es/search/index.mjs +0 -9
- package/es/sticky/index.mjs +0 -7
- package/es/toc/index.mjs +0 -9
- package/lib/markdown/index.js +0 -8
- package/lib/render/index.js +0 -8
- package/lib/search/index.js +0 -8
- package/lib/sticky/index.js +0 -7
- package/lib/toc/index.js +0 -8
package/lib/render/Render.js
CHANGED
|
@@ -1,181 +1,157 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
require('./index.css');const require_runtime = require("../_virtual/_rolldown/runtime.js");
|
|
2
|
+
const require_objectSpread2 = require("../_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.js");
|
|
3
|
+
;/* empty css */
|
|
4
|
+
const require_format = require("../utils/format.js");
|
|
5
|
+
const require_functions = require("../utils/functions.js");
|
|
6
|
+
const require_constant = require("../utils/constant.js");
|
|
7
|
+
let lodash = require("lodash");
|
|
8
|
+
let vue = require("vue");
|
|
9
|
+
let highlight_js = require("highlight.js");
|
|
10
|
+
highlight_js = require_runtime.__toESM(highlight_js);
|
|
11
|
+
let markdown_it_emoji = require("markdown-it-emoji");
|
|
12
|
+
let _markdown_design_markdown_it_sanitize = require("@markdown-design/markdown-it-sanitize");
|
|
13
|
+
let markdown_it_anchor = require("markdown-it-anchor");
|
|
14
|
+
markdown_it_anchor = require_runtime.__toESM(markdown_it_anchor);
|
|
15
|
+
let markdown_it = require("markdown-it");
|
|
16
|
+
markdown_it = require_runtime.__toESM(markdown_it);
|
|
17
|
+
//#region src/render/Render.tsx
|
|
18
|
+
var defaultBoolean = {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: void 0
|
|
17
21
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
var { name, addPrefix } = require_format.createNamespace("render");
|
|
23
|
+
var renderProps = {
|
|
24
|
+
src: {
|
|
25
|
+
type: [String, Number],
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
plugins: {
|
|
29
|
+
type: [Function, Array],
|
|
30
|
+
default: () => []
|
|
31
|
+
},
|
|
32
|
+
inline: Boolean,
|
|
33
|
+
presetName: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "default"
|
|
36
|
+
},
|
|
37
|
+
html: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: true
|
|
40
|
+
},
|
|
41
|
+
sanitize: {
|
|
42
|
+
type: [Boolean, Object],
|
|
43
|
+
default: true
|
|
44
|
+
},
|
|
45
|
+
xhtmlOut: defaultBoolean,
|
|
46
|
+
breaks: defaultBoolean,
|
|
47
|
+
langPrefix: String,
|
|
48
|
+
linkify: defaultBoolean,
|
|
49
|
+
typographer: defaultBoolean,
|
|
50
|
+
quotes: [String, Array],
|
|
51
|
+
highlight: {
|
|
52
|
+
type: [
|
|
53
|
+
Boolean,
|
|
54
|
+
Function,
|
|
55
|
+
null
|
|
56
|
+
],
|
|
57
|
+
default: true
|
|
58
|
+
},
|
|
59
|
+
highlightOptions: Object,
|
|
60
|
+
emoji: {
|
|
61
|
+
type: [Boolean, Object],
|
|
62
|
+
default: true
|
|
63
|
+
},
|
|
64
|
+
anchor: {
|
|
65
|
+
type: [
|
|
66
|
+
Boolean,
|
|
67
|
+
Object,
|
|
68
|
+
Function
|
|
69
|
+
],
|
|
70
|
+
default: true
|
|
71
|
+
},
|
|
72
|
+
permalink: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: true
|
|
75
|
+
},
|
|
76
|
+
markdownClass: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: "markdown-body"
|
|
79
|
+
}
|
|
33
80
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
props.highlightOptions && hljs.configure(props.highlightOptions);
|
|
107
|
-
vue.watchEffect(() => {
|
|
108
|
-
let highlight = props.highlight || null;
|
|
109
|
-
if (highlight === true) {
|
|
110
|
-
highlight = (str, language) => {
|
|
111
|
-
const {
|
|
112
|
-
getLanguage,
|
|
113
|
-
highlight: highlight2,
|
|
114
|
-
highlightAuto
|
|
115
|
-
} = hljs;
|
|
116
|
-
const {
|
|
117
|
-
value
|
|
118
|
-
} = getLanguage(language) ? highlight2(str, {
|
|
119
|
-
language
|
|
120
|
-
}) : highlightAuto(str);
|
|
121
|
-
return value;
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
mdInstance.set({
|
|
125
|
-
highlight
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
functions.runFnWithOptions(props.sanitize, (options) => mdInstance.use(markdownItSanitize.sanitize, options));
|
|
129
|
-
functions.runFnWithOptions(props.emoji, (options) => mdInstance.use(markdownItEmoji.full, options));
|
|
130
|
-
functions.runFnWithOptions(props.anchor, (options = {}) => {
|
|
131
|
-
const permalink = props.permalink ? {
|
|
132
|
-
permalink: anchor.permalink.linkInsideHeader({
|
|
133
|
-
placement: "before",
|
|
134
|
-
class: addPrefix("__anchor"),
|
|
135
|
-
space: false,
|
|
136
|
-
renderAttrs: () => ({
|
|
137
|
-
[constant.DATA_ANCHOR]: ""
|
|
138
|
-
})
|
|
139
|
-
// 适配 toc 组件,使之可以准确获取 HTMLHeadingElement
|
|
140
|
-
})
|
|
141
|
-
} : {};
|
|
142
|
-
const anchorOptions = lodash.isFunction(options) ? options(anchor) : options;
|
|
143
|
-
mdInstance.use(anchor, __spreadValues(__spreadValues({}, permalink), anchorOptions));
|
|
144
|
-
});
|
|
145
|
-
const getPlugins = () => {
|
|
146
|
-
const {
|
|
147
|
-
plugins
|
|
148
|
-
} = props;
|
|
149
|
-
return Array.isArray(plugins) ? plugins.map(format.allToArray) : [[plugins]];
|
|
150
|
-
};
|
|
151
|
-
getPlugins().forEach((plugin) => mdInstance.use(...plugin));
|
|
152
|
-
const refreshKeys = ["src", "inline", "highlight", ...optionKeys];
|
|
153
|
-
const htmlStr = vue.ref("");
|
|
154
|
-
vue.watch(() => refreshKeys.map((key) => props[key]), () => {
|
|
155
|
-
const {
|
|
156
|
-
src,
|
|
157
|
-
inline
|
|
158
|
-
} = props;
|
|
159
|
-
const env = {};
|
|
160
|
-
htmlStr.value = mdInstance[inline ? "renderInline" : "render"](String(src), env);
|
|
161
|
-
emit("envChange", env);
|
|
162
|
-
}, {
|
|
163
|
-
immediate: true
|
|
164
|
-
});
|
|
165
|
-
expose({
|
|
166
|
-
mdInstance,
|
|
167
|
-
htmlStr
|
|
168
|
-
});
|
|
169
|
-
return () => vue.createVNode("div", {
|
|
170
|
-
"class": name
|
|
171
|
-
}, [vue.createVNode("div", {
|
|
172
|
-
"class": [addPrefix("__wrapper"), props.markdownClass, {
|
|
173
|
-
[addPrefix("--permalink")]: props.permalink
|
|
174
|
-
}],
|
|
175
|
-
"innerHTML": htmlStr.value
|
|
176
|
-
}, null)]);
|
|
177
|
-
}
|
|
81
|
+
var renderEmits = { envChange: (payload) => (0, lodash.isObject)(payload) };
|
|
82
|
+
var Render_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
83
|
+
name,
|
|
84
|
+
props: renderProps,
|
|
85
|
+
emits: renderEmits,
|
|
86
|
+
setup(props, { emit, expose }) {
|
|
87
|
+
const mdInstance = new markdown_it.default(props.presetName);
|
|
88
|
+
const optionKeys = [
|
|
89
|
+
"html",
|
|
90
|
+
"xhtmlOut",
|
|
91
|
+
"breaks",
|
|
92
|
+
"langPrefix",
|
|
93
|
+
"linkify",
|
|
94
|
+
"typographer",
|
|
95
|
+
"quotes"
|
|
96
|
+
];
|
|
97
|
+
(0, vue.watch)(() => optionKeys.map((key) => props[key]), () => {
|
|
98
|
+
mdInstance.set((0, lodash.pickBy)(props, (value, key) => optionKeys.includes(key) && !(0, lodash.isUndefined)(value)));
|
|
99
|
+
}, { immediate: true });
|
|
100
|
+
props.highlightOptions && highlight_js.default.configure(props.highlightOptions);
|
|
101
|
+
(0, vue.watchEffect)(() => {
|
|
102
|
+
let highlight = props.highlight || null;
|
|
103
|
+
if (highlight === true) highlight = (str, language) => {
|
|
104
|
+
const { getLanguage, highlight, highlightAuto } = highlight_js.default;
|
|
105
|
+
const { value } = getLanguage(language) ? highlight(str, { language }) : highlightAuto(str);
|
|
106
|
+
return value;
|
|
107
|
+
};
|
|
108
|
+
mdInstance.set({ highlight });
|
|
109
|
+
});
|
|
110
|
+
require_functions.runFnWithOptions(props.sanitize, (options) => mdInstance.use(_markdown_design_markdown_it_sanitize.sanitize, options));
|
|
111
|
+
require_functions.runFnWithOptions(props.emoji, (options) => mdInstance.use(markdown_it_emoji.full, options));
|
|
112
|
+
require_functions.runFnWithOptions(props.anchor, (options = {}) => {
|
|
113
|
+
const permalink = props.permalink ? { permalink: markdown_it_anchor.default.permalink.linkInsideHeader({
|
|
114
|
+
placement: "before",
|
|
115
|
+
class: addPrefix("__anchor"),
|
|
116
|
+
space: false,
|
|
117
|
+
renderAttrs: () => ({ [require_constant.DATA_ANCHOR]: "" })
|
|
118
|
+
}) } : {};
|
|
119
|
+
const anchorOptions = (0, lodash.isFunction)(options) ? options(markdown_it_anchor.default) : options;
|
|
120
|
+
mdInstance.use(markdown_it_anchor.default, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, permalink), anchorOptions));
|
|
121
|
+
});
|
|
122
|
+
const getPlugins = () => {
|
|
123
|
+
const { plugins } = props;
|
|
124
|
+
return Array.isArray(plugins) ? plugins.map(require_format.allToArray) : [[plugins]];
|
|
125
|
+
};
|
|
126
|
+
getPlugins().forEach((plugin) => mdInstance.use(...plugin));
|
|
127
|
+
const refreshKeys = [
|
|
128
|
+
"src",
|
|
129
|
+
"inline",
|
|
130
|
+
"highlight",
|
|
131
|
+
...optionKeys
|
|
132
|
+
];
|
|
133
|
+
const htmlStr = (0, vue.ref)("");
|
|
134
|
+
(0, vue.watch)(() => refreshKeys.map((key) => props[key]), () => {
|
|
135
|
+
const { src, inline } = props;
|
|
136
|
+
const env = {};
|
|
137
|
+
htmlStr.value = mdInstance[inline ? "renderInline" : "render"](String(src), env);
|
|
138
|
+
emit("envChange", env);
|
|
139
|
+
}, { immediate: true });
|
|
140
|
+
expose({
|
|
141
|
+
mdInstance,
|
|
142
|
+
htmlStr
|
|
143
|
+
});
|
|
144
|
+
return () => (0, vue.createVNode)("div", { "class": name }, [(0, vue.createVNode)("div", {
|
|
145
|
+
"class": [
|
|
146
|
+
addPrefix("__wrapper"),
|
|
147
|
+
props.markdownClass,
|
|
148
|
+
{ [addPrefix("--permalink")]: props.permalink }
|
|
149
|
+
],
|
|
150
|
+
"innerHTML": htmlStr.value
|
|
151
|
+
}, null)]);
|
|
152
|
+
}
|
|
178
153
|
});
|
|
179
|
-
|
|
154
|
+
//#endregion
|
|
155
|
+
exports.default = Render_default;
|
|
180
156
|
exports.renderEmits = renderEmits;
|
|
181
157
|
exports.renderProps = renderProps;
|
package/lib/render/index.css
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/*light */
|
|
2
2
|
.markdown-body {
|
|
3
3
|
color-scheme: light;
|
|
4
|
+
/** CSS default easing. Use for hover state changes and micro-interactions. */
|
|
5
|
+
/** Accelerating motion. Use for elements exiting the viewport (moving off-screen). */
|
|
6
|
+
/** Smooth acceleration and deceleration. Use for elements moving or morphing within the viewport. */
|
|
7
|
+
/** Decelerating motion. Use for elements entering the viewport or appearing on screen. */
|
|
8
|
+
/** Constant motion with no acceleration. Use for continuous animations like progress bars or loaders. */
|
|
4
9
|
-ms-text-size-adjust: 100%;
|
|
5
10
|
-webkit-text-size-adjust: 100%;
|
|
6
11
|
margin: 0;
|
|
12
|
+
font-weight: 400;
|
|
7
13
|
color: #1f2328;
|
|
8
14
|
background-color: #ffffff;
|
|
9
|
-
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
|
|
15
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
10
16
|
font-size: 16px;
|
|
11
17
|
line-height: 1.5;
|
|
12
18
|
word-wrap: break-word;
|
|
13
19
|
}
|
|
20
|
+
.markdown-body a {
|
|
21
|
+
text-decoration: underline;
|
|
22
|
+
text-underline-offset: .2rem;
|
|
23
|
+
}
|
|
14
24
|
.markdown-body .octicon {
|
|
15
25
|
display: inline-block;
|
|
16
26
|
fill: currentColor;
|
|
@@ -42,7 +52,7 @@
|
|
|
42
52
|
display: none !important;
|
|
43
53
|
}
|
|
44
54
|
.markdown-body a {
|
|
45
|
-
background-color:
|
|
55
|
+
background-color: rgba(0,0,0,0);
|
|
46
56
|
color: #0969da;
|
|
47
57
|
text-decoration: none;
|
|
48
58
|
}
|
|
@@ -103,7 +113,7 @@
|
|
|
103
113
|
.markdown-body hr {
|
|
104
114
|
box-sizing: content-box;
|
|
105
115
|
overflow: hidden;
|
|
106
|
-
background:
|
|
116
|
+
background: rgba(0,0,0,0);
|
|
107
117
|
border-bottom: 1px solid #d1d9e0b3;
|
|
108
118
|
height: .25em;
|
|
109
119
|
padding: 0;
|
|
@@ -184,7 +194,7 @@
|
|
|
184
194
|
.markdown-body [role=button]:focus,
|
|
185
195
|
.markdown-body input[type=radio]:focus,
|
|
186
196
|
.markdown-body input[type=checkbox]:focus {
|
|
187
|
-
outline: 2px solid
|
|
197
|
+
outline: 2px solid var(--borderColor-accent-emphasis);
|
|
188
198
|
outline-offset: -2px;
|
|
189
199
|
box-shadow: none;
|
|
190
200
|
}
|
|
@@ -192,13 +202,13 @@
|
|
|
192
202
|
.markdown-body [role=button]:focus:not(:focus-visible),
|
|
193
203
|
.markdown-body input[type=radio]:focus:not(:focus-visible),
|
|
194
204
|
.markdown-body input[type=checkbox]:focus:not(:focus-visible) {
|
|
195
|
-
outline: solid 1px
|
|
205
|
+
outline: solid 1px rgba(0,0,0,0);
|
|
196
206
|
}
|
|
197
207
|
.markdown-body a:focus-visible,
|
|
198
208
|
.markdown-body [role=button]:focus-visible,
|
|
199
209
|
.markdown-body input[type=radio]:focus-visible,
|
|
200
210
|
.markdown-body input[type=checkbox]:focus-visible {
|
|
201
|
-
outline: 2px solid
|
|
211
|
+
outline: 2px solid var(--borderColor-accent-emphasis);
|
|
202
212
|
outline-offset: -2px;
|
|
203
213
|
box-shadow: none;
|
|
204
214
|
}
|
|
@@ -218,10 +228,10 @@
|
|
|
218
228
|
color: #1f2328;
|
|
219
229
|
vertical-align: middle;
|
|
220
230
|
background-color: #f6f8fa;
|
|
221
|
-
border: solid 1px
|
|
222
|
-
border-bottom-color:
|
|
231
|
+
border: solid 1px var(--borderColor-muted);
|
|
232
|
+
border-bottom-color: var(--borderColor-muted);
|
|
223
233
|
border-radius: 6px;
|
|
224
|
-
box-shadow: inset 0 -1px 0
|
|
234
|
+
box-shadow: inset 0 -1px 0 var(--borderColor-muted);
|
|
225
235
|
}
|
|
226
236
|
.markdown-body h1,
|
|
227
237
|
.markdown-body h2,
|
|
@@ -492,7 +502,7 @@
|
|
|
492
502
|
background-color: #f6f8fa;
|
|
493
503
|
}
|
|
494
504
|
.markdown-body table img {
|
|
495
|
-
background-color:
|
|
505
|
+
background-color: rgba(0,0,0,0);
|
|
496
506
|
}
|
|
497
507
|
.markdown-body img[align=right] {
|
|
498
508
|
padding-left: 20px;
|
|
@@ -503,7 +513,7 @@
|
|
|
503
513
|
.markdown-body .emoji {
|
|
504
514
|
max-width: none;
|
|
505
515
|
vertical-align: text-top;
|
|
506
|
-
background-color:
|
|
516
|
+
background-color: rgba(0,0,0,0);
|
|
507
517
|
}
|
|
508
518
|
.markdown-body span.frame {
|
|
509
519
|
display: block;
|
|
@@ -606,7 +616,7 @@
|
|
|
606
616
|
margin: 0;
|
|
607
617
|
word-break: normal;
|
|
608
618
|
white-space: pre;
|
|
609
|
-
background:
|
|
619
|
+
background: rgba(0,0,0,0);
|
|
610
620
|
border: 0;
|
|
611
621
|
}
|
|
612
622
|
.markdown-body .highlight {
|
|
@@ -629,13 +639,12 @@
|
|
|
629
639
|
.markdown-body pre code,
|
|
630
640
|
.markdown-body pre tt {
|
|
631
641
|
display: inline;
|
|
632
|
-
max-width: auto;
|
|
633
642
|
padding: 0;
|
|
634
643
|
margin: 0;
|
|
635
644
|
overflow: visible;
|
|
636
645
|
line-height: inherit;
|
|
637
646
|
word-wrap: normal;
|
|
638
|
-
background-color:
|
|
647
|
+
background-color: rgba(0,0,0,0);
|
|
639
648
|
border: 0;
|
|
640
649
|
}
|
|
641
650
|
.markdown-body .csv-data td,
|
|
@@ -700,9 +709,6 @@
|
|
|
700
709
|
.markdown-body .footnotes .data-footnote-backref g-emoji {
|
|
701
710
|
font-family: monospace;
|
|
702
711
|
}
|
|
703
|
-
.markdown-body body:has(:modal) {
|
|
704
|
-
padding-right: var(--dialog-scrollgutter) !important;
|
|
705
|
-
}
|
|
706
712
|
.markdown-body .pl-c {
|
|
707
713
|
color: #59636e;
|
|
708
714
|
}
|
|
@@ -741,8 +747,8 @@
|
|
|
741
747
|
color: #82071e;
|
|
742
748
|
}
|
|
743
749
|
.markdown-body .pl-ii {
|
|
744
|
-
color:
|
|
745
|
-
background-color:
|
|
750
|
+
color: var(--fgColor-danger);
|
|
751
|
+
background-color: var(--bgColor-danger-muted);
|
|
746
752
|
}
|
|
747
753
|
.markdown-body .pl-c2 {
|
|
748
754
|
color: #f6f8fa;
|
|
@@ -825,6 +831,16 @@
|
|
|
825
831
|
width: 1em;
|
|
826
832
|
height: 1em;
|
|
827
833
|
}
|
|
834
|
+
.markdown-body a:has(>p,>div,>pre,>blockquote) {
|
|
835
|
+
display: block;
|
|
836
|
+
}
|
|
837
|
+
.markdown-body a:has(>p,>div,>pre,>blockquote):not(:has(.snippet-clipboard-content,>pre)) {
|
|
838
|
+
width: fit-content;
|
|
839
|
+
}
|
|
840
|
+
.markdown-body a:has(>p,>div,>pre,>blockquote):has(.snippet-clipboard-content,>pre):focus-visible {
|
|
841
|
+
outline: 2px solid var(--borderColor-accent-emphasis);
|
|
842
|
+
outline-offset: 2px;
|
|
843
|
+
}
|
|
828
844
|
.markdown-body .task-list-item {
|
|
829
845
|
list-style-type: none;
|
|
830
846
|
}
|
|
@@ -856,7 +872,7 @@
|
|
|
856
872
|
width: auto;
|
|
857
873
|
height: 24px;
|
|
858
874
|
overflow: visible;
|
|
859
|
-
clip:
|
|
875
|
+
clip-path: none;
|
|
860
876
|
}
|
|
861
877
|
.markdown-body ::-webkit-calendar-picker-indicator {
|
|
862
878
|
filter: invert(50%);
|