| r2715 vs r2716 | ||
|---|---|---|
| ... | ... | |
| 1356 | 1356 | {{{#!wiki style="display: none" |
| 1357 | 1357 | {{{#!if input="\'\'\'강조\'\'\'\'\'기울임\'\'\-\-취소선\-\-\_\_밑줄\_\_\,\,아래\,\,\^\^위\^\^" |
| 1358 | 1358 | }}} |
| 1359 | {{{#!if | |
| 1360 | }}}{{{#!if | |
| 1361 | {{{#!if | |
| 1362 | }}}{{{#!if | |
| 1363 | {{{#!if input = input.substring(0, | |
| 1359 | {{{#!if Open=input.indexOf("'''") | |
| 1360 | }}}{{{#!if Open!=-1 | |
| 1361 | {{{#!if Close=input.substring(Open+3).indexOf("'''") | |
| 1362 | }}}{{{#!if Close!=-1, Text=input.substr(Open+3,Close) | |
| 1363 | {{{#!if input = input.substring(0,Open)+'<b>'+Text.trim()+'</b>'+input.substr(Open+3+Close+3) | |
| 1364 | 1364 | }}}}}} |
| 1365 | 1365 | }}} |
| 1366 | {{{#!if | |
| 1367 | }}}{{{#!if | |
| 1368 | {{{#!if | |
| 1369 | }}}{{{#!if | |
| 1370 | {{{#!if input = input.substring(0, | |
| 1366 | {{{#!if Open=input.indexOf("''") | |
| 1367 | }}}{{{#!if Open!=-1 | |
| 1368 | {{{#!if Close=input.substring(Open+2).indexOf("''") | |
| 1369 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 1370 | {{{#!if input = input.substring(0,Open)+'<em>'+Text.trim()+'</em>'+input.substr(Open+2+Close+2) | |
| 1371 | 1371 | }}}}}} |
| 1372 | 1372 | }}} |
| 1373 | {{{#!if | |
| 1374 | }}}{{{#!if | |
| 1375 | {{{#!if | |
| 1376 | }}}{{{#!if | |
| 1377 | {{{#!if input = input.substring(0, | |
| 1373 | {{{#!if Open=input.indexOf("--") | |
| 1374 | }}}{{{#!if Open!=-1 | |
| 1375 | {{{#!if Close=input.substring(Open+2).indexOf("--") | |
| 1376 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 1377 | {{{#!if input = input.substring(0,Open)+'<del>'+Text.trim()+'</del>'+input.substr(Open+2+Close+2) | |
| 1378 | 1378 | }}}}}} |
| 1379 | 1379 | }}} |
| 1380 | {{{#!if | |
| 1381 | }}}{{{#!if | |
| 1382 | {{{#!if | |
| 1383 | }}}{{{#!if | |
| 1384 | {{{#!if input = input.substring(0, | |
| 1380 | {{{#!if Open=input.indexOf("__") | |
| 1381 | }}}{{{#!if Open!=-1 | |
| 1382 | {{{#!if Close=input.substring(Open+2).indexOf("__") | |
| 1383 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 1384 | {{{#!if input = input.substring(0,Open)+'<u>'+Text.trim()+'</u>'+input.substr(Open+2+Close+2) | |
| 1385 | 1385 | }}}}}} |
| 1386 | 1386 | }}} |
| 1387 | {{{#!if | |
| 1388 | }}}{{{#!if | |
| 1389 | {{{#!if | |
| 1390 | }}}{{{#!if | |
| 1391 | {{{#!if input = input.substring(0, | |
| 1387 | {{{#!if Open=input.indexOf(",,") | |
| 1388 | }}}{{{#!if Open!=-1 | |
| 1389 | {{{#!if Close=input.substring(Open+2).indexOf(",,") | |
| 1390 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 1391 | {{{#!if input = input.substring(0,Open)+'<sub>'+Text.trim()+'</sub>'+input.substr(Open+2+Close+2) | |
| 1392 | 1392 | }}}}}} |
| 1393 | 1393 | }}} |
| 1394 | {{{#!if | |
| 1395 | }}}{{{#!if | |
| 1396 | {{{#!if | |
| 1397 | }}}{{{#!if | |
| 1398 | {{{#!if input = input.substring(0, | |
| 1394 | {{{#!if Open=input.indexOf("^^") | |
| 1395 | }}}{{{#!if Open!=-1 | |
| 1396 | {{{#!if Close=input.substring(Open+2).indexOf("^^") | |
| 1397 | }}}{{{#!if Close!=-1, Text=input.substr(Open+2,Close) | |
| 1398 | {{{#!if input = input.substring(0,Open)+'<sup>'+Text.trim()+'</sup>'+input.substr(Open+2+Close+2) | |
| 1399 | 1399 | }}}}}} |
| 1400 | 1400 | }}} |
| 1401 | }}} | |
| 1401 | 1402 | |
| 1403 | output: {{{#!html @input@}}} | |
| 1402 | 1404 | |
| 1405 | == 나무나무마크구상4 == | |
| 1406 | * 할거 : math | |
| 1407 | ## * date(datetime) dday pagecount 되겠냐? | |
| 1408 | input="냥\[br]냥\[clearfix]d\[ruby(글자,ruby=루비,color=red)]\[ruby(글자,ruby=루비루비)]sid" | |
| 1409 | {{{#!wiki style="display: none" | |
| 1410 | {{{#!if input="냥\[br]냥\[clearfix]d[ruby(글자,ruby=루비,color=red)][ruby(글자,ruby=루비루비)]sid" | |
| 1403 | 1411 | }}} |
| 1412 | {{{#!if Macro=input.indexOf("[br]") | |
| 1413 | }}}{{{#!if Macro!=-1 | |
| 1414 | {{{#!if input = input.substring(0,Macro)+'<br>'+input.substr(Macro+4) | |
| 1415 | }}}}}} | |
| 1416 | {{{#!if Macro=input.indexOf("[clearfix]") | |
| 1417 | }}}{{{#!if Macro!=-1 | |
| 1418 | {{{#!if input = input.substring(0,Macro)+'<div style="clear: both">'+input.substr(Macro+10) | |
| 1419 | }}}}}} | |
| 1420 | {{{#!if MacroOpen=input.indexOf("\[ruby\("), Color='' | |
| 1421 | ##)] | |
| 1422 | }}}{{{#!if MacroOpen!=-1 | |
| 1423 | {{{#!if MacroClose=input.substring(MacroOpen).indexOf(")]") | |
| 1424 | }}}{{{#!if MacroClose!=-1 | |
| 1425 | {{{#!if RubyRaw=input.substr(MacroOpen,MacroClose), Comma1 = RubyRaw.indexOf(',ruby='), Comma2 = RubyRaw.substr().indexOf(',color='), Text = RubyRaw.substring(6,Comma1) | |
| 1426 | }}}{{{#!if Comma2==-1 | |
| 1427 | {{{#!if Ruby = RubyRaw.substring(Comma1+6,MacroClose) | |
| 1428 | }}} | |
| 1429 | }}}{{{#!if Comma2!=-1 | |
| 1430 | {{{#!if Ruby = RubyRaw.substring(Comma1+6,Comma2) | |
| 1431 | }}}{{{#!if Color = RubyRaw.substr(Comma2+7,MacroClose) | |
| 1432 | }}} | |
| 1433 | }}} | |
| 1434 | {{{#!if input = input.substring(0,MacroOpen)+'<ruby>'+Text+'<rt><span style="color:'+Color+'">'+Ruby+'</span></rt></ruby>'+input.substr(MacroClose+MacroOpen+2) | |
| 1435 | }}} | |
| 1436 | }}} | |
| 1437 | }}} | |
| 1438 | {{{#!if MacroOpen=input.indexOf("\[ruby\("), Color='' | |
| 1439 | ##)] | |
| 1440 | }}}{{{#!if MacroOpen!=-1 | |
| 1441 | {{{#!if MacroClose=input.substring(MacroOpen).indexOf(")]") | |
| 1442 | }}}{{{#!if MacroClose!=-1 | |
| 1443 | {{{#!if RubyRaw=input.substr(MacroOpen,MacroClose), Comma1 = RubyRaw.indexOf(',ruby='), Comma2 = RubyRaw.substr().indexOf(',color='), Text = RubyRaw.substring(6,Comma1) | |
| 1444 | }}}{{{#!if Comma2==-1 | |
| 1445 | {{{#!if Ruby = RubyRaw.substring(Comma1+6,MacroClose) | |
| 1446 | }}} | |
| 1447 | }}}{{{#!if Comma2!=-1 | |
| 1448 | {{{#!if Ruby = RubyRaw.substring(Comma1+6,Comma2) | |
| 1449 | }}}{{{#!if Color = RubyRaw.substr(Comma2+7,MacroClose) | |
| 1450 | }}} | |
| 1451 | }}} | |
| 1452 | {{{#!if input = input.substring(0,MacroOpen)+'<ruby>'+Text+'<rt><span style="color:'+Color+'">'+Ruby+'</span></rt></ruby>'+input.substr(MacroClose+MacroOpen+2) | |
| 1453 | }}} | |
| 1454 | }}} | |
| 1455 | }}} | |
| 1404 | 1456 | |
| 1405 | ||
| 1406 | ||
| 1457 | }}} | |
| 1407 | 1458 | output: {{{#!html @input@}}} |
| 1408 | 1459 | == ㅁㄴㅇㄹ == |
| 1409 | 1460 | [include(a)]''''''[include(a)][include(a)] |
| ... | ... |