Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14361296
D14354.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D14354.diff
View Options
diff --git a/src/markup/engine/__tests__/remarkup/newline-then-block.txt b/src/markup/engine/__tests__/remarkup/newline-then-block.txt
--- a/src/markup/engine/__tests__/remarkup/newline-then-block.txt
+++ b/src/markup/engine/__tests__/remarkup/newline-then-block.txt
@@ -18,9 +18,9 @@
<div class="remarkup-code-block" data-code-lang="txt" data-sigil="remarkup-code-block"><pre class="remarkup-code">First line of code block.
Second line of code block.</pre></div>
-<table class="remarkup-table">
+<div class="remarkup-table-wrap"><table class="remarkup-table">
<tr><td>Cell 1</td><td>Cell 2</td></tr>
-</table>
+</table></div>
~~~~~~~~~~
This is a paragraph.
diff --git a/src/markup/engine/__tests__/remarkup/simple-table-with-link.txt b/src/markup/engine/__tests__/remarkup/simple-table-with-link.txt
--- a/src/markup/engine/__tests__/remarkup/simple-table-with-link.txt
+++ b/src/markup/engine/__tests__/remarkup/simple-table-with-link.txt
@@ -1,7 +1,7 @@
| [[ http://example.com | name ]] | [x] |
~~~~~~~~~~
-<table class="remarkup-table">
+<div class="remarkup-table-wrap"><table class="remarkup-table">
<tr><td><a href="http://example.com" class="remarkup-link" target="_blank" rel="noreferrer">name</a></td><td>[x]</td></tr>
-</table>
+</table></div>
~~~~~~~~~~
| name <http://example.com> | [x] |
diff --git a/src/markup/engine/__tests__/remarkup/simple-table.txt b/src/markup/engine/__tests__/remarkup/simple-table.txt
--- a/src/markup/engine/__tests__/remarkup/simple-table.txt
+++ b/src/markup/engine/__tests__/remarkup/simple-table.txt
@@ -7,12 +7,12 @@
| //sys// | 24 s | 12 s | 13 s | 24 s
| -------
~~~~~~~~~~
-<table class="remarkup-table">
+<div class="remarkup-table-wrap"><table class="remarkup-table">
<tr><td>analyze_resources</td><th>original</th><th>mobile only</th><th>www only</th><th>both</th></tr>
<tr><th><em>real</em></th><td>31 s</td><td>24 s</td><td>31 s</td><td>31 s</td></tr>
<tr><th><em>user</em></th><td>49 s</td><td>25 s</td><td>31 s</td><td>49 s</td></tr>
<tr><th><em>sys</em></th><td>24 s</td><td>12 s</td><td>13 s</td><td>24 s</td></tr>
-</table>
+</table></div>
~~~~~~~~~~
| analyze_resources | original | mobile only | www only | both |
| | -------- | ----------- | -------- | ---- |
diff --git a/src/markup/engine/__tests__/remarkup/table.txt b/src/markup/engine/__tests__/remarkup/table.txt
--- a/src/markup/engine/__tests__/remarkup/table.txt
+++ b/src/markup/engine/__tests__/remarkup/table.txt
@@ -4,11 +4,11 @@
<tr><td>`edge`</td><td>?</td></tr>
</table>
~~~~~~~~~~
-<table class="remarkup-table">
+<div class="remarkup-table-wrap"><table class="remarkup-table">
<tr><th>Table</th><th>Storage</th></tr>
<tr><td><tt class="remarkup-monospaced">differential_diff</tt></td><td>InnoDB</td></tr>
<tr><td><tt class="remarkup-monospaced">edge</tt></td><td>?</td></tr>
-</table>
+</table></div>
~~~~~~~~~~
| Table | Storage |
| ------------------- | ------- |
diff --git a/src/markup/engine/remarkup/blockrule/PhutilRemarkupBlockRule.php b/src/markup/engine/remarkup/blockrule/PhutilRemarkupBlockRule.php
--- a/src/markup/engine/remarkup/blockrule/PhutilRemarkupBlockRule.php
+++ b/src/markup/engine/remarkup/blockrule/PhutilRemarkupBlockRule.php
@@ -157,7 +157,8 @@
$out[] = "\n";
}
- return phutil_tag('table', $table_attributes, $out);
+ $table = phutil_tag('table', $table_attributes, $out);
+ return phutil_tag_div('remarkup-table-wrap', $table);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 11:11 AM (17 h, 56 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6913748
Default Alt Text
D14354.diff (3 KB)
Attached To
Mode
D14354: Add scroll wrapper for big tables
Attached
Detach File
Event Timeline
Log In to Comment