A lab for testing and demonstrating Asciidoctor extensions. Please do not use this code in production. If you want to use one of these extensions in your application, create a new project, import the code, and distribute it as a RubyGem. You can then request to make it a top-level project under the Asciidoctor organization.
Other
105
stars
101
forks
source link
Align chart extension with AsciiDoc conventions #30
To be consistent with the <name>::<target>[<attributes>] convention, I think we should change the placement of arguments so the data is <target> and the chart type is the first positional attribute. I think chart type should default to "line" if not specified.
To be consistent with the
<name>::<target>[<attributes>]
convention, I think we should change the placement of arguments so the data is<target>
and the chart type is the first positional attribute. I think chart type should default to "line" if not specified.I think we should also support positional attributes for x and y label as well as size.
We should also support a block form where the data is specified in a literal block:
It will be necessary to register separate extensions for the block macro and block forms, but they can share common code.