emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/markdown-mode 52ce98b929 2/7: Add tests for html escaping


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode 52ce98b929 2/7: Add tests for html escaping title
Date: Tue, 11 Apr 2023 22:01:44 -0400 (EDT)

branch: elpa/markdown-mode
commit 52ce98b929bcdd6db03a9a3e4c80e0e2a89eda15
Author: Mark A. Hershberger <mah@nichework.com>
Commit: Shohei YOSHIDA <syohex@gmail.com>

    Add tests for html escaping title
---
 tests/markdown-test.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/markdown-test.el b/tests/markdown-test.el
index 42590b2429..8e4773f4f1 100644
--- a/tests/markdown-test.el
+++ b/tests/markdown-test.el
@@ -7325,6 +7325,14 @@ Detail: 
https://github.com/jrblevin/markdown-mode/issues/747";
       (should (string= (buffer-substring-no-properties (point-min) (point-max))
                        "| -c | some text |\n|    |           |\n")))))
 
+(ert-deftest test-markdown-table/ensure-valid-html-title ()
+  "Test `markdown-table-aligh' for the line which starts with dash.
+Detail: https://github.com/jrblevin/markdown-mode/issues/747";
+  (markdown-test-string "simple"
+    (markdown-add-xhtml-header-and-footer "test<&>")
+    (goto-char (point-min))
+    (should (search-forward "test&lt;&amp;&gt;"))))
+
 (provide 'markdown-test)
 
 ;;; markdown-test.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]