hsanson / asciidoctor-plantuml Goto Github PK
View Code? Open in Web Editor NEWPlantUML extension for Asciidoctor.
License: MIT License
PlantUML extension for Asciidoctor.
License: MIT License
Hi!
I was wondering about a way of specifying a concrete plantuml.jar file for asciidoctor-pdf. The one coming with asciidoctor-pdf seems an older file than the version found in plantuml.com. Not being much of a ruby programmer I was looking through .rb for asciidoctor-pdf, and could not find any obvious parts...
Thanks!
Currently, the extension only works on listing blocks. Since Asciidoctor Diagram recognizes both literal and listing blocks I think it would be great to also enable this extension on literal blocks.
I also believe that a literal block is semantically more accurate than a listing block (but it might be subjective).
I think the main benefit would be that users won't have to update their document if they want to use Asciidoctor Diagram or this extension.
What do you think?
Based on this comment #25 (comment) is important to assess the risk of this functionality.
Many security issues in Nokogiri need update.
Rubygems lists 6 versions[0] for asciidoctor-plantuml whereas the git repo has only one tag. Please push the remaining tags to the repo.
Security advisor on nokogiri 1.13.4:
Note this gem uses nokogiri only for running the tests and it is never used in the gem itself. These security advisors should not pose a risk to users of the gem.
This Gem has a runtime dependency on Asciidoctor restricted to 1.5.x. In addition this Gem is used in GitLab and as a result it's not possible to upgrade to Asciidoctor 2.x.
Since Asciidoctor 2.x is mostly compatible with Asciidoctor 1.5.6+, we should loosen this restriction.
I've to write diagram in chinese, therefore, I need to set font for the diagram.
Currently, it's not possible to use this extension when the output is not an HTML document. Using Block and Image object would allow to use this extension with Asciidoctor PDF and non-HTML converters (manpage, docbook...)
Could you please create a new version tag including latest changes?
Project including your lib are still not up-to-date and won't have the updates until there is a new version
Thanks
Here's an example:
:action: hello
[plantuml,subs=+attributes]
----
alice -> bob : {action}
----
In the above example, {action}
should be replaced/substituted by hello
.
You can use the following code to do that:
subs = attrs['subs']
content = parent.apply_subs(content, parent.resolve_subs(subs)) if subs
Could you please also add support for the block macro syntax?
See: https://github.com/asciidoctor/asciidoctor-diagram/#diagram-block-macro
I am often using plantuml::file.puml[]
as it is shorter than the literal block version.
Thank you
The official plantuml.com server changed to URL format. Gitlab (and probably some other webapps) use asciidoctor-plantuml to create an image URL. Since the URL was changed, plantuml images are broken on Gitlab.
broken example from your testsuite
I copied the URL from your testsuite and changed the host
asciidoctor-plantuml/test/test_plantuml.rb
Line 119 in b082ebd
This works
Just by adding ~1
it's fixed
Links
Let my old email domain expire without updating the rubygems.org account with my new email and now I cannot update the this gem.
This issue is to prove that I own and maintain this repo and the asciidoctor-plantuml gem in it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.