code-syntax-block icon indicating copy to clipboard operation
code-syntax-block copied to clipboard

Bug: Title not displayed if no language defined

Open onny opened this issue 5 years ago • 2 comments

Hey, thanks for maintaining and keeping this plugin up to date! It is already working quite good for me but there is one bug for me. The code block title is not displayed if no language is defined. Hope this is fixable in a easy way :)

Best regards, Jonas

onny avatar Dec 25 '19 18:12 onny

I believe this is a feature of the whole plugin, if you don't set a language then the script is not triggered and shows a standard code block.

mkaz avatar Mar 14 '20 15:03 mkaz

I had some code blocks on my blog where I didn't enable a specific syntax highlighting. But I've used the title to specify a file name or path for the snippet in the code block. Then the defined title will not be shown.

2020-03-14-194035_grim (I tested it on my blog. Title is only available with syntax highlighting)

This is a bit irritating, otherwise one should grey out the title field unless a syntax language is defined. I would prefer using a title without selecting a syntax language since this is not always the case.

onny avatar Mar 14 '20 18:03 onny