| r2685 vs r2686 | ||
|---|---|---|
| ... | ... | |
| 207 | 207 | == 나무나무마크구상2 == |
| 208 | 208 | 할거 : wiki/darkstyle/+/-/#fff |
| 209 | 209 | 리터럴귀찮음 if folding syntax는 될리가없음 |
| 210 | input=냥\{\{\{#!html | |
| 210 | input=냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue"<br>냥\}\}\} | |
| 211 | 211 | ##괄호를 ) 를 찾고 (를 나중에 찾는 방식이라(이게 로직이 더 간단함 근데 처리부분 길어지면 바꿀수도) input에 다른 거 오면 창남ㅇㅇ |
| 212 | 212 | |
| 213 | 213 | {{{#!wiki style="display: none" |
| 214 | {{{#!if input='냥\{\{\{#!html | |
| 214 | {{{#!if input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue"<br>냥\}\}\}' | |
| 215 | 215 | }}}{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true |
| 216 | 216 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
| 217 | 217 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
| ... | ... | |
| 244 | 244 | }}} |
| 245 | 245 | }}} |
| 246 | 246 | }}} |
| 247 | ########################### | |
| 247 | 248 | {{{#!if Match |
| 248 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 249 | {{{#!if a=input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 250 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 251 | }}} | |
| 252 | }}} | |
| 249 | 253 | }}} |
| 250 | ||
| 251 | ||
| 254 | }}} | |
| 255 | ######################################################################## | |
| 256 | {{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true | |
| 252 | 257 | {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen |
| 253 | 258 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') |
| 254 | 259 | }}} |
| ... | ... | |
| 280 | 285 | }}} |
| 281 | 286 | }}} |
| 282 | 287 | }}} |
| 288 | ########################### | |
| 283 | 289 | {{{#!if Match |
| 284 | {{{#!if | |
| 285 | ||
| 286 | ||
| 287 | ||
| 288 | ||
| 289 | ||
| 290 | ||
| 291 | ||
| 292 | ||
| 290 | {{{#!if a=input.substr(ParOpen, 9) == '\{\{\{#!html' | |
| 291 | {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3) | |
| 292 | }}} | |
| 293 | 293 | }}} |
| 294 | ||
| 295 | {{{#!if | |
| 294 | {{{#!if a=input.substr(ParOpen, 9) == '\{\{\{#!wiki' | |
| 295 | {{{#!if BrL = input.substring() | |
| 296 | 296 | }}} |
| 297 | 297 | }}} |
| 298 | ############################ | |
| 299 | {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{') | |
| 300 | 298 | }}} |
| 301 | ||
| 302 | ||
| 303 | ||
| 304 | ||
| 305 | ||
| 306 | ||
| 307 | ||
| 308 | ############################ | |
| 309 | ||
| 310 | ||
| 311 | ||
| 312 | ||
| 313 | ||
| 314 | ||
| 315 | ||
| 316 | ||
| 317 | ||
| 318 | ||
| 319 | ||
| 320 | ||
| 321 | ||
| 322 | ||
| 323 | ||
| 299 | }}} | |
| 300 | ############################## | |
| 324 | 301 | |
| 325 | 302 | output: {{{#!html @input@}}} |
| 326 | 303 | == ㅁㄴㅇㄹ == |
| ... | ... |