Allow raw HTML in readme generators

This commit is contained in:
lowlighter
2021-04-07 00:25:33 +02:00
parent e535ec3ab8
commit 037a6a817c
3 changed files with 3 additions and 3 deletions

View File

@@ -6,5 +6,5 @@ See their respective documentation for more informations about how to setup them
<% if (previous !== categorie) { previous = categorie -%>
* **<%= `${categorie.charAt(0).toLocaleUpperCase()}${categorie.substring(1)}` %>**
<% } -%>
* [<%= name %>](/source/plugins/<%= plugin %>/README.md)<%# -%>
* [<%- name %>](/source/plugins/<%= plugin %>/README.md)<%# -%>
<% }} %>

View File

@@ -3,5 +3,5 @@
Templates lets you change general appearance of rendered metrics.
See their respective documentation for more informations about how to setup them:
<% for (const [template, {name}] of Object.entries(templates).filter(([key, value]) => value)) { %>
* [<%= name %>](/source/templates/<%= template %>/README.md)<%# -%>
* [<%- name %>](/source/templates/<%= template %>/README.md)<%# -%>
<% } %>

View File

@@ -71,7 +71,7 @@ And you can customize these heavily with plugins, templates and hundreds of opti
if (cell === "even") {
-%>
<tr>
<% } %> <th><a href="source/templates/<%= template %>/README.md"><%= name -%></a></th>
<% } %> <th><a href="source/templates/<%= template %>/README.md"><%- name -%></a></th>
<% if (cell === "odd") {
-%> </tr>
<% }}