unfoldingword / discourse-mermaid Goto Github PK
View Code? Open in Web Editor NEWAdds the Mermaid JS library to discourse
License: Other
Adds the Mermaid JS library to discourse
License: Other
On our Discourse forum I've received a couple requests to support our dark mode theme for Mermaid diagram. I notice that the colours of everything are targeted with inline styles. Is this a function of MermaidJS itself, or the discourse-mermaid plugin?
Thanks for this plugin! It's super useful.
Posting to our self-hosted discourse server caused a Status code: 422: Unprocessable Entity
response.
We have installed your module via the app.yml
file and installed as per your readme. We had several mermaid blocks in the article we were trying to publish, but through trial-and-error identified the issue was with only a specific block of mermaid (names have been made generic):
sequenceDiagram
participant data_events_topic AS Relation Tree topics
participant data_events_consumer AS Relation Tree Events consumer
participant our_hub_db AS our Notifications Hub DB
participant our_hub_processor AS Behavioural Notifications Processor
participant cdp_api AS CDP API
participant our_gate AS our Gate
participant our_api AS Iterable (our API)
data_events_topic->>data_events_consumer: Consumes event for new data (or other) event
Note over data_events_topic,data_events_consumer: Consumes from Relation events Topics
data_events_consumer->>our_hub_db: Store event in the DB
our_hub_processor->>our_hub_db: Waits X minutes and then selects any un-sent datas
our_hub_processor->>cdp_api: Potentially makes a call to gather more information about the data / user
Note over our_hub_processor,cdp_api: TBC how this works in practice
our_hub_processor->>our_gate: Creates the data notification(s) in our system
our_gate->>our_api: Adds the notification(s) to the our system
After posting the article without the offending block, manually adding it with the mermaid tags as per the usage guide also fails to render.
Discourse Version: 3.1.0.beta1
Hi there,
I notice that the bundled mermaidjs is quite an old version. Do you consider updating it to the latest 8.5.0 ?
Yours,
Justin
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.