@telefonica/markdown-confluence-sync
Version:
Creates/updates/deletes Confluence pages based on markdown files in a directory. Supports Mermaid diagrams and per-page configuration using frontmatter metadata. Works great with Docusaurus
24 lines (23 loc) • 951 B
TypeScript
import type { Root } from "hast";
import type { Plugin as UnifiedPlugin } from "unified";
/**
* UnifiedPlugin to replace GitHub alert blockquotes with Confluence's
* structured info/note/warning/tip macro format.
*
* @see {@link https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts | GitHub Alerts }
* @see {@link https://developer.atlassian.com/server/confluence/confluence-storage-format/ | Confluence Storage Format }
*
* @example
* <blockquote>
* <p>[!NOTE]<br/>This is a note</p>
* </blockquote>
* // becomes
* <ac:structured-macro ac:name="info">
* <ac:parameter ac:name="title">Note</ac:parameter>
* <ac:rich-text-body>
* <p>This is a note</p>
* </ac:rich-text-body>
* </ac:structured-macro>
*/
declare const rehypeReplaceGithubAlerts: UnifiedPlugin<[], Root>;
export default rehypeReplaceGithubAlerts;