obsidian-css-snippets icon indicating copy to clipboard operation
obsidian-css-snippets copied to clipboard

CSS files instead of Markdown files with embedded CSS code blocks?

Open ewa opened this issue 3 years ago • 3 comments

This is definitely a feature request rather than an "issue," but...

Right now, all of these examples are markdown (.md) files containing CSS in code blocks, meaning that a person can't just download them into their snippets directory and use them. And (at least in my case) meaning there's a lot of opportunity for human error in copy-and-pasting those code blocks.

What do you think of changing the files over to straight CSS? That would mean giving up some of the nicely-formatted explanatory text in the files themselves, but I think it might be a win overall.

Thanks for your consideration :-) -Eric

ewa avatar Mar 18 '21 03:03 ewa

It is actually a good idea! It may be difficult to avoid conflicts with all currently used CSS themes for Obsidian. It definitely will improve Obsidian customization experience.

Dmytro-Shulha avatar Mar 20 '21 17:03 Dmytro-Shulha

Linux users:

File renaming from the snippets directory recursive...

find . -type f -name "*.md" -print0 | while IFS= read -r -d '' file; do mv "$file" "${file%.md}.css"; done

Rgds

fkSoc1ety avatar Jun 09 '24 14:06 fkSoc1ety