(fileContent)
| 16 | import { visit } from "unist-util-visit"; |
| 17 | |
| 18 | export const generateMdAstFromFile = (fileContent) => { |
| 19 | const mdAst = fromMarkdown(fileContent, { |
| 20 | extensions: [frontmatter(["yaml", "toml"]), gfm()], |
| 21 | mdastExtensions: [ |
| 22 | mdxFromMarkdown(), |
| 23 | frontmatterFromMarkdown(["yaml", "toml"]), |
| 24 | gfmFromMarkdown(), |
| 25 | ], |
| 26 | }); |
| 27 | return mdAst; |
| 28 | }; |
| 29 | |
| 30 | // export const generateMdAstFromFile = (fileContent) => { |
| 31 | // const mdAst = fromMarkdown(fileContent, { |
no outgoing calls
no test coverage detected