Commit Graph

13 Commits

Author SHA1 Message Date
Christophe HENRY 98e7098f29 refactoring, adds debug.css 2021-03-27 21:30:19 +01:00
Christophe HENRY 731aa3bda2 Don't compress spaces for preformated text 2021-03-25 23:33:48 +01:00
Christophe HENRY c858b733f4 Replaces several spaces to only one 2021-03-25 15:24:51 +01:00
Christophe HENRY 91abafdce0 FIX: each blockquote lines are in <p> 2021-03-25 12:22:39 +01:00
Christophe HENRY 7b58fc1a26 Merge remote-tracking branch master into dev 2021-03-24 11:18:57 +01:00
Christophe HENRY 750632eaff Corrects the engine after unit testing
gemTextParser
* Removes the last empty lines of text files.
* Removes the last spaces (rtrim) even on preformated texts.
* Lines like "# " are possible, meaning an empty title.
* The line "=>" means an empty link.

GemtextTranslate_gemtext
* FIX: writes the alt text of preformated blocks
* Adds a space when quotation lines have value, otherwise lets ">".
* Adds a space when the link has values, otherwise not.
* A bit of reformating
2021-03-24 10:58:54 +01:00
Christophe HENRY c1299a2bdb FIX: adds line feed inside a blockquote
Example:
> line_1
> line_2

Before :
line_1 line_2

After :
Line_1
Line_2
2021-03-21 00:14:55 +01:00
Christophe HENRY 731a8eef6a Escapes the quotes and enable double encode 2021-03-20 15:21:43 +01:00
Christophe HENRY 0e508a7d57 Removes ob_* functions 2021-03-19 17:54:24 +01:00
Christophe HENRY 5df9d5ff15 FIX: textDecoration switch not updated 2021-03-19 17:49:21 +01:00
Christophe HENRY d280ceff94 WIP 2021-03-18 22:04:31 +01:00
Christophe HENRY 859b0aad81 Deep refactoring: parsing, translating, classes
* Removes "^" to disable text decoration line-wise.
* Split HTML generation in two: parsing and translating.
* Create class to handle gemtext parsing.
* Create class to translate to HTML.
* Create class to generate back gemtext (for future test cases).
* Uses generators to parse then translate.
* Fix: 404 doesn't occur for an empty file.
* Page 404 fully generated by HtmGem itself.
* CSS is no longer incorporated in the HTML page.
* Handle CSS inclusion by addCss() calls.
2021-03-18 22:03:44 +01:00
Christophe HENRY 9726203d07 Split index.php into two files to isolate the lib 2021-03-16 15:00:02 +01:00