NormalizeRenderer loses block quote formatting when used in lists #282

Open
opened 2026-01-29 14:32:43 +00:00 by claunia · 1 comment
Owner

Originally created by @mircea-Hodis on GitHub (Mar 12, 2019).

Hello,

I want to process a list of block quotes using the following code:

            var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();
            var content =File.ReadAllText(sourcePath);

            var markdownDoc = Markdown.Parse(content, pipeline);

            using (var streamWriter = new StreamWriter(targetPath))
            {
                var renderer = new NormalizeRenderer(streamWriter);

                renderer.Render(markdownDoc);
            }

I'm using the following markdown as source:

List of blockquotes
1. > This is a quote in a list 1
2. > This is a quote in a list 2
3. > This is a quote in a list 3

The result is:

List of blockquotes

1. This is a quote in a list 1
2. This is a quote in a list 2
3. This is a quote in a list 3

I've expected the result to be the same but the block quote formatting is lost in the target file.
Is there any way to use Markdig and preserve both list and block quote formatting?

Regards.
Mircea

Originally created by @mircea-Hodis on GitHub (Mar 12, 2019). Hello, I want to process a list of block quotes using the following code: ~~~c# var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build(); var content =File.ReadAllText(sourcePath); var markdownDoc = Markdown.Parse(content, pipeline); using (var streamWriter = new StreamWriter(targetPath)) { var renderer = new NormalizeRenderer(streamWriter); renderer.Render(markdownDoc); } ~~~ I'm using the following markdown as source: ~~~ List of blockquotes 1. > This is a quote in a list 1 2. > This is a quote in a list 2 3. > This is a quote in a list 3 ~~~ The result is: ~~~ List of blockquotes 1. This is a quote in a list 1 2. This is a quote in a list 2 3. This is a quote in a list 3 ~~~ I've expected the result to be the same but the block quote formatting is lost in the target file. Is there any way to use Markdig and preserve both list and block quote formatting? Regards. Mircea
claunia added the bugPR Welcome! labels 2026-01-29 14:32:43 +00:00
Author
Owner

@xoofx commented on GitHub (Mar 12, 2019):

Yeah, NormalizeRenderer hasn't been developed to be fully supported/completed, it's a work in progress (e.g #155), so likely block quotes are not supported correctly. PR Welcome.

@xoofx commented on GitHub (Mar 12, 2019): Yeah, `NormalizeRenderer` hasn't been developed to be fully supported/completed, it's a work in progress (e.g #155), so likely block quotes are not supported correctly. PR Welcome.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#282