markdown-to-html-cli 3.2.11 → 3.2.14
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 +1 -10
- package/lib/create.js +54 -92
- package/lib/create.js.map +1 -1
- package/lib/index.d.ts +0 -9
- package/lib/index.js.map +1 -1
- package/lib/nodes/copy.d.ts +2 -0
- package/lib/nodes/copy.js +76 -1
- package/lib/nodes/copy.js.map +1 -1
- package/lib/nodes/dark-mode.d.ts +6 -0
- package/lib/nodes/dark-mode.js +29 -0
- package/lib/nodes/dark-mode.js.map +1 -0
- package/lib/nodes/{githubCornersFork.d.ts → github-corners-fork.d.ts} +0 -0
- package/lib/nodes/github-corners-fork.js +122 -0
- package/lib/nodes/github-corners-fork.js.map +1 -0
- package/lib/nodes/{githubCorners.d.ts → github-corners.d.ts} +1 -1
- package/lib/nodes/github-corners.js +110 -0
- package/lib/nodes/github-corners.js.map +1 -0
- package/lib/nodes/markdown-style.d.ts +2 -0
- package/lib/nodes/markdown-style.js +1045 -0
- package/lib/nodes/markdown-style.js.map +1 -0
- package/package.json +7 -16
- package/src/cli.ts +5 -0
- package/src/create.ts +101 -0
- package/src/index.ts +113 -0
- package/src/nodes/copy.ts +148 -0
- package/src/nodes/dark-mode.ts +31 -0
- package/{github-fork-ribbon.css → src/nodes/github-corners-fork.ts} +38 -1
- package/src/nodes/github-corners.ts +116 -0
- package/src/nodes/markdown-style.ts +1047 -0
- package/src/nodes/octiconLink.ts +12 -0
- package/src/utils.ts +50 -0
- package/github.css +0 -930
- package/lib/nodes/githubCorners.js +0 -59
- package/lib/nodes/githubCorners.js.map +0 -1
- package/lib/nodes/githubCornersFork.js +0 -20
- package/lib/nodes/githubCornersFork.js.map +0 -1
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export function githubCorners(opts) {
|
|
2
|
-
const { href } = opts;
|
|
3
|
-
if (!href) {
|
|
4
|
-
return;
|
|
5
|
-
}
|
|
6
|
-
return {
|
|
7
|
-
type: 'element',
|
|
8
|
-
tagName: 'a',
|
|
9
|
-
properties: {
|
|
10
|
-
'aria-label': 'View source on GitHub',
|
|
11
|
-
target: '__blank',
|
|
12
|
-
className: 'github-corner',
|
|
13
|
-
href,
|
|
14
|
-
},
|
|
15
|
-
children: [
|
|
16
|
-
{
|
|
17
|
-
type: 'element',
|
|
18
|
-
tagName: 'svg',
|
|
19
|
-
properties: {
|
|
20
|
-
width: '54',
|
|
21
|
-
height: '54',
|
|
22
|
-
viewBox: '0 0 250 250',
|
|
23
|
-
'aria-hidden': 'true',
|
|
24
|
-
style: 'fill: rgb(32, 34, 37); color: rgb(255, 255, 255); position: fixed; z-index: 99999; border: 0px; top: 0px; right: 0px;'
|
|
25
|
-
},
|
|
26
|
-
children: [
|
|
27
|
-
{
|
|
28
|
-
type: 'element',
|
|
29
|
-
tagName: 'path',
|
|
30
|
-
properties: {
|
|
31
|
-
d: 'M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z'
|
|
32
|
-
},
|
|
33
|
-
children: [],
|
|
34
|
-
}, {
|
|
35
|
-
type: 'element',
|
|
36
|
-
tagName: 'path',
|
|
37
|
-
children: [],
|
|
38
|
-
properties: {
|
|
39
|
-
style: 'transform-origin: 130px 106px;',
|
|
40
|
-
className: 'octo-arm',
|
|
41
|
-
fill: 'currentColor',
|
|
42
|
-
d: 'M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2'
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
type: 'element',
|
|
46
|
-
tagName: 'path',
|
|
47
|
-
children: [],
|
|
48
|
-
properties: {
|
|
49
|
-
className: 'octo-body',
|
|
50
|
-
fill: 'currentColor',
|
|
51
|
-
d: 'M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z'
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=githubCorners.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"githubCorners.js","sourceRoot":"","sources":["../../src/nodes/githubCorners.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,aAAa,CAAC,IAAmB;IAC/C,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,IAAI,EAAE;QACT,OAAO;KACR;IACD,OAAO;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,GAAG;QACZ,UAAU,EAAE;YACV,YAAY,EAAE,uBAAuB;YACrC,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,eAAe;YAC1B,IAAI;SACL;QACD,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,UAAU,EAAE;oBACV,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,IAAI;oBACZ,OAAO,EAAE,aAAa;oBACtB,aAAa,EAAE,MAAM;oBACrB,KAAK,EAAE,uHAAuH;iBAC/H;gBACD,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,MAAM;wBACf,UAAU,EAAE;4BACV,CAAC,EAAE,mDAAmD;yBACvD;wBACD,QAAQ,EAAE,EAAE;qBACb,EAAE;wBACD,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,MAAM;wBACf,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE;4BACV,KAAK,EAAE,gCAAgC;4BACvC,SAAS,EAAE,UAAU;4BACrB,IAAI,EAAE,cAAc;4BACpB,CAAC,EAAE,0LAA0L;yBAC9L;qBACF,EAAE;wBACD,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,MAAM;wBACf,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE;4BACV,SAAS,EAAE,WAAW;4BACtB,IAAI,EAAE,cAAc;4BACpB,CAAC,EAAE,qhBAAqhB;yBACzhB;qBACF;iBACF;aACF;SACF;KACF,CAAA;AACH,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export function githubCornersFork(opts) {
|
|
2
|
-
const { href } = opts;
|
|
3
|
-
if (!href) {
|
|
4
|
-
return;
|
|
5
|
-
}
|
|
6
|
-
return {
|
|
7
|
-
type: 'element',
|
|
8
|
-
tagName: 'a',
|
|
9
|
-
properties: {
|
|
10
|
-
'aria-label': 'Fork me on Github',
|
|
11
|
-
title: 'Fork me on GitHub',
|
|
12
|
-
target: '__blank',
|
|
13
|
-
className: 'github-fork-ribbon',
|
|
14
|
-
'data-ribbon': 'Fork me on GitHub',
|
|
15
|
-
href,
|
|
16
|
-
},
|
|
17
|
-
children: []
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=githubCornersFork.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"githubCornersFork.js","sourceRoot":"","sources":["../../src/nodes/githubCornersFork.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,iBAAiB,CAAC,IAAmB;IACnD,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,IAAI,EAAE;QACT,OAAO;KACR;IACD,OAAO;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,GAAG;QACZ,UAAU,EAAE;YACV,YAAY,EAAE,mBAAmB;YACjC,KAAK,EAAE,mBAAmB;YAC1B,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,oBAAoB;YAC/B,aAAa,EAAE,mBAAmB;YAClC,IAAI;SACL;QACD,QAAQ,EAAE,EAAE;KACb,CAAA;AACH,CAAC"}
|