foremark
Version:
A technology for writing semi-plain text documents that extends upon the concept of Markdeep.
26 lines (25 loc) • 945 B
TypeScript
export declare const enum TextInternalTagNames {
/**
* Defines a target of a hyperlink.
*
* ```
* [`DuckDuckGo`][]
*
* [`DuckDuckGo`]: https://duckduckgo.com
* <!-- <mf-link-target link-id="<code>DuckDuckGo</code>" /> -->
* ```
*
* This tag is generated when `[xxx]: ...` is discovered by `blocks.ts`.
* Later, the text content of `<mf-link-target>` is used as `href` of `<a>`.
* Unlike figures and endnotes, references are resolved during Foremark
* text processing.
*/
LinkTarget = "mf-link-target"
}
export declare const CITE_ID_RE: RegExp;
export declare const ENDNOTE_ID_RE: RegExp;
export declare const FIGURE_ID_RE: RegExp;
export declare const FLOATING_SIZE_RE: RegExp;
export declare function parseFloatingSize(s: string): null | 'large' | 'full';
/** The URL and attributes part of the media tag. */
export declare const MEDIA_PARAM_RE: RegExp;