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

Strange escape issue links #355

Closed
jerriep opened this issue Sep 6, 2023 · 3 comments
Closed

Strange escape issue links #355

jerriep opened this issue Sep 6, 2023 · 3 comments
Labels
Milestone

Comments

@jerriep
Copy link

jerriep commented Sep 6, 2023

I have the following code:

using System;

public class Program
{
    public static void Main()
    {
        var converter = new ReverseMarkdown.Converter();

		string html = "This a sample <strong>paragraph</strong> from <a href=\"https://www.w3schools.com/html/mov_bbb.mp4\">https://www.w3schools.com/html/mov_bbb.mp4</a>";

		string result = converter.Convert(html);
		
		Console.WriteLine(result);
    }
}

I expect the output to be as follows:

This a sample **paragraph** from [https://www.w3schools.com/html/mov_bbb.mp4](https://www.w3schools.com/html/mov_bbb.mp4)

Instead it is

This a sample **paragraph** from [https://www.w3schools.com/html/mov\_bbb.mp4](https://www.w3schools.com/html/mov_bbb.mp4)

Not that the URL has a backslash added in front of the _. It seems that there is some escaping going on which is not correct. Any idea why this is happening?

@mysticmind
Copy link
Owner

Hey @jerriep, sorry, I am just catching up on the issues list, will check and revert to you sooner on this.

@mysticmind
Copy link
Owner

In hindsight, it is mostly a bug.

@mysticmind mysticmind added this to the 4.1.0 milestone Jan 3, 2024
@mysticmind mysticmind added the bug label Jan 3, 2024
@mysticmind
Copy link
Owner

https://github.com/mysticmind/reversemarkdown-net/releases/tag/4.1.0

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

No branches or pull requests

2 participants