Element-web: markdown should be consistent on all clients

Created on 3 Oct 2017  路  5Comments  路  Source: vector-im/element-web

Description

as mentioned in https://matrix.to/#/!DgvjtOljKujDBrxyHk:matrix.org/$15069853502593297uCUAW:matrix.org

On android strike through is done like this:
~~strike through~~
but on riot-web:
<del>strike through</del>

Same goes for underline

even riot-web itself isn't consistent currently: https://github.com/vector-im/riot-web/issues/3482

Version information

  • Platform: web and desktop

For the web app:

  • Browser: Firefox
  • OS: Windows, Arch Linux
  • URL: riot.im/app

For the desktop app:

  • OS: Windows, Arch Linux
  • Version: 0.12.4
bug

All 5 comments

It's a known issue android is not using commonmark as it should.

Consistency is certainly important; we're tracking the android issue here: https://github.com/vector-im/riot-android/issues/779

I'm going to close this as a duplicate in favour of the android issue and #3482

Furthermore isn't using html tags for strike through and underline, but for everything else markdown still inconsistent?

People new to riot coming from other messengers in my experience expect strike to work.

Consistency is certainly important; we're tracking the android issue here: vector-im/riot-android#779

I'm going to close this as a duplicate in favour of the android issue and #3482

I might be misreading something, but it sounds like the problem is with riot-web and not the android one. The OP says:

On android strike through is done like this:
~~strike through~~
but on riot-web:
<del>strike through</del>

If you look into github markdown cheatsheet, you'll see that android got it correctly. The problem instead is with riot-web.

Riot is using commonmark not github flavoured markdown, riot-android has an open issue to switch to commonmark so it is actually the one which is wrong as commonmark does not support that syntax

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nvbln picture nvbln  路  3Comments

anoadragon453 picture anoadragon453  路  3Comments

t3chguy picture t3chguy  路  3Comments

lukebarnard1 picture lukebarnard1  路  3Comments

NotAFile picture NotAFile  路  3Comments