This is an Obsidian plugin which can embeds title to code blocks.
⚠ There is a possibility that this plugin doesn't work someday because it depends on the internal DOM structure of Obsidian.
For now, I don't have registered community plugins. So you need to install it manually with git and npm.
git clone https://github.com/tadashi-aikawa/obsidian-embedded-code-title.git
cd obsidian-embedded-clone-title
npm run build
mkdir -p <your_vault>/.obsidian/obsidian-embedded-clone-title
cp main.js styles.css manifest.json <your_vault>/.obsidian/obsidian-embedded-clone-title/
```python
def main():
pass
```
↓
```python:
def main():
pass
```
↓
```python:main.py
def main():
pass
```
↓
If you configure as the follows.
Then
```python:main\sincludes\sspace.py
def main():
pass
```
↓
You can also use it on the published site by Obsidian Publish with publish/publish.js
and publish/publish.css
. Please see my published site as examples.