Obsidian-Code-Styler icon indicating copy to clipboard operation
Obsidian-Code-Styler copied to clipboard

Bug: Icons are not loading

Open ThomasAllan opened this issue 1 year ago • 3 comments

Describe the bug

I have not been able to get the icon to load when using this plugin. I have tried on a fresh vault but it never loads.

Steps to reproduce

  1. Create new fresh vault
  2. Install Obsidian Code Styler
  3. Insert the code block
```python title:Circle
circle = Circle()  # create a circle
circle.set_fill(PINK, opacity=0.5)  # set the color and transparency
```

Expected behaviour

Something smilar to this: image

Current behaviour

Code block loaded and formatted but without an icon image

Environment

  • Plugin Version: 1.1.7
  • Obsidian Version: 1.6.7
  • Platform: Desktop
  • OS:
  • Theme: Obsidian Default theme
  • CSS Snippets: None

ThomasAllan avatar Sep 23 '24 15:09 ThomasAllan

Its not a bug, it's just that the default setting doesn't match the description on the README.

To display the icons go to:

settings > Code Styler > Choose Settings Page and select "Codeblock Stylling"

Under the sample codeblock choose:

Choose Codeblock Setting > Codeblock Header

Under the Header Language Icon Appearance change the:

Display Header Language Icons > "If Header Shown" or "Always"

geovanedias avatar Nov 29 '24 15:11 geovanedias

There is no more settings under "Header Apperance" image Is that a bug?

ChangeHow avatar Jan 07 '25 08:01 ChangeHow

That is indeed a bug. Very sorry, try deleting your data.json in the plugin settings. Doing a large refactor at the moment so this should be updated soon.

@geovanedias thanks for the correction on the README, will try and update that. I thought the default settings should be as unintrusive as possible, does that make sense?

mayurankv avatar Jan 27 '25 12:01 mayurankv