Debian Codegraph @

src/tests/underline.rs

raw
1 use super::*;
2
3 #[test]
4 fn underline() {
5 html_opts!(
6 [extension.underline],
7 "__underlined text__\n",
8 "<p><u>underlined text</u></p>\n",
9 );
10 }
11
12 #[test]
13 fn underline_sourcepos() {
14 assert_ast_match!(
15 [extension.underline],
16 "__this__\n",
17 (document (1:1-1:8) [
18 (paragraph (1:1-1:8) [
19 (underline (1:1-1:8) [
20 (text (1:3-1:6) "this")
21 ])
22 ])
23 ])
24 );
25 }
26 #[test]
27 fn underline_sourcepos_emphasis() {
28 assert_ast_match!(
29 [extension.underline],
30 "___this___\n",
31 (document (1:1-1:10) [
32 (paragraph (1:1-1:10) [
33 (emph (1:1-1:10) [
34 (underline (1:2-1:9) [
35 (text (1:4-1:7) "this")
36 ])
37 ])
38 ])
39 ])
40 );
41 }