Skip to content

Commit

Permalink
Fix #130 - handle links inside blockquotes
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Apr 25, 2020
1 parent 6e143c0 commit f72a8c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- `neuron ... rib serve` is now `neuron rib -wS`.
- Bug fixes
- Fix regression in neuron library use
- #130: Handle links inside blockquotes
- UI
- Tags are restyled and positioned below
- Produce compact CSS in HTML head
Expand Down
1 change: 1 addition & 0 deletions src/Text/MMark/MarkdownLink.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ extractLinks = Set.toList . Set.fromList . flip runScanner (Fold go [] id)
relevantInlines = \case
Ext.Naked xs -> toList xs
Ext.Paragraph xs -> toList xs
Ext.Blockquote xs -> concatMap relevantInlines xs
Ext.OrderedList _ xs -> concat $ concatMap (fmap relevantInlines) xs
Ext.UnorderedList xs -> concat $ concatMap (fmap relevantInlines) xs
_ -> []

0 comments on commit f72a8c7

Please sign in to comment.