Initial RuneStone project

This commit is contained in:
Knotty Wyvern
2026-09-26 01:25:42 -07:00
commit bdc15e952d
190 changed files with 25986 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import assert from "node:assert/strict";
import test from "node:test";
import { fenceOpenText, headingMarkText } from "../src/lib/editor/headingMarks.ts";
test("heading marks match the heading level", () => {
assert.equal(headingMarkText(1), "#");
assert.equal(headingMarkText(3), "###");
assert.equal(headingMarkText(6), "######");
});
test("fence open marks include the language", () => {
assert.equal(fenceOpenText(""), "```");
assert.equal(fenceOpenText("js"), "```js");
assert.equal(fenceOpenText(" pp "), "```pp");
});