Page MenuHomePhabricator

[native] Add markdownASTHasPressable to TextMessageMarkdownContext
ClosedPublic

Authored by ashoat on Nov 29 2022, 7:21 AM.
Tags
None
Referenced Files
F3377706: D5755.diff
Wed, Nov 27, 6:48 AM
Unknown Object (File)
Sat, Nov 23, 2:38 PM
Unknown Object (File)
Fri, Nov 8, 4:16 PM
Unknown Object (File)
Fri, Nov 8, 4:16 PM
Unknown Object (File)
Fri, Nov 8, 4:08 PM
Unknown Object (File)
Fri, Nov 8, 3:59 PM
Unknown Object (File)
Wed, Nov 6, 7:05 PM
Unknown Object (File)
Mon, Nov 4, 3:10 AM
Subscribers

Details

Summary

We need to know whether the Markdown has any pressables because we're going to render it differently in that case.

Test Plan

I tested the following text and made sure each link counted as pressable:

Here’s a [link](https://comm.app)

Here’s a **bold [link2](https://comm.app)**

here’s a [**bold link3**](https://comm.app)

Here’s a raw link https://comm.app

Here’s a **bolded raw link https://comm.app**

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

(Scenarios included in the Test Plan seem like they'd be good candidates for unit tests... just a thought definitely not a priority)

This revision is now accepted and ready to land.Nov 30 2022, 9:19 AM