</textarea> <input type="submit" name="kirimkomentar_materi" value="kirim"> </form> </td> </tr> </table> <h3>KOMENTAR</h3> <?php //untuk daftar komentar $id_materi = $_GET['id']; $sql = "SELECT * FROM tbkomunikasi WHERE id_materi = '{$id_materi}' ORDER BY waktu DESC"; $data = mysql_query($sql); while ($row = mysql_fetch_assoc($data)) { $namauser = $row['id_anggota']; $isi = $parsedown->text($row['isi']); ?> <table width="100%" border="1"> <tr> <td><?php echo $fungsi->idanggota_to_username($namauser)["nama_lengkap"]; ?> <?php echo date('d F Y H:i:s A', $row['waktu']); ?> </td> </tr> <tr> <td><?php echo $isi;
echo $parsedown->text($contents); ?> </div> <div class="tabpage" id="tabpage_3"> <h2>Leaderboard</h2> <input type="button" id="ladderrefresh" class="Send" value="Refresh leaderboard" onclick="getleader();"> <div id="ladder"></div> </div> <div class="tabpage" id="tabpage_4"><?php require_once 'parsedown.php'; $contents = file_get_contents('content/advanced_user.md'); $parsedown = new parsedown(); echo $parsedown->text($contents); ?> </div> <div class="tabpage" id="tabpage_5"><?php require_once 'parsedown.php'; $contents = file_get_contents('content/contribute.md'); $parsedown = new parsedown(); echo $parsedown->text($contents); ?> </div> </div> </div> </div> </div> <?php include 'includes/footer.php'; ?> </body> </html>
<!--taken from http://code.runnable.com/U314bamP1FkG5tH1/parsedown-demo-a-parser-for-markdown-in-php--> <html> <head> <title>Documentation</title> <link rel="stylesheet" href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css"> </head> <body> <div class='container'> <div class="markdown"> <?php // include markdown content as seperate file for maintainability require_once "help_markdown.php"; //setup parsedown require_once "Parsedown.php"; $parsedown = new parsedown(); //parse markdown as html echo $parsedown->text($markdown); ?> </div> </div> </body> </html>