diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2017-06-25 11:01:43 +0300 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-06-25 10:01:43 +0200 |
commit | f8877516e03ec678aeb735cdafe56e20ca52b235 (patch) | |
tree | a003ea57d18b783bf0c8bf85a5d71c9d9f70c7bf /test | |
parent | 743419af5c0872d8e4b5fdf53d47080e8648b4a7 (diff) |
Muse reader: Require space before and after '=' for code (#3758)
Diffstat (limited to 'test')
-rw-r--r-- | test/Tests/Readers/Muse.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index cac69dffa..bae389584 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -58,6 +58,8 @@ tests = , "Code" =: "=foo(bar)=" =?> para (code "foo(bar)") + , "Not code" =: "a=b= =c=d" =?> para (text "a=b= =c=d") + , "Code tag" =: "<code>foo(bar)</code>" =?> para (code "foo(bar)") , testGroup "Links" @@ -79,6 +81,12 @@ tests = , "Image link with description" =: "[[URL:image.jpg][Image]]" =?> para (link "image.jpg" "" (text "Image")) + -- Implicit links are supported in Emacs Muse, but not in Amusewiki: + -- https://github.com/melmothx/text-amuse/issues/18 + -- + -- This test also makes sure '=' without whitespace is not treated as code markup + , "No implicit links" =: "http://example.org/index.php?action=view&id=1" + =?> para "http://example.org/index.php?action=view&id=1" ] ] |