From 5cc040b8552463db67aede1aa94d716e0a09e76a Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 4 May 2020 00:35:07 +0200 Subject: [PATCH] Prefer 'strong' and 'em' to 'b' and 'i' in html-mode * lisp/textmodes/sgml-mode.el (html-face-tag-alist): Prefer inserting the '' and '' tags to ' and '' in html-mode. (Bug#41031) * lisp/textmodes/sgml-mode.el (html-mode): Update docstring to do the same. --- lisp/textmodes/sgml-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 9b29b844d0..b5ff6a6967 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -1852,8 +1852,8 @@ html-mode-map "Keymap for commands for use in HTML mode.") (defvar html-face-tag-alist - '((bold . "b") - (italic . "i") + '((bold . "strong") + (italic . "em") (underline . "u") (mode-line . "rev")) "Value of `sgml-face-tag-alist' for HTML mode.") @@ -2363,7 +2363,7 @@ html-mode

Paragraphs only need an opening tag. Line breaks and multiple spaces are ignored unless the text is

preformatted.
Text can be marked as -bold, italic or underlined using the normal M-o or +bold, italic or underlined using the normal M-o or Edit/Text Properties/Face commands. Pages can have named points and can link other points -- 2.26.2