-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
Hello,
For inline links extraction, the current behaviour is to replace [text](http://link.net) either by text (replaceLinksWithURL = false) or by http://link.net (replaceLinksWithURL = true).
Is it possible to print both text and link, like text: http://link.net ?
Maybe with an option separator?
Options should be like:
const plainText = removeMd(markdown, {
separateLinksAndText: ': ' // default to null
})
// in index.js, something like
if (options.separateLinksAndText) {
output.replace(/\[([^\]]+)\]\(([^)]+)\)/g, `$1${options.separateLinksAndText}$2`);
}Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels