mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-17 23:13:11 +00:00
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
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 and `bookshop` to render a Bookshop component using inline
|
||
YAML data.
|
||
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.
|
||
data:
|
||
type: string
|
||
optional: true
|
||
comment: Bookshop data in YAML format.
|
||
body:
|
||
type: string
|
||
optional: false
|
||
comment: The example input.
|