-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
How can i print the original Inline code instead of the converted text? #766
Labels
Comments
Every private static readonly MarkdownPipeline s_pipeline = new MarkdownPipelineBuilder()
.UsePreciseSourceLocation()
.Build(); Then you can look at the original input like so else if (element is ParagraphBlock paragraph)
{
string source = markdown.Substring(paragraph.Span.Start, paragraph.Span.Length);
// Hello **everyone** this is a list:
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I am trying to do is to parse only headers and then get the original text without parsing the string.
Something like:
And I've done something like this:
But The result is:
Hello everyone this is a list: Item 1; Item 2
Instead of:
Because I want to maintain the original code, then I suppose the "ToString()" is not what I am looking for.
The text was updated successfully, but these errors were encountered: