@tryghost/mg-shortcodes 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Shortcodes
2
2
 
3
- This package wraps the excellent [universal-shortcodes](https://github.com/EvidentlyCube/universal-shortcodes), and adds utility functions to make adding support for shortcodes easier between different tools. It typecasts attribute values (string, int, float, bool) and handles encoded quotes (_pretty quotes_) that sometimes wrap attributes.
4
-
5
- Unhandled shortcodes are returned without modification.
3
+ A barebones shortcode parser that handles edge cases.
6
4
 
7
5
  ## Install
8
6
 
@@ -20,7 +18,7 @@ or
20
18
  import Shortcodes from '@tryghost/mg-shortcodes';
21
19
 
22
20
  // Create a new instance
23
- const ShortcodeParser = new Shortcodes();
21
+ const shortcodes = new Shortcodes();
24
22
 
25
23
  // Handle [link] shortcodes
26
24
  shortcodes.add('link', ({attrs, content}) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-shortcodes",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-shortcodes",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -24,5 +24,5 @@
24
24
  "jest": "29.3.1",
25
25
  "jest-extended": "3.2.0"
26
26
  },
27
- "gitHead": "f5a6a06ad2eb953bda77b11359ed135482d9dfc7"
27
+ "gitHead": "93bb4878021ece28b5885db3fa695c2b23cbc599"
28
28
  }