8000 fix: 🐛 Join allSnippets array instead of stringifying by dkolba · Pull Request #2 · dkolba/luhmann · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __snapshots__/luhmann_test_e2e.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ snapshot[`e2e isSnapshotMatch 1`] = `
<h2><a href="/test_zettel_1">A first test title</a></h2>
<time datetime="Fri, 21 May 2032 00:00:00 GMT">21.5.2032</time>
<span>Best test teaser in the industry</span>
\\t\\t </section>,<section>
\\t\\t </section><section>
<h2><a href="/test_zettel_2">A second test title</a></h2>
<time datetime="Sat, 22 May 2032 00:00:00 GMT">22.5.2032</time>
<span>Second best test teaser in the industry</span>
Expand Down
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async function homeHandler({
const validDocs = await validateDocs(docs, parsedYamlDocList);
const teasers = await teaserifyDocs(validDocs);
const allSnippets = teasers.map((teaser) => markupify(teaser, snippet));
const body = template(allSnippets?.toString(), stylesheetlinks, css);
const body = template(allSnippets?.join(""), stylesheetlinks, css);
// back to the client.

const headers = new Headers({
Expand Down
0