Obsidian Embedded Code Title Plugin

December 11, 2021 ยท View on GitHub

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