example_01.bmx 707 B

12345678910111213141516171819202122232425262728293031323334353637
  1. SuperStrict
  2. Framework brl.standardio
  3. Import text.markdown
  4. Local parser:TParser = New TParser
  5. TMarkdown.Parse(parser, """
  6. Hello *World*!
  7. * First
  8. * Second
  9. """)
  10. Type TParser Implements IMDParser
  11. Method EnterBlock:Int(block:TMDBlock)
  12. Print "EnterBlock : " + block.GetType().ToString()
  13. End Method
  14. Method LeaveBlock:Int(block:TMDBlock)
  15. Print "LeaveBlock : " + block.GetType().ToString()
  16. End Method
  17. Method EnterSpan:Int(span:TMDSpan)
  18. Print "EnterSpan : " + span.GetType().ToString()
  19. End Method
  20. Method LeaveSpan:Int(span:TMDSpan)
  21. Print "LeaveSpan : " + span.GetType().ToString()
  22. End Method
  23. Method Text:Int(text:String, textType:EMDTextType)
  24. Print "Text : " + text
  25. End Method
  26. End Type