Switch strong/em back to b/i

In the absence of strong arguments either way, and given the fact that
strong/em has broken a few (perhaps rare) use-cases, reverting seems
prudent. But happy to revisit this again in the future if someone has
a convincing argument for why we should be doing it differently.

Closes #1807
This commit is contained in:
Damien Elmes 2022-04-19 16:28:44 +10:00
parent 6017214042
commit 856d4763a9
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { context as editorToolbarContext } from "./EditorToolbar.svelte";
import { boldIcon } from "./icons";
const surroundElement = document.createElement("strong");
const surroundElement = document.createElement("b");
function matcher(element: HTMLElement | SVGElement, match: MatchType): void {
if (element.tagName === "B" || element.tagName === "STRONG") {

View file

@ -15,7 +15,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { context as editorToolbarContext } from "./EditorToolbar.svelte";
import { italicIcon } from "./icons";
const surroundElement = document.createElement("em");
const surroundElement = document.createElement("i");
function matcher(element: HTMLElement | SVGElement, match: MatchType): void {
if (element.tagName === "I" || element.tagName === "EM") {