Don't emit <body> tags #31

Closed
erikrose opened this Issue Aug 1, 2011 · 0 comments

Projects

None yet

2 participants

@erikrose
Owner
erikrose commented Aug 1, 2011

The common use case for this lib will probably be to render fragments of wikitext for inclusion as parts of larger HTML pages, so we shouldn't wrap the output of the HTML backend in body tags.

@peter17 peter17 added a commit that closed this issue Aug 4, 2011
@peter17 peter17 Make <body> tag generation optional (closes #31).
Parsing with the 'wikitext' parser will parse and render as expected and
do nothing more. This is useful for the inclusion of the article content in
a larger HTML page.

Parsing with the 'body' parser will also add the <body>...</body> tags
and the interwiki links and category links. This is useful to mimic the
behavior of MediaWiki's parser when rendering a whole article as a web
page.
a6f9e78
@peter17 peter17 closed this in a6f9e78 Aug 4, 2011
@ucarbehlul ucarbehlul pushed a commit to ucarbehlul/mediawiki-parser that referenced this issue Aug 26, 2013
@peter17 peter17 Make <body> tag generation optional (closes #31).
Parsing with the 'wikitext' parser will parse and render as expected and
do nothing more. This is useful for the inclusion of the article content in
a larger HTML page.

Parsing with the 'body' parser will also add the <body>...</body> tags
and the interwiki links and category links. This is useful to mimic the
behavior of MediaWiki's parser when rendering a whole article as a web
page.
fe730bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment