roadrunnertwice: Wrecked bicyclist. Dialogue: "I am fucking broken." (Bike - Fucking broken (Never as Bad))
Nick Eff ([personal profile] roadrunnertwice) wrote in [community profile] usershortcutbugs2020-06-04 09:58 am

State of bugs, June 4

OK, so after perusing the examples throughout the community alongside their source text, here's what I'm seeing:

  • Most of the bugs are fixed.
  • The remaining bugs can be summed up as "user mentions before a sentence-ending period usually go bad."

Yeah? (edit: found the problem, PR here.)

That fits with the behavior changes I made recently, which went live in the (april? may?) code push. The current intended behavior for @mentions is:

Enabled for both HTML and Markdown.

NOT enabled when "don't autoformat" is set.

TEMPORARILY DISABLED within the following elements (both Markdown and HTML variants):

  • Code spans (<code> or backticks)
  • Preformatted blocks (<pre>; this also catches Markdown indented code blocks, which render to html as <pre><code>...</code></pre>)
  • <textarea>s
  • <raw-code>
  • embedded tweets (<blockquotes> that have a special class. kind of a weird exception.)

Errata

  • The "bold" examples below don't look like they're working, but that's just because user tag text is already styled with a bold font weight. If you inspect the HTML, you'll see they're properly wrapped in a <strong> element.
  • I didn't see any examples of this one yet, but user tags used to act weird inside links, in a variety of ways. Now, we should be using a non-linked variant of the user tag, so it looks right but doesn't break the link:
jesse_the_k: text: Be kinder than need be: everyone is fighting some kind of battle (Default)

Hooray for these comments

[personal profile] jesse_the_k 2020-06-05 09:29 pm (UTC)(link)
...I'm presently too toasted to interact, but I'm so grateful you're looking at this stuff. Will try to bring brain to bear next week.