Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion math-core/src/latex_parser/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ static COMMANDS: phf::Map<&'static str, Token> = phf::phf_map! {
"wedge" => BinaryOp(symbol::LOGICAL_AND),
"wedgeq" => Relation(symbol::ESTIMATES), // from "stix"
"widecheck" => OverUnder(symbol::CARON, true, None),
"widehat" => OverUnder(symbol::CIRCUMFLEX_ACCENT, true, None),
"widehat" => OverUnder(symbol::COMBINING_CIRCUMFLEX_ACCENT, true, Some(OpAttr::StretchyTrue)),
"wideparen" => OverUnderBrace(symbol::TOP_PARENTHESIS, true),
"widetilde" => OverUnder(symbol::TILDE, true, None),
"wp" => Letter(symbol::SCRIPT_CAPITAL_P),
Expand Down
1 change: 1 addition & 0 deletions math-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ pub enum MathDisplay {
#[derive(Debug, Clone, Copy, Default)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", serde(rename_all = "kebab-case"))]
#[non_exhaustive]
pub enum PrettyPrint {
/// Never pretty print.
#[default]
Expand Down
2 changes: 2 additions & 0 deletions math-core/src/mathml_renderer/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ impl MathVariant {
pub enum OpAttr {
#[strum(serialize = r#" stretchy="false""#)]
StretchyFalse = 1,
#[strum(serialize = r#" stretchy="true""#)]
StretchyTrue,
#[strum(serialize = r#" movablelimits="false""#)]
NoMovableLimits,
#[strum(serialize = r#" movablelimits="true""#)]
Expand Down
2 changes: 1 addition & 1 deletion math-core/src/mathml_renderer/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ pub const EQUALS_SIGN: Rel = rel('=', RelCategory::Default);
pub const LEFT_SQUARE_BRACKET: Fence = Fence('[');
pub const REVERSE_SOLIDUS: OrdLike = ord('\\', OrdCategory::OnlyK);
pub const RIGHT_SQUARE_BRACKET: Fence = Fence(']');
pub const CIRCUMFLEX_ACCENT: Rel = rel('^', RelCategory::Default);
// pub const CIRCUMFLEX_ACCENT: Rel = rel('^', RelCategory::Default);
pub const LOW_LINE: Rel = rel('_', RelCategory::Default);
pub const GRAVE_ACCENT: Rel = rel('`', RelCategory::Default);

Expand Down
2 changes: 1 addition & 1 deletion math-core/tests/snapshots/wiki_test__wiki008.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ expression: "\\hat{a}, \\widehat{a}, \\vec{a}"
<mo>,</mo>
<mover accent="true">
<mi>a</mi>
<mo>^</mo>
<mo stretchy="true">̂</mo>
</mover>
<mo>,</mo>
<mover accent="true">
Expand Down
2 changes: 1 addition & 1 deletion math-core/tests/snapshots/wiki_test__wiki112.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ expression: "\\hat a \\ \\bar b \\ \\vec c \\\\ \\overrightarrow{a b} \\ \\overl
<mi>e</mi>
<mi>f</mi>
</mrow>
<mo>^</mo>
<mo stretchy="true">̂</mo>
</mover>
<mover accent="true">
<mrow>
Expand Down
Loading