Skip to content

Commit

Permalink
make sure nested lines are handled
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Jan 4, 2025
1 parent e5abf65 commit 181414a
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 34 deletions.
96 changes: 70 additions & 26 deletions calcit.cirru

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 11 additions & 7 deletions compact.cirru
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{} (:package |respo-md)
:configs $ {} (:init-fn |respo-md.main/main!) (:reload-fn |respo-md.main/reload!) (:version |0.4.3)
:configs $ {} (:init-fn |respo-md.main/main!) (:reload-fn |respo-md.main/reload!) (:version |0.4.4)
:modules $ [] |respo.calcit/compact.cirru |respo-ui.calcit/compact.cirru |memof/compact.cirru |lilac/compact.cirru
:entries $ {}
:files $ {}
Expand Down Expand Up @@ -110,9 +110,13 @@
{} $ :class-name style-blockquote
, & $ render-inline (&str:slice line 2)
(starts-with? line "\" ")
div
{} $ :class-name style-indent-line
comp-line $ .!trimLeft line
let
content $ .!trimLeft line
space-size $ &- (count line) (count content)
spaces $ .!slice line 0 space-size
div ({})
<> (str spaces spaces) style-indent
comp-line $ .!trimLeft line
(or (starts-with? line "|* ") (starts-with? line "|- "))
li
{} $ :class-name style-line-list
Expand Down Expand Up @@ -216,10 +220,10 @@
"\"&" $ {} (:max-width 480) (:max-height 320)
:border $ str "\"1px solid " (hsl 0 0 90)
:border-radius "\"8px"
|style-indent-line $ %{} :CodeEntry (:doc |)
|style-indent $ %{} :CodeEntry (:doc |)
:code $ quote
defstyle style-indent-line $ {}
"\"&" $ {} (:padding-left "\"2em")
defstyle style-indent $ {}
"\"&" $ {} (:white-space :pre) (:float :left)
|style-inline-code $ %{} :CodeEntry (:doc |)
:code $ quote
defstyle style-inline-code $ {}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.4.3",
"version": "0.4.4",
"dependencies": {
"@calcit/procs": "^0.9.6",
"cirru-color": "^0.2.4",
Expand Down

0 comments on commit 181414a

Please sign in to comment.