bare html #2

Open
rodrigolive opened this Issue Aug 9, 2011 · 1 comment

Comments

Projects
None yet
2 participants

Hello,
I think it would be a good idea to idea to have Text::Markup return the bare response from each parser, ie, no wrapping it around <html> tags.

cheers,
-rodrigo

Owner

theory commented Aug 10, 2011

Want to write a patch to add an option for this?

@genehack genehack added a commit to genehack/text-markup that referenced this issue Apr 17, 2016

@genehack genehack Add `raw` option where possible [#2]
This adds a `raw` option that can be passed to `parse()` that causes the
parser to return the raw output of the underlying layer, without
wrapping in the minimal HTML skeleton.

This is only possible for a subset of the existing parsers; this patch
makes no attempt to remove the HTML wrappers in the cases where that
wrapper is being added by the underlying parser.

Note also that this patch does not add any tests for this new behavior,
because there don't appear to be any cases where input/output
transformations are actually being currently tested.
eb4823b

@theory theory added a commit that referenced this issue May 10, 2016

@genehack @theory genehack + theory Add `raw` option where possible [#2]
This adds a `raw` option that can be passed to `parse()` that causes the
parser to return the raw output of the underlying layer, without
wrapping in the minimal HTML skeleton.

This is only possible for a subset of the existing parsers; this patch
makes no attempt to remove the HTML wrappers in the cases where that
wrapper is being added by the underlying parser.

Note also that this patch does not add any tests for this new behavior,
because there don't appear to be any cases where input/output
transformations are actually being currently tested.
2d3352c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment