Skip to content

Commit 14c1661

Browse files
committed
adding styles from standart render
1 parent b3811cb commit 14c1661

File tree

4 files changed

+132
-4
lines changed

4 files changed

+132
-4
lines changed

test/output.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,4 +256,3 @@ <h1 id="967f745ae03431977fb89c965c02c00c">
256256
</tr>
257257
</tbody>
258258
</table>
259-
<p>\\ \` \_ \* \{ \} \[ \] \&amp;lt; \&amp;gt; \( \) # \# \! \|</p>

test/simple_features.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,5 @@ <h2 id="заголовок-второго-уровня-2">Заголовок в
268268
</tr>
269269
</tbody>
270270
</table>
271-
<p>\ ` _ * { } [ ] &lt; &gt; ( ) # # ! |</p>
272271
</body>
273272
</html>

test/simple_features.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,3 @@ console.log(x + y);
145145
|:-|:-:|-:|
146146
|Равнение по левому краю|Равнение по центру|Равнение по правому краю|
147147
|Запись|Запись|Запись|
148-
149-
\\ \` \_ \* \{ \} \[ \] \< \> \( \) # \# \! \|

test/styles.html

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<style>
2+
/* From extension vscode.github */
3+
/*---------------------------------------------------------------------------------------------
4+
* Copyright (c) Microsoft Corporation. All rights reserved.
5+
* Licensed under the MIT License. See License.txt in the project root for license information.
6+
*--------------------------------------------------------------------------------------------*/
7+
8+
.vscode-dark img[src$=\#gh-light-mode-only],
9+
.vscode-light img[src$=\#gh-dark-mode-only],
10+
.vscode-high-contrast:not(.vscode-high-contrast-light) img[src$=\#gh-light-mode-only],
11+
.vscode-high-contrast-light img[src$=\#gh-dark-mode-only] {
12+
display: none;
13+
}
14+
15+
</style>
16+
17+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/markdown.css">
18+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/highlight.css">
19+
<style>
20+
body {
21+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif;
22+
font-size: 14px;
23+
line-height: 1.6;
24+
}
25+
</style>
26+
<style>
27+
.task-list-item {
28+
list-style-type: none;
29+
}
30+
31+
.task-list-item-checkbox {
32+
margin-left: -20px;
33+
vertical-align: middle;
34+
pointer-events: none;
35+
}
36+
</style>
37+
<style>
38+
:root {
39+
--color-note: #0969da;
40+
--color-tip: #1a7f37;
41+
--color-warning: #9a6700;
42+
--color-severe: #bc4c00;
43+
--color-caution: #d1242f;
44+
--color-important: #8250df;
45+
}
46+
47+
</style>
48+
<style>
49+
@media (prefers-color-scheme: dark) {
50+
:root {
51+
--color-note: #2f81f7;
52+
--color-tip: #3fb950;
53+
--color-warning: #d29922;
54+
--color-severe: #db6d28;
55+
--color-caution: #f85149;
56+
--color-important: #a371f7;
57+
}
58+
}
59+
60+
</style>
61+
<style>
62+
.markdown-alert {
63+
padding: 0.5rem 1rem;
64+
margin-bottom: 16px;
65+
color: inherit;
66+
border-left: .25em solid #888;
67+
}
68+
69+
.markdown-alert>:first-child {
70+
margin-top: 0
71+
}
72+
73+
.markdown-alert>:last-child {
74+
margin-bottom: 0
75+
}
76+
77+
.markdown-alert .markdown-alert-title {
78+
display: flex;
79+
font-weight: 500;
80+
align-items: center;
81+
line-height: 1
82+
}
83+
84+
.markdown-alert .markdown-alert-title .octicon {
85+
margin-right: 0.5rem;
86+
display: inline-block;
87+
overflow: visible !important;
88+
vertical-align: text-bottom;
89+
fill: currentColor;
90+
}
91+
92+
.markdown-alert.markdown-alert-note {
93+
border-left-color: var(--color-note);
94+
}
95+
96+
.markdown-alert.markdown-alert-note .markdown-alert-title {
97+
color: var(--color-note);
98+
}
99+
100+
.markdown-alert.markdown-alert-important {
101+
border-left-color: var(--color-important);
102+
}
103+
104+
.markdown-alert.markdown-alert-important .markdown-alert-title {
105+
color: var(--color-important);
106+
}
107+
108+
.markdown-alert.markdown-alert-warning {
109+
border-left-color: var(--color-warning);
110+
}
111+
112+
.markdown-alert.markdown-alert-warning .markdown-alert-title {
113+
color: var(--color-warning);
114+
}
115+
116+
.markdown-alert.markdown-alert-tip {
117+
border-left-color: var(--color-tip);
118+
}
119+
120+
.markdown-alert.markdown-alert-tip .markdown-alert-title {
121+
color: var(--color-tip);
122+
}
123+
124+
.markdown-alert.markdown-alert-caution {
125+
border-left-color: var(--color-caution);
126+
}
127+
128+
.markdown-alert.markdown-alert-caution .markdown-alert-title {
129+
color: var(--color-caution);
130+
}
131+
132+
</style>

0 commit comments

Comments
 (0)