Skip to content

Commit 9b5710f

Browse files
committed
initial implementation
1 parent 3bc65fc commit 9b5710f

File tree

8 files changed

+1310
-157
lines changed

8 files changed

+1310
-157
lines changed

esbuild.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const context = await esbuild.context({
1515
banner: {
1616
js: banner,
1717
},
18-
entryPoints: ["main.ts"],
18+
entryPoints: ["src/main.ts"],
1919
bundle: true,
2020
external: [
2121
"obsidian",

main.ts

Lines changed: 0 additions & 134 deletions
This file was deleted.

manifest.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
2-
"id": "sample-plugin",
3-
"name": "Sample Plugin",
2+
"id": "inline-code-highlight",
3+
"name": "InlineCodeHighlight",
44
"version": "1.0.0",
55
"minAppVersion": "0.15.0",
6-
"description": "This is a sample plugin for Obsidian. This plugin demonstrates some of the capabilities of the Obsidian API.",
7-
"author": "Obsidian",
8-
"authorUrl": "https://obsidian.md",
9-
"fundingUrl": "https://obsidian.md/pricing",
6+
"description": "Highlight inline `'md **code**` blocks as well as you do the ```md **big**``` ones",
7+
"author": "Dimava",
8+
"authorUrl": "https://github.com/dimava",
109
"isDesktopOnly": false
1110
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
2-
"name": "obsidian-sample-plugin",
2+
"name": "inline-code-highlight",
33
"version": "1.0.0",
4-
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
4+
"description": "Highlight inline `'md **code**` blocks as well as you do the ```md **big**``` ones",
55
"main": "main.js",
66
"scripts": {
77
"dev": "node esbuild.config.mjs",
88
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
99
"version": "node version-bump.mjs && git add manifest.json versions.json"
1010
},
1111
"keywords": [],
12-
"author": "",
12+
"author": "Dimava",
1313
"license": "MIT",
1414
"devDependencies": {
1515
"@types/node": "^16.11.6",
16+
"@types/prismjs": "^1.26.0",
1617
"@typescript-eslint/eslint-plugin": "5.29.0",
1718
"@typescript-eslint/parser": "5.29.0",
1819
"builtin-modules": "3.3.0",

0 commit comments

Comments
 (0)