Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
张亚俊
html-to-markdown
Commits
4e8f36f2
Commit
4e8f36f2
authored
11 years ago
by
Nick Cernis
Browse files
Options
Downloads
Patches
Plain Diff
Add test for both italic and bold using underlined style, bump version
parent
53d52212
Branches
Branches containing commit
Tags
2.1.1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
README.md
tests/HTML_To_MarkdownTest.php
+1
-0
tests/HTML_To_MarkdownTest.php
with
2 additions
and
1 deletion
README.md
+
1
−
1
View file @
4e8f36f2
...
...
@@ -5,7 +5,7 @@ A helper class that converts HTML to [Markdown](http://daringfireball.net/projec
[

](https://travis-ci.org/nickcernis/html-to-markdown)
**Version**
: 2.1.
0
**Version**
: 2.1.
1
**Requires**
: PHP 5.2+
**Author**
:
[
@nickcernis
](
http://twitter.com/nickcernis
)
**License**
:
[
MIT
](
http://www.opensource.org/licenses/mit-license.php
)
...
...
This diff is collapsed.
Click to expand it.
tests/HTML_To_MarkdownTest.php
+
1
−
0
View file @
4e8f36f2
...
...
@@ -41,6 +41,7 @@ class HTML_To_MarkdownTest extends PHPUnit_Framework_TestCase
$this
->
html_gives_markdown
(
"<strong>Test</strong>"
,
"**Test**"
);
$this
->
html_gives_markdown
(
"<b>Test</b>"
,
"**Test**"
);
$this
->
html_gives_markdown
(
"<em>Test</em>"
,
"_Test_"
,
array
(
'italic_style'
=>
'_'
));
$this
->
html_gives_markdown
(
"<em>Italic</em> and a <strong>bold</strong>"
,
"_Italic_ and a __bold__"
,
array
(
'italic_style'
=>
'_'
,
'bold_style'
=>
'__'
));
$this
->
html_gives_markdown
(
"<i>Test</i>"
,
"_Test_"
,
array
(
'italic_style'
=>
'_'
));
$this
->
html_gives_markdown
(
"<strong>Test</strong>"
,
"__Test__"
,
array
(
'bold_style'
=>
'__'
));
$this
->
html_gives_markdown
(
"<b>Test</b>"
,
"__Test__"
,
array
(
'bold_style'
=>
'__'
));
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets