diff --git a/cache/lastCache.txt b/cache/lastCache.txt index 5a3e3c5..b881c39 100644 --- a/cache/lastCache.txt +++ b/cache/lastCache.txt @@ -1 +1 @@ -1529947976 \ No newline at end of file +1530040430 \ No newline at end of file diff --git a/content/index.md b/content/index.md index af930f9..fc9a5e1 100644 --- a/content/index.md +++ b/content/index.md @@ -1,3 +1,3 @@ # Typemill -TYPEMILL is a small flat file cms designed for **writers**. It creates websites based on markdown files and is a perfect solution for text-works like studies, manuals or documentations. TYPEMILL is simple, lightweight and open source. Just download and start. \ No newline at end of file +TYPEMILL is a small flat file cms designed for **writers**. It creates websites based on markdown files and is a perfect solution for text-works like studies, manuals or documentations. TYPEMILL is simple, lightweight and open source. Just download and start. \ No newline at end of file diff --git a/system/Controllers/ContentController.php b/system/Controllers/ContentController.php index 187ebdf..c2e605b 100644 --- a/system/Controllers/ContentController.php +++ b/system/Controllers/ContentController.php @@ -102,9 +102,12 @@ class ContentController extends Controller $title = false; $content = $contentMD; + $content = str_replace(array("\r\n", "\r"), "\n", $content); + $content = trim($content, "\n"); + if($contentMD[0] == '#') { - $contentParts = explode("\r\n", $contentMD, 2); + $contentParts = explode("\n", $contentMD, 2); $title = trim($contentParts[0], "# \t\n\r\0\x0B"); $content = trim($contentParts[1]); }