将markdown放入最终端,而不是编辑端

This commit is contained in:
2024-12-06 15:14:36 +08:00
parent 7e38b20e99
commit 769cecd0b1
2 changed files with 43 additions and 14 deletions

View File

@@ -115,14 +115,31 @@ div[class*=ace_br] {
<div class="column">
<h4 class="ui top attached block header"><?php echo $MSG_Description?></h4>
<div id="description" class="ui bottom attached segment font-content">
<?php if (str_contains($row['description'],"md auto_select"))echo $row['description']; else echo bbcode_to_html($row['description']); ?></div>
<span class='md auto_select'>
<?php
// if (str_contains($row['description'],"md auto_select"))
echo $row['description'];
// else echo bbcode_to_html($row['description']);
?>
</span>
</div>
</div>
</div>
<?php if($row['input']||isset($_GET['spa'])){ ?>
<div class="row">
<div class="column">
<h4 class="ui top attached block header"><?php echo $MSG_Input?></h4>
<div id='input' class="ui bottom attached segment font-content"><?php echo bbcode_to_html($row['input']); ?></div>
<div id='input' class="ui bottom attached segment font-content">
<span class='md auto_select'>
<?php echo
// bbcode_to_html(
$row['input']
// );
?>
</span>
</div>
</div>
</div>
<?php }?>
@@ -130,7 +147,16 @@ div[class*=ace_br] {
<div class="row">
<div class="column">
<h4 class="ui top attached block header"><?php echo $MSG_Output?></h4>
<div id='output' class="ui bottom attached segment font-content"><?php echo bbcode_to_html($row['output']); ?></div>
<div id='output' class="ui bottom attached segment font-content">
<span class='md auto_select'>
<?php echo
// bbcode_to_html(
$row['output']
// );
?>
</span>
</div>
</div>
</div>
<?php }?>
@@ -174,7 +200,16 @@ div[class*=ace_br] {
<div class="row">
<div class="column">
<h4 class="ui top attached block header"><?php echo $MSG_HINT?></h4>
<div id='hint' class="ui bottom attached segment font-content hint"><?php echo bbcode_to_html($row['hint']); ?></div>
<div id='hint' class="ui bottom attached segment font-content hint">
<span class='md auto_select'>
<?php echo
// bbcode_to_html(
$row['hint']
// );
?>
</span>
</div>
</div>
</div>
<?php }?>