@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
21 lines (20 loc) • 733 B
TypeScript
import type { Root } from "mdast";
import type { Plugin as UnifiedPlugin } from "unified";
/**
* UnifiedPlugin to replace \<details\> HastElements from tree.
*
* @example
* <details>
* <summary>Greetings</summary>
* <p>Hi</p>
* </details>
* // becomes
* <ac:structured-macro ac:name="expand">
* <ac:parameter ac:name="title">Greetings</ac:parameter>
* <ac:rich-text-body><p>Hi</p></ac:rich-text-body>
* </ac:structured-macro>
* @throws {InvalidDetailsTagMissingSummaryError} if \<details\> tag does not have a \<summary\> tag
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details}
*/
declare const rehypeReplaceDetails: UnifiedPlugin<Array<void>, Root>;
export default rehypeReplaceDetails;