maaslalani / slides

Terminal based presentation tool
http://maaslalani.com/slides/
MIT License
9.58k stars 263 forks source link

Graph does not show properly #261

Open patrickelectric opened 11 months ago

patrickelectric commented 11 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Run the example on readme
  2. Go to slide number 5

Expected behavior The graph does not show propeprly

Screenshots image

Desktop (please complete the following information):

Narayanbhat166 commented 10 months ago

You will have to download the graph-easy library and it has to be in the $PATH

kubukoz commented 10 months ago

I have the same problem and I do have graph-easy on $PATH. I'm running slides on an ARM Mac.

Update: for some reason it works if I pipe slides to tee: slides slide.md | tee :)

gramosg commented 10 months ago

I just stumbled upon the same problem. The issue is that the preprocessor output is also interpreted as Markdown. And then, text separated by a single newline is joined together.

The solution is as simple as wrapping the preprocessed part in triple backquotes, as it is done in the README:

```
~~~graph-easy --as=boxart
[ A ] - to -> [ B ]
~~~
```
zongpingding commented 7 months ago

I just stumbled upon the same problem. The issue is that the preprocessor output is also interpreted as Markdown. And then, text separated by a single newline is joined together.

The solution is as simple as wrapping the preprocessed part in triple backquotes, as it is done in the README:

[ A ] - to -> [ B ]

that's works for me. Thanks !

tymbaca commented 5 months ago

The solution is as simple as wrapping the preprocessed part in triple backquotes, as it is done in the README:

```
~~~graph-easy --as=boxart
[ A ] - to -> [ B ]
~~~
```

Is seems like when when you do it without triple backquotes it tries to join all generated lines BECAUSE is's Markdown rule: if few lines doesn't have blank line between then, then isn't one paragraph that will be joined in one line

kforeverisback commented 2 months ago

I just stumbled upon the same problem. The issue is that the preprocessor output is also interpreted as Markdown. And then, text separated by a single newline is joined together.

The solution is as simple as wrapping the preprocessed part in triple backquotes, as it is done in the README:

[ A ] - to -> [ B ]

This fix should be in the official doc.