Displaying 7 results from an estimated 7 matches for "markdown_parser".
2006 May 19
1
Object-Oriented PHP Markdown/SmartyPants
...ace as before
-- you can still call the Markdown or SmartyPants functions. These
functions will create and use the parser themselves, but you can also
use the parser directly. This:
$html = Markdown($text);
is now equivalent to this if you're using PHP Markdown:
$parser = new Markdown_Parser;
$html = $parser->transform($text);
or this if you're using PHP Markdown Extra:
$parser = new MarkdownExtra_Parser;
$html = $parser->transform($text);
PHP Markdown and PHP Markdown Extra are still both packaged as one
"markdown.php" file, each of them contain...
2007 Jan 23
3
Footnote support in Markdown
Hi All.
I've just started using Markdown for my blog.
So far it seems quite nice, but the one issue I've run into is a lack
of "native" support for footnotes. I think that Daring Fireball's
footnote style makes a lot of sense, and that's what I intend to use.
However, it is a bit cumbersome to implement that style from within
Markdown.
I notice that the PHP
2007 Jul 12
1
Proposal for footnote GUID syntax
...ent GUID and have
> the Markdown processor do that substitution for you.
Michel Fortin was kind enough to respond with the following:
> It's already possible if you instantiate the parser yourself
> instead of calling the simplified Markdown function:
>
> $parser = new Markdown_Parser;
> $parser->fn_id_prefix = $entry_guid;
> $text = $parser->transform($text);
So far so good. However, we're still left with the problem of
deciding on a GUID when we instantiate the parser. This complicates
our workflow, since we can't just pass a block of Markd...
2008 Aug 09
0
peg-markdown (C) and rpeg-markdown (ruby gem)
...I've released version 0.4.1 of peg-markdown, a C implementation of
markdown. peg-markdown uses Ian Piumarta's peg/leg parser generator to
generate a parser from a parsing expression grammar (PEG). You can
inspect the grammar for markdown at
http://github.com/jgm/peg-markdown/tree/HEAD/markdown_parser.leg
peg-markdown now provides both a C library and a standalone 'markdown'
program. The memory leaks in previous versions have been plugged, and
parsing accuracy has been improved considerably.
peg-markdown is very fast (on my machine, it parses a 178K benchmark
file in 0.175 seconds; th...
2009 Sep 12
1
lunamark - markdown in lua using a PEG grammar
.../tree/master
There are already two markdown libraries for lua, one a native lua
implementation based on global substitutions, the other a binding
to discount. What makes lunamark different is that it is based
on a PEG grammar (adapted from my peg-markdown). This can be found
in the file lunamark/markdown_parser.lua in the source tree.
Lunamark converts standard markdown to HTML and LaTeX. Adding
a new output format is easy (the LaTeX writer took about 20 minutes
to add). It is also possible to add new input formats.
Lunamark passes the Markdown 1.0.3 test suite (except for one edge
case involving loos...
2007 Aug 04
1
PHP Markdown 1.0.1h & Extra 1.1.4
...erface with the last update. It also introduce a new "feature":
you can now instruct the parser to ignore HTML tags and/or entities
in the input. You can do this by instantiating yourself the parser
and setting the `no_markup` or `no_entities` properties to true:
$parser = new Markdown_Parser;
$parser->no_markup = true;
$parser->no_entities = true;
$html = $parser->transform($text);
Download page:
<http://www.michelf.com/projects/php-markdown/>
1.0.1h (3 Aug 2007):
* Added two properties (`no_markup` and `no_entities`) to the parser
allowing HTML tags...
2007 May 02
4
Make --html4tags the default?
Seeing how no-one should send application/xhtml+xml to the browser
[1], and development of the HTML standard is again happening [2], it
would make sense to have Markdown.pl default to HTML tags.
Maybe too late to change a default though.
How does PHP Markdown and other implementations deal with this issue?
[1]: http://www.hixie.ch/advocacy/xhtml
[2]: