Plugin

Embedded Code Title

Embed a title in code blocks.

  • Overview
  • Updates
  • Privacy
Embed titles in code blocks to improve clarity and organization. Display language names or file names alongside your code snippets for better context. Use this feature seamlessly in your notes and on Obsidian Publish with custom domain support.

Obsidian Embedded Code Title Plugin

release downloads

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.

Demo

🖋 Examples

No file name

```python
def main():
    pass
```

img.png

No file name but show a language name

```python:
def main():
    pass
```

img_1.png

With a file name

```python:main.py
def main():
    pass
```

img_2.png

With a file name includes half spaces

If you configure as the follows.

img_4.png

Then

```python:main\sincludes\sspace.py
def main():
    pass
```

img_3.png

🌍 Use on Obsidian Publish

If you can use a custom domain on Obsidian Publish, you can also use features of this plugin on the published site by Obsidian Publish with publish.js and publish.css. You can download publish.js and publish.css on the Latest release page. Please see my published site as examples.

🖥️ For developers

Development

task init
task dev

Release

task release VERSION=1.2.3
Created
Jul 3, 2021
Last updated
Oct 21, 2022
Updates
9 releases
Downloads
14.9k
Compatible with
0.9.12+
License
MIT