Skip to content

message-rendering: Rendering horizontal rule in messagebox. - #1621

Open
omseervi098 wants to merge 2 commits into
zulip:mainfrom
omseervi098:add-horizontal-rule
Open

message-rendering: Rendering horizontal rule in messagebox.#1621
omseervi098 wants to merge 2 commits into
zulip:mainfrom
omseervi098:add-horizontal-rule

Conversation

@omseervi098

@omseervi098 omseervi098 commented Feb 22, 2026

Copy link
Copy Markdown

Fixes #1620

What does this PR do, and why?

Add Horizontal Rule rendering support for message box

External discussion & connections

  • Discussed in #zulip-terminal in topic
  • Fully fixes Horizontal Rule Support in Message Box #1620
  • Partially fixes issue #
  • Builds upon previous unmerged work in PR #
  • Is a follow-up to work in PR #
  • Requires merge of PR #
  • Merge will enable work on #

How did you test this?

  • Manually - Behavioral changes
  • Manually - Visual changes
  • Adapting existing automated tests
  • Adding automated tests for new behavior (or missing tests)
  • Existing automated tests should already cover this (only a refactor of tested code)

Self-review checklist for each commit

  • It is a minimal coherent idea
  • It has a commit summary following the documented style (title & body)
  • It has a commit summary describing the motivation and reasoning for the change
  • It individually passes linting and tests
  • It contains test additions for any new behavior
  • It flows clearly from a previous branch commit, and/or prepares for the next commit

Visual changes

Screenshot From 2026-02-22 23-21-44

@zulipbot zulipbot added size: M [Automatic label added by zulipbot] missing feature A general missing feature, present in another Zulip client labels Feb 22, 2026
Updated PopUpView and StreamInfoView to work with this change.
Added a horizontal rule example in MarkDownHelpView and tests.
@zulipbot zulipbot added size: XL [Automatic label added by zulipbot] and removed size: M [Automatic label added by zulipbot] labels Feb 24, 2026

@neiljp neiljp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@omseervi098 Please keep changes related to the description of a commit in that commit, and other changes elsewhere, ie. in commits before or after.

Relevant changes are good to include in a PR, but it is difficult to review individual commits when they are large or have unrelated lines.

Comment on lines 30 to +36
QUOTED_TEXT_MARKER = "░" # LIGHT SHADE, U+2591 (Block elements)

# Extends from end of recipient details (above messages where recipients differ above)
MESSAGE_HEADER_DIVIDER = "━" # BOX DRAWINGS HEAVY HORIZONTAL, U+2501 (Box drawing)

# Message body horizontal rule (<hr>)
MESSAGE_RULE_LINE = "─" # BOX DRAWINGS LIGHT HORIZONTAL, U+2500 (Box drawing)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the distinct new symbol name 👍

Only very minor note here is to keep similar things together, and MESSAGE_RULE_LINE is in a message, so probably best next to QUOTED_TEXT_MARKER :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

Comment on lines +122 to +126
{ # HORIZONTAL RULE
"name": "Horizontal Rule",
"raw_text": "---",
"html_element": "<hr>",
},

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good to include, for the help in the app 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

missing feature A general missing feature, present in another Zulip client size: XL [Automatic label added by zulipbot]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Horizontal Rule Support in Message Box

3 participants