mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-12 22:48:41 +00:00
Add | column separators to arrays.
This adds the ability to add `|` to a column description and have vertical separators be added. I added types to the column descriptions and added some logic to handle the separators when building the vertical lists of the array. Test plan: - See the Arrays screenshot looks good. - `make test`
This commit is contained in:
@@ -497,20 +497,28 @@
|
||||
}
|
||||
}
|
||||
|
||||
.arraycolsep {
|
||||
display: inline-block;
|
||||
}
|
||||
.mtable {
|
||||
.vertical-separator {
|
||||
display: inline-block;
|
||||
margin: 0 -0.025em;
|
||||
border-right: 0.05em solid black;
|
||||
}
|
||||
|
||||
.col-align-c > .vlist {
|
||||
text-align: center;
|
||||
}
|
||||
.arraycolsep {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.col-align-l > .vlist {
|
||||
text-align: left;
|
||||
}
|
||||
.col-align-c > .vlist {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-align-r > .vlist {
|
||||
text-align: right;
|
||||
.col-align-l > .vlist {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.col-align-r > .vlist {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user