1
0
mirror of https://tildegit.org/sbgodin/HtmGem.git synced 2023-08-25 13:53:12 +02:00
Commit Graph

15 Commits

Author SHA1 Message Date
ba5e465e17 Adds lang="" to raise no error on HTML validation 2021-03-30 10:01:50 +02:00
9471c43674 Enables browsing without URL Rewriting 2021-03-28 22:41:45 +02:00
98e7098f29 refactoring, adds debug.css 2021-03-27 21:30:19 +01:00
731aa3bda2 Don't compress spaces for preformated text 2021-03-25 23:33:48 +01:00
c858b733f4 Replaces several spaces to only one 2021-03-25 15:24:51 +01:00
91abafdce0 FIX: each blockquote lines are in <p> 2021-03-25 12:22:39 +01:00
7b58fc1a26 Merge remote-tracking branch master into dev 2021-03-24 11:18:57 +01:00
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
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
731a8eef6a Escapes the quotes and enable double encode 2021-03-20 15:21:43 +01:00
0e508a7d57 Removes ob_* functions 2021-03-19 17:54:24 +01:00
5df9d5ff15 FIX: textDecoration switch not updated 2021-03-19 17:49:21 +01:00
d280ceff94 WIP 2021-03-18 22:04:31 +01:00
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
9726203d07 Split index.php into two files to isolate the lib 2021-03-16 15:00:02 +01:00