(markdown, prefix)
| 53 | } |
| 54 | |
| 55 | function toAbsoluteLinks(markdown, prefix) { |
| 56 | return markdown.replace( |
| 57 | new RegExp(`${markdownLinkPrefix}\\]\\((?:\\.\\/)?rules\\/([^)]*)\\)`, "g"), |
| 58 | (_match, target) => `](${prefix}${target})`, |
| 59 | ); |
| 60 | } |
| 61 | |
| 62 | function toRelativeLinks(markdown) { |
| 63 | return markdown.replace( |
no outgoing calls
no test coverage detected