Add support for litteral tags, simpler regexp.
This commit is contained in:
parent
c2cc0b4599
commit
5924dbb4bb
@ -156,11 +156,7 @@ Get =
|
|||||||
# https://github.com/eksopl/asagi/blob/master/src/main/java/net/easymodo/asagi/Yotsuba.java#L109-138
|
# https://github.com/eksopl/asagi/blob/master/src/main/java/net/easymodo/asagi/Yotsuba.java#L109-138
|
||||||
bq.innerHTML = bq.innerHTML.replace ///
|
bq.innerHTML = bq.innerHTML.replace ///
|
||||||
\n
|
\n
|
||||||
| \[/?b\]
|
| \[/?[a-z]+(:lit)?\]
|
||||||
| \[/?spoiler\]
|
|
||||||
| \[/?code\]
|
|
||||||
| \[/?moot\]
|
|
||||||
| \[/?banned\]
|
|
||||||
///g, (text) ->
|
///g, (text) ->
|
||||||
switch text
|
switch text
|
||||||
when '\n'
|
when '\n'
|
||||||
@ -185,6 +181,8 @@ Get =
|
|||||||
'<strong style="color: red;">'
|
'<strong style="color: red;">'
|
||||||
when '[/banned]'
|
when '[/banned]'
|
||||||
'</strong>'
|
'</strong>'
|
||||||
|
else
|
||||||
|
text.replace ':lit', ''
|
||||||
|
|
||||||
comment = bq.innerHTML
|
comment = bq.innerHTML
|
||||||
# greentext
|
# greentext
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user