Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15418368
D8489.id20138.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8489.id20138.diff
View Options
diff --git a/src/markup/engine/__tests__/remarkup/ordered-list-with-numbers.txt b/src/markup/engine/__tests__/remarkup/ordered-list-with-numbers.txt
--- a/src/markup/engine/__tests__/remarkup/ordered-list-with-numbers.txt
+++ b/src/markup/engine/__tests__/remarkup/ordered-list-with-numbers.txt
@@ -3,12 +3,14 @@
1. asa
# asdf
-234/ asdf
+234) asdf
234) asd
1. asd
234) asd
+
+1/ This explicitly should not be formatted as a list.
~~~~~~~~~~
<ol>
<li>aasdx</li>
@@ -28,6 +30,8 @@
<li>asd</li>
<li>asd</li>
</ol>
+
+<p>1/ This explicitly should not be formatted as a list.</p>
~~~~~~~~~~
1. aasdx
2. asdf
@@ -40,3 +44,5 @@
1. asd
2. asd
+
+1/ This explicitly should not be formatted as a list.
diff --git a/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupListBlockRule.php b/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupListBlockRule.php
--- a/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupListBlockRule.php
+++ b/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupListBlockRule.php
@@ -54,8 +54,8 @@
* the stack.
*/
const MAXIMUM_LIST_NESTING_DEPTH = 12;
- const START_BLOCK_PATTERN = '@^\s*(?:[-*#]+|1[./)])\s+@';
- const CONT_BLOCK_PATTERN = '@^\s*(?:[-*#]+|[0-9]+[./)])\s+@';
+ const START_BLOCK_PATTERN = '@^\s*(?:[-*#]+|1[.)])\s+@';
+ const CONT_BLOCK_PATTERN = '@^\s*(?:[-*#]+|[0-9]+[.)])\s+@';
public function markupText($text) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 10:53 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7716084
Default Alt Text
D8489.id20138.diff (1 KB)
Attached To
Mode
D8489: Don't format "1/" as an ordered list in Remarkup
Attached
Detach File
Event Timeline
Log In to Comment