improve to integrate to website

This commit is contained in:
kp2pml30 2025-03-20 22:23:30 +04:00
parent 46af3c6fa9
commit b90362a6e8
2 changed files with 27 additions and 5 deletions

View file

@ -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