mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +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 indent two spaces for code.
|
||||
Use %%% for a literal block.
|
||||
Use <table>...</table> for tables.
|
||||
Use | ... | ... for tables.
|
||||
|
||||
= Basic Styling =
|
||||
|
||||
|
@ -359,7 +359,21 @@ escape HTML and preserve line breaks).
|
|||
|
||||
= 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>
|
||||
<tr>
|
||||
|
|
|
@ -453,6 +453,7 @@ final class PhabricatorMarkupEngine {
|
|||
$blocks[] = new PhutilRemarkupEngineRemarkupCodeBlockRule();
|
||||
$blocks[] = new PhutilRemarkupEngineRemarkupNoteBlockRule();
|
||||
$blocks[] = new PhutilRemarkupEngineRemarkupTableBlockRule();
|
||||
$blocks[] = new PhutilRemarkupEngineRemarkupSimpleTableBlockRule();
|
||||
$blocks[] = new PhutilRemarkupEngineRemarkupDefaultBlockRule();
|
||||
|
||||
$custom_block_rule_classes = $options['custom-block'];
|
||||
|
|
Loading…
Reference in a new issue