estruyf / doctor

Doctor - Maintain your documentation on SharePoint without pain.
http://getdoctor.io
MIT License
115 stars 17 forks source link

[BUG] allowHtml interferes with code highlighting #72

Closed robert-lindstrom closed 3 years ago

robert-lindstrom commented 3 years ago

Describe the bug Some characters are erroneously html-encoded in code highlight section when allowHtml is set to true.

To Reproduce If allowHtml is set to true and the markdown contains the following code highlight:

```javascript
console.log('test');
```

the output is:

console.log('test');

Expected behavior The output should be:

console.log('test');

Additional context We tested this with doctor 1.7.0 and 1.8.0-beta.6217071

estruyf commented 3 years ago

Thanks, found what was causing the issue. Fix and extra tests have been added. Once the next build has been completed. It will be available in beta.

estruyf commented 3 years ago

This has been released in v1.8.0