simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.01k stars 131 forks source link

Code block is not working #215

Closed decadence closed 1 year ago

decadence commented 1 year ago

Hello.

Latest Chrome user. As far as I remember code blocks with specified language worked but after some moment they don't. Or what am I doing wrong?

Test file: test.md What I see: 2023-06-07_10-13-04

What I expect:

public function escapeLike(string $value, string $char = '\\'): string
{
    return str_replace(
        [$char, '%', '_'],
        [$char.$char, $char.'%', $char.'_'],
        $value
    );
}

Settings: image

With "Remark" compiler it's better but no syntax highlight is happening anyway.

image

Tried with disabling other extensions with no luck.

simov commented 1 year ago

The syntax highlighting option can be found in the Content tab instead: Screenshot from 2023-06-07 10-36-25 Make sure syntax is enabled.

decadence commented 1 year ago

All options are enabled

image

simov commented 1 year ago

That's really strange. The file you posted earlier works on my end. Maybe try clicking on the Defaults button inside the popup. This will reset your theme selection and the compiler and content options. If that doesn't work then try to re-install the extension.

decadence commented 1 year ago

Reinstallation helped me. Looks like "pedantic" option is breaking code blocks if it's enabled. 2023-06-07_16-51-06

2023-06-07_16-51-23

Thanks!