Skip to content

Commit a3f1f61

Browse files
authored
Merge pull request #53 from denco/feature/valide_html
feature/valide html
2 parents 31ae19f + ead806e commit a3f1f61

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1516
-2315
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
* text=auto
2+
**/common/**/*.confluence text eol=lf
23
**/nix/**/*.confluence text eol=lf
34
**/win/**/*.confluence text eol=crlf

.github/workflows/cd.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ jobs:
2929
run: npm ci
3030
- name: Build extension package
3131
run: npm run build
32+
- name: Build checksum
33+
run: sha512sum confluence-markup-${{ steps.release-version.outputs.version }}.vsix > confluence-markup-${{ steps.release-version.outputs.version }}.vsix.sha512
3234
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions
3335
- name: Get release version
34-
run: echo "::set-output name=version::${GITHUB_REF#refs/*/}"
36+
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
37+
run: echo "version=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT"
3538
id: release-version
3639
- name: Create release notes for version ${{ steps.release-version.outputs.version }}
3740
# run: npm run --silent changelog > RELEASE_NOTES_${{ steps.release-version.outputs.version }}.md
@@ -47,8 +50,8 @@ jobs:
4750
uses: ncipollo/release-action@v1
4851
with:
4952
name: ${{ steps.release-version.outputs.version }}
50-
artifact: "confluence-markup-${{ steps.release-version.outputs.version }}.vsix"
51-
artifactContentType: application/zip
53+
artifacts: "confluence-markup-${{ steps.release-version.outputs.version }}.vsix,confluence-markup-${{ steps.release-version.outputs.version }}.vsix.sha512"
54+
# artifactContentType: application/zip
5255
bodyFile: "RELEASE_NOTES_${{ steps.release-version.outputs.version }}.md"
5356
token: ${{ secrets.GITHUB_TOKEN }}
5457
- name: Publish to Visual Studio Marketplace

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Confluence Wiki Markup
22

3+
## [1.0.3](https://github.com/denco/vscode-confluence-markup/releases/tag/1.0.3)
4+
5+
- fix render emoticons and local image files
6+
- render to valid html
7+
- disable output channel log on disposed panel
8+
- code cosmetic
9+
310
## [1.0.2](https://github.com/denco/vscode-confluence-markup/releases/tag/1.0.2)
411

512
- add render tip, note, info and warning macros [he info, tip, note, and warning macros are not rendered](https://github.com/denco/vscode-confluence-markup/issues/41)

media/css/confluence.css

Lines changed: 80 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
body {
22
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
3-
padding: 0 26px;
3+
padding: 0 30px;
44
line-height: 1em;
55
word-wrap: break-word;
66
}
77

8+
div {
9+
margin-top: 1em;
10+
margin-bottom: 1em;
11+
}
12+
813
img {
914
max-width: 100%;
1015
max-height: 100%;
@@ -14,7 +19,11 @@ a {
1419
color: #4080D0;
1520
text-decoration: none;
1621
}
17-
a:focus, input:focus, select:focus, textarea:focus {
22+
23+
a:focus,
24+
input:focus,
25+
select:focus,
26+
textarea:focus {
1827
outline: 1px solid -webkit-focus-ring-color;
1928
outline-offset: -1px;
2029
}
@@ -32,7 +41,9 @@ h1 {
3241
border-bottom-style: solid;
3342
}
3443

35-
h1, h2, h3 {
44+
h1,
45+
h2,
46+
h3 {
3647
font-weight: normal;
3748
}
3849

@@ -41,12 +52,22 @@ blockquote {
4152
border-left: 5px solid;
4253
}
4354

44-
table, th, td {
55+
table,
56+
th,
57+
td {
4558
border: 1px solid;
4659
border-collapse: collapse;
4760
padding: 7px;
4861
}
4962

63+
.vscode-light th {
64+
background-color: rgba(0, 0, 0, 0.18);
65+
}
66+
67+
.vscode-dark th {
68+
background-color: rgba(255, 255, 255, 0.18);
69+
}
70+
5071
.code-block {
5172
display: block;
5273
width: 90%;
@@ -55,7 +76,7 @@ table, th, td {
5576

5677
.code-title {
5778
display: block;
58-
background:#c6c3c3;
79+
background: #c6c3c3;
5980
color: black;
6081
font-weight: bold;
6182
border-bottom-color: #ccc;
@@ -68,9 +89,9 @@ pre {
6889
margin: 0px;
6990
}
7091

71-
pre > code {
92+
pre>code {
7293
display: block;
73-
background:rgba(0, 0, 0, 0.15);
94+
background: rgba(0, 0, 0, 0.15);
7495
word-wrap: break-word;
7596
overflow-wrap: break-word;
7697
word-break: break-space;
@@ -82,7 +103,11 @@ pre > code {
82103
line-height: 1.5em;
83104
}
84105

85-
.panel, .tip, .info, .note, .warning {
106+
.panel,
107+
.tip,
108+
.info,
109+
.note,
110+
.warning {
86111
display: inline-block;
87112
width: 90%;
88113
color: black;
@@ -96,42 +121,54 @@ pre > code {
96121
font-weight: bold;
97122
padding: 5px 3px;
98123
border-style: solid;
99-
/* border-bottom: none; */
100124
}
101125

102126
.panel-body {
103127
background-color: lightgrey;
104128
padding: 3px;
105129
border-style: solid;
106-
border-top: none;
107130
}
108131

109-
.info, .info-title, .info-body {
132+
.info,
133+
.info-title,
134+
.info-body {
110135
border-color: #aab8c6;
111136
border-style: solid;
112137
background-color: #fcfcfc;
113138
}
114139

115-
.tip, .tip-title, .tip-body {
140+
.tip,
141+
.tip-title,
142+
.tip-body {
116143
border-color: #91c89c;
117144
border-style: solid;
118145
background-color: #f3f9f4;
119146
}
120147

121-
.note, .note-title, .note-body {
148+
.note,
149+
.note-title,
150+
.note-body {
122151
border-color: #ffeaae;
123152
border-style: solid;
124153
background-color: #fffdf6;
125154
}
126155

127-
.warning, .warning-title, .warning-body {
156+
.warning,
157+
.warning-title,
158+
.warning-body {
128159
border-color: #d04437;
129160
border-style: solid;
130161
background-color: #fff8f7;
131162
}
132163

133-
.info-title, .tip-title, .note-title, .warning-title,
134-
.info-title-iconless, .tip-title-iconless, .note-title-iconless, .warning-title-iconless {
164+
.info-title,
165+
.tip-title,
166+
.note-title,
167+
.warning-title,
168+
.info-title-iconless,
169+
.tip-title-iconless,
170+
.note-title-iconless,
171+
.warning-title-iconless {
135172
font-weight: bold;
136173
padding: 2px;
137174
margin: 0px;
@@ -143,7 +180,10 @@ pre > code {
143180
border-bottom: none;
144181
}
145182

146-
.info-body, .tip-body, .note-body, .warning-body {
183+
.info-body,
184+
.tip-body,
185+
.note-body,
186+
.warning-body {
147187
padding: 2px;
148188
margin: 0px;
149189
padding-left: 35px;
@@ -154,34 +194,47 @@ pre > code {
154194
border-top: none;
155195
}
156196

157-
.info-title:before, .tip-title:before, .note-title:before, .warning-title:before,
158-
.info-title-iconless:before, .tip-title-iconless:before, .note-title-iconless:before, .warning-title-iconless:before {
197+
.info-title:before,
198+
.tip-title:before,
199+
.note-title:before,
200+
.warning-title:before,
201+
.info-title-iconless:before,
202+
.tip-title-iconless:before,
203+
.note-title-iconless:before,
204+
.warning-title-iconless:before {
159205
margin-left: -16px;
160206
margin-right: 5px;
161207
vertical-align: middle;
162208
}
163209

164-
.info-title:before, .info-title-iconless:before {
210+
.info-title:before,
211+
.info-title-iconless:before {
165212
content: url('./../icons/macro-info.png');
166213
}
167214

168-
.tip-title:before, .tip-title-iconless:before {
215+
.tip-title:before,
216+
.tip-title-iconless:before {
169217
content: url('./../icons/macro-tip.png');
170218
}
171219

172-
.note-title:before, .note-title-iconless:before {
220+
.note-title:before,
221+
.note-title-iconless:before {
173222
content: url('./../icons/macro-note.png');
174223
}
175224

176-
.warning-title:before, .warning-title-iconless:before {
225+
.warning-title:before,
226+
.warning-title-iconless:before {
177227
content: url('./../icons/macro-warning.png');
178228
}
179229

180-
.info-title-iconless:before, .tip-title-iconless:before,.note-title-iconless:before, .warning-title-iconless:before {
230+
.info-title-iconless:before,
231+
.tip-title-iconless:before,
232+
.note-title-iconless:before,
233+
.warning-title-iconless:before {
181234
opacity: 0.0;
182235
}
183236

184-
pre > code > p {
237+
pre>code>p {
185238
margin: .5em 0;
186239
}
187240

@@ -197,10 +250,10 @@ ol.initial {
197250
list-style: decimal;
198251
}
199252

200-
ol.initial > ol {
253+
ol.initial>li>ol {
201254
list-style-type: lower-alpha;
202255
}
203256

204-
ol.initial > ol > ol {
257+
ol.initial>li>ol>li>ol {
205258
list-style-type: lower-roman;
206259
}

0 commit comments

Comments
 (0)