Add markdown template (#209)

This commit is contained in:
Simon Lecoq
2021-04-06 22:22:03 +02:00
committed by GitHub
parent 175018bc67
commit 0b1bb6fcd3
11 changed files with 158 additions and 8 deletions

View File

@@ -55,7 +55,7 @@ And you can customize these heavily with plugins, templates and hundreds of opti
<% } %>
<% {
let cell = 0
const elements = Object.entries(templates).filter(([key, value]) => value)
const elements = Object.entries(templates).filter(([key, value]) => (value)&&(!["community"].includes(key)))
%>
<table>
<tr>
@@ -83,5 +83,13 @@ And you can customize these heavily with plugins, templates and hundreds of opti
<% if (cell === "odd") {
-%> </tr>
<% }}} -%>
<tr>
<th colspan="2"><a href="source/templates/community/README.md"><%= templates.community.name -%></a></th>
</tr>
<tr>
<td colspan="2" align="center">
<%- templates.community.readme.demo.replace(/<img src=/g, `<img alt="" width="400" src=`)?.split("\n")?.map((x, i) => i ? ` ${x}` : x)?.join("\n") %>
</td>
</tr>
</table>
<% } %>