Commit 6cab7a4

HPCesia <me@hpcesia.com>
2026-09-09 07:13:23
Format repo
1 parent 129e7e1
Changed files (9)
src/contents/_lib/components/sidenote.typ
@@ -28,7 +28,9 @@
       }
     },
     paged: {
-      if block { std.block(content) } else { footnote(numbering: (..i) => "", content) }
+      if block { std.block(content) } else {
+        footnote(numbering: (..i) => "", content)
+      }
     },
   )
 }
src/contents/_lib/hypraw/hypraw.typ
@@ -194,6 +194,8 @@
 /// - line-numbers (bool): Show line numbers in a gutter (default: false)
 #let hypraw(body, line-numbers: false) = {
   show raw.where(block: false): code-inline-rule
-  show raw.where(block: true): code-rule.with(default-line-numbers: line-numbers)
+  show raw.where(block: true): code-rule.with(
+    default-line-numbers: line-numbers,
+  )
   body
 }
src/contents/_lib/templates/blockquote.typ
@@ -16,6 +16,9 @@
 }
 
 #let blockquote-template(body) = {
-  show: show-target(paged:blockquote-template-paged, html: blockquote-template-html)
+  show: show-target(
+    paged: blockquote-template-paged,
+    html: blockquote-template-html,
+  )
   body
 }
