diff --git a/cmd/docgen/docgen.go b/cmd/docgen/docgen.go
index 12d9f76..4d09b82 100644
--- a/cmd/docgen/docgen.go
+++ b/cmd/docgen/docgen.go
@@ -580,7 +580,7 @@ func main() {
}
if codeExample := dps.Tags["example"]; codeExample != nil {
f.WriteString("#### Example\n")
- f.WriteString(fmt.Sprintf("```lua\n%s\n````\n", strings.Join(codeExample[0].fields, "\n")))
+ f.WriteString(fmt.Sprintf("```lua\n%s\n```\n", strings.Join(codeExample[0].fields, "\n")))
}
f.WriteString("")
f.WriteString("\n\n")
diff --git a/docs/api/bait.md b/docs/api/bait.md
index 9bed78d..b33441c 100644
--- a/docs/api/bait.md
+++ b/docs/api/bait.md
@@ -64,7 +64,7 @@ The function that will be called when the hook is thrown.
bait.catch('hilbish.exit', function()
print 'Goodbye Hilbish!'
end)
-````
+```
@@ -129,7 +129,7 @@ bait.catch('event', hookCallback)
-- a little while later....
bait.release('event', hookCallback)
-- and now hookCallback will no longer be ran for the event.
-````
+```
@@ -158,6 +158,6 @@ bait.throw('greeting', 'world')
bait.catch('gretting', function(greetTo)
print('Hello ' .. greetTo)
end)
-````
+```
diff --git a/docs/api/commander.md b/docs/api/commander.md
index 3614f90..66e77e6 100644
--- a/docs/api/commander.md
+++ b/docs/api/commander.md
@@ -86,6 +86,6 @@ commander.register('hello', function(args, sinks)
sinks.out:writeln('Hello ' .. name)
end)
-````
+```
diff --git a/docs/api/fs.md b/docs/api/fs.md
index 0bda1c8..dec25ee 100644
--- a/docs/api/fs.md
+++ b/docs/api/fs.md
@@ -122,7 +122,7 @@ Pattern to compare files with.
local matches = fs.glob './*.lua'
print(matches)
-- -> {'init.lua', 'code.lua'}
-````
+```
@@ -145,7 +145,7 @@ Paths to join together
-- This prints the directory for Hilbish's config!
print(fs.join(hilbish.userDir.config, 'hilbish'))
-- -> '/home/user/.config/hilbish' on Linux
-````
+```
@@ -172,7 +172,7 @@ Whether to create parent directories for the provided name
#### Example
```lua
-````
+```
@@ -225,6 +225,6 @@ Would print the following:
size = 12288
}
]]--
-````
+```
diff --git a/docs/api/hilbish/_index.md b/docs/api/hilbish/_index.md
index aba1c6f..5e8cff3 100644
--- a/docs/api/hilbish/_index.md
+++ b/docs/api/hilbish/_index.md
@@ -72,7 +72,7 @@ hilbish.alias('ga', 'git add')
-- Numbered substitutions are supported here!
hilbish.alias('dircount', 'ls %1 | wc -l')
-- "dircount ~" would count how many files are in ~ (home directory).
-````
+```
@@ -100,7 +100,7 @@ hilbush.appendPath {
'~/go/bin',
'~/.local/bin'
}
-````
+```
@@ -195,7 +195,7 @@ Note that to set a highlighter, one has to override this function.
function hilbish.highlighter(line)
return line:gsub('"%w+"', function(c) return lunacolors.green(c) end)
end
-````
+```
@@ -226,7 +226,7 @@ override this function with your custom handler.
function hilbish.hinter(line, pos)
return 'hi'
end
-````
+```
@@ -298,7 +298,7 @@ user ~ ∆ echo "hey
hey ...!
]]--
hilbish.multiprompt '-->'
-````
+```
@@ -345,7 +345,7 @@ hilbish.prompt '%u %d ∆'
-- or something of old:
hilbish.prompt '%u@%h :%d $'
-- prompt: user@hostname: ~/directory $
-````
+```
diff --git a/docs/api/hilbish/hilbish.aliases.md b/docs/api/hilbish/hilbish.aliases.md
index 086379a..652d22f 100644
--- a/docs/api/hilbish/hilbish.aliases.md
+++ b/docs/api/hilbish/hilbish.aliases.md
@@ -65,7 +65,7 @@ hilbish.aliases.add('hi', 'echo hi')
local aliases = hilbish.aliases.list()
-- -> {hi = 'echo hi'}
-````
+```
diff --git a/docs/api/hilbish/hilbish.completion.md b/docs/api/hilbish/hilbish.completion.md
index 7379719..c151032 100644
--- a/docs/api/hilbish/hilbish.completion.md
+++ b/docs/api/hilbish/hilbish.completion.md
@@ -57,7 +57,7 @@ hilbish.complete('command.sudo', function(query, ctx, fields)
-- ... else suggest files or anything else ..
end)
-````
+```
@@ -140,6 +140,6 @@ function hilbish.completion.handler(line, pos)
-- call command completer or files completer here
end
end
-````
+```
diff --git a/docs/api/hilbish/hilbish.jobs.md b/docs/api/hilbish/hilbish.jobs.md
index 6a3423f..3a645fa 100644
--- a/docs/api/hilbish/hilbish.jobs.md
+++ b/docs/api/hilbish/hilbish.jobs.md
@@ -48,7 +48,7 @@ Binary to use to run the command. Does not
#### Example
```lua
hilbish.jobs.add('go build', {'go', 'build'}, '/usr/bin/go')
-````
+```