-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect diagram type #76
Comments
That sounds like a great idea. I hadn't thought of that. Would you be able to submit a pull request to implement it? |
There are so many diagram types, with more on the way, that maintaining a hard-coded list is not sustainable. What I would prefer is to make this an option. When this option is set, the converter will look for diagrams with those names and convert them to a block style in AsciiDoc. Better yet, the option can be a map so that the name in Markdown can be different than the name in AsciiDoc. I propose the name of the option to be
Anything not listed would be ignored. We can map this to the CLI option |
After giving this further thought, I'd like to use the option name I propose supporting two languages by default, plantuml and mermaid. These languages can be overridden using the |
…onvert matching fenced code blocks to diagram literal blocks
…onvert matching fenced code blocks to diagram literal blocks
I use kramdoc as a converter to be able to transform markdown to pdf (Asciidoc is awesome, but our documentation generator only support markdown).
My current script looks like this:
I would love to be able to also generate diagrams during the process, using asciidoctor-diagram.
Howerver, if i write in my markdown file :
```plantuml
@startuml
Alice --> Bob: Hello
@enduml
```
It will be converted to
when this output would be more useful.
The text was updated successfully, but these errors were encountered: