A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cesaremorel/markdown-inline-graphviz/issues/6 below:

SVGs not rendering correctly in mkdocs with material plugin · Issue #6 · cesaremorel/markdown-inline-graphviz · GitHub

Hello Cesare, and the World,

At first, Many thanks for this app!

I have installed your package via pip install, and activated your package in mkdocs, and mkdocs material plugin, as recommended in your README.md file, with:

markdown_extensions:
- markdown_inline_graphviz

The png export works fine, thanks !! 👍

But i am having problems with the SVG part with mkdocs :

It does NOT export correctly in SVG:

AM I THE ONLY ONE TO HAVE THIS PROBLEM BTW?

My Code in markdown:

TEST 1 :

```graphviz dot test.svg
digraph G {
    rankdir=LR
    Earth [peripheries=2]
    Mars
    Earth -> Mars
}
```

TEST 3:

```graphviz dot test.svg
graph G {
    node [shape=circle]
    a -- b
}
```

renders this way:

and the source code in the HTML page (with mkdocs serve) is the following:

<p>TEST 1 :</p>
<p>```graphviz dot test.png
digraph G {
    rankdir=LR
    Earth [peripheries=2]
    Mars
    Earth -&gt; Mars
}
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span>
<span class="normal">6</span>
<span class="normal">7</span></pre></div></td><td class="code"><div class="highlight"><pre><span></span><code>TEST 2:

```graphviz dot test.png
graph G {
    node [shape=circle]
    a -- b
}
</code></pre></div>
</td></tr></table></p>

QUESTIONS PLEASE :

1°) Is this "normal", at the current state of development of your app? or not?
I mean (I repeat myself): AM I THE ONLY ONE TO HAVE THIS PROBLEM?

2°) If not (normal), I would like to help. But i am not a specialist of preprocessors for svg for graphviz.
What kind of lectures may I start with to start with?
Any advices please?
3°) Of course, If you could solve this/my problem, it would also be very very helpful :)

Thanks in advance,

Machine Specs:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4