Various typesetting quirks for certain combinations of formatting elements in Markdown comments #1282

Closed
opened 2023-08-15 01:06:10 +00:00 by brainchild · 8 comments

Description

Certain combinations of formatting elements, in display of existing issues, lead to unappealing typesetting, as managed by style definitions.

Environment

  • Server: Codeberg community instance, codeberg.org, at time of posting.
  • GitNex version: 5.1.2
  • Installation source: F-Droid
  • System: Lineage OS for microG, version 19, on Pixel 4 (flame)
  • Authentication type: password

The issue relates to typographic display. Included at the end of the post is a sequence of screen captures intended to show system settings that may affect such display.

Details

A few quirks of formatting style were noticed when reviewing a post recently submitted to the issue tracker.

They include the following, as may be seen in the below screen capture (see highlighted area):

  • Excessive inline white space follows and precedes code spans.
  • Hyperlinks enclosing code spans are displayed with extra underlining preceding and following the horizontal extent of text.
  • For list items spanning multiple paragraphs, vertical space between list items is too little, but too great between paragraphs with an item.

Screenshot_20230814-182245_GitNex.png
Screenshot_20230814-164105_GitNex.png
Screenshot_20230814-162602_GitNex.png

Appendix

See below for screen captures representing relevant display settings.


Screenshot_20230814-183006_Settings.png
Screenshot_20230814-183023_Settings.png
Screenshot_20230814-183045_Settings.png
Screenshot_20230814-183058_Settings.png

# Description Certain combinations of formatting elements, in display of existing issues, lead to unappealing typesetting, as managed by style definitions. # Environment - Server: Codeberg community instance, `codeberg.org`, at time of posting. - GitNex version: 5.1.2 - Installation source: F-Droid - System: Lineage OS for microG, version 19, on Pixel 4 (flame) - Authentication type: password The issue relates to typographic display. Included at the end of the post is a sequence of screen captures intended to show system settings that may affect such display. # Details A few quirks of formatting style were noticed when reviewing a post recently submitted to the issue tracker. They include the following, as may be seen in the below screen capture (see highlighted area): - Excessive inline white space follows and precedes code spans. - Hyperlinks enclosing code spans are displayed with extra underlining preceding and following the horizontal extent of text. - For list items spanning multiple paragraphs, vertical space between list items is too little, but too great between paragraphs with an item. --- ![Screenshot_20230814-182245_GitNex.png](/attachments/6e571578-9bdc-4fb4-95aa-a8ed6a1fe1cc) ![Screenshot_20230814-164105_GitNex.png](/attachments/215ccd43-d885-4b6e-9557-a331cdc137ce) ![Screenshot_20230814-162602_GitNex.png](/attachments/64dcac7b-ff3d-49a5-afb8-d0e2b7d2ba02) # Appendix See below for screen captures representing relevant display settings. --- ![Screenshot_20230814-183006_Settings.png](/attachments/90582f63-20a4-407a-a90e-34df575da347) ![Screenshot_20230814-183023_Settings.png](/attachments/0a58e7f3-9607-4115-bf99-c683c95dab77) ![Screenshot_20230814-183045_Settings.png](/attachments/c090d429-322a-427f-aa41-734a2ceaed77) ![Screenshot_20230814-183058_Settings.png](/attachments/f6d8e4bb-874c-407b-adee-655dd9ab4319)
Owner

Thanks for providing details for each step.

Excessive inline white space follows and precedes code spans.

I don't think this is an issue. It is normal, and in most places, you will see some space in it.

Hyperlinks enclosing code spans are displayed with extra underlining preceding and following the horizontal extent of text.

Valid point

For list items spanning multiple paragraphs, vertical space between list items is too little, but too great between paragraphs with an item.

Valid point

Now, onto the actual bits: we are using the https://github.com/noties/Markwon library for rendering Markdown. We have extended it a bit to add a few GitNex related features. However, these basic fixes should be done upstream.

I'm also not sure if the library is maintained anymore; the last release was in 2021.

Thanks for providing details for each step. > Excessive inline white space follows and precedes code spans. I don't think this is an issue. It is normal, and in most places, you will see some space in it. > Hyperlinks enclosing code spans are displayed with extra underlining preceding and following the horizontal extent of text. Valid point > For list items spanning multiple paragraphs, vertical space between list items is too little, but too great between paragraphs with an item. Valid point Now, onto the actual bits: we are using the https://github.com/noties/Markwon library for rendering Markdown. We have extended it a bit to add a few GitNex related features. However, these basic fixes should be done upstream. I'm also not sure if the library is maintained anymore; the last release was in 2021.
mmarif added the
💻 UI/UX
🪜 Upstream
labels 2023-08-18 06:58:22 +00:00
Author

Does the library support custom styling? Could you render in a web display pane, first converting to a representation in HTML?

Nextcloud Notes is an example of an Android application under active development that displays Markdown text. Recent versions even have a WYSIYG editor.

The first issue looks quite awkward to me, and not as formatting to which I am accustomed.

Does the library support custom styling? Could you render in a web display pane, first converting to a representation in HTML? Nextcloud Notes is an example of an Android application under active development that displays Markdown text. Recent versions even have a WYSIYG editor. The first issue looks quite awkward to me, and not as formatting to which I am accustomed.
brainchild changed title from Various typesetting quirks appear for certain cominations of formatting elements to Various typesetting quirks for certain combinations of formatting elements in Markdown comments 2023-08-18 07:27:07 +00:00
Owner

Nextcloud Notes is using the same library with modified tooling, and they have their own set of UI nitpicks.

To each their own; to me, these are not issues, just UI nitpicks, and I am personally fine with them.

However, to accommodate/fix these, I would advise opening an issue on the upstream project for the fixes.

Library examples: https://noties.io/Markwon/#supported-markdown-features

Nextcloud Notes is using the same library with modified tooling, and they have their own set of UI nitpicks. To each their own; to me, these are not issues, just UI nitpicks, and I am personally fine with them. However, to accommodate/fix these, I would advise opening an issue on the upstream project for the fixes. Library examples: https://noties.io/Markwon/#supported-markdown-features
Author

The screenshots for Markwon show code spans formatted with background highlighting, making the excessive white space seem more natural. Most of the space is within the highlighted box, and therefore the space between its edges and the surrounding text is quite minimal.

The screenshots for Markwon show code spans formatted with background highlighting, making the excessive white space seem more natural. Most of the space is within the highlighted box, and therefore the space between its edges and the surrounding text is quite minimal.

Could I also mention inline code in headings being paragraph-sized? Example: https://codeberg.org/foxy/visimp. Are links not automatically detected if MD link syntax is not used on purpose?

Could I also mention inline code in headings being paragraph-sized? Example: [https://codeberg.org/foxy/visimp](https://codeberg.org/foxy/visimp). Are links not automatically detected if MD link syntax is not used on purpose?
mmarif added
🐛 Bug
and removed
🪜 Upstream
labels 2024-03-28 14:11:05 +00:00
mmarif added this to the 5.4.0 milestone 2024-03-28 14:11:28 +00:00
mmarif self-assigned this 2024-03-28 14:11:42 +00:00
Owner

#1342 will address most of the UI MD issues.

@foxy I did not really understand your request or issue. Can you please add screenshots maybe to clarify it?
If needed please open a new issue.

#1342 will address most of the UI MD issues. @foxy I did not really understand your request or issue. Can you please add screenshots maybe to clarify it? If needed please open a new issue.

Here it is: inline code + h1.

# hello `world`

I am assuming hello and world should be the same size.

Here it is: inline code + h1. ``` # hello `world` ``` I am assuming hello and world should be the same size.
Owner

Yes, it should be.

This is also fixed in the PR I mentioned above. All these issues related to MD are fixed in it.

Yes, it should be. This is also fixed in the PR I mentioned above. All these issues related to MD are fixed in it.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#1282
No description provided.