Commit graph

41 commits

Author SHA1 Message Date
@gapmiss
ba3cf74ed7 chore: release 1.1.10 2026-06-04 16:46:25 -05:00
gapmiss
735dba14c4
Merge pull request #18 from Niv20/Fix-RTL
Fix: use logical padding for badge text to fix RTL spacing
2026-06-04 16:44:37 -05:00
Niv Leibovich
c68f50f7e0
Fix: use logical padding for badge text to fix RTL spacing
Replace `padding-right` with `padding-inline-end` on badge title and GitHub label. 

Fixes text hugging the edge in RTL languages, like Hebrew.

No visual change for LTR.
2026-06-05 00:34:32 +03:00
@gapmiss
b7c28eacd4 docs: update README.md 2026-06-02 17:07:51 -05:00
@gapmiss
a6bbf8c3a3 docs: update README.md 2026-06-02 17:06:51 -05:00
@gapmiss
6ac5a55f14 docs: update README.md 2026-06-02 17:01:09 -05:00
@gapmiss
9d6f147873 docs: update README.md 2026-06-02 16:59:51 -05:00
@gapmiss
1967a33a72 docs: update README.md 2026-06-02 16:55:55 -05:00
@gapmiss
e5531fe347 chore: release 1.1.9 2026-05-31 14:16:19 -05:00
@gapmiss
1969494fc8 docs: add CONTRIBUTING guide 2026-05-31 14:16:04 -05:00
@gapmiss
4497951721 chore: release 1.1.8 2026-05-29 18:19:39 -05:00
@gapmiss
ba118a7681 Replace :has() selectors with badge-link class for performance
The :has() selector causes broad selector invalidation on every DOM
change. Using a direct class applied during badge creation is more
performant and avoids community scanner warnings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-29 18:19:27 -05:00
@gapmiss
6d0c71ec73 chore: release 1.1.7 2026-05-29 17:47:42 -05:00
@gapmiss
02c82a339e Add link support for badges using >> syntax
Badges can now include clickable links with `[!!type:text>>link]` syntax.
Supports both wikilinks (`[[Note]]`) and external URLs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-29 17:47:22 -05:00
@gapmiss
f672e3492e Document data-badge-type CSS attribute for plain-text badges
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-29 17:19:19 -05:00
@gapmiss
1bd093dec5 chore: release 1.1.6 2026-05-29 17:14:31 -05:00
@gapmiss
c577b35de7 Add data-badge-type attribute to plain-text badges
Enables CSS targeting of specific badge types via data attribute.
Example: .inline-badge-extra[data-badge-type="Path"] { ... }

Closes #16

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-29 17:14:14 -05:00
@gapmiss
88ab8604fc Clarify icon name requirements for custom syntax
Documents that custom syntax requires actual Lucide icon names,
while standard syntax supports both built-in aliases and Lucide names.

Closes #11

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-26 17:22:58 -05:00
@gapmiss
df755b9259 Document custom badge KEY behavior and workaround
Clarifies that KEY is for aria-label only, not displayed visually.
Shows workaround for displaying a label in the VAL text.

Addresses #12

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-26 17:16:39 -05:00
@gapmiss
83bb0510dd chore: release 1.1.5 2026-05-26 17:00:49 -05:00
@gapmiss
1e7817fa3b Add shorthand syntax for built-in badge types
Closes #13 - Allow `[!!success]` instead of `[!!success:Success]` for
built-in types. The display text auto-populates from BADGE_TYPES.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-26 17:00:33 -05:00
@gapmiss
c9c4296a78 chore: release 1.1.4 2026-05-26 16:49:49 -05:00
@gapmiss
198152b87f Support any Lucide icon as badge type
- Fall back to using badge type directly as icon name when not in BADGE_TYPES
- Update tsconfig lib to ES2020 for matchAll support
- Document Lucide icon support in README

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-26 16:49:29 -05:00
@gapmiss
e606860583 chore: release 1.1.3 2026-05-26 16:27:05 -05:00
@gapmiss
acd9b0f09c Support escaped pipes for badges in Markdown tables
Fixes #17 - Custom badges with | separators now work inside table cells
by using \| escape sequences.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-26 16:26:21 -05:00
@gapmiss
be0e333a74 chore: release 1.1.2 2026-05-23 06:38:43 -05:00
@gapmiss
f7124a63df Fix GH workflow 2026-05-23 06:38:33 -05:00
@gapmiss
70046b089b chore: release 1.1.1 2026-05-23 06:36:17 -05:00
@gapmiss
249d6405a4 Switch from pnpm to npm, fix codemirror deps
- Use npm with legacy-peer-deps for peer dep conflicts
- Use ^6.0.0 for @codemirror/state and @codemirror/view
- Remove pnpm lockfile and workspace config

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-23 06:36:10 -05:00
@gapmiss
299ab45e8e Add release scripts to package.json 2026-05-23 06:25:18 -05:00
@gapmiss
a9f96d55b5 Fix ESLint and Obsidian scorecard issues
- Add eslint-plugin-obsidianmd with typescript-eslint type-checked rules
- Fix TypeScript: remove any types, unused vars, console.log statements
- Fix DOM: use createSpan() instead of document.createElement
- Fix CSS: remove !important declarations
- Replace builtin-modules with Node's module.builtinModules
- Pin @codemirror dependencies to exact versions
- Add pnpm lockfile for reproducible builds
- Add GitHub workflow for artifact attestation
- Add release script

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-23 06:24:09 -05:00
gapmiss
58e5d8e5c6 README 2023-12-06 08:57:42 -05:00
gapmiss
e41e19e90a Merge branch 'master' of https://github.com/gapmiss/badges 2023-12-06 08:53:22 -05:00
gapmiss
8bc99ec7b6 "Live Preview" support 2023-12-06 08:49:47 -05:00
gapmiss
10114839e3
Update README.md 2023-09-10 08:53:33 -04:00
gapmiss
68b49398c9 remove unneeded props 2023-07-11 06:49:40 -04:00
gapmiss
b1799bde8c LICENSE 2023-07-10 12:31:58 -04:00
gapmiss
0ec4a643a3 README.md 2023-07-10 12:21:54 -04:00
gapmiss
565a602675 README.md 2023-07-10 12:19:55 -04:00
gapmiss
45dc2ab3db README.md 2023-07-10 12:14:26 -04:00
gapmiss
4a57d19655 initial release 2023-07-10 12:08:26 -04:00