HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

hope to surpport plantuml for code block in markdown format #1110

Closed hqzxjczx closed 5 years ago

hqzxjczx commented 5 years ago

@gcushen

PlantUML is a component that allows to quickly write :

The following non-UML diagrams are also supported:

for example, the code below will render a picture:

Bob->Alice : hello

gcushen commented 5 years ago

Closing as PlantUML is not client side JS, also it's not currently supported by Hugo even if PlantUML has been manually installed locally: https://github.com/gohugoio/hugo/issues/796.

The recommendations for diagramming can be found here: https://sourcethemes.com/academic/docs/writing-markdown-latex/#diagrams

Also, I have opened #1111 to consider integrating Mermaid.js for generating diagrams.

pdugas commented 3 years ago

Couldn't calls to PlantUML's public server be used to generate the images into resources/_gen at "compile" time? Or is there a rule against building using external services? If not, I may look into this as I've gotten spoiled with the feature at GitLab.

dkarlovi commented 3 years ago

@gcushen Not sure why this was closed?

Closing as PlantUML is not client side JS

PlantUML can generate SVG or PNG files at build time, which could then be ingested like any other SVG/PNG file.