Skip to content

Commit

Permalink
Rename hidden field, refactor some code
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 20, 2024
1 parent 6bd4f63 commit 4ad5342
Show file tree
Hide file tree
Showing 2 changed files with 235 additions and 521 deletions.
6 changes: 6 additions & 0 deletions src/mdast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ pub enum AlignKind {
/// > | | --- |
/// ^^^
/// ```
// To do: this should serialize in serde as `null`.
None,
}

Expand Down Expand Up @@ -475,6 +476,7 @@ pub enum AttributeContent {
)]
pub struct AttributeValueExpression {
pub value: String,
#[cfg_attr(feature = "serde", serde(rename = "_markdownRsStops"))]
pub stops: Vec<Stop>,
}

Expand Down Expand Up @@ -1161,6 +1163,7 @@ pub struct MdxjsEsm {
pub position: Option<Position>,

// Custom data on where each slice of `value` came from.
#[cfg_attr(feature = "serde", serde(rename = "_markdownRsStops"))]
pub stops: Vec<Stop>,
}

Expand All @@ -1181,6 +1184,7 @@ pub struct MdxFlowExpression {
pub position: Option<Position>,

// Custom data on where each slice of `value` came from.
#[cfg_attr(feature = "serde", serde(rename = "_markdownRsStops"))]
pub stops: Vec<Stop>,
}

Expand All @@ -1201,6 +1205,7 @@ pub struct MdxTextExpression {
pub position: Option<Position>,

// Custom data on where each slice of `value` came from.
#[cfg_attr(feature = "serde", serde(rename = "_markdownRsStops"))]
pub stops: Vec<Stop>,
}

Expand Down Expand Up @@ -1301,6 +1306,7 @@ pub struct MdxJsxExpressionAttribute {
/// Value.
pub value: String,
/// Stops
#[cfg_attr(feature = "serde", serde(rename = "_markdownRsStops"))]
pub stops: Vec<Stop>,
}

Expand Down
Loading

0 comments on commit 4ad5342

Please sign in to comment.