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

Extra space after list item is placing contents in code block #800

Closed
Matt-Scheetz opened this issue Jun 5, 2024 · 1 comment
Closed
Labels

Comments

@Matt-Scheetz
Copy link

Rendering LLM output (gpt-4o) and I've observed the contents after the header for a numbered list item is getting placed in a code block (See content after 10):
image

Looking at the raw text and I see that there is an extra space between the Numbered header and the content
image

As the images states there are 4 spaces after 10 and 3 spaces after all other numbered headers.

When I pasted the raw text to have it rendered and remove the extra space, the text renders without the code block:
image

Using Markdig v 0.36.2

@xoofx xoofx added the wontfix label Jun 6, 2024
@xoofx
Copy link
Owner

xoofx commented Jun 6, 2024

There is not much we can do. Their Markdown output is invalid CommonMark, as 4 spaces will always result in a code block as per the spec here.

You can try it here on GitHub and it will be the same:

    - *Description*: too bad
    - Hello world

Will give you this, similar to markdig:

- *Description*: too bad
- Hello world

@xoofx xoofx closed this as completed Jun 6, 2024
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