jonasbirkelof / obsidian-embedded-code-title

It is an Obsidian plugin which can embeds title to code blocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

It is an Obsidian plugin which can embeds title to code blocks.

License:MIT License


Languages

Language:TypeScript 57.5%Language:JavaScript 34.7%Language:CSS 7.8%