Skip to content

Commit

Permalink
foxup svg-inline
Browse files Browse the repository at this point in the history
  • Loading branch information
tsa96 committed May 27, 2024
1 parent 24fd108 commit 957863e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/svg-inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ const icons = {
mom: mom
};

// Simple SVG inliner script.
// SVG path inliner plugin, intended for very simple SVGs.
// Example:
// [[ icon mdi/account ]]
// [[ icon si/steam ]]
// <svg viewBox="0 0 24 24"> [[ path mom/account ]] </svg>
// <svg viewBox="0 0 24 24"> [[ path si/steam ]] </svg>
// <svg viewBox="0 0 24 24"> [[ path mdi/log ]] </svg>
export default function (): Plugin {
const tagMatcher = /\[\[ path (.+) ]]/gi;

Expand Down

0 comments on commit 957863e

Please sign in to comment.