Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use no_intra_emphasis instead of no_intraemphasis

  • Loading branch information...
commit d7895ee81092b796a6d7a19ab1d3571f91fb2e25 1 parent 73efb04
Shuhei Tanuma authored
2  php_sundown.h
View
@@ -258,7 +258,7 @@ static void php_sundown__get_extensions(HashTable *table, unsigned int *enabled_
/**
* Markdown extensions -- all disabled by default
*/
- if (SUNDOWN_HAS_EXTENSION("no_intraemphasis")) {
+ if (SUNDOWN_HAS_EXTENSION("no_intra_emphasis")) {
extensions |= MKDEXT_NO_INTRA_EMPHASIS;
}
4 tests/002-basic-enabled-extensions.phpt
View
@@ -5,7 +5,7 @@ Check for determine enabled extensions.
--FILE--
<?php
$markdown = new Sundown("hello world",array());
-$extensions = array("no_intraemphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
+$extensions = array("no_intra_emphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
$enabled = array();
foreach ($extensions as $ext) {
@@ -50,7 +50,7 @@ bool(true)
bool(true)
bool(true)
bool(true)
-only no_intraemphasis:
+only no_intra_emphasis:
bool(true)
bool(false)
bool(false)
2  tests/002-basic-enabled-render-flags.phpt
View
@@ -19,7 +19,7 @@ foreach ($flags as $flag) {
}
}
-$extensions = array("no_intraemphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
+$extensions = array("no_intra_emphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
$exts = array();
foreach ($extensions as $ext) {
$exts[$ext] = true;
4 tests/003-advanced-enabled-extensions.phpt
View
@@ -7,7 +7,7 @@ Check for determine enabled extensions.
$render = new Sundown\Render\HTML();
$markdown = new Sundown\Markdown($render, array());
-$extensions = array("no_intraemphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
+$extensions = array("no_intra_emphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
$enabled = array();
foreach ($extensions as $ext) {
@@ -52,7 +52,7 @@ bool(true)
bool(true)
bool(true)
bool(true)
-only no_intraemphasis:
+only no_intra_emphasis:
bool(true)
bool(false)
bool(false)
2  tests/003-advanced-enabled-render-flags.phpt
View
@@ -21,7 +21,7 @@ foreach ($flags as $flag) {
}
}
-$extensions = array("no_intraemphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
+$extensions = array("no_intra_emphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
$exts = array();
foreach ($extensions as $ext) {
$exts[$ext] = true;
6 tests/003-advanced-get-extensions.phpt
View
@@ -6,7 +6,7 @@ Check for determine enabled extensions.
<?php
$render = new Sundown\Render\HTML();
-$extensions = array("no_intraemphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
+$extensions = array("no_intra_emphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
$enabled = array();
foreach ($extensions as $ext) {
$enabled[$ext] = true;
@@ -24,7 +24,7 @@ foreach ($markdown->getExtensions() as $ext_name => $ext_value) {
}
--EXPECT--
-no_intraemphasis => 1
+no_intra_emphasis => 1
tables => 1
fenced_code_blocks => 1
autolink => 1
@@ -33,7 +33,7 @@ lax_html_blocks => 1
space_after_header => 1
superscript => 1
# reference count check
-no_intraemphasis => 1
+no_intra_emphasis => 1
tables => 1
fenced_code_blocks => 1
autolink => 1
4 tests/003-advanced-set-extensions.phpt
View
@@ -6,7 +6,7 @@ Check for determine enabled extensions.
<?php
$render = new Sundown\Render\HTML();
-$extensions = array("no_intraemphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
+$extensions = array("no_intra_emphasis","tables","fenced_code_blocks","autolink","strikethrough","lax_html_blocks","space_after_header","superscript");
$enabled = array();
foreach ($extensions as $ext) {
$enabled[$ext] = true;
@@ -25,7 +25,7 @@ foreach ($markdown->getExtensions() as $ext_name => $ext_value) {
--EXPECT--
ext count: 0
# do set extensions
-no_intraemphasis => 1
+no_intra_emphasis => 1
tables => 1
fenced_code_blocks => 1
autolink => 1
Please sign in to comment.
Something went wrong with that request. Please try again.