Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From d88444e265f3f78f To 67060c509079a8b7
2020-09-17
| ||
23:44 | pikchr command doc updates. ... (check-in: 82a0b517 user: stephan tags: trunk) | |
23:25 | Removed some console.debug() output and fixed extraneous breaks which caused markdown_to_html() to stop afer processing a single tag. ... (check-in: 67060c50 user: stephan tags: trunk) | |
23:11 | Renovated the pikchr click handling as discussed off-list with drh. ... (check-in: 938bb6c7 user: stephan tags: trunk) | |
21:09 | Toggle Pikchr between SVG and source code using ctrl-click. Or if the Pikchr was created using the "toggle" tag, an plain old single-click will suffice. ... (check-in: d88444e2 user: drh tags: trunk) | |
19:31 | Misuse of a potentially unsigned value, caught by clang. Only affected platforms where char is unsigned by default. ... (check-in: 5c92bbfc user: stephan tags: trunk) | |
Changes to src/default.css.
︙ | |||
1386 1387 1388 1389 1390 1391 1392 | 1386 1387 1388 1389 1390 1391 1392 1393 1394 | - - | noscript > .error { /* Part of the style_emit_noscript_for_js_page() interface. */ padding: 1em; font-size: 150%; } .pikchr-src { /* source code view for a pikchr (see fossil.pikchr.js) */ box-sizing: border-box/*reduces UI shift*/; |
Changes to src/fossil.dom.js.
︙ | |||
711 712 713 714 715 716 717 | 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 | - - + + | }; /** Parses a string as HTML. Usages: |
︙ |
Changes to src/fossil.page.pikchrshow.js.
︙ | |||
320 321 322 323 324 325 326 | 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | - + + | D.enable(this.e.previewModeToggle, this.e.markupAlignRadios); let label, svg; switch(this.previewMode){ case 0: label = "SVG"; f.showMarkupAlignment(false); D.parseHtml(D.clearElement(preTgt), P.response.raw); |
︙ |
Changes to src/fossil.pikchr.js.
1 2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 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 | - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - - - + + + + - - + - - - - + - - + - - + - - - - + + + + + - - - - + + + + + + + + + + + + + + - - + - + - - - + - - - + + - + - + - - - - - - + - - - - - - - + - - - + + - - - - - + - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - + - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | (function(F/*window.fossil object*/){ "use strict"; |
Changes to src/markdown_html.c.
︙ | |||
340 341 342 343 344 345 346 | 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 | - - - + + + - - - - - - - - - - - + + + + + + - - + + - - + + - - + + - - + + - - - - - - + + + + + + + + - - - - - - - - - + - - - - - - - - - + + - - - - - - - - + + | ** text and insert the result in place of the original. */ void pikchr_to_html( Blob *ob, /* Write the generated SVG here */ const char *zSrc, int nSrc, /* The Pikchr source text */ const char *zArg, int nArg /* Addition arguments */ ){ |
︙ |
Changes to src/pikchrshow.c.
︙ | |||
31 32 33 34 35 36 37 38 39 40 | 31 32 33 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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | + + - - - - - + + + + + + - + - - + + - + + + + + + + + + + + + + - + + + - - - + + + - + + + - + - + + + | #define PIKCHR_PROCESS_SRC 0x10 #define PIKCHR_PROCESS_SRC_HIDDEN 0x20 #define PIKCHR_PROCESS_DIV 0x40 #define PIKCHR_PROCESS_DIV_INDENT 0x0100 #define PIKCHR_PROCESS_DIV_CENTER 0x0200 #define PIKCHR_PROCESS_DIV_FLOAT_LEFT 0x0400 #define PIKCHR_PROCESS_DIV_FLOAT_RIGHT 0x0800 #define PIKCHR_PROCESS_DIV_TOGGLE 0x1000 #define PIKCHR_PROCESS_DIV_SOURCE 0x2000 #endif /* |
︙ | |||
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | + + + + + + + + - + + + + - - - + + | }else{ int w = 0, h = 0; const char * zContent = blob_str(&bIn); char *zOut; zOut = pikchr(zContent, "pikchr", 0, &w, &h); if( w>0 && h>0 ){ const char * zClassToggle = ""; const char * zClassSource = ""; const char *zNonce = (PIKCHR_PROCESS_NONCE & pikFlags) ? safe_html_nonce(1) : 0; if(zNonce){ blob_append(pOut, zNonce, -1); } if(PIKCHR_PROCESS_DIV & pikFlags){ Blob css = empty_blob; blob_appendf(&css, "max-width:%dpx;", w); if(PIKCHR_PROCESS_DIV_CENTER & pikFlags){ blob_append(&css, "display:block;margin-auto;", -1); }else if(PIKCHR_PROCESS_DIV_INDENT & pikFlags){ blob_append(&css, "margin-left:4em", -1); }else if(PIKCHR_PROCESS_DIV_FLOAT_LEFT & pikFlags){ blob_append(&css, "float:left;padding=4em;", -1); }else if(PIKCHR_PROCESS_DIV_FLOAT_RIGHT & pikFlags){ blob_append(&css, "float:right;padding=4em;", -1); } if(PIKCHR_PROCESS_DIV_TOGGLE & pikFlags){ zClassToggle = " toggle"; } if(PIKCHR_PROCESS_DIV_SOURCE & pikFlags){ zClassSource = " source"; } |
︙ | |||
355 356 357 358 359 360 361 | 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 | - + | ** ** -div-center Like -div but centers the div. ** ** -div-left Like -div but floats the div left. ** ** -div-right Like -div but floats the div right. ** |
︙ | |||
397 398 399 400 401 402 403 | 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 | - + + + + + + + | Blob bIn = empty_blob; Blob bOut = empty_blob; const char * zInfile = "-"; const char * zOutfile = "-"; const int fTh1 = find_option("th",0,0)!=0; const int fNosvg = find_option("th-nosvg",0,0)!=0; int isErr = 0; |
︙ |