r2686 vs r2687
......
207207
== 나무나무마크구상2 ==
208208
할거 : wiki/darkstyle/+/-/#fff
209209
리터럴귀찮음 if folding syntax는 될리가없음
210
input=냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue"<br>냥\}\}\}
210
input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}'
211211
##괄호를 ) 를 찾고 (를 나중에 찾는 방식이라(이게 로직이 더 간단함 근데 처리부분 길어지면 바꿀수도) input에 다른 거 오면 창남ㅇㅇ
212212
213213
{{{#!wiki style="display: none"
214
{{{#!if input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue"<br>냥\}\}\}'
214
{{{#!if input='냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!wiki style="color: blue; display: inline"<br>냥텍스트\}\}\}'
215215
}}}{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
216216
{{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
217217
{{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
......
250250
{{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
251251
}}}
252252
}}}
253
{{{#!if a=input.substr(ParOpen, 9) == '\{\{\{#!wiki'
254
{{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
255
}}}{{{#!if BrL != -1 && StyleL!=-1
256
{{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
257
}}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
258
}}}
259
}}}
260
}}}
253261
}}}
254262
}}}
255263
########################################################################
......
292300
}}}
293301
}}}
294302
{{{#!if a=input.substr(ParOpen, 9) == '\{\{\{#!wiki'
295
{{{#!if BrL = input.substring()
303
{{{#!if BrL = input.substring(ParOpen,ParClose).indexOf('<br>'), StyleL = input.substring(ParOpen,ParClose).indexOf('style=')
304
}}}{{{#!if BrL != -1 && StyleL!=-1
305
{{{#!if Text = input.substring(ParOpen+BrL+4,ParClose), Style=input.substr(ParOpen+StyleL,BrL-StyleL)
306
}}}{{{#!if input = input.substring(0,ParOpen)+'<div '+Style+'>'+Text.trim()+'</div>'+input.substr(ParClose+3)
307
}}}
296308
}}}
297309
}}}
298310
}}}
299311
}}}
300312
##############################
301
313
}}}
302314
output: {{{#!html @input@}}}
303315
== ㅁㄴㅇㄹ ==
304316
[include(a)]''''''[include(a)][include(a)]
......