createSpan() public method

Create a span, which is a text with inline style
public createSpan ( $span ) : Span
$span the content string
return Span a span object
示例#1
0
文件: TableNode.php 项目: cmsilex/rst
 public function finalize(Parser $parser)
 {
     foreach ($this->data as &$row) {
         if ($row) {
             foreach ($row as &$col) {
                 $col = $parser->createSpan($col);
             }
         }
     }
 }
示例#2
0
文件: Replace.php 项目: cmsilex/rst
 public function processNode(Parser $parser, $variable, $data, array $options)
 {
     return $parser->createSpan($data);
 }