src/contents/_lib/tests/slugger.json
@@ -373,4 +373,4 @@
     "input": "aA E I N R W À Å É Î Ò Ø Ü Ą Č Ė Ğ Ħ İ Ĺ Ń Ō Ŗ Ş Ũ Ű Ź Ƃ Ɗ Ɛ Ɨ Ɵ Ƨ Ư Ƶ LJ Ǒ Ǜ Ǥ Ǯ Ƿ Ȁ Ȉ Ȓ Ț Ȥ Ȭ Ȼ Ƀ Ɋ Ͳ Έ Ώ Δ Ι Ν Σ Χ Ϗ Ϙ Ϣ Ϫ Ϲ Ͽ Є Ј Ѝ Б Е К О У Ч Ь Ѡ Ѫ Ѳ Ѽ Ҍ Җ Ҟ Ҩ Ұ Һ Ӂ Ӊ Ӕ Ӝ Ӧ Ӯ Ӹ Ԁ Ԋ Ԓ Ԝ Ԥ Ԯ Դ Թ Խ Ղ Ն Պ Տ Փ Ⴁ Ⴅ Ⴊ Ⴎ Ⴓ Ⴗ Ⴜ Ⴠ Ⴥ Ꭱ Ꭶ Ꭺ Ꭾ Ꮃ Ꮇ Ꮌ Ꮐ Ꮕ Ꮙ Ꮞ Ꮢ Ꮧ Ꮫ Ꮰ Ꮴ Ꮹ Ꮽ Ᏺ Ა Ე Კ Ო Ტ Ღ Ძ Ჯ Ჴ Ჸ Ჿ Ḇ Ḑ Ḙ Ḣ Ḫ Ḵ Ḽ Ṅ Ṏ Ṗ Ṡ Ṩ Ṳ Ṻ Ẅ Ẍ ẞ Ầ Ằ Ẹ Ể Ị Ổ Ờ Ụ Ữ Ỷ Ἀ Ἄ Ἑ Ἕ Ἤ Ἰ Ἵ Ὁ Ὑ Ὠ Ὥ Ᾱ Ὴ Ὶ Ὺ Ὼ ℋ ℒ ℛ ℨ ℭ ℾ Ⰰ Ⰵ Ⰹ Ⰾ Ⱂ Ⱇ Ⱋ Ⱐ Ⱔ Ⱘ Ⱝ Ᵽ Ɑ Ⱳ Ⲃ Ⲋ Ⲕ Ⲝ Ⲧ Ⲯ Ⲹ Ⳁ Ⳋ Ⳓ Ⳛ Ⳬ Ꙃ Ꙍ Ꙕ Ꙟ Ꙧ Ꚃ Ꚋ Ꚕ Ꜣ Ꜭ Ꜷ Ꝁ Ꝉ Ꝓ Ꝛ Ꝣ Ꝭ Ᵹ Ꞇ Ꞓ Ꞟ Ꞧ Ɬ Ʝ Ꞻ Ꞔ C G L P U Y 𐐂 𐐇 𐐋 𐐐 𐐔 𐐙 𐐝 𐐢 𐐦 𐒳 𐒷 𐒼 𐓀 𐓅 𐓉 𐓎 𐓒 𐲂 𐲇 𐲋 𐲐 𐲔 𐲙 𐲝 𐲢 𐲦 𐲫 𐲯 𑢡 𑢥 𑢪 𑢮 𑢳 𑢷 𑢻 𖹀 𖹄 𖹉 𖹍 𖹒 𖹖 𖹛 𖹟 𝐄 𝐈 𝐍 𝐑 𝐖 𝐴 𝐹 𝐽 𝑁 𝑆 𝑊 𝑩 𝑭 𝑲 𝑶 𝑻 𝑿 𝒟 𝒩 𝒯 𝒳 𝓒 𝓖 𝓚 𝓟 𝓣 𝓨 𝔇 𝔎 𝔒 𝔘 𝔜 𝔽 𝕂 𝕋 𝕏 𝕯 𝕳 𝕸 𝕼 𝖀 𝖅 𝖣 𝖨 𝖬 𝖱 𝖵 𝗔 𝗘 𝗝 𝗡 𝗦 𝗪 𝘉 𝘍 𝘒 𝘖 𝘚 𝘟 𝘽 𝙂 𝙆 𝙋 𝙏 𝙔 𝙲 𝙷 𝙻 𝚀 𝚄 𝚉 𝚫 𝚰 𝚴 𝚸 𝚽 𝛢 𝛧 𝛫 𝛰 𝛴 𝛹 𝜞 𝜣 𝜧 𝜬 𝜰 𝝖 𝝚 𝝟 𝝣 𝝧 𝝬 𝞑 𝞖 𝞚 𝞟 𝞣 𝞨 𞤂 𞤇 𞤋 𞤐 𞤔 𞤙 𞤝 𞤡b",
     "expected": "aa-e-i-n-r-w-à-å-é-î-ò-ø-ü-ą-č-ė-ğ-ħ-i̇-ĺ-ń-ō-ŗ-ş-ũ-ű-ź-ƃ-ɗ-ɛ-ɨ-ɵ-ƨ-ư-ƶ-lj-ǒ-ǜ-ǥ-ǯ-ƿ-ȁ-ȉ-ȓ-ț-ȥ-ȭ-ȼ-ƀ-ɋ-ͳ-έ-ώ-δ-ι-ν-σ-χ-ϗ-ϙ-ϣ-ϫ-ϲ-ͽ-є-ј-ѝ-б-е-к-о-у-ч-ь-ѡ-ѫ-ѳ-ѽ-ҍ-җ-ҟ-ҩ-ұ-һ-ӂ-ӊ-ӕ-ӝ-ӧ-ӯ-ӹ-ԁ-ԋ-ԓ-ԝ-ԥ-ԯ-դ-թ-խ-ղ-ն-պ-տ-փ-ⴁ-ⴅ-ⴊ-ⴎ-ⴓ-ⴗ-ⴜ-ⴠ-ⴥ-ꭱ-ꭶ-ꭺ-ꭾ-ꮃ-ꮇ-ꮌ-ꮐ-ꮕ-ꮙ-ꮞ-ꮢ-ꮧ-ꮫ-ꮰ-ꮴ-ꮹ-ꮽ-ᏺ-ა-ე-კ-ო-ტ-ღ-ძ-ჯ-ჴ-ჸ-ჿ-ḇ-ḑ-ḙ-ḣ-ḫ-ḵ-ḽ-ṅ-ṏ-ṗ-ṡ-ṩ-ṳ-ṻ-ẅ-ẍ-ß-ầ-ằ-ẹ-ể-ị-ổ-ờ-ụ-ữ-ỷ-ἀ-ἄ-ἑ-ἕ-ἤ-ἰ-ἵ-ὁ-ὑ-ὠ-ὥ-ᾱ-ὴ-ὶ-ὺ-ὼ-ℋ-ℒ-ℛ-ℨ-ℭ-ℾ-ⰰ-ⰵ-ⰹ-ⰾ-ⱂ-ⱇ-ⱋ-ⱐ-ⱔ-ⱘ-ⱝ-ᵽ-ɑ-ⱳ-ⲃ-ⲋ-ⲕ-ⲝ-ⲧ-ⲯ-ⲹ-ⳁ-ⳋ-ⳓ-ⳛ-ⳬ-ꙃ-ꙍ-ꙕ-ꙟ-ꙧ-ꚃ-ꚋ-ꚕ-ꜣ-ꜭ-ꜷ-ꝁ-ꝉ-ꝓ-ꝛ-ꝣ-ꝭ-ᵹ-ꞇ-ꞓ-ꞟ-ꞧ-ɬ-ʝ-ꞻ-ꞔ-c-g-l-p-u-y-𐐪-𐐯-𐐳-𐐸-𐐼-𐑁-𐑅-𐑊-𐑎-𐓛-𐓟-𐓤-𐓨-𐓭-𐓱-𐓶-𐓺-𐳂-𐳇-𐳋-𐳐-𐳔-𐳙-𐳝-𐳢-𐳦-𐳫-𐳯-𑣁-𑣅-𑣊-𑣎-𑣓-𑣗-𑣛-𖹠-𖹤-𖹩-𖹭-𖹲-𖹶-𖹻-𖹿-𝐄-𝐈-𝐍-𝐑-𝐖-𝐴-𝐹-𝐽-𝑁-𝑆-𝑊-𝑩-𝑭-𝑲-𝑶-𝑻-𝑿-𝒟-𝒩-𝒯-𝒳-𝓒-𝓖-𝓚-𝓟-𝓣-𝓨-𝔇-𝔎-𝔒-𝔘-𝔜-𝔽-𝕂-𝕋-𝕏-𝕯-𝕳-𝕸-𝕼-𝖀-𝖅-𝖣-𝖨-𝖬-𝖱-𝖵-𝗔-𝗘-𝗝-𝗡-𝗦-𝗪-𝘉-𝘍-𝘒-𝘖-𝘚-𝘟-𝘽-𝙂-𝙆-𝙋-𝙏-𝙔-𝙲-𝙷-𝙻-𝚀-𝚄-𝚉-𝚫-𝚰-𝚴-𝚸-𝚽-𝛢-𝛧-𝛫-𝛰-𝛴-𝛹-𝜞-𝜣-𝜧-𝜬-𝜰-𝝖-𝝚-𝝟-𝝣-𝝧-𝝬-𝞑-𝞖-𝞚-𝞟-𝞣-𝞨-𞤤-𞤩-𞤭-𞤲-𞤶-𞤻-𞤿-𞥃b"
   }
-]
\ No newline at end of file
+]
src/contents/_lib/tests/slugger.typ
@@ -14,13 +14,7 @@
       assert.eq(
         output,
         expect,
-        message: "Test \""
-          + name
-          + "\" failed: expected \""
-          + expect
-          + "\", got \""
-          + output
-          + "\"",
+        message: "Test \"" + name + "\" failed: expected \"" + expect + "\", got \"" + output + "\"",
       )
     })
 }
src/contents/_lib/lib.typ
@@ -24,7 +24,9 @@
   show: raw-template
 
   context {
-    let frontmatter = query(<frontmatter>).first(default: (value: (title: "", date: auto))).value
+    let frontmatter = query(<frontmatter>)
+      .first(default: (value: (title: "", date: auto)))
+      .value
     set document(
       title: frontmatter.title,
       date: frontmatter.date,
src/contents/posts/typst-syntax.typ
@@ -14,15 +14,15 @@
   ),
 )<frontmatter>
 
-This is not a reference to Typst syntax, see #link("https://typst.app/docs/reference/")[Typst Reference] for that.
-This is a demonstration of what you can do with Typst syntax in Kerplunk.
+This is not a reference to Typst syntax, see #link("https://typst.app/docs/reference/")[Typst Reference]
+for that. This is a demonstration of what you can do with Typst syntax in Kerplunk.
 Current Typst version: #sys.version
 
 = Basic Text
 
