Readit News logoReadit News
AlexanderGrooff commented on Show HN: Mermaid ASCII Diagrams   mermaid-ascii.art/... · Posted by u/AlexanderGrooff
Lorak_ · a year ago
Are you planning to support more of mermaids features? I tried one example where this could be useful to me - Mermaids gitGraph - and it looks like it's not supported.
AlexanderGrooff · a year ago
Yes, over the course of time I want to increase the coverage of the Mermaid syntax.

PS: it's open source so feel free to help out ;) https://github.com/AlexanderGrooff/mermaid-ascii

AlexanderGrooff commented on Show HN: Mermaid ASCII Diagrams   mermaid-ascii.art/... · Posted by u/AlexanderGrooff
prmoustache · a year ago
graph TD

project is called Mermaid ASCII -->|expectation| It supports mermaidjs syntax

It supports mermaidjs syntax -->|I tried| It doesn't

It doesn't -->|conclusion| I am a bit bummed

https://mermaid.js.org/syntax/examples.html

AlexanderGrooff · a year ago
The example you post works just fine ;)

On a serious note, yes not all syntax noted in the Mermaid docs work yet. I'm planning on adding more coverage of the Mermaid syntax over time. For now the basics work and (hopefully) shows its potential.

AlexanderGrooff commented on Show HN: Mermaid ASCII Diagrams   mermaid-ascii.art/... · Posted by u/AlexanderGrooff
jonahx · a year ago
Nice work, I love ascii diagrams. Especially useful when you want a visual explanation that can be embedded directly in source code.

Small nit on layout: 90 degree joints should use "+" in the connecting lines, as they do in the boxes.

AlexanderGrooff · a year ago
Thanks for the recommendation. I've added the "+" corners in v0.5.1.
AlexanderGrooff commented on Show HN: Mermaid ASCII Diagrams   mermaid-ascii.art/... · Posted by u/AlexanderGrooff
AlexanderGrooff · a year ago
Thanks, that's a good suggestion. I'm also noticing that's not working as intended.
AlexanderGrooff · a year ago
Fixed in 0.5.0. Give it a try!
AlexanderGrooff commented on Show HN: Mermaid ASCII Diagrams   mermaid-ascii.art/... · Posted by u/AlexanderGrooff
nlake906 · a year ago
love it, will definitely be using it for sketching documentation in comments for SQL sprocs, etc.

One request: support for self-reference, i.e. "A --> A", "A --> A & B"

AlexanderGrooff · a year ago
Thanks, that's a good suggestion. I'm also noticing that's not working as intended.
AlexanderGrooff commented on Show HN: Mermaid ASCII Diagrams   mermaid-ascii.art/... · Posted by u/AlexanderGrooff
nunobrito · a year ago
Hey, where are the mermaids?!?

But now seriously.. the diagrams are working really well for simple examples, thank you so much for sharing this tool. I have bookmarked your page, my documentation is based on text files and often have to build these kind of diagrams too.

The example buttons took me a while to be found, but are good for syntax explanation. Thank you for making this available.

AlexanderGrooff · a year ago
Thanks for the kind words!
AlexanderGrooff commented on Show HN: Mermaid ASCII Diagrams   mermaid-ascii.art/... · Posted by u/AlexanderGrooff
quuxplusone · a year ago
Some nits:

The "Example" buttons don't jump out at me; I found them but it took a while. Also consider labeling them with their point, e.g. "Example 3: Color"

If you change the input text to something well-formed, the graph seems to update immediately. But if you change it to something ill-formed, the graph doesn't update immediately — and then if you click "Generate" manually, it blanks the input box. Either this is a bug, or the "Generate" button doesn't do what I think it does (i.e. generate output). Again, adding a noun to the verb might help. Or just adding some usage information somewhere on the page.

For those like me who've never heard of "Mermaid," apparently it's like GraphViz's dot language but different. https://github.com/mermaid-js/mermaid I tried the flowchart example from Mermaid's own README, but it didn't come out right: looks like the shape characters [] and {} aren't handled.

AlexanderGrooff · a year ago
Thanks for the feedback! I agree that the web UI can be improved (quite) a bit, most of my efforts went into the actual generation of the diagrams. I'll have a look at prettifying it.
AlexanderGrooff commented on Ask HN: Firefox connection problems after enabling DoH?    · Posted by u/killdozer
qiqitori · 4 years ago
Your policy is blocking ptrace from processes that don't seem like they should need ptrace (very few processes need ptrace). So why would Firefox need ptrace? Some cursory googling suggests that ptrace is used for plugins and by the crash reporter.

There are apparmor profiles for Firefox, e.g. this one: https://github.com/nibags/apparmor-profiles/blob/master/appa... Maybe you could add it to your system and see if that fixes things.

AlexanderGrooff · 4 years ago
This seems to fix it, even though there was already a default apparmor config for Firefox (which looked _very_ familiar).

Thanks!

AlexanderGrooff commented on Ask HN: Firefox connection problems after enabling DoH?    · Posted by u/killdozer
AlexanderGrooff · 4 years ago
I've found that AppArmor started to block Firefox:

audit: type=1400 audit(1642063521.864:246): apparmor="DENIED" operation="ptrace" profile="snap.firefox.firefox" pid=9868 comm="Shutdow~minator" requested_mask="trace" denied_mask="trace" peer="snap.firefox.firefox"

I really don't like it, but turning off Apparmor worked for me. Not sure what caused AppArmor to start complaining all of a sudden.

u/AlexanderGrooff

KarmaCake day93June 9, 2020
About
https://github.com/AlexanderGrooff
View Original