mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-18 09:48:39 +01:00
Support simple table Remarkup in Phabricator
Summary: {F21402} Test Plan: Generated docs, used it in comment. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3726
This commit is contained in:
parent
679f530054
commit
251446b928
2 changed files with 17 additions and 2 deletions
|
@ -38,7 +38,7 @@ empty lines:
|
||||||
Use "- " or "* " for bulleted lists, and "# " for numbered lists.
|
Use "- " or "* " for bulleted lists, and "# " for numbered lists.
|
||||||
Use ``` or indent two spaces for code.
|
Use ``` or indent two spaces for code.
|
||||||
Use %%% for a literal block.
|
Use %%% for a literal block.
|
||||||
Use <table>...</table> for tables.
|
Use | ... | ... for tables.
|
||||||
|
|
||||||
= Basic Styling =
|
= Basic Styling =
|
||||||
|
|
||||||
|
@ -359,7 +359,21 @@ escape HTML and preserve line breaks).
|
||||||
|
|
||||||
= Tables =
|
= Tables =
|
||||||
|
|
||||||
Remarkup supports a simplified HTML table syntax. For example, this:
|
Remarkup supports simple table syntax. For example, this:
|
||||||
|
|
||||||
|
| Fruit | Color | Price | Peel?
|
||||||
|
| ----- | ----- | ----- | -----
|
||||||
|
| Apple | red | `$0.93` | no
|
||||||
|
| Banana | yellow | `$0.19` | **YES**
|
||||||
|
|
||||||
|
...produces this:
|
||||||
|
|
||||||
|
| Fruit | Color | Price | Peel?
|
||||||
|
| ----- | ----- | ----- | -----
|
||||||
|
| Apple | red | `$0.93` | no
|
||||||
|
| Banana | yellow | `$0.19` | **YES**
|
||||||
|
|
||||||
|
Remarkup also supports a simplified HTML table syntax. For example, this:
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -453,6 +453,7 @@ final class PhabricatorMarkupEngine {
|
||||||
$blocks[] = new PhutilRemarkupEngineRemarkupCodeBlockRule();
|
$blocks[] = new PhutilRemarkupEngineRemarkupCodeBlockRule();
|
||||||
$blocks[] = new PhutilRemarkupEngineRemarkupNoteBlockRule();
|
$blocks[] = new PhutilRemarkupEngineRemarkupNoteBlockRule();
|
||||||
$blocks[] = new PhutilRemarkupEngineRemarkupTableBlockRule();
|
$blocks[] = new PhutilRemarkupEngineRemarkupTableBlockRule();
|
||||||
|
$blocks[] = new PhutilRemarkupEngineRemarkupSimpleTableBlockRule();
|
||||||
$blocks[] = new PhutilRemarkupEngineRemarkupDefaultBlockRule();
|
$blocks[] = new PhutilRemarkupEngineRemarkupDefaultBlockRule();
|
||||||
|
|
||||||
$custom_block_rule_classes = $options['custom-block'];
|
$custom_block_rule_classes = $options['custom-block'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue