model/model_contract: Move contract model representation
[nit.git] / src / doc / term / term.nit
index d653969..7d490e4 100644 (file)
@@ -16,6 +16,7 @@ module term
 
 import commands::commands_parser
 import templates::term_model
+import templates::md_commands
 
 redef class CommandParser
 
@@ -25,8 +26,8 @@ redef class CommandParser
 
                # Translate links to doc commands
                if cmd isa CmdEntityLink then
-                       cmd = new CmdComment(model, filter, mentity_name = query)
-                       var opts = new HashMap[String, String]
+                       cmd = new CmdComment(model, mentity_name = query)
+                       var opts = new CmdOptions
                        var status = cmd.parser_init(query, opts)
                        if not status isa CmdSuccess then error = status
                end