aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2020-05-06 03:30:20 +0200
committerStefan Kangas2020-05-06 03:30:20 +0200
commit58c234aa8cb6e76d377f07cbf0b59f2552eb296b (patch)
treefc91e4beb90cf46b8a02301c600b1da78d63c29d
parent8f6524db832f0c6fdbbbc639149fe63065a62096 (diff)
downloademacs-58c234aa8cb6e76d377f07cbf0b59f2552eb296b.tar.gz
emacs-58c234aa8cb6e76d377f07cbf0b59f2552eb296b.zip
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.
-rw-r--r--lisp/textmodes/sgml-mode.el6
1 files 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.")
1852 "Keymap for commands for use in HTML mode.") 1852 "Keymap for commands for use in HTML mode.")
1853 1853
1854(defvar html-face-tag-alist 1854(defvar html-face-tag-alist
1855 '((bold . "b") 1855 '((bold . "strong")
1856 (italic . "i") 1856 (italic . "em")
1857 (underline . "u") 1857 (underline . "u")
1858 (mode-line . "rev")) 1858 (mode-line . "rev"))
1859 "Value of `sgml-face-tag-alist' for HTML mode.") 1859 "Value of `sgml-face-tag-alist' for HTML mode.")
@@ -2363,7 +2363,7 @@ have <h1>Very Major Headlines</h1> through <h6>Very Minor Headlines</h6>
2363 2363
2364<p>Paragraphs only need an opening tag. Line breaks and multiple spaces are 2364<p>Paragraphs only need an opening tag. Line breaks and multiple spaces are
2365ignored unless the text is <pre>preformatted.</pre> Text can be marked as 2365ignored unless the text is <pre>preformatted.</pre> Text can be marked as
2366<b>bold</b>, <i>italic</i> or <u>underlined</u> using the normal M-o or 2366<strong>bold</strong>, <em>italic</em> or <u>underlined</u> using the normal M-o or
2367Edit/Text Properties/Face commands. 2367Edit/Text Properties/Face commands.
2368 2368
2369Pages can have <a name=\"SOMENAME\">named points</a> and can link other points 2369Pages can have <a name=\"SOMENAME\">named points</a> and can link other points