Automattic / Automattic/simplenote-macos

Italic Markdown Formatting Inconsistency

Open
#317 0 comments 0 reactions 0 assignees View on GitHub
[feature] markdown bug
Dominant language
Swift
Stars
1.6k
Forks
172
Avg merge
11h 17m
Merged PRs (30d)
3

Description

Italic markdown formatting seems to be inconsistent. There's a difference between the macOS app version and other apps.

#### Steps to reproduce
1. Create a new note.
2. Add text with several underscores, e. g.:

`Some_text_with_underscores`

3. Click "Preview".

#### What I expected

Formatting like this:

![Screen Shot on 2019-04-17 at 10:25:39](https://user-images.githubusercontent.com/25105483/56272626-693a5880-60fb-11e9-8e82-08cf9bc92f12.png)

(simplenote-electron)

![Screen Shot on 2019-04-17 at 10:29:22](https://user-images.githubusercontent.com/25105483/56272776-b74f5c00-60fb-11e9-96ab-b3f048b1d5c8.png)

(new web app)

#### What happened instead

![Screen Shot on 2019-04-17 at 10:26:00](https://user-images.githubusercontent.com/25105483/56272801-c2a28780-60fb-11e9-9494-aa5fd3dd725e.png)

This is the same formatting as can be seen in the current version of the web app:

![Screen Shot on 2019-04-17 at 10:33:41](https://user-images.githubusercontent.com/25105483/56273109-63914280-60fc-11e9-8216-652c0ac72a0a.png)

#### macOS version

1.4.2

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the macOS app's Preview flow with `Some_text_with_underscores`, then trace the markdown rendering entry point used there. Compare its output with the examples from simplenote-electron and the web app; done means underscore-delimited text renders consistently with the expected formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.