Page 1 of 2

Code block auto close tags

Posted: Thu Dec 06, 2018 4:05 pm
by Maarten
Just started using Bludit and loving it so far!

I am using code blocks in some of my post, but the code blocks is auto clossing used tags.

So this.

```
<!--?xml version="1.0" encoding="utf-8"?-->
<configuration>
<appsettings>
<add value="navserver" key="Server">
</appsettings>
</configuration>
```
Turns to
```
<!--?xml version="1.0" encoding="utf-8"?-->
<configuration>
<appsettings>
<add value="navserver" key="Server">
</add></appsettings>
</configuration>
```
See the added </add>

I am using the plugin SimpleMDE 1.11.2 and Bludit 3.5

I think a code block should not edit the content that is in it. Or am i wrong?

Small side note, in the Plugin list, I think the SimpleMDE is pointing to the wrong website in the Plugin list. It is pointing to https://github.com/NextStepWebs/simplem ... own-editor but the correct one is https://github.com/sparksuite/simplemde-markdown-editor

Re: Code block auto close tags

Posted: Thu Dec 06, 2018 7:46 pm
by diego
Hi,
Bludit use Parsedown for parse the Markdown, so could be a feature or bug from that library.

I need to check if there is some new release, also disable this autocomplete code if possible.

https://github.com/erusev/parsedown

Re: Code block auto close tags

Posted: Fri Dec 07, 2018 1:54 pm
by Maarten
Hi Diego,

Thanks for your response and the info,

If i try there demo ( http://parsedown.org/demo ) i don't get the same result. So i hope it's just as simple a using a new release.

Re: Code block auto close tags

Posted: Fri Dec 07, 2018 8:12 pm
by diego
I'm testing the same code you post in the demo (https://demo.bludit.com) and is not autocompleting. Can you check in the demo ?

Regards

Re: Code block auto close tags

Posted: Mon Dec 10, 2018 3:11 pm
by Maarten
Did you use SimpleMDE or TinyMCE as the editor?

I did a test with TinyMCE now, and the code does not get altered, but i does when I use SimpleMDE

Re: Code block auto close tags

Posted: Mon Dec 10, 2018 3:18 pm
by diego
Yes I tried with SimpleMDE.
The same code as you post, strange, I going to check again.

Re: Code block auto close tags

Posted: Mon Dec 10, 2018 3:30 pm
by Maarten
Maybe this is a Edge / IE thing…

I just try it with IE and i get a different result to

```
<!--?xml version="1.0" encoding="utf-8"?-->
<configuration>
<appsettings>
<add key="Server" value="navserver">
</add>
</appsettings>
```</configuration>

**Update**
Testing home with chrome, but still happens..

Re: Code block auto close tags

Posted: Wed Dec 12, 2018 2:50 pm
by Maarten
Just noticed on a other page it has nothing to do with the code block

If i just have a single page with

<username>

It turns to when i saved it.

<username></username>

Re: Code block auto close tags

Posted: Thu Dec 13, 2018 10:56 am
by diego
Can you check in the database ? /bl-content/pages/<PAGE KEY>index.txt

Re: Code block auto close tags

Posted: Thu Dec 13, 2018 2:52 pm
by Maarten
In index.txt i only see <username>
username.jpg
username.jpg (35.93 KiB) Viewed 4422 times