Skip to content

Apply parse-backticks to more pages - #3290

Merged
fregante merged 28 commits into
refined-github:masterfrom
kidonng:parse-backticks
Jul 16, 2020
Merged

fregante merged 28 commits into
refined-github:masterfrom
kidonng:parse-backticks

Conversation

@kidonng

@kidonng kidonng commented Jun 26, 2020 •

Copy link
Copy Markdown
Member

Add/update the following selectors in the new layout:

Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
@fregante fregante added the bug label Jul 1, 2020
@kidonng

kidonng commented Jul 3, 2020 •

Copy link
Copy Markdown
Member Author

Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
@yakov116

yakov116 commented Jul 3, 2020

Copy link
Copy Markdown
Member

@kidonng I did not check if you already are since my git just corrupted itself (lost all my stashes 😢 and local branches)
But can you add support for
image

@kidonng

kidonng commented Jul 3, 2020

Copy link
Copy Markdown
Member Author

@yakov116 Nice, will add it now

@fregante

fregante commented Jul 7, 2020

Copy link
Copy Markdown
Member

Is this done?

Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
@kidonng

kidonng commented Jul 8, 2020 •

Copy link
Copy Markdown
Member Author

Working on:

@kidonng
kidonng marked this pull request as draft July 11, 2020 17:34
@fregante

Copy link
Copy Markdown
Member
* hovercards (hard to implement)
* Some non-code pages (Explore and Topics) 😄 Thought it isn't particularly useful

Let's skip these

@kidonng

kidonng commented Jul 13, 2020

Copy link
Copy Markdown
Member Author

Is there any concern about parsing the backticks in hovercards? I looked into linkify-user-location and found that it is not as complex as I thought. Maybe performance issues?

@fregante

Copy link
Copy Markdown
Member

found that it is not as complex as I thought

Let's try it then 👍

@kidonng
kidonng marked this pull request as ready for review July 15, 2020 04:40
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
Comment thread source/features/parse-backticks.tsx Resolved
@fregante

Copy link
Copy Markdown
Member

I'll merge this for now, but I think this is a prime opportunity to try selector-observer: #3084

I keep seeing parts of the UI update and lose the parse-backticks formatting and I don't want to follow each and every part with observeElement

Can you try implementing it next? You can probably just merge every selector into one and keep using rgh-backticks-already-parsed to avoid them being re-parsed (which was the problem last time I tried the package)

@fregante fregante changed the title Update parse-backticks selectors Apply parse-backticks to more pages Jul 16, 2020
@fregante
fregante merged commit cffceeb into refined-github:master Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants