mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 18:04:45 -04:00
content: Miscellaneous edits
This commit is contained in:
parent
51aa1ae73a
commit
7217f64b67
@ -1,16 +1,20 @@
|
|||||||
---
|
---
|
||||||
title: diagrams.Goat
|
title: diagrams.Goat
|
||||||
description: Converts ASCII art to an SVG diagram, returning a GoAT diagram object.
|
description: Returns an SVGDiagram object created from the given GoAT markup and options.
|
||||||
categories: []
|
categories: []
|
||||||
keywords: []
|
keywords: []
|
||||||
params:
|
params:
|
||||||
functions_and_methods:
|
functions_and_methods:
|
||||||
aliases: []
|
aliases: []
|
||||||
returnType: diagrams.goatDiagram
|
returnType: diagrams.SVGDiagram
|
||||||
signatures: ['diagrams.Goat INPUT']
|
signatures: [diagrams.Goat MARKUP]
|
||||||
---
|
---
|
||||||
|
|
||||||
Useful in a [code block render hook], the `diagram.Goat` function converts ASCII art to an SVG diagram, returning a [GoAT] diagram object with the following methods:
|
Useful in a [code block render hook], the `diagrams.Goat` function returns an SVGDiagram object created from the given [GoAT] markup.
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
The SVGDiagram object has the following methods:
|
||||||
|
|
||||||
Inner
|
Inner
|
||||||
: (`template.HTML`) Returns the SVG child elements without a wrapping `svg` element, allowing you to create your own wrapper.
|
: (`template.HTML`) Returns the SVG child elements without a wrapping `svg` element, allowing you to create your own wrapper.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user