org-mode is awesome. This is the first step to bring it to iOS, (arguably) the most popular platform on the planet.
An simple example will explain everything.
import SwiftOrg
let lines = [
"* TODO head line",
" A normal line here.",
]
let parser = OrgParser()
let doc = try parser.parse(lines: lines)
#+TITLE: Hello World
#+OPTIONS: Hello World
* Head Line 1
* Head Line 2
** Head Line 2.1
*** Head Line 2.1.1
Lines without line breaker becomes a paragraph.
*bold*
/italic/
_underlined_
=verbatim=
~code~
+strike-through+
[[google][https://www.google.com]]
# ordered list
1. first
2) second
3. 3rd
# unordered list
- item
+ item
* item
# nested list
- item
1. sub item
1) sub item
- item
Above.
-----
Below
# This is a comment.
#This is a regular line.
#+BEGIN_SRC javascript
Console.log("Hello Org.")
#+END_SRC
#+BEGIN_QUOTE
Everything should be made as simple as possible,
but not any simpler -- Albert Einstein
#+END_QUOTE
Drawer for headlines.
* WAITING Talk to Jake
:PROPERTIES:
:CATEGORY: personal
:END:
:LOGBOOK:
State "WAITING" from "TODO" [2016-09-20 Tue 22:41] \\
waiting for call from Jake
:END:
This is a footnote right here[fn:1]. And this is the rest.
[fn:1] The content of the footnote here.
Checkboxes in list items.
- [X] item one checked
- [-] item two not checked
- [ ] item three not checked
* TODO [#A] Top Priority Task
* [#B] Medium Priority Item
* TODO [#c] Low Priority Task
* TODO [#D] No Priority Task
* Section with One Tag :tag1:
* Section with multiple tags :tag1:tag2:tag3:
- [ ] Latex Support
- [ ] Macros
SwiftOrg is written in Swift 3. So you need xcode 8 to be able to build it.
./bin/setup
./bin/test
Carthage is released under the MIT License.