mikepenz/multiplatform-markdown-renderer

Incorrect markdown nested rendering

Opened this issue ยท 0 comments

Thanks a lot for having such a good markdown rendering library! ๐Ÿ‘ It basically parses most markdown content, and is also highly customizable, but in some text, it takes the outermost syntax of the markdown with it, resulting in a nested markdown text, which it can't render properly.

Here is a reproducible text:


Sure, here is a sample complex markdown text with code snippets:

```
# Markdown Sample

This is an example of a complex markdown text that includes code snippets:

## Code Snippet in Python

```python
def greet(name):
print(f"Hello, {name}!")

greet("Alice")
```

## Code Snippet in JavaScript

```javascript
function greet(name) {
console.log(Hello, ${name}!);
}

greet("Bob");
```

You can format code in markdown using triple backticks followed by the language name.

```
Feel free to modify and use this markdown text as needed.


In github, it will render as:

image

but the library will render as:

image