(markdown: string)
| 37 | } |
| 38 | |
| 39 | export function extractJSONFromMarkdown(markdown: string) { |
| 40 | const json = markdown.match(/```json\n([\s\S]+?)\n```/); |
| 41 | if (json) { |
| 42 | return json[1]; |
| 43 | } |
| 44 | return markdown; |
| 45 | } |
| 46 | |
| 47 | export function replaceLinkFormat(input: string): string { |
| 48 | return input.replace( |
nothing calls this directly
no outgoing calls
no test coverage detected