improve to integrate to website
This commit is contained in:
parent
46af3c6fa9
commit
b90362a6e8
2 changed files with 27 additions and 5 deletions
|
|
@ -243,6 +243,7 @@ module YAMD
|
|||
end
|
||||
|
||||
if state.line.start_with?("#!")
|
||||
flushStrBuf.()
|
||||
state.consume(2)
|
||||
|
||||
state.output.add_code_nl("__renderer." + state.line.strip + " {")
|
||||
|
|
@ -252,6 +253,7 @@ module YAMD
|
|||
|
||||
next
|
||||
elsif state.line.start_with?('#$')
|
||||
flushStrBuf.()
|
||||
state.consume(2)
|
||||
|
||||
line = state.line.strip
|
||||
|
|
@ -270,9 +272,9 @@ module YAMD
|
|||
|
||||
state.nextLine
|
||||
next
|
||||
elsif state.line.start_with?("#. ")
|
||||
elsif state.line.start_with?("#. ") or state.line == "#."
|
||||
flushStrBuf.()
|
||||
state.consume(3)
|
||||
state.consume(2)
|
||||
|
||||
state.output.add_code_nl("__renderer.list_item {")
|
||||
parseContent state, ctx.indented
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue