Embedded Code Title

approved

by tadashi-aikawa

Embed a title in code blocks.

ā˜… 45 stars↓ 15,622 downloadsUpdated 3y agoMIT
View on GitHub

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

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.