-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown Links always converted to Audio #6
Comments
|
As it is possible to link to a audio file without extension, I think, we should have a more flexible solution - at least to not break existing behaviour. It should be possible to select one of the following options
If it's not an audio link, it is a link to everything else but audio (obvious, right? :D). So, I think, the resulting ssml should contain:
|
My current workaround is to strip the markdown-links with a regex: /**
* Deletes the markdown link and replaces with the link description
* @example '[link description](www.example.com)' is transformed to '**link description**'
* @param text
*/
private static stripLinksFromMarkdown(markdownText: string = ''): string {
return markdownText.replace(/\[(.*?)]\((.*?)\)/gm, '**$1**');
}
`
`` |
Hello,
consider the following Markdown:
This will be converted to
This is obviously not audio :D
The text was updated successfully, but these errors were encountered: