@frontmatter/extensibility
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "@frontmatter/extensibility", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Front Matter CMS extensibility library", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -43,2 +43,17 @@ <p align="center"> | ||
### Registering a card image | ||
```js | ||
import { registerCardImage } from "https://cdn.jsdelivr.net/npm/@frontmatter/extensibility/+esm"; | ||
/** | ||
* @param {string} filePath - The path of the file | ||
* @param {object} data - The metadata of the file | ||
* @returns {string} - The HTML to be rendered in the card footer | ||
*/ | ||
registerCardImage(async (filePath, metadata) => { | ||
return `<span>Your HTML</span>`; | ||
}); | ||
``` | ||
### Registering a card footer | ||
@@ -153,2 +168,2 @@ | ||
Please report any issues you find in the Front Matter CMS issue list. | ||
Please report any issues you find in the [Front Matter CMS issue list](https://github.com/estruyf/vscode-front-matter/issues). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12389
168