You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** Fix Markup not parsed if followed by certain characters ("#22":Markup not parsed if followed by certain characters)
15
18
* Convert testing over to "py.test":http://pytest.org/, improving unicode testing
16
19
* Update functionality for tables, notelists, and footnotes. This involved a major reworking of parts of the code, but it should now match php-textile and txstyle.org precisely. Please file an issue for any bugs you come across.
20
+
* Remove @head_offset@ option from parse. I'm not sure it ever existed in php-textile.
Copy file name to clipboardExpand all lines: tests/test_github_issues.py
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,3 +41,41 @@ def test_github_issue_26():
41
41
result=textile.textile(text)
42
42
expect=''
43
43
assertresult==expect
44
+
45
+
deftest_github_issue_27():
46
+
test="""* Folders with ":" in their names are displayed with a forward slash "/" instead. (Filed as "#4581709":/test/link, which was considered "normal behaviour" - quote: "Please note that Finder presents the 'Carbon filesystem' view, regardless of the underlying filesystem.")"""
47
+
result=textile.textile(test)
48
+
expect="""\t<ul>\n\t\t<li>Folders with “:” in their names are displayed with a forward slash “/” instead. (Filed as <a href="/test/link">#4581709</a>, which was considered “normal behaviour” – quote: “Please note that Finder presents the ‘Carbon filesystem’ view, regardless of the underlying filesystem.”)</li>\n\t</ul>"""
49
+
assertresult==expect
50
+
51
+
deftest_github_issue_28():
52
+
test="""So here I am porting my ancient "newspipe":newspipe "front-end":blog/2006/09/30/0950 to "Snakelets":Snakelets and "Python":Python, and I've just trimmed down over 20 lines of "PHP":PHP down to essentially one line of "BeautifulSoup":BeautifulSoup retrieval:
Of course there's a lot more error handling to do (and useful data to glean off the "XML":XML), but being able to cut through all the usual parsing crap is immensely gratifying."""
66
+
result=textile.textile(test)
67
+
expect= ("""\t<p>So here I am porting my ancient <a href="newspipe">newspipe</a> <a href="blog/2006/09/30/0950">front-end</a> to <a href="Snakelets">Snakelets</a> and <a href="Python">Python</a>, and I’ve just trimmed down over 20 lines of <a href="PHP"><span class="caps">PHP</span></a> down to essentially one line of <a href="BeautifulSoup">BeautifulSoup</a> retrieval:</p>
\t<p>Of course there’s a lot more error handling to do (and useful data to glean off the <a href="XML"><span class="caps">XML</span></a>), but being able to cut through all the usual parsing crap is immensely gratifying.</p>""")
0 commit comments