사용자
nyangx3/연습장(비교)
| r104 vs r105 | ||
|---|---|---|
| ... | ... | |
| 104 | 104 | * 편집기에서 문법 하이라이팅 버그가 있을 시, #\#)]를 추가하는 등으로 해결할 수 있다.}}}{{{#!if if='나무나무마크' |
| 105 | 105 | {{{#!wiki style="display: none" |
| 106 | 106 | ############################## |
| 107 | {{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink='' | |
| 107 | {{{#!if Open=input.indexOf("'''") | |
| 108 | }}}{{{#!if Open!=-1 | |
| 109 | {{{#!if Close=input.substring(Open+3).indexOf("'''") | |
| 110 | }}}{{{#!if Close!=-1, Text=input.substr(Open+3,Close) | |
| 111 | {{{#!if input = input.substring(0,Open)+'<b>'+Text.trim()+'</b>'+input.substr(Open+3+Close+3) | |
| 112 | }}}}}} | |
| 113 | }}} | |
| 114 | {{{#!if Open=input.indexOf("''") | |
| 115 | }}}{{{#!if Open!=-1 | |
| 116 | {{{#!if Close=input.substring(Open+2).indexOf("''") | |
| 117 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 118 | {{{#!if input = input.substring(0,Open)+'<em>'+Text.trim()+'</em>'+input.substr(Open+2+Close+2) | |
| 119 | }}}}}} | |
| 120 | }}} | |
| 121 | {{{#!if Open=input.indexOf("--") | |
| 122 | }}}{{{#!if Open!=-1 | |
| 123 | {{{#!if Close=input.substring(Open+2).indexOf("--") | |
| 124 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 125 | {{{#!if input = input.substring(0,Open)+'<del>'+Text.trim()+'</del>'+input.substr(Open+2+Close+2) | |
| 126 | }}}}}} | |
| 127 | }}} | |
| 128 | {{{#!if Open=input.indexOf("__") | |
| 129 | }}}{{{#!if Open!=-1 | |
| 130 | {{{#!if Close=input.substring(Open+2).indexOf("__") | |
| 131 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 132 | {{{#!if input = input.substring(0,Open)+'<u>'+Text.trim()+'</u>'+input.substr(Open+2+Close+2) | |
| 133 | }}}}}} | |
| 134 | }}} | |
| 135 | {{{#!if Open=input.indexOf(",,") | |
| 136 | }}}{{{#!if Open!=-1 | |
| 137 | {{{#!if Close=input.substring(Open+2).indexOf(",,") | |
| 138 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 139 | {{{#!if input = input.substring(0,Open)+'<sub>'+Text.trim()+'</sub>'+input.substr(Open+2+Close+2) | |
| 140 | }}}}}} | |
| 141 | }}} | |
| 142 | {{{#!if Open=input.indexOf("^^") | |
| 143 | }}}{{{#!if Open!=-1 | |
| 144 | {{{#!if Close=input.substring(Open+2).indexOf("^^") | |
| 145 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 146 | {{{#!if input = input.substring(0,Open)+'<sup>'+Text.trim()+'</sup>'+input.substr(Open+2+Close+2) | |
| 147 | }}}}}} | |
| 148 | }}} | |
| 149 | ################################################################################## 링크 | |
| 150 | {{{#!if DarkInput=input | |
| 151 | }}} | |
| 152 | {{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', DarkLinkColor='#e69720', outLink='' | |
| 108 | 153 | }}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]') |
| 109 | 154 | }}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2) |
| 110 | 155 | }}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose |
| ... | ... | |
| 146 | 191 | {{{#!if href = 'https://theseed.io/w/'+href |
| 147 | 192 | }}} |
| 148 | 193 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) |
| 194 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + DarkLinkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) | |
| 149 | 195 | }}} |
| 150 | 196 | }}} |
| 151 | 197 | ########################### |
| ... | ... | |
| 191 | 237 | {{{#!if href = 'https://theseed.io/w/'+href |
| 192 | 238 | }}} |
| 193 | 239 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) |
| 240 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + DarkLinkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) | |
| 194 | 241 | }}} |
| 195 | 242 | }}} |
| 196 | 243 | ########################### |
| ... | ... | |
| 236 | 283 | {{{#!if href = 'https://theseed.io/w/'+href |
| 237 | 284 | }}} |
| 238 | 285 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) |
| 286 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + DarkLinkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) | |
| 239 | 287 | }}} |
| 240 | 288 | }}} |
| 241 | 289 | ########################### |
| ... | ... | |
| 281 | 329 | {{{#!if href = 'https://theseed.io/w/'+href |
| 282 | 330 | }}} |
| 283 | 331 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) |
| 332 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + DarkLinkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) | |
| 284 | 333 | }}} |
| 285 | 334 | }}} |
| 286 | 335 | ########################### |
| ... | ... | |
| 326 | 375 | {{{#!if href = 'https://theseed.io/w/'+href |
| 327 | 376 | }}} |
| 328 | 377 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) |
| 378 | }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -17px' + outLink + '"><a href="' + href + '"><div style="color: ' + DarkLinkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2) | |
| 329 | 379 | }}} |
| 330 | 380 | }}} |
| 331 | ############################################## | |
| 332 | {{{#!if Open=input.indexOf("'''") | |
| 333 | }}}{{{#!if Open!=-1 | |
| 334 | {{{#!if Close=input.substring(Open+3).indexOf("'''") | |
| 335 | }}}{{{#!if Close!=-1, Text=input.substr(Open+3,Close) | |
| 336 | {{{#!if input = input.substring(0,Open)+'<b>'+Text.trim()+'</b>'+input.substr(Open+3+Close+3) | |
| 337 | }}}}}} | |
| 338 | }}} | |
| 339 | {{{#!if Open=input.indexOf("''") | |
| 340 | }}}{{{#!if Open!=-1 | |
| 341 | {{{#!if Close=input.substring(Open+2).indexOf("''") | |
| 342 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 343 | {{{#!if input = input.substring(0,Open)+'<em>'+Text.trim()+'</em>'+input.substr(Open+2+Close+2) | |
| 344 | }}}}}} | |
| 345 | }}} | |
| 346 | {{{#!if Open=input.indexOf("--") | |
| 347 | }}}{{{#!if Open!=-1 | |
| 348 | {{{#!if Close=input.substring(Open+2).indexOf("--") | |
| 349 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 350 | {{{#!if input = input.substring(0,Open)+'<del>'+Text.trim()+'</del>'+input.substr(Open+2+Close+2) | |
| 351 | }}}}}} | |
| 352 | }}} | |
| 353 | {{{#!if Open=input.indexOf("__") | |
| 354 | }}}{{{#!if Open!=-1 | |
| 355 | {{{#!if Close=input.substring(Open+2).indexOf("__") | |
| 356 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 357 | {{{#!if input = input.substring(0,Open)+'<u>'+Text.trim()+'</u>'+input.substr(Open+2+Close+2) | |
| 358 | }}}}}} | |
| 359 | }}} | |
| 360 | {{{#!if Open=input.indexOf(",,") | |
| 361 | }}}{{{#!if Open!=-1 | |
| 362 | {{{#!if Close=input.substring(Open+2).indexOf(",,") | |
| 363 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 364 | {{{#!if input = input.substring(0,Open)+'<sub>'+Text.trim()+'</sub>'+input.substr(Open+2+Close+2) | |
| 365 | }}}}}} | |
| 366 | }}} | |
| 367 | {{{#!if Open=input.indexOf("^^") | |
| 368 | }}}{{{#!if Open!=-1 | |
| 369 | {{{#!if Close=input.substring(Open+2).indexOf("^^") | |
| 370 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 371 | {{{#!if input = input.substring(0,Open)+'<sup>'+Text.trim()+'</sup>'+input.substr(Open+2+Close+2) | |
| 372 | }}}}}} | |
| 373 | }}} | |
| 374 | ################################################################################## | |
| 375 | 381 | {{{#!if Emlist = {'+1':'1.28889em','+2':'1.38889em','+3':'1.48144em','+4':'1.57400em','+5':'1.66667em','-1':'0.92589em','-2':'0.83333em','-3':'0.74067em','-4':'0.64811em','-5':'0.62222em'} |
| 376 | }}}{{{#!if DarkInput=input | |
| 377 | 382 | }}} |
| 378 | 383 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true |
| 379 | 384 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
| ... | ... |