Apparently this is enough to run into an infinite loop somewhere. text := '- one - # cry'. doc := PRPillarParser parse: text. Also question regarding pillar syntax, is not possible to indent it in the syntax? e.g. - one -# one.one - two -# two.one -# two.two Flattening it makes an _indented_ list hard to read (and defeats the point why we indent things in the first place...) Peter |
No pillar is line based and the beginning of the line is key.
On Sat, Aug 26, 2017 at 5:56 PM, Peter Uhnák <[hidden email]> wrote: > Apparently this is enough to run into an infinite loop somewhere. > > text := '- one > - # cry'. > doc := PRPillarParser parse: text. > > > Also question regarding pillar syntax, is not possible to indent it in the > syntax? > > e.g. > > - one > -# one.one > - two > -# two.one > -# two.two > > Flattening it makes an _indented_ list hard to read (and defeats the point > why we indent things in the first place...) > > Peter |
While we are at it, Pillar cannot parse strikethrough if it is on the start of the line On Sat, Aug 26, 2017 at 7:05 PM, Stephane Ducasse <[hidden email]> wrote: No pillar is line based and the beginning of the line is key. |
This is strange because we should probably have test for this.
Can you paste your example? On Sat, Aug 26, 2017 at 9:15 PM, Peter Uhnák <[hidden email]> wrote: > While we are at it, Pillar cannot parse strikethrough if it is on the start > of the line > > > On Sat, Aug 26, 2017 at 7:05 PM, Stephane Ducasse <[hidden email]> > wrote: >> >> No pillar is line based and the beginning of the line is key. >> >> On Sat, Aug 26, 2017 at 5:56 PM, Peter Uhnák <[hidden email]> wrote: >> > Apparently this is enough to run into an infinite loop somewhere. >> > >> > text := '- one >> > - # cry'. >> > doc := PRPillarParser parse: text. >> > >> > >> > Also question regarding pillar syntax, is not possible to indent it in >> > the >> > syntax? >> > >> > e.g. >> > >> > - one >> > -# one.one >> > - two >> > -# two.one >> > -# two.two >> > >> > Flattening it makes an _indented_ list hard to read (and defeats the >> > point >> > why we indent things in the first place...) >> > >> > Peter >> > |
It interprets it as an unordered list text := '--text--'. doc := PRPillarParser parse: text. PRPillarWriter write: doc. "'- --text\-\-'" it thinks that it is a unordered list as you can see by the writing out. But imho producing unordered list is also wrong because there is no preceeding "first level" (two dashes indicate 2. level nesting, but there was no 1. level) On Sun, Aug 27, 2017 at 8:30 PM, Stephane Ducasse <[hidden email]> wrote: This is strange because we should probably have test for this. |
Free forum by Nabble | Edit this page |