shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.41k stars 170 forks source link

graphviz dot code blocks does not render #334

Open pujfei opened 4 years ago

pujfei commented 4 years ago

Issue Type: Bug

The "Markdown Preview" extension works well with the graphviz language while the "Markdown Preview Enhanced" extension (which claims an enhanced one to the former) does not.

Quite weird.

The code block looks like below:

digraph finite_state_machine {
    rankdir=LR;
    size="8,5"

    node [shape = doublecircle]; S;
    node [shape = point ]; qi

    node [shape = circle];
    qi -> S;
    S  -> q1 [ label = "a" ];
    S  -> S  [ label = "a" ];
    q1 -> S  [ label = "a" ];
    q1 -> q2 [ label = "ddb" ];
    q2 -> q1 [ label = "b" ];
    q2 -> q2 [ label = "b" ];
}

Extension version: 0.5.2 VS Code version: Code - Insiders 1.44.0-insider (2aae1f26c72891c399f860409176fe435a154b13, 2020-04-07T21:41:19.483Z) OS version: Windows_NT x64 10.0.18363

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz (8 x 1896)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.85GB (7.25GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
AjitDingankar commented 4 years ago

I found a work-around: the dot code block ```dot works! I'm using v 0.5.3 on vscode 1.44.0 on Windows 10.

pujfei commented 4 years ago

I found a work-around: the dot code block ```dot works! I'm using v 0.5.3 on vscode 1.44.0 on Windows 10.

Yeah! Great job! Magical thing! This method does work!

Perhaps the enhanced version just used an alias of '.dot' for the real format '.graphviz'.

Is there a convention or standard for the markdown block format? I think developers do need one. Standard is a good thing.