/test/marks/inline.t2t

http://txt2tags.googlecode.com/ · Unknown · 48 lines · 39 code · 9 blank · 0 comment · 0 complexity · c4d1de9d592bdf8ebf90fb6717804ca6 MD5 · raw file

  1. %!includeconf: test.conf
  2. BODYINIT
  3. %%% Syntax: Marks are greedy and must be "glued" with contents
  4. %% GLUED: The contents must be glued with the marks, no spaces
  5. %% between them. Right after the opening mark there must be a
  6. %% non-blank character, as well as right before the closing mark.
  7. %%
  8. %% GREEDY: If the contents boundary character is the same as
  9. %% the mark character, it is considered contents, not mark.
  10. %% So ""****bold****"" turns to ""<B>**bold**</B>"" in HTML.
  11. i) **b** //i// __u__ --s-- ``m`` ""r"" ''t''
  12. i) **bo** //it// __un__ --st-- ``mo`` ""ra"" ''tg''
  13. i) **bold** //ital// __undr__ --strk-- ``mono`` ""raw"" ''tggd''
  14. i) **bo ld** //it al// __un dr__ --st rk-- ``mo no`` ""r aw"" ''tg gd''
  15. i) **bo * ld** //it / al// __un _ dr__ --st - rk-- ``mo ` no`` ""r " aw"" ''tg ' gd''
  16. i) **bo **ld** //it //al// __un __dr__ --st --rk-- ``mo ``no`` ""r ""aw"" ''tg ''gd''
  17. i) **bo ** ld** //it // al// __un __ dr__ --st -- rk-- ``mo `` no`` ""r "" aw"" ''tg '' gd''
  18. i) ****bold**** ////ital//// ____undr____ ----strk---- ````mono```` """"raw"""" ''''tggd''''
  19. i) ***bold*** ///ital/// ___undr___ ---strk--- ```mono``` """raw""" '''tggd'''
  20. %%% Syntax: Repetition is greedy
  21. %% When the mark character is repeated many times,
  22. %% the contents are expanded to the largest possible.
  23. %% Thats why they are greedy, the outer marks are
  24. %% the ones used.
  25. i) ***** ///// _____ ----- ````` """"" '''''
  26. i) ****** ////// ______ ------ `````` """""" ''''''
  27. i) ******* /////// _______ ------- ``````` """"""" '''''''
  28. i) ******** //////// ________ -------- ```````` """""""" ''''''''
  29. i) ********* ///////// _________ --------- ````````` """"""""" '''''''''
  30. i) ********** ////////// __________ ---------- `````````` """""""""" ''''''''''
  31. %%% Invalid: No contents
  32. i) **** //// ____ ---- ```` """" ''''
  33. i) ** ** // // __ __ -- -- `` `` "" "" '' ''
  34. %%% Invalid: Contents not "glued" with marks
  35. %% Spaces between the marks and the contents in any side
  36. %% invalidate the mark.
  37. i) ** bold** // ital// __ undr__ -- strk-- `` mono`` "" raw"" '' tggd''
  38. i) **bold ** //ital // __undr __ --strk -- ``mono `` ""raw "" ''tggd ''
  39. i) ** bold ** // ital // __ undr __ -- strk -- `` mono `` "" raw "" '' tggd ''