-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deprecate |> #24886
Closed
Closed
Deprecate |> #24886
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
939255e
Update operators.jl
bramtayl 3bedfae
Update deprecated.jl
bramtayl 4815fff
Fixed argument order
bramtayl cdce4e8
Remove docs
bramtayl 117d13d
removed |> instances
bramtayl d74b4f2
Merge branch 'master' into patch-1
bramtayl bd23146
round 2
bramtayl ab5fbe1
Merge branch 'patch-1' of https://github.com/bramtayl/julia into patch-1
bramtayl 9160240
bugfix
bramtayl 467de32
bugfix
bramtayl a27361e
bugfixes
bramtayl 75df3d1
bugfix
bramtayl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,7 +214,6 @@ export | |
\, | ||
^, | ||
|, | ||
|>, | ||
~, | ||
:, | ||
=>, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,7 +188,6 @@ Core.applicable | |
Core.invoke | ||
Base.invokelatest | ||
new | ||
Base.:(|>) | ||
Base.:(∘) | ||
Base.equalto | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,24 +201,24 @@ end | |
@test md"Foo \[bar](baz)" == MD(Paragraph("Foo [bar](baz)")) | ||
|
||
# Basic plain (markdown) output | ||
@test md"foo" |> plain == "foo\n" | ||
@test md"foo *bar* baz" |> plain == "foo *bar* baz\n" | ||
@test md"# title" |> plain == "# title\n" | ||
@test md"## section" |> plain == "## section\n" | ||
@test md"## section `foo`" |> plain == "## section `foo`\n" | ||
@test md"""Hello | ||
@test plain(md"foo") == "foo\n" | ||
@test plain(md"foo *bar* baz") == "foo *bar* baz\n" | ||
@test plain(md"# title") == "# title\n" | ||
@test plain(md"## section") == "## section\n" | ||
@test plain(md"## section `foo`") == "## section `foo`\n" | ||
@test plain(md"""Hello | ||
|
||
--- | ||
World""" |> plain == "Hello\n\n---\n\nWorld\n" | ||
@test md"[*a*](b)" |> plain == "[*a*](b)\n" | ||
@test md""" | ||
World""") == "Hello\n\n---\n\nWorld\n" | ||
@test plain(md"[*a*](b)") == "[*a*](b)\n" | ||
@test plain(md""" | ||
> foo | ||
> | ||
> * bar | ||
> | ||
> ``` | ||
> baz | ||
> ```""" |> plain == """> foo\n>\n> * bar\n>\n> ```\n> baz\n> ```\n\n""" | ||
> ```""") == """> foo\n>\n> * bar\n>\n> ```\n> baz\n> ```\n\n""" | ||
|
||
# Terminal (markdown) output | ||
|
||
|
@@ -240,45 +240,45 @@ let doc = Markdown.parse( | |
end | ||
|
||
# HTML output | ||
@test md"foo *bar* baz" |> html == "<p>foo <em>bar</em> baz</p>\n" | ||
@test md"something ***" |> html == "<p>something ***</p>\n" | ||
@test md"# h1## " |> html == "<h1>h1##</h1>\n" | ||
@test md"## h2 ### " |> html == "<h2>h2</h2>\n" | ||
@test md"###### h6" |> html == "<h6>h6</h6>\n" | ||
@test md"####### h7" |> html == "<p>####### h7</p>\n" | ||
@test md" >" |> html == "<blockquote>\n</blockquote>\n" | ||
@test md"1. Hello" |> html == "<ol>\n<li><p>Hello</p>\n</li>\n</ol>\n" | ||
@test md"* World" |> html == "<ul>\n<li><p>World</p>\n</li>\n</ul>\n" | ||
@test md"# title *blah*" |> html == "<h1>title <em>blah</em></h1>\n" | ||
@test md"## title *blah*" |> html == "<h2>title <em>blah</em></h2>\n" | ||
@test md"<https://julialang.org>" |> html == """<p><a href="https://julialang.org">https://julialang.org</a></p>\n""" | ||
@test md"<mailto://[email protected]>" |> html == """<p><a href="mailto://[email protected]">mailto://[email protected]</a></p>\n""" | ||
@test md"<https://julialang.org/not a link>" |> html == "<p><https://julialang.org/not a link></p>\n" | ||
@test md"""<https://julialang.org/nota | ||
link>""" |> html == "<p><https://julialang.org/nota link></p>\n" | ||
@test md"""Hello | ||
@test html(md"foo *bar* baz") == "<p>foo <em>bar</em> baz</p>\n" | ||
@test html(md"something ***") == "<p>something ***</p>\n" | ||
@test html(md"# h1## ") == "<h1>h1##</h1>\n" | ||
@test html(md"## h2 ### ") == "<h2>h2</h2>\n" | ||
@test html(md"###### h6") == "<h6>h6</h6>\n" | ||
@test html(md"####### h7") == "<p>####### h7</p>\n" | ||
@test html(md" >") == "<blockquote>\n</blockquote>\n" | ||
@test html(md"1. Hello") == "<ol>\n<li><p>Hello</p>\n</li>\n</ol>\n" | ||
@test html(md"* World") == "<ul>\n<li><p>World</p>\n</li>\n</ul>\n" | ||
@test html(md"# title *blah*") == "<h1>title <em>blah</em></h1>\n" | ||
@test html(md"## title *blah*") == "<h2>title <em>blah</em></h2>\n" | ||
@test html(md"<https://julialang.org>") == """<p><a href="https://julialang.org">https://julialang.org</a></p>\n""" | ||
@test html(md"<mailto://[email protected]>") == """<p><a href="mailto://[email protected]">mailto://[email protected]</a></p>\n""" | ||
@test html(md"<https://julialang.org/not a link>") == "<p><https://julialang.org/not a link></p>\n" | ||
@test html(md"""<https://julialang.org/nota | ||
link>""") == "<p><https://julialang.org/nota link></p>\n" | ||
@test html(md"""Hello | ||
|
||
--- | ||
World""" |> html == "<p>Hello</p>\n<hr />\n<p>World</p>\n" | ||
@test md"`escape</code>`" |> html == "<p><code>escape</code></code></p>\n" | ||
World""") == "<p>Hello</p>\n<hr />\n<p>World</p>\n" | ||
@test html(md"`escape</code>`") == "<p><code>escape</code></code></p>\n" | ||
|
||
@test md""" | ||
@test html(md""" | ||
code1 | ||
|
||
code2 | ||
""" |> html == "<pre><code>code1\n\ncode2</code></pre>\n" # single code block | ||
""") == "<pre><code>code1\n\ncode2</code></pre>\n" # single code block | ||
|
||
# @test md""" | ||
# @test html(md""" | ||
# - Foo | ||
# --- | ||
# - Bar""" |> html == "<ul>\n<li>Foo</li>\n</ul>\n<hr />\n<ul>\n<li>Bar</li>\n</ul>\n" | ||
@test md""" | ||
# - Bar""") == "<ul>\n<li>Foo</li>\n</ul>\n<hr />\n<ul>\n<li>Bar</li>\n</ul>\n" | ||
@test html(md""" | ||
h1 | ||
=== | ||
h2 | ||
--- | ||
not | ||
== =""" |> html == "<h1>h1</h1>\n<h2>h2</h2>\n<p>not == =</p>\n" | ||
== =""") == "<h1>h1</h1>\n<h2>h2</h2>\n<p>not == =</p>\n" | ||
|
||
# Latex output | ||
book = md""" | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
|>
is being removed, shouldn't<|
also be removed here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Not sure. Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see. Yeah dunno.