Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch markdown-syntax-highlight-gn Excluding Merge-Ins
This is equivalent to a diff from 738baecbc3 to 924478eb48
2018-02-02
| ||
03:48 | Merge to release RC: GN patches for doctools and markdown. check-in: a43c4df501 user: aku tags: tcllib-1-19-rc | |
03:38 | Merge to trunk: GN patches for doctools and markdown. check-in: 744a6b43a2 user: aku tags: trunk | |
02:33 | Pulling fixes from trunk check-in: f8e9464473 user: hypnotoad tags: hypnotoad | |
2018-02-01
| ||
18:31 | doctools2idx / doctools::idx::{export,import} <B,D> Fixed code typos (variable name), doc typos doctools2toc / doctools::toc::{export,import} s.a. Patch by Gustaf Neumann <[email protected]>, thank you. check-in: 27df9fe99f user: aku tags: doctools-typos-gn | |
04:47 | markdown / markdown <EF> - Applied patch adding syntax highlighting for `fenced code blocks` to the markdown package. Patch received from Gustaf Neumann <[email protected]>, with thanks. Closed-Leaf check-in: 924478eb48 user: aku tags: markdown-syntax-highlight-gn | |
2018-01-24
| ||
20:36 | Tkt [8fd2561785] oauth/oauth <B,D> Merged fix of query default to GET, was POST. check-in: 738baecbc3 user: aku tags: trunk | |
19:11 | Tkt [c247ed5db4] ldap/ldap <B,D>. Merge of fix for protocol error. check-in: 0826350f8d user: aku tags: trunk | |
2017-05-29
| ||
20:56 | Manually applied the patch from the ticket. Further some cleanup and simplification (Use 8.5 features (lassign, {*})) Closed-Leaf check-in: a0ec57b1bd user: aku tags: tkt-8fd2561785-ak | |
Changes to modules/markdown/markdown.man.
|
Changes to modules/markdown/markdown.tcl.
︙ | |||
51 52 53 54 55 56 57 58 59 60 61 62 63 64 | 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 | + + + + + + + + + + + + + + + + + + + + + + + + | # COLLECT REFERENCES array unset ::Markdown::_references array set ::Markdown::_references [collect_references markdown] # PROCESS return [apply_templates markdown] } # # Register a language specific converter. This converter can be # used for fenced code blocks to transform the code block into a # prettified HTML. # proc register {lang_specifier converter} { set ::Markdown::converter($lang_specifier) $converter } # # Return a dict (attribute value pairs) of language specifiers and # the number of occurrences as they were used in fenced code blocks. # proc get_lang_counter {} { return [array get ::Markdown::lang_counter] } # # Reset the language counters of fenced code blocks. # proc reset_lang_counter {} { array unset ::Markdown::lang_counter } ## \private proc collect_references {markdown_var} { upvar $markdown_var markdown set lines [split $markdown \n] set no_lines [llength $lines] |
︙ | |||
108 109 110 111 112 113 114 | 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | - + | set ul_match {^[ ]{0,3}(?:\*(?!\s*\*\s*\*\s*$)|-(?!\s*-\s*-\s*$)|\+) } set ol_match {^[ ]{0,3}\d+\. } # PROCESS MARKDOWN while {$index < $no_lines} { set line [lindex $lines $index] |
︙ | |||
227 228 229 230 231 232 233 | 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 | - + - + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + - + + + + + + | set line [lindex $lines $index] } set code_result [join $code_result \n] append result <pre><code> $code_result \n </code></pre> } |
︙ | |||
747 748 749 750 751 752 753 | 804 805 806 807 808 809 810 811 812 | - + | ## \private proc html_escape {text} { return [string map {& & < < > > \" "} $text] } } |
Changes to modules/markdown/markdown.test.
︙ | |||
408 409 410 411 412 413 414 415 416 417 418 419 | 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | } -result { <ul> <li>asterisk 1 </li></ul> <hr/> } test mdtest-1.10 {fenced code block without language specifier} -body { convert { Here comes a generic example: ``` set x 1 ``` } } -result { <p>Here comes a generic example:</p> <pre class='code'><code>set x 1</code></pre> } test mdtest-1.11 {fenced code block with language specifier} -body { convert { Here comes a Tcl example: ```tcl set x 1 ``` } } -result { <p>Here comes a Tcl example:</p> <pre class='code'><code class='tcl'>set x 1</code></pre> } #------------------------------------------------------------------------- # Cleanup testsuiteCleanup |
Changes to modules/markdown/pkgIndex.tcl.
| 1 | - - - - - - - - - - - + |
|