Lines Matching +refs:text +refs:line +refs:d

13 A set of [PHP][] classes, each representing a [Markdown][] flavor, and a command line tool
21 markdown text to the expected output in HTML. This is possible without dealing with complex and err…
23 of the Markdown text as an abstract syntax tree (see [Extending the language](#extend)).
88 The next step is to call the `parse()`-method for parsing the text using the full markdown language
94 // traditional markdown and parse full text
106 // parse only inline elements (useful for one-line descriptions)
125 ### The command line script
137 curl http://daringfireball.net/projects/markdown/syntax.text | bin/markdown > md.html
173 curl http://daringfireball.net/projects/markdown/syntax.text | bin/markdown > md.html
200 Inline elements are elements that are added inside of block elements i.e. inside of text.
208 The markdown is parsed line by line to identify each non-empty line as one of the block element typ…
209 To identify a line as the beginning of a block element it calls all protected class methods who's n…
221 protected function identifyFencedCode($line, $lines, $current)
223 // if a line starts with at least 3 backticks it is identified as a fenced code block
224 if (strncmp($line, '```', 3) === 0) {
234 In the above, `$line` is a string containing the content of the current line and is equal to `$line…
235 You may use `$lines` and `$current` to check other lines than the current line. In most cases you c…
240line until a blank line occurs. This step is implemented by a method named `consume{blockName}()` …
242 …and the number of the current line. It will return two arguments: an array representing the block …
243 …of the markdown document and the line number to parse next. In the abstract syntax array the first…
255 $line = rtrim($lines[$current]);
258 $fence = substr($line, 0, $pos = strrpos($line, '`') + 1);
259 $language = substr($line, $pos);
266 if (rtrim($line = $lines[$i]) !== $fence) {
267 $block['content'][] = $line;
294 …ding inline elements is different from block elements as they are parsed using markers in the text.
300 The method will then be called when a marker is found in the text. As an argument it takes the text
301 …ill return an array containing the element of the abstract sytnax tree and an offset of text it has
302 parsed from the input markdown. All text up to this offset will be removed from the markdown before…
324 // return the offset of the parsed text
329 return [['text', '~~'], 2];
407 function. This means that if a line starting with `-` could be a list or a horizontal rule, the pre…
460 I'd like to thank [@erusev][] for creating [Parsedown][] which heavily influenced this work and pro…
461 the idea of the line based parsing approach.
477 A [real parser][] should use context aware methods that walk trough the text and