Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add table remarkup to Diviner

Summary: See D2902.

Test Plan: Generated docs.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D2904
  • Loading branch information...
commit 13b62df53f543e9b709c7e9be83d74ef79e9460a 1 parent 9dd70ad
@epriestley epriestley authored
View
17 resources/css/default_style.css
@@ -407,3 +407,20 @@ table.atom-info td {
margin: 0;
}
+table.remarkup-table {
+ border-collapse: separate;
+ border-spacing: 1px;
+ background: #d3d3d3;
+ margin: 1em;
+}
+
+table.remarkup-table th {
+ font-weight: bold;
+ padding: 3px 6px;
+ background: #e3e3e3;
+}
+
+table.remarkup-table td {
+ background: #ffffff;
+ padding: 3px 6px;
+}
View
1  src/renderer/DivinerDefaultRenderer.php
@@ -188,6 +188,7 @@ protected function getMarkupEngine() {
$blocks[] = new PhutilRemarkupEngineRemarkupNoteBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupListBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupCodeBlockRule();
+ $blocks[] = new PhutilRemarkupEngineRemarkupTableBlockRule();
$blocks[] = new PhutilRemarkupEngineRemarkupDefaultBlockRule();
foreach ($blocks as $block) {
Please sign in to comment.
Something went wrong with that request. Please try again.