-This is a normal text. You can make it _italic_ or *bold*. You can also make it _*both*_.
-And #underline[underlined], #strike[strikethrough], #overline[overlined] are also supported.
-Why not #highlight[make it highlighted]?
+This is a normal text. You can make it _italic_ or *bold*. You can also make it
+_*both*_. And #underline[underlined], #strike[strikethrough], #overline[overlined]
+are also supported. Why not #highlight[make it highlighted]?
 
 Left a blank line to start a new paragraph.\
 Insert `\` to break a line without starting a new paragraph.
@@ -42,19 +42,23 @@ Links can be created using the ```typ #link(target, content)```#footnote[
 The first argument is the URL, and the second argument is the text to display.
 
 Target can be a URL, like #link("https://github.com/torvalds/linux")[source of Linux]
-or #link("/")[home page]. Typst label an be also a target, like #link(label("heading:links"))[this section].
+or #link("/")[home page]. Typst label an be also a target, like
+#link(label("heading:links"))[this section].
 
-See more imformation about links in #link("https://typst.app/docs/reference/model/link/")[Typst Reference: link].
+See more imformation about links in
+#link("https://typst.app/docs/reference/model/link/")[Typst Reference: link].
 
 = Blockquotes
 
-Use ```typ #quote(block: true, attribution: "Author Name")[Content]``` to create a blockquote with attribution.
+Use ```typ #quote(block: true, attribution: "Author Name")[Content]``` to create
+a blockquote with attribution.
 
 #quote(block: true, attribution: [Robert A. Heinlein])[
-  A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building,
-  write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate,
-  act alone, solve equations, analyse a new problem, pitch manure, program a computer, cook a tasty meal, fight
-  efficiently, die gallantly. Specialization is for insects.
+  A human being should be able to change a diaper, plan an invasion, butcher a
+  hog, conn a ship, design a building, write a sonnet, balance accounts, build a
+  wall, set a bone, comfort the dying, take orders, give orders, cooperate, act
+  alone, solve equations, analyse a new problem, pitch manure, program a computer,
+  cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
 ]
 
 = Raw Blocks
@@ -93,23 +97,27 @@ $
 
 = Tables
 
-Create a table using the ```typ #table()``` function. See more information about tables in
-#link("https://typst.app/docs/reference/model/table/")[Typst Reference: Table Function].
+Create a table using the ```typ #table()``` function. See more information about
+tables in #link("https://typst.app/docs/reference/model/table/")[Typst Reference: Table Function].
 
 #figure(
   table(
     columns: 4,
     table.header([Framework], [Language], [License], [Description]),
     [Astro], [TypeScript], [MIT], [The web framework for content-driven websites.],
+
     [Eleventy], [JavaScript], [MIT], [A simpler site generator.],
     [Hugo], [Go], [Apache-2.0], [The world’s fastest framework for building websites.],
-    [Zola], [Rust], [MIT / EUPL-1.2], [A static site generator in a single binary with everything built-in.],
-    table.footer([Test1], [Test2], [Test3], [Test4])
+
+    [Zola], [Rust], [MIT / EUPL-1.2], [A static site generator in a single binary.],
+
+    table.footer([Test1], [Test2], [Test3], [Test4]),
   ),
   caption: [Comparison of static site generators],
 )
 
