packages feed

org-mode 1.0.0 → 1.0.1

raw patch · 5 files changed

+128/−3 lines, 5 files

Files

CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## 1.0.1 (2020-03-06)++#### Fixed++- Fixed broken test suite due to missing files.+ ## 1.0.0 (2020-03-05)  #### Added
org-mode.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.2 name:               org-mode-version:            1.0.0+version:            1.0.1 description:        Parser for Emacs org-mode files. homepage:           https://github.com/fosskers/org-mode author:             Colin Woodbury@@ -12,6 +12,8 @@ extra-source-files:   README.md   CHANGELOG.md+  test/simple.org+  test/test.org  common commons   default-language:   Haskell2010
test/Test.hs view
@@ -20,9 +20,9 @@ main = do   simple <- T.readFile "test/simple.org"   full   <- T.readFile "test/test.org"-  let fl = parseMaybe orgFile full+  -- let fl = parseMaybe orgFile full   -- pPrintNoColor fl-  maybe (putStrLn "COULDN'T PARSE") T.putStrLn $ prettyOrgFile <$> fl+  -- maybe (putStrLn "COULDN'T PARSE") T.putStrLn $ prettyOrgFile <$> fl   defaultMain $ suite simple full  suite :: T.Text -> T.Text -> TestTree@@ -133,6 +133,13 @@     , testCase "List - Multiline"       $ testPretty list "List" "- A\n  B\n- C"       $ List (ListItems [Item [Plain "A", Plain "B"] Nothing, Item [Plain "C"] Nothing])++    , testCase "List - Special Parens"+      $ testPretty list "List" "- The [[https://github.com/kadena-io/chainweb-node][A]] (core developer)\n- B"+      $ List (ListItems+              [ Item [Plain "The", Link (URL "https://github.com/kadena-io/chainweb-node") (Just "A"), Punct '(', Plain "core", Plain "developer)"] Nothing+              , Item [Plain "B"] Nothing ]+             )      , testCase "Table - One Row"       $ testPretty table "Table" "| A | B | C |"
+ test/simple.org view
@@ -0,0 +1,15 @@+* Heading++** Subheading++Text!++Another paragraph!++* Heading 2 with /Bold/++Text!++* Heading 3++More text!
+ test/test.org view
@@ -0,0 +1,95 @@+#+TITLE: The Test File+#+DATE: 2020-02-17+#+AUTHOR: Colin+#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../assets/org-theme.css"/>++Some text before the initial heading.++* A Heading++** A subheading++*** We have to go deeper++*This is some bold text* within a normal paragraph. However I should tell you+that the paragraph doesn't end there. It has multiple lines! Oh, but having only+one would be lonely...++So we'll make /a second one/. How about some code?++#+begin_src haskell+  -- | Very complicated.+  main :: IO ()+  main = putStrLn "org-mode tests"+#+end_src++** More++And a quote.++#+begin_quote+Always keep some cash on hand, you never know.++- Albert Einstein+#+end_quote++* Another Heading!++[[https://www.fosskers.ca/][Check out my website.]] It has a blog with ~code~ samples.++* Heading with /markup/++さぁ日本語も入れたらどうなる?++* A simple list++Things to do:++- Pet the cat+- Feed the cat+- [[https://www.youtube.com/][Watch cat videos]]+  - Go to site+  - Click on video+    - Make sure to click really hard+  - Watch video+- Water the cat++* List with Parens++This is a paragraph (or is it?). There's only one way to know.+I think (*we should* be bold *about*) our decisions.++- Here is an item+- This (is an item too).+- This (is an item)+- This (*A* is)+- This (*A* is) a cat+- This (*A* yes *B*), why?++* List from About page++- The [[https://github.com/fosskers/aura][Aura Package Manager]] for Arch Linux+- The [[https://github.com/kadena-io/chainweb-node][Kadena Public Blockchain]] (core developer)+- [[https://github.com/fosskers/mapalgebra][MapAlgebra]]  - An implementation of /GIS and Cartographic Modelling/ by Dana Tomlin+- Mapbox VectorTile codecs ([[https://github.com/fosskers/vectortiles][Haskell]], [[https://github.com/locationtech/geotrellis/tree/master/vectortile][Scala]])+- [[https://github.com/fosskers/scalaz-and-cats][ScalaZ and Cats Comparison]] and the [[https://github.com/fosskers/scala-benchmarks][Scala Collections Benchmarks]]++* Some Tables++| A | B | C |+|---+---+---|+| D | E | F |++| *A* Yes |           | /B/ No ~C~ |+|---------+-----------+------------|+|         |           |            |+|---------+-----------+------------|+|         | [[./img.png]] |            |++* Parens++() (Stuff in parens.) (/Markup/).++* The End++Farewell.