Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse GFM Extended autolinks #71

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f8de074
Get basic GFM extended autolinks parsing
stephenreddek Oct 20, 2020
477e2e6
Run ete tests for the basic GFM autolink scenarios
stephenreddek Oct 21, 2020
c63e800
support trailing parenthesis and entity references
stephenreddek Oct 21, 2020
51e03f8
update spec results with handling trailing
stephenreddek Oct 21, 2020
ea477f2
Handling multiple trailing parenthesis
stephenreddek Oct 21, 2020
e92b08f
Make extended autolink processing lower in precedence than standard l…
stephenreddek Oct 23, 2020
cabbb93
Basic support for email autolinks
stephenreddek Oct 23, 2020
3745fd4
Require a period in the domain portion of email autolinks
stephenreddek Oct 23, 2020
0223c13
support trailing / on urls without subpages
stephenreddek Oct 30, 2020
144ceb4
add a test for when the link is nested
stephenreddek Oct 30, 2020
56d93f0
update ete
stephenreddek Oct 30, 2020
e43183d
filter out inner autolinks on html anchor nodes
stephenreddek Feb 12, 2021
953cb50
Handle when there is a period inside an unmatched parenthesis in an a…
stephenreddek Feb 13, 2021
8b5f2a1
Merge branch 'master' of https://github.com/dillonkearns/elm-markdown…
stephenreddek Feb 13, 2021
fea447a
update the ete results after merge
stephenreddek Feb 13, 2021
d6ea1c0
elm-format
stephenreddek Feb 13, 2021
7b4478b
remove filter out anchors logic.
stephenreddek Feb 13, 2021
158dbab
keep a newline at the end of test inputs
stephenreddek Feb 13, 2021
98b58f9
Skip autolinks when they're inside anchor tags
stephenreddek Feb 13, 2021
0d820fc
limit parsing the text portions of inline html
stephenreddek Feb 13, 2021
9bfa6e6
Add tests around underscore emphasis in email autolinks
stephenreddek Feb 13, 2021
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
22 changes: 14 additions & 8 deletions spec-results.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@
601,
602,
603,
604,
605,
606,
607,
608
606
],
"Backslash escapes": [
298,
Expand Down Expand Up @@ -573,11 +570,8 @@
601,
602,
603,
604,
605,
606,
607,
608
606
],
"Backslash escapes": [
298,
Expand Down Expand Up @@ -1082,6 +1076,18 @@
28,
29
],
"[extension] Autolinks": [
621,
622,
623,
624,
625,
626,
627,
629,
630,
631
],
"[extension] Strikethrough": [
491,
492
Expand Down
6 changes: 6 additions & 0 deletions src/Markdown/Inline.elm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module Markdown.Inline exposing
( Inline(..)
, extractText
, AllowedInlines(..)
)

{-| Inline rendering and helpers.
Expand Down Expand Up @@ -44,6 +45,11 @@ type Inline
| Strikethrough (List Inline)


type AllowedInlines
= AllowAll
| SkipAutolinks


type alias Attribute =
{ name : String, value : String }

Expand Down
Loading