SkillsGrove
SkillsGrove/Офисные документы/bowenliang123/markdown-exporter/markdown-exporter

markdown-exporter

Установка

$npx skills add https://github.com/bowenliang123/markdown-exporter --skill markdown-exporter
$git clone --depth 1 https://github.com/bowenliang123/markdown-exporter.git /tmp/markdown-exporter && mkdir -p ~/.claude/skills && cp -r /tmp/markdown-exporter/. ~/.claude/skills/markdown-exporter
Пожалуйста, установи для меня этот Agent Skill: https://github.com/bowenliang123/markdown-exporter/tree/398597a3d45d603e3dca36b843d4e894790e19f5/ — сначала прочитай его SKILL.md и скрипты и устанавливай в мою папку навыков только после того, как убедишься, что он безопасен.

Кратко

Исходное описание · Apache-2.0Convert Markdown text to DOCX, PPTX, XLSX, PDF, PNG, SVG, HTML, IPYNB, MD, CSV, JSON, JSONL, XML files, and extract code blocks in Markdown to Python, Bash,JS and etc files.
Приведённый ниже SKILL.md воспроизведён из bowenliang123/markdown-exporter (коммит 398597a) под лицензией Apache-2.0. Текст не изменён; опущены только метаданные заголовка файла, изображения показаны как ссылки, а очень длинные файлы сокращены. Авторские права: owner or entity authorized by. Лицензия: LICENSE.txt. Показан только файл с инструкциями; скрипты смотрите в исходном репозитории.

Markdown Exporter

Markdown Exporter is an Agent Skill that transforms your Markdown text into a wide variety of professional format files.

This SKILL.md for Agent Skills, the cli tool and Python package markdown-exporter are maintained in the GitHub repository bowenliang123/markdown-exporter by bowenliang123.

Tools and Supported Formats

Tool Input (File path of Markdown text or styles) Output (File path of exported file)
md_to_docx 📝 Markdown text 📄 Word document (.docx)
md_to_html 📝 Markdown text 🌐 HTML file (.html)
md_to_html_text 📝 Markdown text 🌐 HTML text string
md_to_jira 📝 Markdown text 🅹 Jira wiki markup text
md_to_pdf 📝 Markdown text 📑 PDF file (.pdf)
md_to_png 📝 Markdown text 🖼️ PNG image (.png), single long page or one image per page
md_to_svg 📝 Markdown text 🖼️ SVG image (.svg), one image per page
md_to_md 📝 Markdown text 📝 Markdown file (.md)
md_to_ipynb 📝 Markdown text 📓 Jupyter Notebook (.ipynb)
md_to_pptx 📝 Markdown slides in Pandoc style 🎯 PowerPoint (.pptx)
md_to_xlsx 📋 Markdown tables 📊 Excel spreadsheet (.xlsx)
md_to_csv 📋 Markdown tables 📋 CSV file (.csv)
md_to_json 📋 Markdown tables 📦 JSON/JSONL file (.json)
md_to_xml 📋 Markdown tables 🏷️ XML file (.xml)
md_to_latex 📋 Markdown tables 📝 LaTeX file (.tex)
md_to_codeblock 💻 Code blocks in Markdown 📁 Code files by language (.py, .js, .sh, etc.)

📦 Usage

Overview

Markdown Exporter is available as a PyPI package, which provides a seamless command-line interface for all its functionality.

Installation

# with pip
pip install md-exporter

# with uv 
uv tool install md-exporter

# on OpenClaw
npx clawhub install markdown-exporter

Check markdown-exporter command and usages:

markdown-exporter -h

markdown-exporter <subcommand> -h

Basic Usage

Use the markdown-exporter command to access all the tools:

markdown-exporter <subcommand> <args> [options]

Important Notes

  • All commands only support file paths as input
  • The package handles all dependency management automatically
  • You can run the command from anywhere in your system, no need to navigate to the project directory

🔧 Scripts

md_to_csv - Convert Markdown tables to CSV

Converts Markdown tables to CSV format file.

Usage:

markdown-exporter md_to_csv <input> <output> [options]

Arguments:

  • input - Input Markdown file path containing tables
  • output - Output CSV file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    markdown-exporter md_to_csv /path/input.md /path/output.csv
    

    This converts all tables in the input Markdown file to CSV format.

  2. With code block wrapper removal:

    markdown-exporter md_to_csv /path/input.md /path/output.csv --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_pdf - Convert Markdown to PDF

Converts Markdown text to PDF format with support for Chinese, Japanese, and other languages.

Usage:

markdown-exporter md_to_pdf <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output PDF file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    markdown-exporter md_to_pdf /path/input.md /path/output.pdf
    

    This converts the entire Markdown file to a PDF document.

  2. With code block wrapper removal:

    markdown-exporter md_to_pdf /path/input.md /path/output.pdf --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_png - Convert Markdown to PNG

Converts Markdown text to PNG image(s), with support for Chinese, Japanese, and other languages.

Usage:

markdown-exporter md_to_png <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output PNG file path

Options:

  • --multi-page - Export one PNG per A4 page (numbered files) instead of a single long-page PNG
  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion (single long-page image):

    markdown-exporter md_to_png /path/input.md /path/output.png
    

    This renders the entire Markdown document as a single long-page PNG image.

  2. Multi-page output:

    markdown-exporter md_to_png /path/input.md /path/output.png --multi-page
    

    This exports one PNG per A4 page, saved as output_1.png, output_2.png, etc. when the document has multiple pages.

  3. With code block wrapper removal:

    markdown-exporter md_to_png /path/input.md /path/output.png --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_svg - Convert Markdown to SVG

Converts Markdown text to SVG image(s), one SVG per page, with support for Chinese, Japanese, and other languages.

Usage:

markdown-exporter md_to_svg <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output SVG file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    markdown-exporter md_to_svg /path/input.md /path/output.svg
    

    This converts the Markdown file to SVG image(s), saved as output_1.svg, output_2.svg, etc. when the document has multiple pages.

  2. With code block wrapper removal:

    markdown-exporter md_to_svg /path/input.md /path/output.svg --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_docx - Convert Markdown to DOCX

Converts Markdown text to DOCX format file.

Usage:

markdown-exporter md_to_docx <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output DOCX file path

Options:

  • --template - Path to DOCX template file (optional)
  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    markdown-exporter md_to_docx /path/input.md /path/output.docx
    

    This converts the entire Markdown file to a DOCX document.

  2. With custom template:

    markdown-exporter md_to_docx /path/input.md /path/output.docx --template /path/template.docx
    

    This uses a custom DOCX template for styling.

  3. With code block wrapper removal:

    markdown-exporter md_to_docx /path/input.md /path/output.docx --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_xlsx - Convert Markdown tables to XLSX

Converts Markdown tables to XLSX format with multiple sheets support.

Usage:

markdown-exporter md_to_xlsx <input> <output> [options]

Arguments:

  • input - Input Markdown file path containing tables
  • output - Output XLSX file path

Options:

  • --force-text - Convert cell values to text type (default: True)
  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx
    

    This converts all tables in the input Markdown file to an XLSX workbook, with each table on a separate sheet.

  2. With code block wrapper removal:

    markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

  3. With force-text disabled:

    markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx --force-text False
    

    This allows Excel to automatically determine cell types.

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_pptx - Convert Markdown to PPTX

Converts Markdown text to PPTX format file.

Usage:

markdown-exporter md_to_pptx <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output PPTX file path

Options:

  • --template - Path to PPTX template file (optional)

Examples:

  1. Basic conversion:

    markdown-exporter md_to_pptx /path/input.md /path/output.pptx
    

    This converts the Markdown file to a PowerPoint presentation.

  2. With custom template:

    markdown-exporter md_to_pptx /path/input.md /path/output.pptx --template /path/template.pptx
    

    This uses a custom PowerPoint template for styling.

Sample Markdown Input: Use the "Slides (for PPTX)" example from the Sample Markdown Inputs - Slides (for PPTX) section below.


md_to_codeblock - Extract Codeblocks to Files

Extracts code blocks from Markdown and saves them as individual files.

Usage:

markdown-exporter md_to_codeblock <input> <output> [options]

Arguments:

  • input - Input Markdown file path containing code blocks
  • output - Output directory path or ZIP file path

Options:

  • --compress - Compress all code blocks into a ZIP file

Examples:

  1. Extract to directory:

    markdown-exporter md_to_codeblock /path/input.md /path/output_dir
    

    This extracts all code blocks to individual files in the specified directory.

  2. Extract to ZIP file:

    markdown-exporter md_to_codeblock /path/input.md /path/output.zip --compress
    

    This extracts all code blocks and compresses them into a ZIP file.

Sample Markdown Input: Use the "Code Blocks" example from the Sample Markdown Inputs - Code Blocks section below.


md_to_json - Convert Markdown Tables to JSON

Converts Markdown tables to JSON or JSONL format file.

Usage:

markdown-exporter md_to_json <input> <output> [options]

Arguments:

  • input - Input Markdown file path containing tables
  • output - Output JSON file path

Options:

  • --style - JSON output style: jsonl (default) or json_array
  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion (JSONL format):

    markdown-exporter md_to_json /path/input.md /path/output.json
    

    This converts tables to JSON Lines format (one JSON object per line).

  2. Convert to JSON array:

    markdown-exporter md_to_json /path/input.md /path/output.json --style json_array
    

    This converts tables to a single JSON array of objects.

  3. With code block wrapper removal:

    markdown-exporter md_to_json /path/input.md /path/output.json --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_xml - Convert Markdown to XML

Converts Markdown text to XML format file.

Usage:

markdown-exporter md_to_xml <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output XML file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    markdown-exporter md_to_xml /path/input.md /path/output.xml
    

    This converts the entire Markdown file to an XML document.

  2. With code block wrapper removal:

    markdown-exporter md_to_xml /path/input.md /path/output.xml --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_latex - Convert Markdown Tables to LaTeX

Converts Markdown tables to LaTeX format file.

Usage:

markdown-exporter md_to_latex <input> <output> [options]

Arguments:

  • input - Input Markdown file path containing tables
  • output - Output LaTeX file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    markdown-exporter md_to_latex /path/input.md /path/output.tex
    

    This converts all tables in the input Markdown file to LaTeX format.

  2. With code block wrapper removal:

    markdown-exporter md_to_latex /path/input.md /path/output.tex --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_html - Convert Markdown to HTML

Converts Markdown text to HTML format file.

Usage:

markdown-exporter md_to_html <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output HTML file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    markdown-exporter md_to_html /path/input.md /path/output.html
    

    This converts the entire Markdown file to an HTML document.

  2. With code block wrapper removal:

    markdown-exporter md_to_html /path/input.md /path/output.html --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_html_text - Convert Markdown to HTML Text

Converts Markdown text to HTML and outputs to stdout.

Usage:

markdown-exporter md_to_html_text <input>

Arguments:

  • input - Input Markdown file path

Example:

markdown-exporter md_to_html_text /path/input.md

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_jira - Convert Markdown to Jira Wiki Markup

Converts Markdown text to Jira wiki markup and outputs to stdout.

Usage:

markdown-exporter md_to_jira <input>

Arguments:

  • input - Input Markdown file path

Example:

markdown-exporter md_to_jira /path/input.md

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_md - Convert Markdown to MD File

Saves Markdown text to a .md file.

Usage:

markdown-exporter md_to_md <input> <output>

Arguments:

  • input - Input Markdown file path
  • output - Output MD file path

Example:

markdown-exporter md_to_md /path/input.md /path/output.md

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_ipynb - Convert Markdown to IPYNB

Converts Markdown text to Jupyter Notebook (.ipynb) format file.

Usage:

markdown-exporter md_to_ipynb <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output IPYNB file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    markdown-exporter md_to_ipynb /path/input.md /path/output.ipynb
    

    This converts the Markdown file to a Jupyter Notebook format.

  2. With code block wrapper removal:

    markdown-exporter md_to_ipynb /path/input.md /path/output.ipynb --strip-wrapper
    

    This removes any code block wrappers (```) before processing the Markdown.

Sample Markdown Input: Use the "Code Blocks" example from the Sample Markdown Inputs - Code Blocks section below.

Sample Markdown Inputs

To help you test the various tools, below are common Markdown input examples that represent the content of input files:

Basic Text and Tables

# Test Markdown File

This is a test markdown file for testing various export tools.

## Table Test

| Name | Description | Price |
|------|-------------|-------|
| Item 1 | First item | $10 |
| Item 2 | Second item | $20 |
| Item 3 | Third item | $30 |

## Text Test

This is a paragraph with **bold** and *italic* text.

- List item 1
- List item 2
- List item 3

> This is a blockquote.

Code Blocks

# Test Markdown File

## Code Block Test

```python
print("Hello, World!")
def add(a, b):
    return a + b

# Test the function
result = add(5, 3)
print(f"Result: {result}")
```

```bash
# Bash script example
echo "Hello from Bash"
ls -la
```

```javascript
// JavaScript example
console.log("Hello from JavaScript");
function multiply(a, b) {
    return a * b;
}
```

Slides (for PPTX)

---
title: Markdown Exporter
author: Bowen Liang
---

# Introduction

## Welcome Slide

Welcome to our Markdown Exporter!

::: notes
Remember to greet the audience warmly.
:::

---

# Section 1: Basic Layouts

## Title and Content

- This is a basic slide with bullet points
- It uses the "Title and Content" layout
- Perfect for simple content presentation

## Two Column Layout

::::: columns
::: column
Left column content:
- Point 1
- Point 2
:::
::: column
Right column content:
- Point A
- Point B
:::
:::::

## Comparison Layout

::::: columns
::: column
Text followed by an image:

![Test Image](https://example.com/image.jpg)
:::
::: column
- This triggers the "Comparison" layout
- Useful for side-by-side comparisons
:::
:::::

## Content with Caption

Here's some explanatory text about the image below.

![Test Image](https://example.com/image.jpg "fig:Test Image")

---

# Section 2: Advanced Features

## Code Block

Here's a Python code block:

```python
def greet(name):
    return f"Hello, {name}!"

print(greet("World"))
```

## Table Example

| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Row 1    | Data     | More     |
| Row 2    | Info     | Stuff    |

## Incremental List

::: incremental
- This point appears first
- Then this one
- And finally this one
:::

## {background-image="https://example.com/image.jpg"}

::: notes
This is a slide with a background image and speaker notes only.
The "Blank" layout will be used.
:::

# Conclusion

## Thank You

Thank you for viewing this kitchen sink presentation!

::: notes
Remember to thank the audience and invite questions.
:::

📝 Notes

  • All scripts only support file paths as input
  • For scripts that generate multiple files (e.g., multiple tables, multiple code blocks), the output filename will be automatically numbered
  • Use the --strip-wrapper option to remove code block wrappers (```) from the input Markdown
Полный текст лицензии (Apache-2.0)
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.