Skip to content
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

Link conversion might have context sensitive bug #36

Open
lachsalter opened this issue Nov 12, 2021 · 0 comments
Open

Link conversion might have context sensitive bug #36

lachsalter opened this issue Nov 12, 2021 · 0 comments

Comments

@lachsalter
Copy link

To explain the problem I stumbled upon is that if I convert a text with a link with markdown it does not create the correct html when the text contains a lone ':' , but works when there is ':' but also works when the ':' is preceeded by 'Text' for example. To show what I mean here is an example, the following lines:

say markdown('Test: [https://koya.gg/commands](https://koya.gg/commands)');
say markdown('Test\: [https://koya.gg/commands](https://koya.gg/commands)');
say markdown('**Test**: [https://koya.gg/commands](https://koya.gg/commands)');

Return:

Test: [https://koya.gg/commands](https://koya.gg/commands)<br />
<p>Test\: <a href="https://koya.gg/commands">https://koya.gg/commands</a></p>
<p><strong>Test</strong>: <a href="https://koya.gg/commands">https://koya.gg/commands</a></p>

The return from the second and third line are expected, the return from the first line however seems buggy to me. I would have expected:

<p>Test: <a href="https://koya.gg/commands">https://koya.gg/commands</a></p>

Best regards and thank you for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant