Commit 724ac02
authored
feat: added capability to add css class and id to images + links + refactoring (docsifyjs#820)
* method extraction
* support for CSS class and id
* Update package.json
* Added tests for refactored render-methods
* minor refactoring1 parent 6184e50 commit 724ac02Copy full SHA for 724ac02
14 files changed
+369-133Lines changed: 369 additions & 133 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- cypress
- integration/sidebar
- snapshots/sidebar/config.spec.js
- docs
- packages/docsify-server-renderer
- src/core/render
- compiler
- test/unit
Expand file treeCollapse file tree
Open diff view settings
Collapse file
cypress/integration/sidebar/config.spec.js
Copy file name to clipboardExpand all lines: cypress/integration/sidebar/config.spec.js-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
239 | 239 | |
240 | 240 | |
241 | 241 | |
242 | | - |
243 | 242 | |
244 | 243 | |
245 | 244 | |
|
Collapse file
cypress/snapshots/sidebar/config.spec.js/sidebar.configurations -- go to #helpersid=image-resizing.snap.png
Copy file name to clipboard-88.4 KBBinary file not shown.
Collapse file
+16-1Lines changed: 16 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
81 | 81 | |
82 | 82 | |
83 | 83 | |
84 | | - |
| 84 | + |
| 85 | + |
| 86 | + |
85 | 87 | |
86 | 88 | |
| 89 | + |
87 | 90 | |
88 | 91 | |
89 | 92 | |
| ||
96 | 99 | |
97 | 100 | |
98 | 101 | |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
99 | 114 | |
100 | 115 | |
101 | 116 | |
|
Collapse file
+30-11Lines changed: 30 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file
packages/docsify-server-renderer/package-lock.json
Copy file name to clipboardExpand all lines: packages/docsify-server-renderer/package-lock.json+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file
src/core/render/compiler.js
Copy file name to clipboardExpand all lines: src/core/render/compiler.js+15-118Lines changed: 15 additions & 118 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | | - |
| 1 | + |
4 | 2 | |
5 | 3 | |
6 | 4 | |
7 | 5 | |
8 | 6 | |
9 | | - |
10 | | - |
11 | | - |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
12 | 14 | |
13 | 15 | |
14 | 16 | |
| ||
189 | 191 | |
190 | 192 | |
191 | 193 | |
192 | | - |
| 194 | + |
193 | 195 | |
194 | 196 | |
195 | 197 | |
| ||
224 | 226 | |
225 | 227 | |
226 | 228 | |
227 | | - |
228 | | - |
229 | | - |
230 | | - |
231 | | - |
232 | | - |
233 | | - |
234 | | - |
235 | | - |
236 | | - |
237 | | - |
238 | | - |
239 | | - |
240 | | - |
241 | | - |
242 | | - |
243 | | - |
244 | | - |
245 | | - |
246 | | - |
247 | | - |
248 | | - |
249 | | - |
250 | | - |
251 | | - |
252 | | - |
253 | | - |
254 | | - |
255 | | - |
256 | | - |
257 | | - |
258 | | - |
259 | | - |
260 | | - |
261 | | - |
262 | | - |
263 | | - |
264 | | - |
265 | | - |
266 | | - |
267 | | - |
268 | | - |
269 | | - |
270 | | - |
271 | | - |
272 | | - |
273 | | - |
274 | | - |
275 | | - |
276 | | - |
277 | | - |
278 | | - |
279 | | - |
280 | | - |
281 | | - |
282 | | - |
283 | | - |
284 | | - |
285 | | - |
286 | | - |
287 | | - |
288 | | - |
289 | | - |
290 | | - |
291 | | - |
292 | | - |
293 | | - |
294 | | - |
295 | | - |
296 | | - |
297 | | - |
298 | | - |
299 | | - |
300 | | - |
301 | | - |
302 | | - |
303 | | - |
304 | | - |
305 | | - |
306 | | - |
307 | | - |
308 | | - |
309 | | - |
310 | | - |
311 | | - |
312 | | - |
313 | | - |
314 | | - |
315 | | - |
316 | | - |
317 | | - |
318 | | - |
319 | | - |
320 | | - |
321 | | - |
322 | | - |
323 | | - |
324 | | - |
325 | | - |
326 | | - |
327 | | - |
328 | | - |
329 | | - |
330 | | - |
331 | | - |
332 | | - |
333 | | - |
334 | | - |
335 | | - |
336 | | - |
337 | | - |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
338 | 235 | |
339 | 236 | |
340 | 237 | |
|
Collapse file
src/core/render/compiler/code.js
Copy file name to clipboard+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
0 commit comments