diff options
author | Lukas Epple <lukas.epple@me.com> | 2013-10-06 15:24:00 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-10-06 15:49:42 +0200 |
commit | ca9258d2106204750d688e8ab0b2ce916b214828 (patch) | |
tree | 142afe7c6a8253b912971b7640ccfe3286930c06 /application/controllers | |
parent | 6c7ab381646754c657755274f706905e5bfacbf2 (diff) |
Fix display error when redering markdown
Initial-patch-by: Lukas Epple <lukas.epple@me.com>
Switch from <table> to <div> like we did for pygments.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/file.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index f6891c4bf..4d88ed465 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -145,9 +145,11 @@ class File extends MY_Controller { if ($lexer == "rmd") { ob_start(); - echo '<table class="content"><tr>'; - echo '<td class="markdownrender">'."\n"; + echo '<div class="code content table markdownrender">'."\n"; + echo '<div class="table-row">'."\n"; + echo '<div class="table-cell">'."\n"; passthru('perl '.FCPATH.'scripts/Markdown.pl '.escapeshellarg($file), $cached["return_value"]); + echo '</div></div></div>'; $cached["output"] = ob_get_contents(); ob_end_clean(); |