/
Java extensions - Markdown Dialect
Java extensions - Markdown Dialect
Support for Markdown syntax
Using the --dialect
option in greenpepper, you can define a class that will be used to convert a specification from a syntax to HTML.
That is what is used for greenpepper to support Markdown.
Example usage
To use the default Markdown dialect, you will need to include greenpepper-extensions-java
in your classpath. Then you need to use the class com.greenpepper.runner.dialect.MarkdownDialect
.
java -cp greenpepper-core.jar:greenpepper-extensions-java.jar com.greenpepper.runner.Main \ -d com.greenpepper.runner.dialect.MarkdownDialect \ specification.md \ output.html
Differences between the GreenPepper Markdown syntax and CommonMark
CommonMark is a specification defining a strict markdown syntax. Even though the initiative is needed, the specification becomes hightly restrictive for usage in software.
Greenpepper extends this specification for handling html tables in a more flexible way.
Allowed differences between column numbers
Greenpepper allows the following :
| do with | Banker | |---------|--------| | accept | open an account for | John | | display | the id of | John | account | | check | the balance of | John | account is | 0 |
Multiple lines headers
Greenpepper allows the following :
| list of | Accounts | | owner | balance | id | |-------|---------|-----| | John | 0 | abc |
, multiple selections available,
Related content
Writing your specification in MarkDown
Writing your specification in MarkDown
More like this
GreenPepper 4.2: Supporting Markdown Specifications
GreenPepper 4.2: Supporting Markdown Specifications
More like this
Java extensions - Office Documents Dialect
Java extensions - Office Documents Dialect
More like this
Implementing a Dialect
Implementing a Dialect
More like this
GreenPepper Maven Plugin - Write Specification in Office Documents
GreenPepper Maven Plugin - Write Specification in Office Documents
More like this
4.0 Changelog
4.0 Changelog
More like this