As mentioned in http://orgmode.org/manual/Literal-examples.html, when at the beginning of the line there is either “,*” or “,#+” this prepended comma should be removed before parsing.
(Fixes https://github.com/bdewey/org-ruby/issues/50)
* Hello ** Goodbye *** Not a headline, but prepended comma still removed. * I am a headline
{ "one": 1 , "two": 2 , "three": 3 , "four": 4 }
Emacs Org mode implementation also removes it.
text = <<TEXT #+TITLE: Prepended comma world * Hello world More text here TEXT
Hello world
headline, ,* Hi , , ,* This will be appended a comma * Hello world ,
#+TITLE: "Hello world"
,,,,,,,,,,,,,,,,,*Hello world