aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/format/markdown.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/data/format/markdown.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/source/library/lux/data/format/markdown.lux b/stdlib/source/library/lux/data/format/markdown.lux
index 68af40458..2fbef2fa0 100644
--- a/stdlib/source/library/lux/data/format/markdown.lux
+++ b/stdlib/source/library/lux/data/format/markdown.lux
@@ -77,7 +77,7 @@
[(def: #export <name>
(-> (Markdown Span) (Markdown Span))
(|>> :representation
- (text.enclose [<wrapper> <wrapper>])
+ (text.enclosed [<wrapper> <wrapper>])
:abstraction))]
[bold "**"]
@@ -111,7 +111,7 @@
(format (%.nat (inc idx)) ". " (:representation summary) text.new_line
(case detail
(#.Some detail)
- (|> detail :representation ..indent (text.enclose [text.new_line text.new_line]))
+ (|> detail :representation ..indent (text.enclosed [text.new_line text.new_line]))
#.None
""))))
@@ -125,7 +125,7 @@
(format "*. " (:representation summary) text.new_line
(case detail
(#.Some detail)
- (|> detail :representation ..indent (text.enclose [text.new_line text.new_line]))
+ (|> detail :representation ..indent (text.enclosed [text.new_line text.new_line]))
#.None
""))))
@@ -135,14 +135,14 @@
(def: #export snippet
{#.doc "A snippet of code."}
(-> Text (Markdown Span))
- (|>> ..safe (text.enclose ["`" "`"]) :abstraction))
+ (|>> ..safe (text.enclosed ["`" "`"]) :abstraction))
(def: #export code
{#.doc "A block of code."}
(-> Text (Markdown Block))
(let [open (format "```" text.new_line)
close (format text.new_line "```")]
- (|>> (text.enclose [open close]) ..block)))
+ (|>> (text.enclosed [open close]) ..block)))
(def: #export (image description url)
(-> Text URL (Markdown Span))
@@ -162,7 +162,7 @@
(template [<name> <type>]
[(def: #export <name>
(-> <type> (Markdown Span))
- (|>> (text.enclose ["<" ">"]) :abstraction))]
+ (|>> (text.enclosed ["<" ">"]) :abstraction))]
[url URL]
[email Email]