Various share page improvements (#2471)

* Add clientside mermaid chart rendering

Merry Christmas :)

* Add katex math rendering client-side

* Update page.ejs

* Revert (wrong branch)

* Add children nodes to all notes under hr

* Add parent note button

* Add note type in child note info

* Fix parent, relative paths

* Add code rendering, fix space in HTML class
This commit is contained in:
Matt
2021-12-27 12:27:00 +00:00
committed by GitHub
parent f56123b864
commit 8366a94bde
2 changed files with 28 additions and 14 deletions

View File

@@ -18,9 +18,15 @@
<body>
<div id="layout">
<div id="main">
<br>
<% if (note.parents[0].noteId !== 'share' && note.parents.length != 0) { %>
<nav class="parent-link">
<a href="<%= note.parents[0].noteId %>">&lt; Parent note (<%= note.parents[0].title %>)</a>
</nav>
<% } %>
<h1 id="title"><%= note.title %></h1>
<div id="content" class="note-<%= note.type %> <% if (note.type === 'text') { %>ck-content<% } %>">
<div id="content" class="note-<%= note.type %><% if (note.type === 'text') { %>ck-content<% } %>">
<%- content %>
</div>
</div>