Automattic / Automattic/simplenote-macos

Improved code block display in Markdown editing mode

Open
#1,068 2 comments 0 reactions 0 assignees View on GitHub
enhancement feature request
Dominant language
Swift
Stars
1.6k
Forks
172
Avg merge
11h 17m
Merged PRs (30d)
3

Description

### What
When in Markdown editing mode, code blocks don't have any sort of formatting or highlighting.

![image](https://user-images.githubusercontent.com/917632/180459071-557eb1e6-69b1-40c6-851e-3ae325855586.png)

### Why
It would make reading Markdown notes in editing mode easier if we formatted code blocks similarly to how we format code snippets (text wrapped in single backticks).

### How
It would be nice if, at a minimum, we formatted code blocks similarly to how we format single-line snippets.

![image](https://user-images.githubusercontent.com/917632/180459404-6ae0298d-7c3a-44dc-87e8-10c200575aad.png)

Contributor guide

Open the contributing guide

Research direction

Start in the Markdown editing-mode entry point and trace how single-backtick code snippets are formatted. Compare that behavior with fenced code blocks and verify in the macOS editor that code blocks have equivalent visual formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
desktop
Issue type
Feature
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.