update bin scripts to work as symlinks

This commit is contained in:
2023-05-13 22:11:59 -07:00
parent 8203bbe763
commit e601f45836
3 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

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