From 58c234aa8cb6e76d377f07cbf0b59f2552eb296b Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Wed, 6 May 2020 03:30:20 +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 'strong' and 'em' tags to 'b' and 'i' 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 9b29b844d01..b5ff6a69671 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -1852,8 +1852,8 @@ This takes effect when first loading the library.") "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 @@ have

Very Major Headlines

through
Very Minor Headlines

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.39.5