|
1 | | -# Lemons Plugin Template |
| 1 | +# Obsidian Shiki Plugin |
2 | 2 |
|
3 | | -## Setup |
| 3 | +This plugin integrates [shiki](https://shiki.style/) into Obsidian, providing better syntax highlighting for over 250 languages. |
4 | 4 |
|
5 | | -This uses [bun](https://bun.sh/), not node. So you need that installed. If you are on windows use WSL, if that does not work... good luck. |
| 5 | +This plugin works in reading mode and in live preview mode, as long as your cursor is not inside the code block. |
6 | 6 |
|
7 | | -Things to change Checklist: |
| 7 | +## License |
8 | 8 |
|
9 | | -- [ ] `manifest.json` |
10 | | -- [ ] `package.json` |
11 | | -- [ ] `versions.json` |
12 | | -- [ ] `automation/config.js` |
13 | | -- [ ] `.github/workflows/release.yml` |
14 | | -- [ ] rename `exampleVault/.obsidian/lemons-plugin-template` |
| 9 | +[MIT](https://github.com/mProjectsCode/obsidian-shiki-plugin/blob/master/LICENSE) |
15 | 10 |
|
16 | | -If and **only if** you completed these steps, you can run `bun install` and `bun run dev` to start your plugin jorney. |
| 11 | +## Installation |
17 | 12 |
|
18 | | -## Scripts Explained |
| 13 | +### BRAT |
19 | 14 |
|
20 | | -- `dev` - build into the example vault with hot reload |
21 | | -- `build` - build for release |
22 | | -- `tsc` - run type checker |
23 | | -- `test` - run your tests |
24 | | -- `test:log` - run your tests with console output enabled |
25 | | -- `format` - format your code |
26 | | -- `format:check` - check the formatting of your code |
27 | | -- `lint` - lint your code |
28 | | -- `lint:fix` - lint your code and fix auto fixable mistakes |
29 | | -- `check` - check for formatting, linting, type errors and run the tests |
30 | | -- `check:fix` - fix formatting and linting errors, check for type errors and run the tests |
31 | | -- `release` - run the script to release a new version |
| 15 | +1. Install and enable the `BRAT` plugin |
| 16 | +2. Run the `BRAT: Plugins: Add a beta plugin for testing` command |
| 17 | +3. Enter `https://github.com/mProjectsCode/obsidian-shiki-plugin` into the text field |
| 18 | +4. Click on `Add Pluign` |
32 | 19 |
|
33 | | -## References |
| 20 | +## Credits |
34 | 21 |
|
35 | | -- Sample plugin repo: https://github.com/obsidianmd/obsidian-sample-plugin |
36 | | -- Obsidian help: https://help.obsidian.md/Home |
37 | | -- Obsidian docs: https://docs.obsidian.md/Home |
38 | | -- Obsidian API: https://github.com/obsidianmd/obsidian-api/blob/master/obsidian.d.ts |
| 22 | +This plugin uses the [shiki](https://shiki.style/) library and parts of the Dracula VSCode theme for syntax highlighting. |
0 commit comments