minad / olelo

Wiki with git backend
MIT License
241 stars 43 forks source link

Textile Syntax Parsing: <pre>Block</pre> only works if free line before #23

Closed marvin2k closed 14 years ago

marvin2k commented 14 years ago

Using textile Syntax, the Raw-Text-Block only works when its following an emtpy line. The first one works...

Works (empty line is included in raw-text-block...)

While the second one does not work, instead the rest of the page is lost

works not

Text is lost

minad commented 14 years ago

can you please give me an example file which shows the problem? Create an example page on http://git.awiki.org/.

marvin2k commented 14 years ago

jeah, I did... in http://git.awiki.org/Tests/Textile -- but on your machine it seems to work... same tile does not render correct on my machine

minad commented 14 years ago

you are using redcloth? which version? I use the newest one 4.3.2

marvin2k commented 14 years ago

Yes, is installed RedCloth (4.2.3) via gem, just a few minutes ago...,

minad commented 14 years ago

are there any errors in the log file?

minad commented 14 years ago

you could edit the textile-engine, which renders the textile page. The textile engine is a filter engine which is configured in config/engines.rb. You could remove filters for testing purposes and check if the problem persists.

marvin2k commented 14 years ago

log files seems to be clear (in INFO mode, DEBUG is overwhelming...)

uncommenting the "textile_nowiki.tag { textile!.rubypants }" in config/engines:63, textile parsing is disabled, modifing the regexp changes parsing, too. But not fixing it...

the pre-stuff only damages rendering, if two lines of text are not seperated by an empty line... something stupid around the corner?

minad commented 14 years ago

filters are separated by newline or by '.'. Some filters can also have subfilters, example the tag filter. You can disable these separately. Filters which end with ! are mandatory filters.

Disable tag filter:

textile_nowiki
textile!              # textile is mandatory
rubypants

Disable textile_nowiki: tag { textile!.rubypants } # tag has subfilters

Disable rubypants: textile_nowiki.tag { textile! }

minad commented 14 years ago

@marvin2k: still not working?

marvin2k commented 14 years ago

fixed with libxml2 2.7.7.dfsg-4