Skip to content

Conversation

@andrey18106
Copy link
Contributor

Summary

Enable markdown support for comment content block (NcRichText). Increase max comment block height limit, add scroll.

image

Checklist

@andrey18106 andrey18106 requested a review from a team as a code owner August 27, 2025 20:34
@andrey18106 andrey18106 requested review from nfebe, skjnldsv and szaimen and removed request for a team August 27, 2025 20:34
@skjnldsv
Copy link
Member

Labels ? Milestone ?
Is it scheduled for 32 or just something you're working on ?

@susnux
Copy link
Contributor

susnux commented Aug 28, 2025

I fear a bit that this break accessibility of the comments because of headings.
if you put e.g.

# heading 1
some test

into the markdown than this will be rendered as <h1> in the sidebar, but this might be semantically wrong for the page layout. @Antreesy how do you handle this in Talk to ensure the page semantics stay correct?

@Antreesy
Copy link
Contributor

Antreesy commented Aug 28, 2025

how do you handle this in Talk to ensure the page semantics stay correct?

Here's the trick: we don't 🤷🏽
But I think we can tweak on vue-library side to render # expect h1 in h2 tag. They're locked to the same size anyway

@DaphneMuller
Copy link

Labels ? Milestone ? Is it scheduled for 32 or just something you're working on ?

@skjnldsv it is not scheduled for Nextcloud 32 specifically, since feature freeze has passed

@szaimen szaimen added enhancement 3. to review Waiting for reviews labels Aug 28, 2025
@szaimen szaimen added this to the Nextcloud 33 milestone Aug 28, 2025
@DaphneMuller
Copy link

@susnux @Antreesy what would be the next step here?

@Antreesy
Copy link
Contributor

Antreesy commented Oct 8, 2025

what would be the next step here?

Ensure that NcRichText satisfies a11y requirements, as I'm not sure it was a part of BITV certification (Talk app was not). Then it should be good to go

@DaphneMuller
Copy link

@Antreesy and do you know who I can ask this to?

@Antreesy
Copy link
Contributor

it was a part of BITV certification

I'd assume, Ferdinand, Grigorii or Julia might help

@DaphneMuller
Copy link

@JuliaKirschenheuter @ShGKme @susnux can some of you review this PR please? There are concerns regarding the accessibility

@DaphneMuller
Copy link

ping @JuliaKirschenheuter

@ShGKme
Copy link
Contributor

ShGKme commented Oct 27, 2025

Checking the possibilities

@ShGKme
Copy link
Contributor

ShGKme commented Oct 27, 2025

The only solution I see: while keeping the original style, level down headings inside NcRichText:

  • h1 -> h4, h2 -> h5, h3 -> h6
  • h4, h5, h6 -> also h6...

I'd also consider making the style of the heading smaller, so people don't use h4 as the first heading just to have a small font size heading.

@ShGKme
Copy link
Contributor

ShGKme commented Oct 27, 2025

This also breaks comments of users using only h3..h6. But we can either ignore it (they should have used h1..h3), or we can manually increase the level before levelling it down, if high-level headings are unused.

@susnux
Copy link
Contributor

susnux commented Oct 27, 2025

The only solution I see: while keeping the original style, level down headings inside NcRichText:

We do similar in apps/settings/src/components/Markdown.vue
Where we limit the min heading to not interfere with current context of headings.

@ShGKme
Copy link
Contributor

ShGKme commented Oct 27, 2025

I wouldn't limit the users from using #, ##, ###.

Instead, I'd render them as low-level headings, and "disrespect" using ####, #####, ###### by making them the same visually.

In this case users by default use valid internal and short structure.

@susnux
Copy link
Contributor

susnux commented Oct 27, 2025

Instead, I'd render them as low-level headings, and "disrespect" using ####, #####, ###### by making them the same visually.

Thats what it is doing.
Its rendered visually as the correct h but semantically its then clamped

@ShGKme
Copy link
Contributor

ShGKme commented Oct 28, 2025

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

Labels

3. to review Waiting for reviews enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown support in Comments

8 participants