Commit graph

9 commits

Author SHA1 Message Date
Caleb Frey
9fcd6f2e83
Make prismjs shortcode CRLF tolerant
Checks for extra line in the form of `\r\n` or `\n` so that it's recognized and removed appropriately when edited in a CRLF editor
2021-07-13 17:36:00 -04:00
panr
08644e95c3 Allow html in figure caption. 2020-09-27 16:25:34 +02:00
panr
04d9175af8 Update styling 2020-06-18 00:21:19 +02:00
panr
9cbc71f5c3 Update collapsable code shortcode with isCollapsed prop 2020-06-13 09:51:22 +02:00
panr
cf59a36030 Add a collapsable code shortcode 2020-06-10 00:16:28 +02:00
Joel Knight
a1c203cb17 Apply suggestions from code review
Co-Authored-By: Radek Kozie. <radoslaw.koziel@gmail.com>
2020-01-26 14:53:18 -07:00
Joel Knight
92cc5bcd23
Apply suggestions from code review
Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
2020-01-25 21:18:08 -07:00
Joel Knight
ce97879d6c Import shortcode to activate PrismJS plugins
The shortcode takes named parameters that are relevant to the PrismJS
plugins that Terminal bundles.

- lang: the language contained in the code block
- line: the line number(s) to highlight
- line-numbers: displays line numbers in the margin
- command-line: activates the command-line plugin which modifies the
output to show a command line
- user: the username to display in the prompt (used with the command-line
parameter)
- host: the hostname to display in the prompt (used with the
command-line parameter)
- prompt: override the default prompt (used with the command-line
parameter)
- output: specifies which line(s) contain CLI output (used with the
command-line parameter)

Example:

{{< prismjs lang="bash" line="1,10-13" line-numbers="true"
command-line="true" host="jump1" user="joel" output="2-9" >}}
2020-01-08 21:43:39 -07:00
panr
86562b8241 Init 2019-01-28 01:11:02 +01:00