-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c94dcd
commit 06d3137
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ protected function initTags() | |
new Html\Sub(), | ||
new Html\Sup(), | ||
new Html\U(), | ||
new Html\StrikeTag(), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
/** | ||
* Html2Pdf Library - Tag class | ||
* | ||
* HTML => PDF converter | ||
* distributed under the OSL-3.0 License | ||
* | ||
* @package Html2pdf | ||
* @author Laurent MINGUET <[email protected]> | ||
* @copyright 2017 Laurent MINGUET | ||
*/ | ||
|
||
namespace Spipu\Html2Pdf\Tag\Html; | ||
use Spipu\Html2Pdf\Tag\AbstractHtmlTag; | ||
/** | ||
* Tag StrikeTag | ||
*/ | ||
class StrikeTag extends AbstractHtmlTag | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct('strike'); | ||
} | ||
|
||
public function getName() | ||
{ | ||
return 'strike'; | ||
} | ||
|
||
protected function overrideStyles() | ||
{ | ||
$this->parsingCss->value['font-linethrough'] = true; | ||
return true; | ||
} | ||
} |