-Prefer to Markdown tables? A Typst package #link("https://typst.app/universe/package/tablem")[tablem] can help you with that.
+Prefer to Markdown tables? A Typst package #link("https://typst.app/universe/package/tablem")[tablem]
+can help you with that.
 
 #{
   import "@preview/tablem:0.3.0": tablem
@@ -127,19 +135,22 @@ Prefer to Markdown tables? A Typst package #link("https://typst.app/universe/pac
 - You can use `-` to start a unordered list item.
 
 + An ordered list here
-+ You can use `+` to start a ordered list item, and the number will be automatically generated.
++ You can use `+` to start a ordered list item, and the number will be automatically
+  generated.
 6. You can also use numbers to specify the order.
 + After a specified order item, the next item will continue the order you specified.
 
-/ Term: A word or expression that has a precise meaning in some uses or is peculiar to a science, art, profession,
-  or subject. Here is a list of terms.
-/ SVG: #[*S*]calable #[*V*]ector #[*G*]raphics, an XML-based markup language for describing two-dimensional based
-  vector graphics.
+/ Term: A word or expression that has a precise meaning in some uses or is peculiar
+  to a science, art, profession, or subject. Here is a list of terms.
+/ SVG: #[*S*]calable #[*V*]ector #[*G*]raphics, an XML-based markup language for
+  describing two-dimensional based vector graphics.
 / XML: E#[*X*]tensible #[*M*]arkup #[*L*]anguage, a strict serialization of the DOM.
-/ DOM: #[*D*]ocument #[*O*]bject #[*M*]odel, connects web pages to scripts or programming languages by representing
-  the structure of a document.
-/ HTML: #[*H*]yper#[*T*]ext #[*M*]arkup #[*L*]anguage, a standard for structuring web content.
-/ URL: #[*U*]niform #[*R*]esource #[*L*]ocator, a text string that specifies where a resource can be found on the Internet.
+/ DOM: #[*D*]ocument #[*O*]bject #[*M*]odel, connects web pages to scripts or
+  programming languages by representing the structure of a document.
+/ HTML: #[*H*]yper#[*T*]ext #[*M*]arkup #[*L*]anguage, a standard for structuring
+  web content.
+/ URL: #[*U*]niform #[*R*]esource #[*L*]ocator, a text string that specifies where
+  a resource can be found on the Internet.
 
 = Extra Components
 
@@ -147,7 +158,9 @@ These components are added by Kerplunk.
 
 == Ruby
 
-Ruby, also known as #kp.ruby("振り仮名", "furigana"), is a small annotation that appears above or next to a word. It's commonly used in Japanese to show the pronunciation of kanji characters.
+Ruby, also known as #kp.ruby("振り仮名", "furigana"), is a small annotation
+that appears above or next to a word. It's commonly used in Japanese to show the
+pronunciation of kanji characters.
 
 ```typst
 #kp.ruby("ruby top", "ruby base")
@@ -157,10 +170,12 @@ Ruby, also known as #kp.ruby("振り仮名", "furigana"), is a small annotation
 
 == Sidenotes
 
-#kp.sidenote[This is a sidenote. It can be used to add some extra information without interrupting the reading flow.]
+#kp.sidenote[This is a sidenote. It can be used to add some extra information
+  without interrupting the reading flow.]
 
-Sidenotes is a special footnote that appears in the margin of the page also, but without a marker in the main text.
-You can use it to add some extra information without interrupting the reading flow.
+Sidenotes is a special footnote that appears in the margin of the page also, but
+without a marker in the main text. You can use it to add some extra information
+without interrupting the reading flow.
 
 ```typst
 // Just like footnote, only one line of content,
AGENTS.md
@@ -6,7 +6,8 @@ When starting the dev server, use background mode:
 astro dev --background
 ```
 
-Manage the background server with `astro dev stop`, `astro dev status`, and `astro dev logs`.
+Manage the background server with `astro dev stop`, `astro dev status`, and
+`astro dev logs`.
 
 ## Documentation
 
tsconfig.json
@@ -15,4 +15,4 @@
       ]
     }
   }
-}
\ No newline at end of file
+}