4 Commits

Author SHA1 Message Date
e184b6f8b4 0.1.21 2023-05-13 22:12:04 -07:00
e601f45836 update bin scripts to work as symlinks 2023-05-13 22:11:59 -07:00
8203bbe763 0.1.20 2023-05-13 20:13:50 -07:00
2bd98c788d export 2023-05-13 20:13:49 -07:00
6 changed files with 8 additions and 6 deletions

View File

@@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
node $(dirname $0)/markdown2html.js $* node $(dirname "$(readlink -f "$0")")/markdown2html.js $*

View File

@@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
node $(dirname $0)/strip-frontmatter.js $* node $(dirname "$(readlink -f "$0")")/strip-frontmatter.js $*

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@doc-utils/markdown2html", "name": "@doc-utils/markdown2html",
"version": "0.1.19", "version": "0.1.21",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@doc-utils/markdown2html", "name": "@doc-utils/markdown2html",
"version": "0.1.19", "version": "0.1.21",
"dependencies": { "dependencies": {
"bytefield-svg": "^1.6.1", "bytefield-svg": "^1.6.1",
"dompurify": "^2.3.6", "dompurify": "^2.3.6",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@doc-utils/markdown2html", "name": "@doc-utils/markdown2html",
"version": "0.1.19", "version": "0.1.21",
"publishConfig": { "publishConfig": {
"registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/" "registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/"
}, },

View File

@@ -3,6 +3,8 @@ import { marked } from 'marked';
import { ParsedAttributes, parse_attributes } from './attrs'; import { ParsedAttributes, parse_attributes } from './attrs';
import { MarkdownOptions } from './render'; import { MarkdownOptions } from './render';
// todo: deprecate this
export interface BreadcrumbNavToken extends marked.Tokens.Generic { export interface BreadcrumbNavToken extends marked.Tokens.Generic {
text: string; text: string;
attrs: ParsedAttributes; attrs: ParsedAttributes;

View File

@@ -1,3 +1,3 @@
export { process_frontmatter } from './frontmatter'; export { process_frontmatter } from './frontmatter';
export { render_markdown_to_html, MarkdownExtension, MarkdownOptions } from './render'; export { render_markdown_to_html, render_markdown_to_html_inline_sync, MarkdownExtension, MarkdownOptions } from './render';