this repo has no description

Merge pull request #22 from TheV360/v360-small-lang-tag

add small and lang tags

authored by

12 and committed by
GitHub
434b0af0 a8963ebe

+15
+7
parse.js
··· 442 } break; case '\\sup': { 443 OPEN('superscript') 444 word_maybe() 445 } break; case '\\b': { 446 OPEN('bold') 447 word_maybe() ··· 490 if (!is_color(color)) 491 color = null 492 OPEN('background_color', {color}) 493 }} 494 } break; case 'STYLE': { 495 let c = check_style(token, text.charAt(match.index-1)||"\n", text.charAt(REGEX.lastIndex)||"\n")
··· 442 } break; case '\\sup': { 443 OPEN('superscript') 444 word_maybe() 445 + } break; case '\\small': { 446 + OPEN('small') 447 + word_maybe() 448 } break; case '\\b': { 449 OPEN('bold') 450 word_maybe() ··· 493 if (!is_color(color)) 494 color = null 495 OPEN('background_color', {color}) 496 + } break; case '\\lang': { 497 + let [lang] = rargs 498 + OPEN('language', {lang}) 499 + word_maybe() 500 }} 501 } break; case 'STYLE': { 502 let c = check_style(token, text.charAt(match.index-1)||"\n", text.charAt(REGEX.lastIndex)||"\n")
+8
render.js
··· 297 298 superscript: 𐀶`<sup>`, 299 300 /*anchor: function({name}) { 301 let e = this() 302 e.id = "Markup-anchor-"+name ··· 326 e.dataset.bgcolor = color 327 return e 328 }.bind(𐀶`<span class='M-background'>`), 329 330 invalid: function({text, reason}) { 331 let e = this()
··· 297 298 superscript: 𐀶`<sup>`, 299 300 + small: 𐀶`<small>`, 301 + 302 /*anchor: function({name}) { 303 let e = this() 304 e.id = "Markup-anchor-"+name ··· 328 e.dataset.bgcolor = color 329 return e 330 }.bind(𐀶`<span class='M-background'>`), 331 + 332 + language: function({lang}) { 333 + let e = this() 334 + e.lang = lang 335 + return e 336 + }.bind(𐀶`<span>`), 337 338 invalid: function({text, reason}) { 339 let e = this()