File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff 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) => {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments