Stack substack rows with TeX inter-row gaps
This commit is contained in:
1 parent
0b611b6b1e
commit
8686b9a35e
6 files changed
+80
-12
No files matched your search
@@ -7450,6 +7450,14 @@ mod source_tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[test]
|
||||
fn substack_scripts_paint_their_rows() {
|
||||
let json = preview_json("\\[\\sum_{\\substack{i=1 \\\\ j=2}} x\\]").expect("preview");
|
||||
assert!(json.contains(">i</text>"));
|
||||
assert!(json.contains(">j</text>"));
|
||||
assert!(!json.contains("substack"));
|
||||
}
|
||||
|
||||
fn matrix_environments_paint_their_delimiters() {
|
||||
let json = preview_json("\\[\\begin{bmatrix} a & b \\\\ c & d \\end{bmatrix}\\]")
|
||||
.expect("matrix preview");
|
||||
|
||||
Reference in new issue
Block a user