hackmdio / hackmdio/hackmd-io-issues

Spoiler block captions containing a period not immediately followed by white space are rendered incorrectly

Open
#379 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
40
Forks
9
PR merge metrics
No merged PRs in 30d

Description

### Is this a hackmd.io issue?

- [x] Yes, the bug happens on https://hackmd.io

### What's the problem

#### Current behaviour

When using a `:::spoiler` block with a caption that contains a `.`, everything from the `.` up to and including the next white space in the caption seems to be ignored for rendering.

![image](https://github.com/user-attachments/assets/fa63f05d-c421-46db-a121-e9d849cbb4d7)

[See this example note, displaying the issue in three different ways.](https://hackmd.io/MxeHSzXuSOeX-Zwsgukz2Q?both)

Steps to reproduce:

1. Create a note containing a spoiler block in which the caption contains a period not immediately followed by white space.

#### Expected behaviour

The caption is rendered faithfully, as it would be in the body of a paragraph.

#### Environment

I use HackMD on:

**Desktop**
- OS: Linux (Ubuntu 22.04)
- Browser: Chrome
- Browser Version: 126.0.6478.126

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.