markdown-transform icon indicating copy to clipboard operation
markdown-transform copied to clipboard

HTML transform constructing a document fragment

Open jeromesimeon opened this issue 6 years ago • 0 comments

Is your feature request related to a problem? Please describe. Some users may want to embed the result of the HTML transform in an existing page. Currently this is not easy to do since the HTML transform always includes <html>...</html> tags around the result of the transform.

Describe the solution you'd like The ability to generate an HTML fragment rather than a whole page.

I'm unclear if this should be:

  • always the behaviour (the caller is responsible to embed the <html>...</html> tags if need be.
  • controlled through an option
  • based on whether the input is a whole CiceroMark document or itself a CiceroMark fragment

jeromesimeon avatar Mar 11 '20 19:03 jeromesimeon