hacker-slides icon indicating copy to clipboard operation
hacker-slides copied to clipboard

Preview vs Present

Open SGStino opened this issue 6 years ago • 5 comments

There seems to be an issue where the server side code renders markdown differently than the client side javascript code?

it renders the markdown with the html <span class="hljs-built_in">...</span> readable.

Markdown:

```sh
mkdir my-repository
cd my-repository
git init

Present&Preview:

<pre><code class="lang-sh hljs bash">mkdir my-repository
&lt;span class=<span class="hljs-string">"hljs-built_in"</span>&gt;<span class="hljs-built_in">cd</span>&lt;/span&gt; my-repository
git init
</code></pre>

Preview generated & updated after editing

<pre><code class="lang-sh hljs bash">mkdir my-repository
<span class="hljs-built_in"><span class="hljs-built_in">cd</span></span> my-repository
git init
</code></pre>

SGStino avatar Jan 12 '19 16:01 SGStino

Hi @SGStino, thank you for submitting the issue. Can share more details about how to reproduce?

screen shot 2019-01-12 at 19 19 52

msoedov avatar Jan 12 '19 17:01 msoedov

Yes, that's the preview, That works perfectly, but if you would now hit Present, you would get to see the html tag. around the cd

I'm using the latest docker image.

SGStino avatar Jan 13 '19 14:01 SGStino

same here

groteck avatar Jun 11 '19 22:06 groteck

I have updated reveal to 3.8. That might fix this issue

msoedov avatar Jun 13 '19 10:06 msoedov

I was not able to reproduce it initially and I don't see any issues with #50 changes. Will merge and update docker today

msoedov avatar Jun 13 '19 10:06 msoedov