The discussion revolves around enhancing the markdown preview window in Discourse to allow users to interact with usercards and links. sam proposes enabling usercard expansion and link opening (e.g., via Ctrl+click) in the preview, but codinghorror expresses concern about the risk of navigating away from the editing page. jomaxro notes that right-clicking to open links in a new tab works as a workaround, and mcwumbly asks about the risks, leading codinghorror to clarify that accidental navigation is the main concern. jomaxro confirms frequent use of Ctrl+click and suggests allowing it would improve efficiency. featheredtoast acknowledges the low risk and plans to implement usercard expansion in the preview, including for groups. featheredtoast later confirms that usercards now appear when mentioning users in the preview, with fixed positioning and z-index adjustments to ensure visibility.
One issue I hit regularly is that I want to follow links and expand usercards in the preview window. I find I get a lot more context about a user I am mentioning by visiting the card (and soon thanks to work by @featheredtoast groups)
Do we want to amend it so
Usercards always can be expanded in preview?
Link can somehow be opened from preview (ctrl or shift click or something like that)?
Sure, we can hold off on links for now (CTRL click is probably too ninja anyway so this would be building a feature for 1 person).
@featheredtoast can you take user card expansion in preview as part of your new user card work for groups, it is particularly useful for groups cause you get so much more interesting context.
Just for the record you’re not the only person that tries to Ctrl + click links in preview, I do it all the time. Fortunately, right click and open in new tab does work (at least in Chrome on Windows), so I have a workaround.
Opening links via shift/ctrl was pretty trivial and I honestly don’t see a risk – normal link clicks will still be prevented. I do not recall ever having accidentally ctrl-clicked a link.
I’m working now on refactoring the user cards a little bit, and nailing down positioning when they appear in the preview window.
Just to throw my hat in the pool, I click links in the preview every day.
The right-click trick is one I’ve used for a long time to get around it. I usually try ctrl+clicking them first and then when that fails I go to right-click it. If ctrl+click was allowed, it would save a click without navigating away from the edit window. But I’m also aware of the potential danger here.