Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't emit <body> tags #31

Closed
erikrose opened this Issue · 0 comments

2 participants

Erik Rose Peter Potrowl
Erik Rose
Owner

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.

Peter Potrowl peter17 closed this issue from a commit
Peter Potrowl 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
Peter Potrowl peter17 closed this in a6f9e78
Behlül Uçar ucarbehlul referenced this issue from a commit in ucarbehlul/mediawiki-parser
Peter Potrowl 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
Something went wrong with that request. Please try again.