Commit fe736b4b34c1a00b7daf22fbe6febc86658b6399

Authored by David René
1 parent 8806f4d9

Add mailto in MAML

Showing 1 changed file with 12 additions and 5 deletions   Show diff stats
anubis_dev/library/doc_tools/maml.anubis
... ... @@ -8,10 +8,15 @@
8 8 *Copyright* Copyright (c) Alain Prouté 2005.
9 9  
10 10  
11   - *Author* Alain Prouté
12   -
13   -
  11 + *Authors* AP Alain Prouté
  12 + DR David René
  13 +
  14 + *history*
  15 + 2006 06 28 DR - Add new tag mailto()() with 2 arguments
  16 + 2005 AP - Initial implementation
14 17  
  18 + *TODO*
  19 + DR translate mailto towards Latex
15 20  
16 21  
17 22 This is version 2 of this tool.
... ... @@ -61,7 +66,8 @@ public define List(MAMLMark)
61 66 mark("image", 1),
62 67 mark("code", 1),
63 68 mark("center", 1),
64   - mark("link", 1),
  69 + mark("link", 1),
  70 + mark("mailto", 2), //mail
65 71 mark("list", 1),
66 72 mark("sub", 1),
67 73 mark("sup", 1),
... ... @@ -544,6 +550,7 @@ public define Text
544 550 "</td>"-
545 551 "</tr>"-
546 552 "</table></center></span><br>" else
  553 + if name = "mailto" then t-"<a href=\"mailto:"-to_HTML(a1)-"\">" -to_HTML(a2)- "</a>" else
547 554 alert,
548 555  
549 556 mark(String name,MAML a1,MAML a2,MAML a3) then
... ... @@ -1172,4 +1179,4 @@ public define Result(Int32,String)
1172 1179 String public_dir
1173 1180 ) =
1174 1181 convert_MAML_to_LaTeX(s,site_name,public_dir,(One u) |-> "",(One u) |-> "").
1175   -
1176 1182 \ No newline at end of file
  1183 +
... ...