Replies: 1 comment 1 reply
-
Sorry for the delay, I wrote a response a few days ago then my computer died and it got erased. GitHub integrationThe bad news: the first hurdle to cross is getting enough D2 files in the public sphere for GitHub to even integrate it into their native syntax highlighting. This requires at least 200 public repos with .d2 files. After that, it's uncharted territory as far as I know, but there's some yet unknown level of demand to be met for GitHub to support natively rendering code blocks. The good news: meanwhile, we're working on an API that lets you render images on the fly. Something like HackMDI hadn't heard of them before, I'll reach out. Perhaps they'll be more receptive to earlier stage tools. d2-mode looks 💯 Related |
Beta Was this translation helpful? Give feedback.
-
I've seen #118 but what are the plans around getting a real native GH integration with d2 live and working? How would that work?
I can say that it would make an big difference in utility for me if a codeblock such as
d2
was rendered the same way as a code block formermaid
in the following tools:I would love for this discussion to address the following:
I'm putting this here b/c I'm not sure if there's been additional conversations outside of the issue list that discuss this topic, and not sure it has enough grounding yet to actually be posted as an issue. I'm happy to migrate this to an issue if it makes sense.
Some more context on why I personally: care about this. I tend to write a lot of charts in my markdown. I wrote an integration currently in review at melpa https://github.com/andorsk/d2-mode for emacs, so adding d2 and hackmd support would allow me to complete my flow of JIT rendering of d2 graphs for all my tools, which is a big deal and why I use mermaid so frequently in my documentation. I would love to have some alternatives, such as d2, but AFAIK, for GH, I would have to compile the render first then reference it in the markdown ( which I don't like ), or ask someone to clone the repo and then use a tool ( from the README for example ) to view the graph.
Beta Was this translation helpful? Give feedback.
All reactions