Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New rule was added: -- to mdash #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions EMT.forpy.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

<?php


class EMT_Lib
Expand Down Expand Up @@ -1362,7 +1362,7 @@ class EMT_Tret_Dash extends EMT_Tret
public $rules = array(
'mdash_symbol_to_html_mdash' => array(
'description' => 'Замена символа тире на html конструкцию',
'pattern' => '/—/iu',
'pattern' => '/—|--/iu',
'replacement' => '&mdash;'
),
'mdash' => array(
Expand Down Expand Up @@ -3479,4 +3479,4 @@ public static function fast_apply($text, $options = null)
}


?>
?>
20 changes: 10 additions & 10 deletions EMT.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

/**
* Evgeny Muravjev Typograph, http://mdash.ru
* Version: 3.3 Gold Master
* Release Date: May 4, 2014
* Authors: Evgeny Muravjev & Alexander Drutsa
*/
<?php
/**
* Evgeny Muravjev Typograph, http://mdash.ru
* Version: 3.3 Gold Master
* Release Date: May 4, 2014
* Authors: Evgeny Muravjev & Alexander Drutsa
*/


class EMT_Lib
Expand Down Expand Up @@ -1366,7 +1366,7 @@ class EMT_Tret_Dash extends EMT_Tret
public $rules = array(
'mdash_symbol_to_html_mdash' => array(
'description' => 'Замена символа тире на html конструкцию',
'pattern' => '/—/iu',
'pattern' => '/—|--/iu',
'replacement' => '&mdash;'
),
'mdash' => array(
Expand Down Expand Up @@ -3310,4 +3310,4 @@ public static function fast_apply($text, $options = null)
}


?>
?>
2 changes: 1 addition & 1 deletion EMT.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ def __init__(self):
self.rules = {
u"mdash_symbol_to_html_mdash": {
u"description": u"Замена символа тире на html конструкцию",
u"pattern": u"/—/iu",
u"pattern": u"/—|--/iu",
u"replacement": u"&mdash;"
},
u"mdash": {
Expand Down
4 changes: 2 additions & 2 deletions src/EMT.Tret.Dash.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class EMT_Tret_Dash extends EMT_Tret
public $rules = array(
'mdash_symbol_to_html_mdash' => array(
'description' => 'Замена символа тире на html конструкцию',
'pattern' => '/—/iu',
'pattern' => '/—|--/iu',
'replacement' => '&mdash;'
),
'mdash' => array(
Expand Down Expand Up @@ -72,4 +72,4 @@ class EMT_Tret_Dash extends EMT_Tret

}

?>
?>