Skip to content

Inconsistent Markdown rendering: underscores don't render as italics or bold; links within italics or bold fail to render (more issues noted in comments) #18

@samglover

Description

@samglover

Describe the bug

In Markdown, text surrounded by asterisks or underscores should render as italics (single asterisks/underscores) or bold (double).

Both of these strings should render as italics: *italics* _italics_

And these strings should render in italics, with a link:

*See: [Link](https://example.com)*
_See: [Link](https://example.com)_

Both of these strings should render as bold: **bold** __bold__

And these strings should render in bold, with a link:

**See: [Link](https://example.com)**
__See: [Link](https://example.com)__

They render properly in GitHub issues, for example:

italics
italics
See: Link
See: Link
bold
bold
See: Link
See: Link

However, in Memos they do not:

Image

Steps to reproduce

Paste the following into a note, then click Save:

*italics*
_italics_
*See: [Link](https://example.com)*
_See: [Link](https://example.com)_
**bold**
__bold__
**See: [Link](https://example.com)**
__See: [Link](https://example.com)__

The version of Memos you're using

v0.24.0

Screenshots or additional context

No response

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions