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
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ test_name: djot_with_preprocessing_test
<p class="mb-2">
This is a test paragraph.
</p>
<div xmlns="div" class="djot-processed-content"><div class="flex items-center mb-2"><input class="mr-2 accent-primary" disabled type="checkbox">Task item</div></div>
<div xmlns="div" class="djot-processed-content"><div class="flex items-center mb-2"><input type="checkbox" checked disabled class="mr-2 accent-primary">Completed task</div></div>
<div xmlns="div" class="djot-processed-content"><blockquote class="border-l-4 border-accent border-dotted pl-4 bg-secondary bg-opacity-10 mb-4 mt-4"><pre>This is a blockquote</pre></blockquote></div>
<div xmlns="div" class="djot-processed-content"><div class="flex items-center mb-2"><input class="mr-2 accent-primary" disabled type="checkbox"><span><p class="mb-2">Task item</p></span></div></div>
<div xmlns="div" class="djot-processed-content"><div class="flex items-center mb-2"><input checked class="mr-2 accent-primary" disabled type="checkbox"><span><p class="mb-2">Completed task</p></span></div></div>
<div xmlns="div" class="djot-processed-content"><blockquote class="border-l-4 border-accent border-dotted pl-4 bg-secondary bg-opacity-10 mb-4 mt-4"><p class="mb-2">This is a blockquote</p></blockquote></div>
<p class="mb-2">
Another paragraph.
</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
version: 1.3.0
title: links_in_preprocessed_items_test
file: ./test/cynthia_websites_mini_client_test.gleam
test_name: links_in_preprocessed_items_test
---
<section>
<div xmlns="div" class="djot-processed-content"><div class="flex items-center mb-2"><input class="mr-2 accent-primary" disabled type="checkbox"><span><p class="mb-2">Task with <a class="text-info underline" href="https://example.com">link</a></p></span></div></div>
<div xmlns="div" class="djot-processed-content"><div class="flex items-center mb-2"><input checked class="mr-2 accent-primary" disabled type="checkbox"><span><p class="mb-2">Completed task with <a class="text-info underline" href="https://test.com">another link</a></p></span></div></div>
<div xmlns="div" class="djot-processed-content"><blockquote class="border-l-4 border-accent border-dotted pl-4 bg-secondary bg-opacity-10 mb-4 mt-4"><p class="mb-2">Blockquote with <a class="text-info underline" href="https://blockquote.example">a link</a></p></blockquote></div>
</section>
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
version: 1.3.0
title: ootb_index_rendering_test
file: ./test/cynthia_websites_mini_client_test.gleam
test_name: ootb_index_rendering_test
---
<body>
<h1 class="text-4xl font-bold text-accent" id="Hello-World-{hello-world}">
Hello, World
</h1>
<div xmlns="div" class="djot-processed-content"><ol class="list-decimal mb-4"><li><p class="mb-2">Numbered lists</p></li><li><p class="mb-2">Images: <img alt="Gleam&#39;s Lucy mascot" src="https://gleam.run/images/lucy/lucy.svg"></p></li></ol></div>
<h2 class="text-3xl font-bold text-accent" id="The-world-is-big-{the-world-is-big}">
The world is big
</h2>
<h3 class="text-2xl font-bold text-accent" id="The-world-is-a-little-smaller-{the-world-is-a-little-smaller}">
The world is a little smaller
</h3>
<h4 class="text-xl font-bold text-accent" id="The-world-is-tiny-{the-world-is-tiny}">
The world is tiny
</h4>
<h5 class="text-lg font-bold text-accent" id="The-world-is-tinier-{the-world-is-tinier}">
The world is tinier
</h5>
<h6 class="font-bold text-accent" id="The-world-is-the-tiniest-{the-world-is-the-tiniest}">
The world is the tiniest
</h6>
<div xmlns="div" class="djot-processed-content"><blockquote class="border-l-4 border-accent border-dotted pl-4 bg-secondary bg-opacity-10 mb-4 mt-4"><p class="mb-2">Also quote blocks!</p><p class="mb-2">-StrawmelonJuice</p></blockquote></div>
<p class="mb-2">
A task list:
</p>
<div xmlns="div" class="djot-processed-content"><div class="flex items-center mb-2"><input class="mr-2 accent-primary" disabled type="checkbox"><span><p class="mb-2">Task 1</p></span></div></div>
<div xmlns="div" class="djot-processed-content"><div class="flex items-center mb-2"><input checked class="mr-2 accent-primary" disabled type="checkbox"><span><p class="mb-2">Task 2</p></span></div></div>
<div xmlns="div" class="djot-processed-content"><div class="flex items-center mb-2"><input class="mr-2 accent-primary" disabled type="checkbox"><span><p class="mb-2">Task 3</p></span></div></div>
<p class="mb-2">
A bullet list:
</p>
<ul class="list-disc leading-tight">
<li>
<p class="whitespace-nowrap">
Point 1
</p>
</li>
<li>
<p class="whitespace-nowrap">
Point 2
</p>
</li>
</ul>
<pre class="bash bg-neutral text-neutral-content pl-4 block ml-2 mr-2 overflow-x-auto break-none whitespace-pre-wrap font-mono border-dotted border-2 border-neutral-content rounded-lg">
<code class="language-myfile.bash bg-neutral text-neutral-content p-1 rounded-lg" data-language="myfile.bash">
<div class="text-xs text-neutral-content opacity-70 mb-2">
MYFILE.BASH
</div>
echo &quot;Code blocks!&quot;
// - StrawmelonJuice

</code>
</pre>
<p class="mb-2">
A small table:
</p>
<div xmlns="div" class="djot-processed-content"><table class="table table-zebra w-full my-4 border border-neutral-content"><thead class="bg-neutral text-neutral-content"><tr><th class="px-4 py-2 text-left font-bold"><p class="mb-2">Column 1</p></th><th class="px-4 py-2 text-left font-bold"><p class="mb-2">Column 2</p></th></tr></thead><tbody><tr><td class="px-4 py-2 border-t border-neutral-content"><p class="mb-2">Value 1</p></td><td class="px-4 py-2 border-t border-neutral-content"><p class="mb-2">Value 2</p></td></tr><tr><td class="px-4 py-2 border-t border-neutral-content"><p class="mb-2"><a class="text-info underline" href="https://github.com">Github</a></p></td><td class="px-4 py-2 border-t border-neutral-content"><p class="mb-2"><a class="text-info underline" href="https://codeberg.org">Codeberg</a></p></td></tr><tr><td class="px-4 py-2 border-t border-neutral-content"><p class="mb-2"><a class="text-info underline" href="https://github.com/CynthiaWebsiteEngine/Mini">https://github.com/CynthiaWebsiteEngine/Mini</a></p></td><td class="px-4 py-2 border-t border-neutral-content"><p class="mb-2"><a class="text-info underline" href="https://github.com/strawmelonjuice/Mini-strawmelonjuice.com">https://github.com/strawmelonjuice/Mini-strawmelonjuice.com</a></p></td></tr></tbody></table></div>
</body>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
version: 1.3.0
title: ordered_list_with_links_test
file: ./test/cynthia_websites_mini_client_test.gleam
test_name: ordered_list_with_links_test
---
<section>
<div xmlns="div" class="djot-processed-content"><ol class="list-decimal mb-4"><li><p class="mb-2">First item with <a class="text-info underline" href="https://first.com">link</a></p></li><li><p class="mb-2">Second item with <a class="text-info underline" href="https://second.com">another link</a></p></li><li><p class="mb-2">Third item with *<strong class="font-bold">bold</strong>* and <a class="text-info underline" href="https://third.com">link</a></p></li></ol></div>
</section>
Loading