marked-footnote
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -0,1 +1,13 @@ | ||
# marked-footnote [1.1.0](https://github.com/bent10/marked-extensions/compare/marked-footnote@1.0.1...marked-footnote@1.1.0) (2023-10-20) | ||
### Bug Fixes | ||
* resolves `umd` mime issue ([f98d31a](https://github.com/bent10/marked-extensions/commit/f98d31af547deb496098a54d836a55625e05040e)) | ||
### Features | ||
* build for the `esm`, `cjs`, and `umd` formats ([30bc148](https://github.com/bent10/marked-extensions/commit/30bc148b037aaff23dee1ecca64d31c8b4ae827c)) | ||
## marked-footnote [1.0.1](https://github.com/bent10/marked-extensions/compare/marked-footnote@1.0.0...marked-footnote@1.0.1) (2023-10-18) | ||
@@ -2,0 +14,0 @@ |
{ | ||
"name": "marked-footnote", | ||
"description": "A marked extension to support GFM footnotes", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"publishConfig": { | ||
@@ -20,9 +20,10 @@ "access": "public" | ||
"type": "module", | ||
"main": "dist/index.umd.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"main": "./dist/index.cjs.js", | ||
"browser": "./dist/index.umd.js", | ||
"module": "./dist/index.es.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.umd.cjs", | ||
"import": "./dist/index.es.js", | ||
"require": "./dist/index.cjs.js", | ||
"types": "./dist/index.d.ts" | ||
@@ -37,8 +38,5 @@ } | ||
"scripts": { | ||
"start": "npm run prod", | ||
"prod": "vite build && vite", | ||
"dev": "vite build:ssr --watch", | ||
"build": "npm run build:ssr && npm run build:prod && npm run types", | ||
"build:ssr": "vite build --ssr src/index.ts", | ||
"build:prod": "vite build", | ||
"start": "vite", | ||
"dev": "vite build --watch", | ||
"build": "vite build && npm run types", | ||
"test": "vitest", | ||
@@ -45,0 +43,0 @@ "coverage": "vitest run --coverage", |
109
readme.md
@@ -73,3 +73,3 @@ # marked-footnote | ||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> | ||
<script src="./dist/index.umd.cjs"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/marked-footnote/dist/index.umd.min.js"></script> | ||
<script> | ||
@@ -115,109 +115,4 @@ const md = `# Example | ||
Now, opening the `example.html` file in your browser will result in: | ||
[![Try marked-footnote on RunKit](https://badge.runkitcdn.com/example.html.svg)](https://untitled-0x6rqd9q0jep.runkit.sh/) | ||
```html | ||
... | ||
<div id="content"> | ||
<h1>Example</h1> | ||
<p> | ||
Here is a simple footnote<sup | ||
><a | ||
id="footnote-ref-1" | ||
href="#footnote-1" | ||
data-footnote-ref="" | ||
aria-describedby="footnote-label" | ||
>1</a | ||
></sup | ||
>. With some additional text after it<sup | ||
><a | ||
id="footnote-ref-%40%23%24%25" | ||
href="#footnote-%40%23%24%25" | ||
data-footnote-ref="" | ||
aria-describedby="footnote-label" | ||
>@#$%</a | ||
></sup | ||
> | ||
and without disrupting the blocks<sup | ||
><a | ||
id="footnote-ref-bignote" | ||
href="#footnote-bignote" | ||
data-footnote-ref="" | ||
aria-describedby="footnote-label" | ||
>bignote</a | ||
></sup | ||
>. | ||
</p> | ||
<section class="footnotes" data-footnotes=""> | ||
<h2 id="footnote-label" class="sr-only">Footnotes</h2> | ||
<ol> | ||
<li id="footnote-1"> | ||
<p> | ||
This is a footnote content. | ||
<a | ||
href="#footnote-ref-1" | ||
data-footnote-backref="" | ||
aria-label="Back to reference 1" | ||
>↩</a | ||
> | ||
</p> | ||
</li> | ||
<li id="footnote-bignote"> | ||
<p>The first paragraph of the definition.</p> | ||
<p>Paragraph two of the definition.</p> | ||
<blockquote> | ||
<p>A blockquote with multiple lines.</p> | ||
</blockquote> | ||
<pre><code>a code block | ||
</code></pre> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Header 1</th> | ||
<th>Header 2</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Cell 1</td> | ||
<td>Cell 2</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<p>A <code>final</code> paragraph before list.</p> | ||
<ul> | ||
<li>Item 1</li> | ||
<li> | ||
Item 2 | ||
<ul> | ||
<li>Subitem 1</li> | ||
<li>Subitem 2</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<p> | ||
<a | ||
href="#footnote-ref-bignote" | ||
data-footnote-backref="" | ||
aria-label="Back to reference bignote" | ||
>↩</a | ||
> | ||
</p> | ||
</li> | ||
<li id="footnote-%40%23%24%25"> | ||
<p> | ||
A footnote on the label: "@#$%". | ||
<a | ||
href="#footnote-ref-%40%23%24%25" | ||
data-footnote-backref="" | ||
aria-label="Back to reference @#$%" | ||
>↩</a | ||
> | ||
</p> | ||
</li> | ||
</ol> | ||
</section> | ||
</div> | ||
... | ||
``` | ||
### Node.js | ||
@@ -224,0 +119,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
11
225
20182
334
1