Skip to content
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...
1 parent 9dd70ad commit 13b62df53f543e9b709c7e9be83d74ef79e9460a @epriestley epriestley committed
Showing with 18 additions and 0 deletions.
  1. +17 −0 resources/css/default_style.css
  2. +1 −0 src/renderer/DivinerDefaultRenderer.php
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) {

0 comments on commit 13b62df

Please sign in to comment.
Something went wrong with that request. Please try again.