Allow defining commentlinks in project.config
These are inherited from parent projects, including the system-wide commentlinks defined in project.config in all projects. Child projects may override commentlinks defined in parents by name, which project administrators can discover via GET /projects/myparent/config. Change-Id: I96dd6701350761a0af6e3d9babdef4f74ad4e29f
This commit is contained in:
@@ -741,6 +741,11 @@ how the replacement is displayed to the user.
|
||||
html = $1<a href=\"http://trak.example.com/$2\">$2</a>
|
||||
----
|
||||
|
||||
Comment links can also be specified in `project.config` and sections in
|
||||
children override those in parents. The only restriction is that to
|
||||
avoid injecting arbitrary user-supplied HTML in the page, comment links
|
||||
defined in `project.config` may only supply `link`, not `html`.
|
||||
|
||||
[[commentlink.name.match]]commentlink.<name>.match::
|
||||
+
|
||||
A JavaScript regular expression to match positions to be replaced
|
||||
|
||||
Reference in New Issue
Block a user