From: Jean Privat Date: Wed, 18 Jan 2017 20:23:54 +0000 (-0500) Subject: Merge: nitweb: auto link entitites found in `span code` X-Git-Url: http://nitlanguage.org Merge: nitweb: auto link entitites found in `span code` This PR introduces a stub feature for nitweb: autolinking entities from `span` code. Each time nitweb renders a Markdown comment it evaluates the content of each inline `code` tag and tries to match it with the model index. If the content of the `code` tag matches a package, module, class or property, the `code` content is wrapped in a link to that entity. Examples: * `Object`: will be rendered as `Object` * `nullable Object`: will be rendered as `nullable Object` * `is_same_instance`: will be rendered as `is_same_instance`. The name matching algorithm is the same as the one used to resolve short links like `[Object]` or complex directives like `[graph: core]`. Demo: http://nitweb.moz-code.org The documentation from the `core` package benefits from the new feature: http://nitweb.moz-code.org/doc/core Pull-Request: #2353 --- 3c5e017e563efb90995ce93b6d19be62213a9441