mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-11 20:13:19 +00:00
34 lines
882 B
YAML
34 lines
882 B
YAML
comment: >-
|
||
Display a code example and render a preview of the same input. The shortcode
|
||
accepts the languages supported by Hugo's highlight function.
|
||
arguments:
|
||
id:
|
||
type: string
|
||
optional: true
|
||
comment: Identifier of the element’s container.
|
||
lang:
|
||
type: string
|
||
optional: true
|
||
default: markdown
|
||
comment: >-
|
||
Language used to display the code. Use `hugo` to process Hugo (escaped)
|
||
shortcodes.
|
||
show_markup:
|
||
type: bool
|
||
optional: true
|
||
default: true
|
||
comment: Indicates if the markup should be output in the HTML.
|
||
show_preview:
|
||
type: bool
|
||
optional: true
|
||
default: true
|
||
comment: Indicates if the preview should be output in the HTML.
|
||
class:
|
||
type: string
|
||
optional: true
|
||
comment: Class attributes of the element's container.
|
||
body:
|
||
type: string
|
||
optional: false
|
||
comment: The example input.
|