1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-04 21:27:41 +02:00

Version 1.2.0 Introducing editor (markdown parsing for editor fixed)

This commit is contained in:
Sebastian
2018-06-27 08:46:51 +02:00
parent 65f986f1f4
commit 0df0bd5a8e
3 changed files with 6 additions and 3 deletions

2
cache/lastCache.txt vendored
View File

@@ -1 +1 @@
1529947976
1530040430

View File

@@ -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.
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.

View File

@@ -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]);
}