basecamp / basecamp/writebook

Bug Report: Accented Characters Are Incorrectly Rendered in Markdown Editor

Open
#432 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Ruby
Stars
547
Forks
93
Avg merge
2d 6h
Merged PRs (30d)
8

Description

Version: `ghcr.io/basecamp/writebook:1.2.0`

When using the Markdown editor in WriteBook with the US-International keyboard layout, accented characters are handled incorrectly.

In this keyboard layout, accented characters in Spanish (á, é, í, ó, ú, ü, ñ) are produced using a dead key sequence:

* First press the apostrophe/accent key (')
* Then press the target letter (a) to produce á

If the user wants to type only the apostrophe character itself, they must press:

* apostrophe twice ('')
* or apostrophe followed by space (' )

Current behavior in the WriteBook Markdown editor:

Instead of replacing the dead key sequence with the final accented character, the editor renders both characters together. For example:

* Typing ' followed by a
* Produces: 'á
* Expected result: á

This appears to indicate that the editor is not correctly handling dead key / composition events from international keyboard layouts.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.