NormalizeRenderer loses block quote formatting when used in lists
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 5.3k
- Forks
- 510
- Avg merge
- 8d 5h
- Merged PRs (30d)
- 5
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the NormalizeRenderer entry point and reproduce the issue using the provided C# pipeline and numbered-list markdown. Compare the rendered output with the source, focusing on block quote markers nested in list items. Done means the normalized output preserves both the list structure and each block quote marker.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100