Steps to reproduce
- Place a code block that uses a language hint inside of a callout.
You can use the following to demonstrate the behaviour inside and outside of a callout:
> [!example]
> Useful for C#, PHP, JavaScript, as well as any other C-based languages.
>
> ```csharp
> if (condition) return;
> ```
> ```php
> if ($condition) continue;
> ```
> ```javascript
> if (condition) break;
> ```
>
```csharp
if (condition) return;
```
```php
if ($condition) continue;
```
```javascript
if (condition) break;
```
Did you follow the troubleshooting guide? [Y/N]
Yes, I copied my code into the Sandbox vault running the latest version of Obsidian (1.6.7) and have the same results. I do not use any custom themes/extensions.
Expected result
I’d expect that the code blocks contained in the callout would keep their language hints
Actual result
The code blocks within the callout do not have any language hint; also, it may be worth noting that hovering over the code blocks does show the typical ‘Copy’ text.
Environment
SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.5.11
Operating system: Windows 10 Enterprise 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
Screenshot of my sample code above: