Skip to content

Commit fae82d8

Browse files
committed
Update to pulldown-cmark 0.13 API changes
1 parent 3ac95b1 commit fae82d8

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

crates/mdman/src/format/man.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ impl<'e> ManRenderer<'e> {
251251
range.start
252252
);
253253
}
254+
LinkType::WikiLink { .. } => {
255+
panic!("wikilink unsupported");
256+
}
254257
}
255258
}
256259
Tag::Image { .. } => {
@@ -260,7 +263,9 @@ impl<'e> ManRenderer<'e> {
260263
| Tag::MetadataBlock { .. }
261264
| Tag::DefinitionList
262265
| Tag::DefinitionListTitle
263-
| Tag::DefinitionListDefinition => {}
266+
| Tag::DefinitionListDefinition
267+
| Tag::Superscript
268+
| Tag::Subscript => {}
264269
}
265270
}
266271
Event::End(tag_end) => {
@@ -326,7 +331,9 @@ impl<'e> ManRenderer<'e> {
326331
| TagEnd::MetadataBlock(..)
327332
| TagEnd::DefinitionListDefinition
328333
| TagEnd::DefinitionListTitle
329-
| TagEnd::DefinitionList => {}
334+
| TagEnd::DefinitionList
335+
| TagEnd::Superscript
336+
| TagEnd::Subscript => {}
330337
}
331338
}
332339
Event::Text(t) => {

crates/mdman/src/format/text.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ impl<'e> TextRenderer<'e> {
217217
range.start
218218
);
219219
}
220+
LinkType::WikiLink { .. } => {
221+
panic!("wikilink unsupported");
222+
}
220223
}
221224
}
222225
Tag::Image { .. } => {
@@ -226,7 +229,9 @@ impl<'e> TextRenderer<'e> {
226229
| Tag::MetadataBlock { .. }
227230
| Tag::DefinitionList
228231
| Tag::DefinitionListTitle
229-
| Tag::DefinitionListDefinition => {}
232+
| Tag::DefinitionListDefinition
233+
| Tag::Superscript
234+
| Tag::Subscript => {}
230235
}
231236
}
232237
Event::End(tag_end) => match &tag_end {
@@ -283,7 +288,9 @@ impl<'e> TextRenderer<'e> {
283288
| TagEnd::DefinitionList
284289
| TagEnd::DefinitionListTitle
285290
| TagEnd::Image
286-
| TagEnd::DefinitionListDefinition => {}
291+
| TagEnd::DefinitionListDefinition
292+
| TagEnd::Superscript
293+
| TagEnd::Subscript => {}
287294
},
288295
Event::Text(t) | Event::Code(t) => {
289296
if wrap_text {

0 commit comments

Comments
 (0)