[
  {
    "path": ".github/dependabot.yml",
    "content": "version: 2\nupdates:\n  - package-ecosystem: \"pip\"\n    directory: \"/\" \n    schedule:\n      interval: \"daily\"\n      time: \"09:00\" \n    assignees:\n      - \"xenatisch\"\n      - \"adi-\"\n    labels:\n      - \"dependencies\"\n\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      # Check for updates to GitHub Actions every weekday\n      interval: \"daily\"\n      time: \"09:00\"\n    assignees:\n      - \"xenatisch\"\n      - \"adi-\"\n"
  },
  {
    "path": ".github/workflows/python-publish.yml",
    "content": "name: PyPI CI\n\non:\n  release:\n    types: [ created ]\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v6.0.2\n\n      - name: Set up Python\n        uses: actions/setup-python@v6\n        with:\n          python-version: '3.10'\n\n      - name: Install dependencies\n        run: |\n          python -m pip install --upgrade pip\n          pip install setuptools wheel twine\n\n      - name: Build and publish\n        env:\n          TWINE_USERNAME: __token__\n          TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}\n        run: |\n          python setup.py sdist bdist_wheel\n          twine upload dist/*\n"
  },
  {
    "path": ".github/workflows/run-tests.yml",
    "content": "name: Run tests\n\non:\n  push:\n    branches: [ master ]\n\n  pull_request:\n    branches: [ master ]\n\njobs:\n  build:\n    runs-on: ${{ matrix.os }}\n\n    strategy:\n      matrix:\n        os: [ ubuntu-latest ]\n        python-version: [ \"3.10\", \"3.11\", \"3.12\", \"3.13\" ]\n        django-version: [ 4.0, 4.1, 4.2, 5.0, 5.1, 5.2 ]\n\n    steps:\n      - name: Install system dependencies (windows)\n        if: matrix.os == 'windows-latest'\n        uses: msys2/setup-msys2@v2\n        with:\n          update: true\n          install: zlib\n\n      - uses: actions/checkout@v6.0.2\n\n      - name: Set up Python ${{ matrix.python-version }}\n        uses: actions/setup-python@v6\n        with:\n          python-version: ${{ matrix.python-version }}\n\n      - name: Install dependencies\n        run: |\n          python dev.py -no-container\n          pip install -q Django==${{ matrix.django-version }}\n          python -m pip install --upgrade pip\n          pip install -U setuptools\n          python setup.py install\n\n      - name: Test with pytest\n        run: |\n          python runtests.py\n"
  },
  {
    "path": ".gitignore",
    "content": "# Byte-compiled / optimized / DLL files\n__pycache__/\n*.py[cod]\n\n# Distribution / packaging\n.Python\nenv/\nbuild\ndevelop-eggs/\ndist/\ndownloads/\neggs/\nlib/\nlib64/\nparts/\nsdist/\nvar/\n*.egg-info/\n.installed.cfg\n*.egg\n\n# PyInstaller\n#  Usually these files are written by a python script from a template\n#  before PyInstaller builds the exe, so as to inject date/other infos into it.\n*.manifest\n*.spec\n\n# Installer logs\npip-log.txt\npip-delete-this-directory.txt\n\n# Unit test / coverage reports\nhtmlcov/\n.tox/\n.coverage\n.cache\nnosetests.xml\ncoverage.xml\n\n# Other generic files to ignore\nnode_modules\n*~\n*.lock\n*.DS_Store\n*.idea\n*.swp\n*.out\n.vagrant\nstatic-src/markdownx/js/*.js\nstatic-src/markdownx/js/*.map\ntestapp/\ndb.sqlite3\nnpm-debug.log\n.vagrant/\n.idea/\nnode_modules/\n/docs/src/_theme/sphinx_rtd_theme/sphinx_rtd_theme.egg-info\n/docs/src/_theme/sphinx_rtd_theme/bower_components\n/docs/src/_theme/sphinx_rtd_theme/build\n/docs/src/_theme/sphinx_rtd_theme/dist\nVagrantfile\nmanage.py\nruntests.py\nbootstrap.sh\npackage.json\nDockerFile\ndocker-compose.yml\nentrypoint.sh\npackage-lock.json\n"
  },
  {
    "path": ".nojekyll",
    "content": ""
  },
  {
    "path": ".travis.yml",
    "content": "language: python\nsudo: false\n\nmatrix:\n  include:\n      env: DJANGO=4.2.*\n    - python: 3.10\n      env: DJANGO=5.2.*\n\n    - python: 3.11\n      env: DJANGO=4.2.*\n    - python: 3.11\n      env: DJANGO=5.2.*\n\n    - python: 3.12\n      env: DJANGO=4.2.*\n    - python: 3.12\n      env: DJANGO=5.2.*\n\n    - python: 3.13\n      env: DJANGO=5.2.*\n\ninstall:\n  - python dev.py -no-container\n  - pip install -q Django==$DJANGO\n  - python setup.py install\n\nscript: python runtests.py\n"
  },
  {
    "path": "LICENSE",
    "content": "Copyright (c) 2016, neutronX\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nThe views and conclusions contained in the software and documentation are those\nof the authors and should not be interpreted as representing official policies,\neither expressed or implied, of the FreeBSD Project.\n"
  },
  {
    "path": "MANIFEST.in",
    "content": "include LICENSE\ninclude README.rst\ninclude requirements.txt\nrecursive-include markdownx/static *\nrecursive-include markdownx/templates *\nrecursive-include markdownx/locale *\nrecursive-include markdownx/tests *\nexclude */__pycache__/\nexclude *.DS_Store\n"
  },
  {
    "path": "README.md",
    "content": "# Django MarkdownX\n\nDjango MarkdownX is a comprehensive [Markdown](https://en.wikipedia.org/wiki/Markdown) plugin built for [Django](https://www.djangoproject.com), the renowned high-level Python web framework, with flexibility, extensibility, and ease-of-use at its core.\n\n**GitHub:** [https://github.com/neutronX/django-markdownx](https://github.com/neutronX/django-markdownx)<br>\n**PyPi:** [https://pypi.org/project/django-markdownx/](https://pypi.org/project/django-markdownx/)\n\n## Key features\n\n* Raw editing.\n* Live preview.\n* Drag & drop image uploads (automatically stored in the designated location in the *Media* directory).\n* Customizable image insertion tag.\n* Definition of maximum size for an image.\n* Definition of acceptable image formats (PNG, JPEG, SVG).\n* Image manipulations (compression, size reduction, cropping, upscaling).\n* Pre- and post- text modification.\n* Easy template customization, layout modification, and personalization.\n* Multiple editors per page.\n* Django Admin support.\n\n## Preview\n\n![django-markdownx preview](https://github.com/neutronX/django-markdownx/raw/master/django-markdownx-preview.gif?raw=true)\n"
  },
  {
    "path": "SECURITY.md",
    "content": "# Security Policy\n\n## Reporting a Vulnerability\n\nTo report a vulnerability please send an e-mail to: nawalnica_spluczka0b@icloud.com\n"
  },
  {
    "path": "dev.py",
    "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nusage: dev.py [-h] (-v | -d | -c | -run-vagrant | -run-docker | -no-container)\n              [--with-docs] [--with-npm-settings]\n\noptional arguments:\n  -h, --help           show this help message and exit\n  -v, --vagrant        Install Vagrant development environment (requires\n                       Vagrant).\n  -d, --docker         Install Docker development environment (requires\n                       Docker).\n  -c, --clean          Clean up the development files (only the ones that have\n                       been automatically created).\n  -run-vagrant         Run vagrant development environment (runs --vagrant if\n                       the files don't already exist). Vagrant must be\n                       installed on your machine.\n  -run-docker          Run vagrant development environment (runs --vagrant if\n                       the files don't already exist). Docker must already be\n                       installed on your machine, and Docker Daemon must be up\n                       and running.\n  -no-container        Run vagrant development environment (runs --vagrant if\n                       the files don't already exist).\n  --with-docs          Install documentation development environment.\n  --with-npm-settings  Install npm installation environment for front-end\n                       (TypeScript) development (requires node.js and npm).\n\nCopyright (c) 2017, Django MarkdownX - Adi, Pouria Hadjibagheri.\n\"\"\"\n\n# Python's internal libraries:\nfrom __future__ import unicode_literals\nfrom os.path import join as join_path, dirname, abspath, exists, splitext\nfrom os import remove, chmod, stat\nfrom stat import S_IEXEC\nfrom sys import executable as python_path\nfrom sys import exit as sys_exit\n\n# Third party libraries:\ntry:\n    from pip._internal import main as pip_main\nexcept ImportError:  # pip < 10\n    from pip import main as pip_main\n\n\nBASE_DIR = dirname(abspath(__file__))\nDEV_XML_FILE = 'dev.xml'\nXML_FILE_ABSOLUTE_PATH = join_path(BASE_DIR, DEV_XML_FILE)\n\npypi_packages = {\n    'mkdocs',\n    'mkdocs-material',\n    'pymdown-extensions',\n}\n\n\nbash_commands = {\n    'vagrant': (\n        'cd {path}'.format(path=BASE_DIR),\n        'vagrant up',\n        'vagrant ssh -c \"/home/vagrant/.virtualenvs/django-markdownx/bin/python -u '\n        '/srv/django-markdownx/manage.py runserver 0.0.0.0:8000\"'\n    ),\n    'docs': (\n        'mkdocs build',\n    ),\n    'docker': (\n        'docker-compose build',\n        'docker-compose up -d'\n    )\n}\n\n\ndef quiz(question, options, max_attempts=3):\n    from collections import Counter\n\n    count = Counter([item[0] for item in options])\n    if max(count.values()) > 1:\n        raise ValueError(\n            'Multiple options start with '\n            'character \"{}\".'.format(max(count, lambda x: count[x]))\n        )\n\n    current_attempt = 0\n    opts = tuple(key[0] for key in options)\n    opts_str = str.join(\n        ', ',\n        ('[{}]{}'.format(key, options[index][1:]) for index, key in enumerate(opts))\n    )\n    while current_attempt < max_attempts:\n        try:\n            response = input(\n                '> {question}\\n'\n                '  {opts} (ctrl+c to cancel): '.format(question=question, opts=opts_str)\n            )\n\n            if response.strip() in opts:\n                return options[opts.index(response.strip())]\n\n            print('\\nInvalid response.')\n            current_attempt += 1\n        except KeyboardInterrupt:\n            print('\\nOperation cancelled by the user. Exited with code 0.')\n            sys_exit(0)\n    else:\n        print(\n            '\\nFailed {} attempts. Operation cancelled, '\n            'exited with code 1.'.format(max_attempts)\n        )\n        sys_exit(1)\n\n\ndef yes_no_quiz(question, max_attempts=3):\n    response = quiz(\n        question=question,\n        options=('Yes', 'No'),\n        max_attempts=max_attempts\n    )\n    return response == 'Yes'\n\n\ndef replace_contents_or_not(path):\n    replace_response = 'override and update the default'\n\n    replace_or_override = dict(\n        question='Contents of the existing \"{}\" and default values don\\'t match. '\n                 'Would you like to...\\n'.format(path),\n        options=(\n            'override and update the default',\n            'replace changes with the default'\n            )\n    )\n    return quiz(**replace_or_override) == replace_response\n\n\ndef from_terminal(subject):\n    from subprocess import run as run_bash\n    from shlex import split as shlex_split\n\n    for command in bash_commands[subject]:\n        print('> EXECUTING:', command)\n        run_bash(shlex_split(command), timeout=None, check=True)\n    return True\n\n\ndef create_files(name):\n    from xml.etree.ElementTree import parse\n    from xml.sax.saxutils import escape, unescape\n\n    contents_xml = parse(XML_FILE_ABSOLUTE_PATH)\n    root = contents_xml.getroot()\n\n    for file in root:\n        if name in file.attrib['for'].split(';'):\n            relative_path = [node.text for node in file.iterfind('path')]\n            absolute_path = join_path(BASE_DIR, *relative_path)\n\n            display_path = join_path('markdownx', *relative_path)\n            template_contents = file.find('contents').text\n\n            if exists(absolute_path):\n                with open(absolute_path, mode='r') as data_file:\n                    file_io = data_file.read()\n\n                contents_identical = template_contents.strip() == escape(file_io.strip())\n\n                if not contents_identical and replace_contents_or_not(display_path):\n                    file.find('contents').text = escape(file_io)\n                elif not contents_identical:\n                    with open(absolute_path, mode='w') as file_io:\n                        file_io.write(unescape(template_contents) + '\\n')\n\n                    print('> REPLACED with default:', display_path)\n            else:\n                with open(absolute_path, mode='w') as target_file:\n                    target_file.write(unescape(template_contents))\n\n                print('> CREATED:', display_path)\n\n            if splitext(absolute_path)[1] == '.sh' or absolute_path.endswith('manage.py'):\n                st = stat(absolute_path)\n                chmod(absolute_path, st.st_mode | S_IEXEC)\n\n        contents_xml.write(\n            file_or_filename=XML_FILE_ABSOLUTE_PATH,\n            xml_declaration=True,\n            encoding='UTF-8',\n            method='xml'\n        )\n\n    return True\n\n\ndef delete(abs_path, disp_path):\n    try:\n        remove(abs_path)\n    except IOError as error:\n        print('Failed to delete \"{}\"\\n'.format(disp_path), error)\n\n    print('> REMOVED:', disp_path)\n    return True\n\n\ndef clean():\n    response = yes_no_quiz(\n        question=\"Are you sure you want to clean up \"\n                 \"the developers' environment?\"\n    )\n    if not response:\n        print('Exited at user\\'s request with code 0.')\n        sys_exit(0)\n\n    from xml.etree.ElementTree import parse\n    from xml.sax.saxutils import escape\n\n    contents_xml = parse(XML_FILE_ABSOLUTE_PATH)\n    root = contents_xml.getroot()\n\n    for file in root:\n        relative_path = [node.text for node in file.iterfind('path')]\n        absolute_path = join_path(BASE_DIR, *relative_path)\n        display_path = join_path('markdownx', *relative_path)\n\n        if not exists(absolute_path):\n            continue\n\n        with open(absolute_path, mode='r') as data_file:\n            file_content = data_file.read()\n\n        if file.find('contents').text.strip() == escape(file_content.strip()):\n            delete(absolute_path, display_path)\n            continue\n\n        if replace_contents_or_not(display_path):\n            file.find('contents').text = escape(file_content)\n            print('> UPDATED in default setting:', display_path)\n            delete(absolute_path, display_path)\n            continue\n\n        delete(absolute_path, display_path)\n\n    delete(join_path(BASE_DIR, 'db.sqlite3'), 'db.sqlite3')\n\n    contents_xml.write(\n        file_or_filename=XML_FILE_ABSOLUTE_PATH,\n        xml_declaration=True,\n        encoding='UTF-8',\n        method='xml'\n    )\n\n    return True\n\n\ndef docs():\n    subject = 'docs'\n    create_files(subject)\n    pip_install(*pypi_packages)\n    return from_terminal(subject)\n\n\ndef vagrant():\n    subject = 'vagrant'\n    return create_files(subject)\n\n\ndef run_vagrant():\n    subject = 'vagrant'\n    vagrant()\n    return from_terminal(subject)\n\n\ndef docker():\n    subject = 'docker'\n    return create_files(subject)\n\n\ndef run_docker():\n    subject = 'docker'\n    docker()\n    return from_terminal(subject)\n\n\ndef npm():\n    subject = 'npm'\n    return create_files(subject)\n\n\ndef no_container():\n    subject = 'no-container'\n    return create_files(subject)\n\n\ndef pip_install(*packages):\n    for package in packages:\n        pip_main(['install', package])\n    return True\n\n\ndef main():\n    import argparse\n    from datetime import datetime\n    parser = argparse.ArgumentParser(\n        description='Welcome to Django MarkdownX Developers\\' Environment.',\n        epilog=(\n            \"Copyright (c) {}, Django MarkdownX - \"\n            \"Adi, Pouria Hadjibagheri.\".format(\n                datetime.now().strftime('%Y')\n            )\n        )\n    )\n\n    group = parser.add_mutually_exclusive_group(required=True)\n\n    group.add_argument(\n        '-v',\n        '--vagrant',\n        action='store_const',\n        const=vagrant,\n        dest='run',\n        help='Install Vagrant development environment (requires Vagrant).'\n    )\n\n    group.add_argument(\n        '-d',\n        '--docker',\n        action='store_const',\n        dest='run',\n        const=docker,\n        help='Install Docker development environment (requires Docker).'\n    )\n\n    group.add_argument(\n        '-c',\n        '--clean',\n        action='store_const',\n        const=clean,\n        dest='run',\n        help='Clean up the development files (only the ones that '\n             'have been automatically created).'\n    )\n\n    group.add_argument(\n        '-run-vagrant',\n        action='store_const',\n        dest='run',\n        const=run_vagrant,\n        help='Run vagrant development environment '\n             '(runs --vagrant if the files don\\'t already exist). '\n             'Vagrant must be installed on your machine.'\n    )\n\n    group.add_argument(\n        '-run-docker',\n        action='store_const',\n        dest='run',\n        const=run_docker,\n        help='Run docker development environment '\n             '(runs --docker if the files don\\'t already exist). '\n             'Docker must already be installed on your machine, and '\n             'Docker Daemon must be up and running.'\n    )\n\n    group.add_argument(\n        '-no-container',\n        action='store_const',\n        dest='run',\n        const=no_container,\n        help='Create development files without a container-based '\n             'development environment (creates \"manage.py\" and \"runtests.py\").'\n    )\n\n    parser.add_argument(\n        '--with-docs',\n        action='store_const',\n        const=docs,\n        dest='run',\n        help='Install documentation development environment.'\n    )\n\n    parser.add_argument(\n        '--with-npm-settings',\n        action='store_const',\n        const=npm,\n        dest='run',\n        help='Install npm installation environment for front-end '\n             '(TypeScript) development (requires node.js and npm).'\n    )\n\n    parser.parse_args().run()\n\n    return parser\n\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "dev.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<dev><file for=\"vagrant\"><path>Vagrantfile</path>\n        <contents>Vagrant.configure(\"2\") do |config|\n\n    config.vm.box = \"bento/ubuntu-20.04\"\n    config.vm.box_check_update = false\n    config.vm.provision :shell, :path =&amp;gt; \"bootstrap.sh\", privileged: false\n    config.vm.synced_folder \".\", \"/vagrant\", disabled: true\n    config.vm.synced_folder \"../django-markdownx\", \"/srv/django-markdownx\", create: true\n    config.vm.network \"public_network\", use_dhcp_assigned_default_route: true, ip: \"192.168.0.231\"\n    config.vm.hostname = \"django-markdownx\"\n    config.ssh.forward_agent = true\n    config.vagrant.plugins = [ \"vagrant-vbguest\", ]\n\n    config.vm.provider \"virtualbox\" do |vb|\n        vb.name = \"django-markdownx\"\n        vb.gui = false\n        vb.memory = \"512\"\n        vb.cpus = 2\n        vb.customize [\"modifyvm\", :id, \"--ioapic\", \"on\"]\n    end\nend\n</contents>\n    </file>\n    <file for=\"vagrant\"><path>bootstrap.sh</path>\n        <contents>#!/usr/bin/env bash\n\n# NOTE: Python alias\nalias python=python3\n\n# NOTE: Add Node.js APT Repository\nsudo apt-get install -y curl\ncurl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -\n\n# NOTE: Install dependencies\nsudo apt-get update -y\nsudo apt-get install -y gettext build-essential pkg-config nodejs python3-dev libjpeg-dev zlib1g-dev python3-virtualenv\n\n# NOTE: Install virtual environment\nvirtualenv ~/.virtualenvs/django-markdownx\nsource ~/.virtualenvs/django-markdownx/bin/activate\npip install --upgrade pip\npip install -r /srv/django-markdownx/requirements.txt\n\n# NOTE: Folders\nsudo chown vagrant:vagrant /srv\n\n# NOTE: Bash\nsudo sed -i '$a cd /srv/django-markdownx/' ~/.bashrc\nsudo sed -i '$a source ~/.virtualenvs/django-markdownx/bin/activate' ~/.bashrc\n\n# NOTE: Install Node modules, compile static files and run migrations\ncd /srv/django-markdownx/\nnpm install\nnpm run dist\npython manage.py migrate\necho \"from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin')\" | python manage.py shell\n\necho -e '\\e[33;1;5mDONE!\\e[0m \\e[33;1;3m Connect using \"vagrant ssh\" \\e[0m'\n</contents>\n    </file>\n    <file for=\"vagrant;docker;npm\"><path>package.json</path>\n        <contents>{\n  \"name\": \"django-markdownx\",\n  \"description\": \"Django Markdownx frontend (JavaScript).\",\n  \"version\": \"2.0.0\",\n  \"author\": \"Adi, Pouria Hadjibagheri\",\n  \"license\": \"2-clause BSD\",\n  \"engines\": {\n    \"node\": \"&amp;gt;=0.10\",\n    \"npm\": \"&amp;gt;=1.3\"\n  },\n\n  \"devDependencies\": {\n    \"watch\": \"~1\",\n    \"typescript\": \"~2.2\",\n    \"uglify-js\": \"~2.7\",\n    \"browserify\": \"~14.1\",\n    \"clean-css-cli\": \"~4\"\n  },\n\n  \"config\": {\n    \"tsfolder\": \"static-src/markdownx/js\",\n    \"jsoutput\": \"markdownx/static/markdownx/js\",\n\n    \"cssfolder\": \"static-src/markdownx/admin/css\",\n    \"cssoutput\": \"markdownx/static/markdownx/admin/css\"\n  },\n\n  \"scripts\": {\n    \"build:ts\": \"tsc -p $npm_package_config_tsfolder/tsconfig.json\",\n    \"build:js\": \"npm run build:ts &amp;amp;&amp;amp; browserify $npm_package_config_tsfolder/markdownx.js -o $npm_package_config_jsoutput/markdownx.js &amp;amp;&amp;amp; uglifyjs $npm_package_config_jsoutput/markdownx.js -o $npm_package_config_jsoutput/markdownx.js --beautify --stats\",\n    \"build:css\": \"cleancss $npm_package_config_cssfolder/markdownx.css -o $npm_package_config_cssoutput/markdownx.css --format beautify --debug\",\n    \"build\": \"npm run build:js &amp;amp;&amp;amp; npm run build:css\",\n\n    \"dist:js\": \"npm run build:ts &amp;amp;&amp;amp; browserify $npm_package_config_tsfolder/markdownx.js -o $npm_package_config_jsoutput/markdownx.js &amp;amp;&amp;amp; uglifyjs $npm_package_config_jsoutput/markdownx.js -o $npm_package_config_jsoutput/markdownx.min.js --screw-ie8 --mangle --stats\",\n    \"dist:css\": \"npm run build:css &amp;amp;&amp;amp; cleancss $npm_package_config_cssfolder/markdownx.css -o $npm_package_config_cssoutput/markdownx.min.css --compatibility ie9 --debug\",\n    \"dist\": \"npm run dist:js &amp;amp;&amp;amp; npm run dist:css\",\n\n    \"watch:js\": \"watch 'npm run build:js' $npm_package_config_tsfolder -d -u\",\n    \"watch:css\": \"watch 'npm run build:css' $npm_package_config_cssfolder -d -u\"\n  }\n}\n</contents>\n    </file>\n    <file for=\"vagrant;docker;no-container\"><path>runtests.py</path>\n        <contents>from __future__ import absolute_import\n\nimport os\nimport sys\n\nsys.path.append(os.path.join(os.path.dirname(__file__), 'markdownx'))\n\nimport django\nfrom django.conf import settings\n\nconfigure_settings = {\n    'DATABASES': {\n        'default': {\n            'ENGINE': 'django.db.backends.sqlite3',\n            'NAME': ':memory:',\n        }\n    },\n    'INSTALLED_APPS': [\n        'django.contrib.auth',\n        'django.contrib.contenttypes',\n        'django.contrib.sessions',\n        'django.contrib.staticfiles',\n        'markdownx',\n    ],\n    'DEBUG': False,\n    'STATIC_URL': '/static/',\n    'TEMPLATES': [\n        {\n            'BACKEND': 'django.template.backends.django.DjangoTemplates',\n            'DIRS': [\n                os.path.join(os.path.abspath(os.path.dirname(__file__)), 'markdownx/tests/templates'),\n            ],\n            'APP_DIRS': True,\n            'OPTIONS': {\n                'context_processors': [\n                    'django.contrib.auth.context_processors.auth',\n                    'django.template.context_processors.debug',\n                    'django.template.context_processors.i18n',\n                    'django.template.context_processors.media',\n                    'django.template.context_processors.static',\n                    'django.template.context_processors.tz',\n                    'django.contrib.messages.context_processors.messages',\n                ],\n                'debug': True,\n            },\n        },\n    ],\n    'ROOT_URLCONF': 'tests.urls',\n}\n\nsettings.configure(**configure_settings)\ndjango.setup()\n\nfrom django.test.utils import get_runner\ntest_runner = get_runner(settings)\nfailures = test_runner(\n    verbosity=1,\n    interactive=False,\n    failfast=False).run_tests(['tests'])\nsys.exit(failures)</contents>\n    </file>\n    <file for=\"docs\"><path>create_docs.sh</path>\n        <contents>#!/usr/bin/env bash\n\n# Compile the docs.\nmkdocs build\n\n# Open in the browser.\nURL=\"docs/index.html\"\n\necho \"Documentations index file: $URL\"\n\"\" &amp;gt;&amp;gt; ./docs/.nojekyll\n[[ -x $BROWSER ]] &amp;amp;&amp;amp; exec \"$BROWSER\" \"$URL\"\npath=$(which xdg-open || which gnome-open || which open) &amp;amp;&amp;amp; exec \"$path\" \"$URL\"\necho \"Built the docs - but couldn't find a browser to open them.\"\n</contents>\n    </file>\n    <file for=\"vagrant;docker;no-container\">\n        <path>manage.py</path>\n        <contents>#!/usr/bin/env python3\nimport sys\n\nimport os\n\nif __name__ == \"__main__\":\n    os.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"testapp.settings\")\n\n    from django.core.management import execute_from_command_line\n\n    execute_from_command_line(sys.argv)\n</contents>\n    </file>\n    <file for=\"docker\"><path>Dockerfile</path>\n        <contents>FROM python:3.10\nENV PYTHONUNBUFFERED 1\nRUN mkdir /markdownx\nWORKDIR /markdownx\nADD requirements.txt /markdownx/\nRUN python3.10 -m pip install -U setuptools\nRUN python3.10 -m pip install -r requirements.txt\nADD . /markdownx/\nRUN chmod +x /markdownx/entrypoint.sh\n</contents>\n    </file>\n    <file for=\"docker\"><path>entrypoint.sh</path>\n        <contents>#!/bin/sh\npython manage.py migrate\necho \"from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin')\" | python manage.py shell\nexec \"$@\"\n</contents>\n    </file>\n    <file for=\"docker\"><path>docker-compose.yml</path>\n        <contents>version: '2'\nservices:\n  web:\n    restart: always\n    build: .\n    command: python3.10 manage.py runserver 0.0.0.0:8000 --insecure\n    volumes:\n      - .:/markdownx\n    ports:\n      - \"8000:8000\"\n      - \"8001:8001\"\n\n    mem_limit: 500m\n    cpuset: \"1\"\n    entrypoint: \"bash entrypoint.sh\"</contents>\n    </file>\n    <file for=\"vagrant;docker;no-container\"><path>runtests.py</path>\n        <contents>from __future__ import absolute_import\n\nimport os\nimport sys\n\nsys.path.append(os.path.join(os.path.dirname(__file__), 'markdownx'))\n\nimport django\nfrom django.conf import settings\n\nconfigure_settings = {\n    'DATABASES': {\n        'default': {\n            'ENGINE': 'django.db.backends.sqlite3',\n            'NAME': ':memory:',\n        }\n    },\n    'INSTALLED_APPS': [\n        'django.contrib.auth',\n        'django.contrib.contenttypes',\n        'django.contrib.sessions',\n        'django.contrib.staticfiles',\n        'markdownx',\n    ],\n    'DEBUG': False,\n    'STATIC_URL': '/static/',\n    'TEMPLATES': [\n        {\n            'BACKEND': 'django.template.backends.django.DjangoTemplates',\n            'DIRS': [\n                os.path.join(os.path.abspath(os.path.dirname(__file__)), 'markdownx/tests/templates'),\n            ],\n            'APP_DIRS': True,\n            'OPTIONS': {\n                'context_processors': [\n                    'django.contrib.auth.context_processors.auth',\n                    'django.template.context_processors.debug',\n                    'django.template.context_processors.i18n',\n                    'django.template.context_processors.media',\n                    'django.template.context_processors.static',\n                    'django.template.context_processors.tz',\n                    'django.contrib.messages.context_processors.messages',\n                ],\n                'debug': True,\n            },\n        },\n    ],\n    'ROOT_URLCONF': 'tests.urls',\n}\n\nsettings.configure(**configure_settings)\ndjango.setup()\n\nfrom django.test.utils import get_runner\ntest_runner = get_runner(settings)\nfailures = test_runner(\n    verbosity=1,\n    interactive=False,\n    failfast=False).run_tests(['tests'])\nsys.exit(failures)</contents>\n    </file>\n</dev>"
  },
  {
    "path": "docs/404.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n      <link rel=\"shortcut icon\" href=\"/django-markdownx/img/favicon.ico\" />\n    <title>Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"/django-markdownx/css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"/django-markdownx/css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n    <!--[if lt IE 9]>\n      <script src=\"/django-markdownx/js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\"/django-markdownx/.\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"/django-markdownx//search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/django-markdownx/.\">Django MarkdownX</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/django-markdownx/installation/\">Installation</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/django-markdownx/getting_started/\">Getting Started</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/django-markdownx/example/\">Example</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/django-markdownx/customization/\">Customization</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/django-markdownx/javascript/\">JavaScript</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/django-markdownx/translations/\">Translations</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/django-markdownx/contributions/\">Contributions</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/django-markdownx/license/\">License</a>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\"/django-markdownx/.\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\"/django-markdownx/.\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n\n  <h1 id=\"404-page-not-found\">404</h1>\n\n  <p><strong>Page not found</strong></p>\n\n\n            </div>\n          </div><footer>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n    \n  </span>\n</div>\n    <script src=\"/django-markdownx/js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \"/django-markdownx/\";</script>\n    <script src=\"/django-markdownx/js/theme_extra.js\"></script>\n    <script src=\"/django-markdownx/js/theme.js\"></script>\n      <script src=\"/django-markdownx/search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n"
  },
  {
    "path": "docs/contributions/index.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /><link rel=\"canonical\" href=\"https://neutronx.github.io/django-markdownx/contributions/\" />\n      <link rel=\"shortcut icon\" href=\"../img/favicon.ico\" />\n    <title>Contributions - Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"../css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"../css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n      <script>\n        // Current page data\n        var mkdocs_page_name = \"Contributions\";\n        var mkdocs_page_input_path = \"contributions.md\";\n        var mkdocs_page_url = \"/django-markdownx/contributions/\";\n      </script>\n    \n    <!--[if lt IE 9]>\n      <script src=\"../js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\"..\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"../search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"..\">Django MarkdownX</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../installation/\">Installation</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../getting_started/\">Getting Started</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../example/\">Example</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../customization/\">Customization</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../javascript/\">JavaScript</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../translations/\">Translations</a>\n                </li>\n              </ul>\n              <ul class=\"current\">\n                <li class=\"toctree-l1 current\"><a class=\"reference internal current\" href=\"#\">Contributions</a>\n    <ul class=\"current\">\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#quick-reference\">Quick reference</a>\n        <ul>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#-h-help\">-h, --help</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#-v-vagrant\">-v, --vagrant</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#-d-docker\">-d, --docker</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#-c-clean\">-c, --clean</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#-run-vagrant\">-run-vagrant</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#-run-docker\">-run-docker</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#-no-container\">-no-container</a>\n    </li>\n        </ul>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#optional\">Optional</a>\n        <ul>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#-with-docs\">--with-docs</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#-with-npm-settings\">--with-npm-settings</a>\n    </li>\n        </ul>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#example\">Example</a>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#tests\">Tests</a>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#vagrant\">Vagrant</a>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#docker\">Docker</a>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#cleanup\">Cleanup</a>\n    </li>\n    </ul>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../license/\">License</a>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\"..\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\"..\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n      <li class=\"breadcrumb-item active\">Contributions</li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n                <h1 id=\"contributions\">Contributions<a class=\"headerlink\" href=\"#contributions\" title=\"Permanent link\">&para;</a></h1>\n<p>We welcome and encourage contributions of all nature; from pointing out an error or a potential problem, to translations, to feature requests, and pull requests.</p>\n<p>We have a implemented a fully comprehensive developers' environment that comes with many functionalities, including its\nown <a href=\"https://www.vagrantup.com\">Vagrant</a> and <a href=\"https://www.docker.com\">Docker</a> containers.</p>\n<p>To set up the developers' environment, start off by cloning our source code from <a href=\"https://github.com/neutronX/django-markdownx\">GitHub</a>, like so:</p>\n<pre class=\"highlight\"><code class=\"language-bash\">git clone https://github.com/neutronX/django-markdownx.git</code></pre>\n<p>One that's done, change to the cloned directory and run:</p>\n<pre class=\"highlight\"><code class=\"language-python\">python3 dev.py -h</code></pre>\n<p>to see the options available.</p>\n<h2 id=\"quick-reference\">Quick reference<a class=\"headerlink\" href=\"#quick-reference\" title=\"Permanent link\">&para;</a></h2>\n<h3 id=\"-h-help\"><code>-h</code>, <code>--help</code><a class=\"headerlink\" href=\"#-h-help\" title=\"Permanent link\">&para;</a></h3>\n<p>Show the help message and exit.</p>\n<h3 id=\"-v-vagrant\"><code>-v</code>, <code>--vagrant</code><a class=\"headerlink\" href=\"#-v-vagrant\" title=\"Permanent link\">&para;</a></h3>\n<p>Install Vagrant development environment (requires Vagrant).</p>\n<h3 id=\"-d-docker\"><code>-d</code>, <code>--docker</code><a class=\"headerlink\" href=\"#-d-docker\" title=\"Permanent link\">&para;</a></h3>\n<p>Install Docker development environment (requires Docker).</p>\n<h3 id=\"-c-clean\"><code>-c</code>, <code>--clean</code><a class=\"headerlink\" href=\"#-c-clean\" title=\"Permanent link\">&para;</a></h3>\n<p>Clean up the development files (only the ones that have been automatically created).</p>\n<h3 id=\"-run-vagrant\"><code>-run-vagrant</code><a class=\"headerlink\" href=\"#-run-vagrant\" title=\"Permanent link\">&para;</a></h3>\n<p>Run vagrant development environment (runs <code>--vagrant</code> if the files don't already exist). Vagrant must be installed on your machine.</p>\n<h3 id=\"-run-docker\"><code>-run-docker</code><a class=\"headerlink\" href=\"#-run-docker\" title=\"Permanent link\">&para;</a></h3>\n<p>Run docker development environment (runs <code>--docker</code> if the files don't already exist). Docker must already be installed on your machine, and Docker Daemon must be up and running.</p>\n<h3 id=\"-no-container\"><code>-no-container</code><a class=\"headerlink\" href=\"#-no-container\" title=\"Permanent link\">&para;</a></h3>\n<p>Create development files without a container-based development environment (creates <code>manage.py</code> and <code>runtests.py</code>).</p>\n<h2 id=\"optional\">Optional<a class=\"headerlink\" href=\"#optional\" title=\"Permanent link\">&para;</a></h2>\n<h3 id=\"-with-docs\"><code>--with-docs</code><a class=\"headerlink\" href=\"#-with-docs\" title=\"Permanent link\">&para;</a></h3>\n<p>Install documentation development environment.</p>\n<h3 id=\"-with-npm-settings\"><code>--with-npm-settings</code><a class=\"headerlink\" href=\"#-with-npm-settings\" title=\"Permanent link\">&para;</a></h3>\n<p>Install npm installation environment, including <code>package.json</code> for front-end (TypeScript) development (requires <code>node.js</code> and <code>npm</code>).</p>\n<div class=\"admonition note\">\n<p class=\"admonition-title\">Note</p>\n<ul>\n<li><code>--with-docs</code> and <code>--with-npm-settings</code> are optional and need to be accompanied by one of the required arguments.</li>\n<li>To save the changes made within the developers' environment, use <code>-c</code> or <code>--clean</code>; and you will be asked if you\nwould like to override the existing settings. <strong>Do not commit your changes before doing this</strong>.</li>\n</ul>\n</div>\n<h2 id=\"example\">Example<a class=\"headerlink\" href=\"#example\" title=\"Permanent link\">&para;</a></h2>\n<p>This will install the following files:</p>\n<ul>\n<li>manage.py</li>\n<li>runtests.py</li>\n<li>Makefile</li>\n<li>create_docs.py</li>\n</ul>\n<p>It will also install the requirements for compiling the documentations. You do not \nneed to create the documentations locally if you do not intend to change them. \nAlthough you are welcome to do so, for minor changes, it is probably easier to report \nan issue on GitHub as compiling the documentations can be somewhat tricky.</p>\n<pre class=\"highlight\"><code class=\"language-bash\">python3 dev.py -no-container --with-docs</code></pre>\n<p>However, if you still want to run a preview of the edited documentation, use the \nfollowing command to see the result (it will run documentation preview on port \n<code>http://localhost:8001</code>)</p>\n<pre class=\"highlight\"><code class=\"language-bash\">mkdocs serve</code></pre>\n<p>Once done, please run:</p>\n<pre class=\"highlight\"><code class=\"language-bash\">python3 dev.py -c</code></pre>\n<p>to clean the installed files. If any of them have been altered, you will be asked for additional instructions as to whether to save the changes or discard them and hold onto the default.</p>\n<h2 id=\"tests\">Tests<a class=\"headerlink\" href=\"#tests\" title=\"Permanent link\">&para;</a></h2>\n<p>Django packages require <code>manage.py</code> and more often than not, <code>settings.py</code> files to run. This introduces a challenge for testing apps outside of a fully constructed project environment. This is one of the reasons why we introduced the developers' environment, which allows for a fully setup container (<a href=\"https://www.vagrantup.com\">Vagrant</a> or <a href=\"https://www.docker.com\">Docker</a>) to create an inclusive virtual server that can be used to run MarkdownX independently.</p>\n<div class=\"admonition attention\">\n<p class=\"admonition-title\">Attention</p>\n<p>You need to have either <a href=\"https://www.vagrantup.com\">Vagrant</a> or <a href=\"https://www.docker.com\">Docker</a> along with <a href=\"https://www.virtualbox.org\">Oracle VirtualBox</a> installed and configured to run either of these.</p>\n</div>\n<div class=\"admonition note\">\n<p class=\"admonition-title\">Note</p>\n<p>Vagrant will attempt to download and install Ubuntu Xenial, whilst Docker uses the default operating system if one already exists.</p>\n</div>\n<p>To take advantage of this, you should clone the source code from <a href=\"https://github.com/neutronX/django-markdownx\">GitHub</a> as explained above, and depending on your container of choice, follow these instructions:</p>\n<h2 id=\"vagrant\">Vagrant<a class=\"headerlink\" href=\"#vagrant\" title=\"Permanent link\">&para;</a></h2>\n<pre class=\"highlight\"><code class=\"language-bash\">python3 dev.py --vagrant</code></pre>\n<p>Files will be created:</p>\n<ul>\n<li>Vagrantfile</li>\n<li>bootstrap.sh</li>\n<li>runtests.py</li>\n<li>manage.py</li>\n<li>package.json</li>\n</ul>\n<pre class=\"highlight\"><code class=\"language-bash\">python3 dev.py -run-vagrant</code></pre>\n<p>Connect to server using <code>http://localhost:8000/</code> or <code>http://127.0.0.1:8000/</code></p>\n<h2 id=\"docker\">Docker<a class=\"headerlink\" href=\"#docker\" title=\"Permanent link\">&para;</a></h2>\n<pre class=\"highlight\"><code class=\"language-bash\">python3 dev.py --docker</code></pre>\n<p>Files will be created:</p>\n<ul>\n<li>Dockerfile</li>\n<li>docker-compose.yml</li>\n<li>entrypoint.sh</li>\n<li>runtests.py</li>\n<li>manage.py</li>\n<li>package.json</li>\n</ul>\n<pre class=\"highlight\"><code class=\"language-bash\">python3 dev.py -run-docker</code></pre>\n<p>Connect to server using <code>http://localhost:8000/</code> or <code>http://127.0.0.1:8000/</code></p>\n<hr />\n<div class=\"admonition tip\">\n<p class=\"admonition-title\">Tip</p>\n<p>Any changes made to the code whilst the container is up and running is automatically reflected without the need to restart the container.</p>\n</div>\n<h2 id=\"cleanup\">Cleanup<a class=\"headerlink\" href=\"#cleanup\" title=\"Permanent link\">&para;</a></h2>\n<p>Once done, please run:</p>\n<pre class=\"highlight\"><code class=\"language-bash\">python3 dev.py -c</code></pre>\n<p>to clean the installed files. If any of them have been altered, you will be asked for additional instructions as to whether to save the changes or discard them and hold onto the default.</p>\n              \n            </div>\n          </div><footer>\n    <div class=\"rst-footer-buttons\" role=\"navigation\" aria-label=\"Footer Navigation\">\n        <a href=\"../translations/\" class=\"btn btn-neutral float-left\" title=\"Translations\"><span class=\"icon icon-circle-arrow-left\"></span> Previous</a>\n        <a href=\"../license/\" class=\"btn btn-neutral float-right\" title=\"License\">Next <span class=\"icon icon-circle-arrow-right\"></span></a>\n    </div>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n      <span><a href=\"../translations/\" style=\"color: #fcfcfc\">&laquo; Previous</a></span>\n    \n    \n      <span><a href=\"../license/\" style=\"color: #fcfcfc\">Next &raquo;</a></span>\n    \n  </span>\n</div>\n    <script src=\"../js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \"..\";</script>\n    <script src=\"../js/theme_extra.js\"></script>\n    <script src=\"../js/theme.js\"></script>\n      <script src=\"../search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n"
  },
  {
    "path": "docs/css/theme.css",
    "content": "/*\n * This file is copied from the upstream ReadTheDocs Sphinx\n * theme. To aid upgradability this file should *not* be edited.\n * modifications we need should be included in theme_extra.css.\n *\n * https://github.com/readthedocs/sphinx_rtd_theme\n */\n\n /* sphinx_rtd_theme version 1.2.0 | MIT license */\nhtml{box-sizing:border-box}*,:after,:before{box-sizing:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden],audio:not([controls]){display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;text-decoration:none}ins,mark{color:#000}mark{background:#ff0;font-style:italic;font-weight:700}.rst-content code,.rst-content tt,code,kbd,pre,samp{font-family:monospace,serif;_font-family:courier new,monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:after,q:before{content:\"\";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}dl,ol,ul{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure,form{margin:0}label{cursor:pointer}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}textarea{resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir br{display:none}.hidden{display:none!important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media print{body,html,section{background:none!important}*{box-shadow:none!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important}a,a:visited{text-decoration:underline}.ir a:after,a[href^=\"#\"]:after,a[href^=\"javascript:\"]:after{content:\"\"}blockquote,pre{page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}.rst-content .toctree-wrapper>p.caption,h2,h3,p{orphans:3;widows:3}.rst-content .toctree-wrapper>p.caption,h2,h3{page-break-after:avoid}}.btn,.fa:before,.icon:before,.rst-content .admonition,.rst-content .admonition-title:before,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .code-block-caption .headerlink:before,.rst-content .danger,.rst-content .eqno .headerlink:before,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-alert,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before,.wy-menu-vertical li button.toctree-expand:before,input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:\"\"}.clearfix:after{clear:both}/*!\n *  Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome\n *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713);src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix&v=4.7.0) format(\"embedded-opentype\"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format(\"woff2\"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format(\"woff\"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format(\"truetype\"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#fontawesomeregular) format(\"svg\");font-weight:400;font-style:normal}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li button.toctree-expand{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa-pull-left.icon,.fa.fa-pull-left,.rst-content .code-block-caption .fa-pull-left.headerlink,.rst-content .eqno .fa-pull-left.headerlink,.rst-content .fa-pull-left.admonition-title,.rst-content code.download span.fa-pull-left:first-child,.rst-content dl dt .fa-pull-left.headerlink,.rst-content h1 .fa-pull-left.headerlink,.rst-content h2 .fa-pull-left.headerlink,.rst-content h3 .fa-pull-left.headerlink,.rst-content h4 .fa-pull-left.headerlink,.rst-content h5 .fa-pull-left.headerlink,.rst-content h6 .fa-pull-left.headerlink,.rst-content p .fa-pull-left.headerlink,.rst-content table>caption .fa-pull-left.headerlink,.rst-content tt.download span.fa-pull-left:first-child,.wy-menu-vertical li.current>a button.fa-pull-left.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-left.toctree-expand,.wy-menu-vertical li button.fa-pull-left.toctree-expand{margin-right:.3em}.fa-pull-right.icon,.fa.fa-pull-right,.rst-content .code-block-caption .fa-pull-right.headerlink,.rst-content .eqno .fa-pull-right.headerlink,.rst-content .fa-pull-right.admonition-title,.rst-content code.download span.fa-pull-right:first-child,.rst-content dl dt .fa-pull-right.headerlink,.rst-content h1 .fa-pull-right.headerlink,.rst-content h2 .fa-pull-right.headerlink,.rst-content h3 .fa-pull-right.headerlink,.rst-content h4 .fa-pull-right.headerlink,.rst-content h5 .fa-pull-right.headerlink,.rst-content h6 .fa-pull-right.headerlink,.rst-content p .fa-pull-right.headerlink,.rst-content table>caption .fa-pull-right.headerlink,.rst-content tt.download span.fa-pull-right:first-child,.wy-menu-vertical li.current>a button.fa-pull-right.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-right.toctree-expand,.wy-menu-vertical li button.fa-pull-right.toctree-expand{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left,.pull-left.icon,.rst-content .code-block-caption .pull-left.headerlink,.rst-content .eqno .pull-left.headerlink,.rst-content .pull-left.admonition-title,.rst-content code.download span.pull-left:first-child,.rst-content dl dt .pull-left.headerlink,.rst-content h1 .pull-left.headerlink,.rst-content h2 .pull-left.headerlink,.rst-content h3 .pull-left.headerlink,.rst-content h4 .pull-left.headerlink,.rst-content h5 .pull-left.headerlink,.rst-content h6 .pull-left.headerlink,.rst-content p .pull-left.headerlink,.rst-content table>caption .pull-left.headerlink,.rst-content tt.download span.pull-left:first-child,.wy-menu-vertical li.current>a button.pull-left.toctree-expand,.wy-menu-vertical li.on a button.pull-left.toctree-expand,.wy-menu-vertical li button.pull-left.toctree-expand{margin-right:.3em}.fa.pull-right,.pull-right.icon,.rst-content .code-block-caption .pull-right.headerlink,.rst-content .eqno .pull-right.headerlink,.rst-content .pull-right.admonition-title,.rst-content code.download span.pull-right:first-child,.rst-content dl dt .pull-right.headerlink,.rst-content h1 .pull-right.headerlink,.rst-content h2 .pull-right.headerlink,.rst-content h3 .pull-right.headerlink,.rst-content h4 .pull-right.headerlink,.rst-content h5 .pull-right.headerlink,.rst-content h6 .pull-right.headerlink,.rst-content p .pull-right.headerlink,.rst-content table>caption .pull-right.headerlink,.rst-content tt.download span.pull-right:first-child,.wy-menu-vertical li.current>a button.pull-right.toctree-expand,.wy-menu-vertical li.on a button.pull-right.toctree-expand,.wy-menu-vertical li button.pull-right.toctree-expand{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";-webkit-transform:scaleY(-1);-ms-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:\"\"}.fa-music:before{content:\"\"}.fa-search:before,.icon-search:before{content:\"\"}.fa-envelope-o:before{content:\"\"}.fa-heart:before{content:\"\"}.fa-star:before{content:\"\"}.fa-star-o:before{content:\"\"}.fa-user:before{content:\"\"}.fa-film:before{content:\"\"}.fa-th-large:before{content:\"\"}.fa-th:before{content:\"\"}.fa-th-list:before{content:\"\"}.fa-check:before{content:\"\"}.fa-close:before,.fa-remove:before,.fa-times:before{content:\"\"}.fa-search-plus:before{content:\"\"}.fa-search-minus:before{content:\"\"}.fa-power-off:before{content:\"\"}.fa-signal:before{content:\"\"}.fa-cog:before,.fa-gear:before{content:\"\"}.fa-trash-o:before{content:\"\"}.fa-home:before,.icon-home:before{content:\"\"}.fa-file-o:before{content:\"\"}.fa-clock-o:before{content:\"\"}.fa-road:before{content:\"\"}.fa-download:before,.rst-content code.download span:first-child:before,.rst-content tt.download span:first-child:before{content:\"\"}.fa-arrow-circle-o-down:before{content:\"\"}.fa-arrow-circle-o-up:before{content:\"\"}.fa-inbox:before{content:\"\"}.fa-play-circle-o:before{content:\"\"}.fa-repeat:before,.fa-rotate-right:before{content:\"\"}.fa-refresh:before{content:\"\"}.fa-list-alt:before{content:\"\"}.fa-lock:before{content:\"\"}.fa-flag:before{content:\"\"}.fa-headphones:before{content:\"\"}.fa-volume-off:before{content:\"\"}.fa-volume-down:before{content:\"\"}.fa-volume-up:before{content:\"\"}.fa-qrcode:before{content:\"\"}.fa-barcode:before{content:\"\"}.fa-tag:before{content:\"\"}.fa-tags:before{content:\"\"}.fa-book:before,.icon-book:before{content:\"\"}.fa-bookmark:before{content:\"\"}.fa-print:before{content:\"\"}.fa-camera:before{content:\"\"}.fa-font:before{content:\"\"}.fa-bold:before{content:\"\"}.fa-italic:before{content:\"\"}.fa-text-height:before{content:\"\"}.fa-text-width:before{content:\"\"}.fa-align-left:before{content:\"\"}.fa-align-center:before{content:\"\"}.fa-align-right:before{content:\"\"}.fa-align-justify:before{content:\"\"}.fa-list:before{content:\"\"}.fa-dedent:before,.fa-outdent:before{content:\"\"}.fa-indent:before{content:\"\"}.fa-video-camera:before{content:\"\"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:\"\"}.fa-pencil:before{content:\"\"}.fa-map-marker:before{content:\"\"}.fa-adjust:before{content:\"\"}.fa-tint:before{content:\"\"}.fa-edit:before,.fa-pencil-square-o:before{content:\"\"}.fa-share-square-o:before{content:\"\"}.fa-check-square-o:before{content:\"\"}.fa-arrows:before{content:\"\"}.fa-step-backward:before{content:\"\"}.fa-fast-backward:before{content:\"\"}.fa-backward:before{content:\"\"}.fa-play:before{content:\"\"}.fa-pause:before{content:\"\"}.fa-stop:before{content:\"\"}.fa-forward:before{content:\"\"}.fa-fast-forward:before{content:\"\"}.fa-step-forward:before{content:\"\"}.fa-eject:before{content:\"\"}.fa-chevron-left:before{content:\"\"}.fa-chevron-right:before{content:\"\"}.fa-plus-circle:before{content:\"\"}.fa-minus-circle:before{content:\"\"}.fa-times-circle:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before{content:\"\"}.fa-check-circle:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before{content:\"\"}.fa-question-circle:before{content:\"\"}.fa-info-circle:before{content:\"\"}.fa-crosshairs:before{content:\"\"}.fa-times-circle-o:before{content:\"\"}.fa-check-circle-o:before{content:\"\"}.fa-ban:before{content:\"\"}.fa-arrow-left:before{content:\"\"}.fa-arrow-right:before{content:\"\"}.fa-arrow-up:before{content:\"\"}.fa-arrow-down:before{content:\"\"}.fa-mail-forward:before,.fa-share:before{content:\"\"}.fa-expand:before{content:\"\"}.fa-compress:before{content:\"\"}.fa-plus:before{content:\"\"}.fa-minus:before{content:\"\"}.fa-asterisk:before{content:\"\"}.fa-exclamation-circle:before,.rst-content .admonition-title:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before{content:\"\"}.fa-gift:before{content:\"\"}.fa-leaf:before{content:\"\"}.fa-fire:before,.icon-fire:before{content:\"\"}.fa-eye:before{content:\"\"}.fa-eye-slash:before{content:\"\"}.fa-exclamation-triangle:before,.fa-warning:before{content:\"\"}.fa-plane:before{content:\"\"}.fa-calendar:before{content:\"\"}.fa-random:before{content:\"\"}.fa-comment:before{content:\"\"}.fa-magnet:before{content:\"\"}.fa-chevron-up:before{content:\"\"}.fa-chevron-down:before{content:\"\"}.fa-retweet:before{content:\"\"}.fa-shopping-cart:before{content:\"\"}.fa-folder:before{content:\"\"}.fa-folder-open:before{content:\"\"}.fa-arrows-v:before{content:\"\"}.fa-arrows-h:before{content:\"\"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:\"\"}.fa-twitter-square:before{content:\"\"}.fa-facebook-square:before{content:\"\"}.fa-camera-retro:before{content:\"\"}.fa-key:before{content:\"\"}.fa-cogs:before,.fa-gears:before{content:\"\"}.fa-comments:before{content:\"\"}.fa-thumbs-o-up:before{content:\"\"}.fa-thumbs-o-down:before{content:\"\"}.fa-star-half:before{content:\"\"}.fa-heart-o:before{content:\"\"}.fa-sign-out:before{content:\"\"}.fa-linkedin-square:before{content:\"\"}.fa-thumb-tack:before{content:\"\"}.fa-external-link:before{content:\"\"}.fa-sign-in:before{content:\"\"}.fa-trophy:before{content:\"\"}.fa-github-square:before{content:\"\"}.fa-upload:before{content:\"\"}.fa-lemon-o:before{content:\"\"}.fa-phone:before{content:\"\"}.fa-square-o:before{content:\"\"}.fa-bookmark-o:before{content:\"\"}.fa-phone-square:before{content:\"\"}.fa-twitter:before{content:\"\"}.fa-facebook-f:before,.fa-facebook:before{content:\"\"}.fa-github:before,.icon-github:before{content:\"\"}.fa-unlock:before{content:\"\"}.fa-credit-card:before{content:\"\"}.fa-feed:before,.fa-rss:before{content:\"\"}.fa-hdd-o:before{content:\"\"}.fa-bullhorn:before{content:\"\"}.fa-bell:before{content:\"\"}.fa-certificate:before{content:\"\"}.fa-hand-o-right:before{content:\"\"}.fa-hand-o-left:before{content:\"\"}.fa-hand-o-up:before{content:\"\"}.fa-hand-o-down:before{content:\"\"}.fa-arrow-circle-left:before,.icon-circle-arrow-left:before{content:\"\"}.fa-arrow-circle-right:before,.icon-circle-arrow-right:before{content:\"\"}.fa-arrow-circle-up:before{content:\"\"}.fa-arrow-circle-down:before{content:\"\"}.fa-globe:before{content:\"\"}.fa-wrench:before{content:\"\"}.fa-tasks:before{content:\"\"}.fa-filter:before{content:\"\"}.fa-briefcase:before{content:\"\"}.fa-arrows-alt:before{content:\"\"}.fa-group:before,.fa-users:before{content:\"\"}.fa-chain:before,.fa-link:before,.icon-link:before{content:\"\"}.fa-cloud:before{content:\"\"}.fa-flask:before{content:\"\"}.fa-cut:before,.fa-scissors:before{content:\"\"}.fa-copy:before,.fa-files-o:before{content:\"\"}.fa-paperclip:before{content:\"\"}.fa-floppy-o:before,.fa-save:before{content:\"\"}.fa-square:before{content:\"\"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:\"\"}.fa-list-ul:before{content:\"\"}.fa-list-ol:before{content:\"\"}.fa-strikethrough:before{content:\"\"}.fa-underline:before{content:\"\"}.fa-table:before{content:\"\"}.fa-magic:before{content:\"\"}.fa-truck:before{content:\"\"}.fa-pinterest:before{content:\"\"}.fa-pinterest-square:before{content:\"\"}.fa-google-plus-square:before{content:\"\"}.fa-google-plus:before{content:\"\"}.fa-money:before{content:\"\"}.fa-caret-down:before,.icon-caret-down:before,.wy-dropdown .caret:before{content:\"\"}.fa-caret-up:before{content:\"\"}.fa-caret-left:before{content:\"\"}.fa-caret-right:before{content:\"\"}.fa-columns:before{content:\"\"}.fa-sort:before,.fa-unsorted:before{content:\"\"}.fa-sort-desc:before,.fa-sort-down:before{content:\"\"}.fa-sort-asc:before,.fa-sort-up:before{content:\"\"}.fa-envelope:before{content:\"\"}.fa-linkedin:before{content:\"\"}.fa-rotate-left:before,.fa-undo:before{content:\"\"}.fa-gavel:before,.fa-legal:before{content:\"\"}.fa-dashboard:before,.fa-tachometer:before{content:\"\"}.fa-comment-o:before{content:\"\"}.fa-comments-o:before{content:\"\"}.fa-bolt:before,.fa-flash:before{content:\"\"}.fa-sitemap:before{content:\"\"}.fa-umbrella:before{content:\"\"}.fa-clipboard:before,.fa-paste:before{content:\"\"}.fa-lightbulb-o:before{content:\"\"}.fa-exchange:before{content:\"\"}.fa-cloud-download:before{content:\"\"}.fa-cloud-upload:before{content:\"\"}.fa-user-md:before{content:\"\"}.fa-stethoscope:before{content:\"\"}.fa-suitcase:before{content:\"\"}.fa-bell-o:before{content:\"\"}.fa-coffee:before{content:\"\"}.fa-cutlery:before{content:\"\"}.fa-file-text-o:before{content:\"\"}.fa-building-o:before{content:\"\"}.fa-hospital-o:before{content:\"\"}.fa-ambulance:before{content:\"\"}.fa-medkit:before{content:\"\"}.fa-fighter-jet:before{content:\"\"}.fa-beer:before{content:\"\"}.fa-h-square:before{content:\"\"}.fa-plus-square:before{content:\"\"}.fa-angle-double-left:before{content:\"\"}.fa-angle-double-right:before{content:\"\"}.fa-angle-double-up:before{content:\"\"}.fa-angle-double-down:before{content:\"\"}.fa-angle-left:before{content:\"\"}.fa-angle-right:before{content:\"\"}.fa-angle-up:before{content:\"\"}.fa-angle-down:before{content:\"\"}.fa-desktop:before{content:\"\"}.fa-laptop:before{content:\"\"}.fa-tablet:before{content:\"\"}.fa-mobile-phone:before,.fa-mobile:before{content:\"\"}.fa-circle-o:before{content:\"\"}.fa-quote-left:before{content:\"\"}.fa-quote-right:before{content:\"\"}.fa-spinner:before{content:\"\"}.fa-circle:before{content:\"\"}.fa-mail-reply:before,.fa-reply:before{content:\"\"}.fa-github-alt:before{content:\"\"}.fa-folder-o:before{content:\"\"}.fa-folder-open-o:before{content:\"\"}.fa-smile-o:before{content:\"\"}.fa-frown-o:before{content:\"\"}.fa-meh-o:before{content:\"\"}.fa-gamepad:before{content:\"\"}.fa-keyboard-o:before{content:\"\"}.fa-flag-o:before{content:\"\"}.fa-flag-checkered:before{content:\"\"}.fa-terminal:before{content:\"\"}.fa-code:before{content:\"\"}.fa-mail-reply-all:before,.fa-reply-all:before{content:\"\"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:\"\"}.fa-location-arrow:before{content:\"\"}.fa-crop:before{content:\"\"}.fa-code-fork:before{content:\"\"}.fa-chain-broken:before,.fa-unlink:before{content:\"\"}.fa-question:before{content:\"\"}.fa-info:before{content:\"\"}.fa-exclamation:before{content:\"\"}.fa-superscript:before{content:\"\"}.fa-subscript:before{content:\"\"}.fa-eraser:before{content:\"\"}.fa-puzzle-piece:before{content:\"\"}.fa-microphone:before{content:\"\"}.fa-microphone-slash:before{content:\"\"}.fa-shield:before{content:\"\"}.fa-calendar-o:before{content:\"\"}.fa-fire-extinguisher:before{content:\"\"}.fa-rocket:before{content:\"\"}.fa-maxcdn:before{content:\"\"}.fa-chevron-circle-left:before{content:\"\"}.fa-chevron-circle-right:before{content:\"\"}.fa-chevron-circle-up:before{content:\"\"}.fa-chevron-circle-down:before{content:\"\"}.fa-html5:before{content:\"\"}.fa-css3:before{content:\"\"}.fa-anchor:before{content:\"\"}.fa-unlock-alt:before{content:\"\"}.fa-bullseye:before{content:\"\"}.fa-ellipsis-h:before{content:\"\"}.fa-ellipsis-v:before{content:\"\"}.fa-rss-square:before{content:\"\"}.fa-play-circle:before{content:\"\"}.fa-ticket:before{content:\"\"}.fa-minus-square:before{content:\"\"}.fa-minus-square-o:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before{content:\"\"}.fa-level-up:before{content:\"\"}.fa-level-down:before{content:\"\"}.fa-check-square:before{content:\"\"}.fa-pencil-square:before{content:\"\"}.fa-external-link-square:before{content:\"\"}.fa-share-square:before{content:\"\"}.fa-compass:before{content:\"\"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:\"\"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:\"\"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:\"\"}.fa-eur:before,.fa-euro:before{content:\"\"}.fa-gbp:before{content:\"\"}.fa-dollar:before,.fa-usd:before{content:\"\"}.fa-inr:before,.fa-rupee:before{content:\"\"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:\"\"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:\"\"}.fa-krw:before,.fa-won:before{content:\"\"}.fa-bitcoin:before,.fa-btc:before{content:\"\"}.fa-file:before{content:\"\"}.fa-file-text:before{content:\"\"}.fa-sort-alpha-asc:before{content:\"\"}.fa-sort-alpha-desc:before{content:\"\"}.fa-sort-amount-asc:before{content:\"\"}.fa-sort-amount-desc:before{content:\"\"}.fa-sort-numeric-asc:before{content:\"\"}.fa-sort-numeric-desc:before{content:\"\"}.fa-thumbs-up:before{content:\"\"}.fa-thumbs-down:before{content:\"\"}.fa-youtube-square:before{content:\"\"}.fa-youtube:before{content:\"\"}.fa-xing:before{content:\"\"}.fa-xing-square:before{content:\"\"}.fa-youtube-play:before{content:\"\"}.fa-dropbox:before{content:\"\"}.fa-stack-overflow:before{content:\"\"}.fa-instagram:before{content:\"\"}.fa-flickr:before{content:\"\"}.fa-adn:before{content:\"\"}.fa-bitbucket:before,.icon-bitbucket:before{content:\"\"}.fa-bitbucket-square:before{content:\"\"}.fa-tumblr:before{content:\"\"}.fa-tumblr-square:before{content:\"\"}.fa-long-arrow-down:before{content:\"\"}.fa-long-arrow-up:before{content:\"\"}.fa-long-arrow-left:before{content:\"\"}.fa-long-arrow-right:before{content:\"\"}.fa-apple:before{content:\"\"}.fa-windows:before{content:\"\"}.fa-android:before{content:\"\"}.fa-linux:before{content:\"\"}.fa-dribbble:before{content:\"\"}.fa-skype:before{content:\"\"}.fa-foursquare:before{content:\"\"}.fa-trello:before{content:\"\"}.fa-female:before{content:\"\"}.fa-male:before{content:\"\"}.fa-gittip:before,.fa-gratipay:before{content:\"\"}.fa-sun-o:before{content:\"\"}.fa-moon-o:before{content:\"\"}.fa-archive:before{content:\"\"}.fa-bug:before{content:\"\"}.fa-vk:before{content:\"\"}.fa-weibo:before{content:\"\"}.fa-renren:before{content:\"\"}.fa-pagelines:before{content:\"\"}.fa-stack-exchange:before{content:\"\"}.fa-arrow-circle-o-right:before{content:\"\"}.fa-arrow-circle-o-left:before{content:\"\"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:\"\"}.fa-dot-circle-o:before{content:\"\"}.fa-wheelchair:before{content:\"\"}.fa-vimeo-square:before{content:\"\"}.fa-try:before,.fa-turkish-lira:before{content:\"\"}.fa-plus-square-o:before,.wy-menu-vertical li button.toctree-expand:before{content:\"\"}.fa-space-shuttle:before{content:\"\"}.fa-slack:before{content:\"\"}.fa-envelope-square:before{content:\"\"}.fa-wordpress:before{content:\"\"}.fa-openid:before{content:\"\"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:\"\"}.fa-graduation-cap:before,.fa-mortar-board:before{content:\"\"}.fa-yahoo:before{content:\"\"}.fa-google:before{content:\"\"}.fa-reddit:before{content:\"\"}.fa-reddit-square:before{content:\"\"}.fa-stumbleupon-circle:before{content:\"\"}.fa-stumbleupon:before{content:\"\"}.fa-delicious:before{content:\"\"}.fa-digg:before{content:\"\"}.fa-pied-piper-pp:before{content:\"\"}.fa-pied-piper-alt:before{content:\"\"}.fa-drupal:before{content:\"\"}.fa-joomla:before{content:\"\"}.fa-language:before{content:\"\"}.fa-fax:before{content:\"\"}.fa-building:before{content:\"\"}.fa-child:before{content:\"\"}.fa-paw:before{content:\"\"}.fa-spoon:before{content:\"\"}.fa-cube:before{content:\"\"}.fa-cubes:before{content:\"\"}.fa-behance:before{content:\"\"}.fa-behance-square:before{content:\"\"}.fa-steam:before{content:\"\"}.fa-steam-square:before{content:\"\"}.fa-recycle:before{content:\"\"}.fa-automobile:before,.fa-car:before{content:\"\"}.fa-cab:before,.fa-taxi:before{content:\"\"}.fa-tree:before{content:\"\"}.fa-spotify:before{content:\"\"}.fa-deviantart:before{content:\"\"}.fa-soundcloud:before{content:\"\"}.fa-database:before{content:\"\"}.fa-file-pdf-o:before{content:\"\"}.fa-file-word-o:before{content:\"\"}.fa-file-excel-o:before{content:\"\"}.fa-file-powerpoint-o:before{content:\"\"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:\"\"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:\"\"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:\"\"}.fa-file-movie-o:before,.fa-file-video-o:before{content:\"\"}.fa-file-code-o:before{content:\"\"}.fa-vine:before{content:\"\"}.fa-codepen:before{content:\"\"}.fa-jsfiddle:before{content:\"\"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:\"\"}.fa-circle-o-notch:before{content:\"\"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:\"\"}.fa-empire:before,.fa-ge:before{content:\"\"}.fa-git-square:before{content:\"\"}.fa-git:before{content:\"\"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:\"\"}.fa-tencent-weibo:before{content:\"\"}.fa-qq:before{content:\"\"}.fa-wechat:before,.fa-weixin:before{content:\"\"}.fa-paper-plane:before,.fa-send:before{content:\"\"}.fa-paper-plane-o:before,.fa-send-o:before{content:\"\"}.fa-history:before{content:\"\"}.fa-circle-thin:before{content:\"\"}.fa-header:before{content:\"\"}.fa-paragraph:before{content:\"\"}.fa-sliders:before{content:\"\"}.fa-share-alt:before{content:\"\"}.fa-share-alt-square:before{content:\"\"}.fa-bomb:before{content:\"\"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:\"\"}.fa-tty:before{content:\"\"}.fa-binoculars:before{content:\"\"}.fa-plug:before{content:\"\"}.fa-slideshare:before{content:\"\"}.fa-twitch:before{content:\"\"}.fa-yelp:before{content:\"\"}.fa-newspaper-o:before{content:\"\"}.fa-wifi:before{content:\"\"}.fa-calculator:before{content:\"\"}.fa-paypal:before{content:\"\"}.fa-google-wallet:before{content:\"\"}.fa-cc-visa:before{content:\"\"}.fa-cc-mastercard:before{content:\"\"}.fa-cc-discover:before{content:\"\"}.fa-cc-amex:before{content:\"\"}.fa-cc-paypal:before{content:\"\"}.fa-cc-stripe:before{content:\"\"}.fa-bell-slash:before{content:\"\"}.fa-bell-slash-o:before{content:\"\"}.fa-trash:before{content:\"\"}.fa-copyright:before{content:\"\"}.fa-at:before{content:\"\"}.fa-eyedropper:before{content:\"\"}.fa-paint-brush:before{content:\"\"}.fa-birthday-cake:before{content:\"\"}.fa-area-chart:before{content:\"\"}.fa-pie-chart:before{content:\"\"}.fa-line-chart:before{content:\"\"}.fa-lastfm:before{content:\"\"}.fa-lastfm-square:before{content:\"\"}.fa-toggle-off:before{content:\"\"}.fa-toggle-on:before{content:\"\"}.fa-bicycle:before{content:\"\"}.fa-bus:before{content:\"\"}.fa-ioxhost:before{content:\"\"}.fa-angellist:before{content:\"\"}.fa-cc:before{content:\"\"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:\"\"}.fa-meanpath:before{content:\"\"}.fa-buysellads:before{content:\"\"}.fa-connectdevelop:before{content:\"\"}.fa-dashcube:before{content:\"\"}.fa-forumbee:before{content:\"\"}.fa-leanpub:before{content:\"\"}.fa-sellsy:before{content:\"\"}.fa-shirtsinbulk:before{content:\"\"}.fa-simplybuilt:before{content:\"\"}.fa-skyatlas:before{content:\"\"}.fa-cart-plus:before{content:\"\"}.fa-cart-arrow-down:before{content:\"\"}.fa-diamond:before{content:\"\"}.fa-ship:before{content:\"\"}.fa-user-secret:before{content:\"\"}.fa-motorcycle:before{content:\"\"}.fa-street-view:before{content:\"\"}.fa-heartbeat:before{content:\"\"}.fa-venus:before{content:\"\"}.fa-mars:before{content:\"\"}.fa-mercury:before{content:\"\"}.fa-intersex:before,.fa-transgender:before{content:\"\"}.fa-transgender-alt:before{content:\"\"}.fa-venus-double:before{content:\"\"}.fa-mars-double:before{content:\"\"}.fa-venus-mars:before{content:\"\"}.fa-mars-stroke:before{content:\"\"}.fa-mars-stroke-v:before{content:\"\"}.fa-mars-stroke-h:before{content:\"\"}.fa-neuter:before{content:\"\"}.fa-genderless:before{content:\"\"}.fa-facebook-official:before{content:\"\"}.fa-pinterest-p:before{content:\"\"}.fa-whatsapp:before{content:\"\"}.fa-server:before{content:\"\"}.fa-user-plus:before{content:\"\"}.fa-user-times:before{content:\"\"}.fa-bed:before,.fa-hotel:before{content:\"\"}.fa-viacoin:before{content:\"\"}.fa-train:before{content:\"\"}.fa-subway:before{content:\"\"}.fa-medium:before{content:\"\"}.fa-y-combinator:before,.fa-yc:before{content:\"\"}.fa-optin-monster:before{content:\"\"}.fa-opencart:before{content:\"\"}.fa-expeditedssl:before{content:\"\"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:\"\"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:\"\"}.fa-battery-2:before,.fa-battery-half:before{content:\"\"}.fa-battery-1:before,.fa-battery-quarter:before{content:\"\"}.fa-battery-0:before,.fa-battery-empty:before{content:\"\"}.fa-mouse-pointer:before{content:\"\"}.fa-i-cursor:before{content:\"\"}.fa-object-group:before{content:\"\"}.fa-object-ungroup:before{content:\"\"}.fa-sticky-note:before{content:\"\"}.fa-sticky-note-o:before{content:\"\"}.fa-cc-jcb:before{content:\"\"}.fa-cc-diners-club:before{content:\"\"}.fa-clone:before{content:\"\"}.fa-balance-scale:before{content:\"\"}.fa-hourglass-o:before{content:\"\"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:\"\"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:\"\"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:\"\"}.fa-hourglass:before{content:\"\"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:\"\"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:\"\"}.fa-hand-scissors-o:before{content:\"\"}.fa-hand-lizard-o:before{content:\"\"}.fa-hand-spock-o:before{content:\"\"}.fa-hand-pointer-o:before{content:\"\"}.fa-hand-peace-o:before{content:\"\"}.fa-trademark:before{content:\"\"}.fa-registered:before{content:\"\"}.fa-creative-commons:before{content:\"\"}.fa-gg:before{content:\"\"}.fa-gg-circle:before{content:\"\"}.fa-tripadvisor:before{content:\"\"}.fa-odnoklassniki:before{content:\"\"}.fa-odnoklassniki-square:before{content:\"\"}.fa-get-pocket:before{content:\"\"}.fa-wikipedia-w:before{content:\"\"}.fa-safari:before{content:\"\"}.fa-chrome:before{content:\"\"}.fa-firefox:before{content:\"\"}.fa-opera:before{content:\"\"}.fa-internet-explorer:before{content:\"\"}.fa-television:before,.fa-tv:before{content:\"\"}.fa-contao:before{content:\"\"}.fa-500px:before{content:\"\"}.fa-amazon:before{content:\"\"}.fa-calendar-plus-o:before{content:\"\"}.fa-calendar-minus-o:before{content:\"\"}.fa-calendar-times-o:before{content:\"\"}.fa-calendar-check-o:before{content:\"\"}.fa-industry:before{content:\"\"}.fa-map-pin:before{content:\"\"}.fa-map-signs:before{content:\"\"}.fa-map-o:before{content:\"\"}.fa-map:before{content:\"\"}.fa-commenting:before{content:\"\"}.fa-commenting-o:before{content:\"\"}.fa-houzz:before{content:\"\"}.fa-vimeo:before{content:\"\"}.fa-black-tie:before{content:\"\"}.fa-fonticons:before{content:\"\"}.fa-reddit-alien:before{content:\"\"}.fa-edge:before{content:\"\"}.fa-credit-card-alt:before{content:\"\"}.fa-codiepie:before{content:\"\"}.fa-modx:before{content:\"\"}.fa-fort-awesome:before{content:\"\"}.fa-usb:before{content:\"\"}.fa-product-hunt:before{content:\"\"}.fa-mixcloud:before{content:\"\"}.fa-scribd:before{content:\"\"}.fa-pause-circle:before{content:\"\"}.fa-pause-circle-o:before{content:\"\"}.fa-stop-circle:before{content:\"\"}.fa-stop-circle-o:before{content:\"\"}.fa-shopping-bag:before{content:\"\"}.fa-shopping-basket:before{content:\"\"}.fa-hashtag:before{content:\"\"}.fa-bluetooth:before{content:\"\"}.fa-bluetooth-b:before{content:\"\"}.fa-percent:before{content:\"\"}.fa-gitlab:before,.icon-gitlab:before{content:\"\"}.fa-wpbeginner:before{content:\"\"}.fa-wpforms:before{content:\"\"}.fa-envira:before{content:\"\"}.fa-universal-access:before{content:\"\"}.fa-wheelchair-alt:before{content:\"\"}.fa-question-circle-o:before{content:\"\"}.fa-blind:before{content:\"\"}.fa-audio-description:before{content:\"\"}.fa-volume-control-phone:before{content:\"\"}.fa-braille:before{content:\"\"}.fa-assistive-listening-systems:before{content:\"\"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:\"\"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:\"\"}.fa-glide:before{content:\"\"}.fa-glide-g:before{content:\"\"}.fa-sign-language:before,.fa-signing:before{content:\"\"}.fa-low-vision:before{content:\"\"}.fa-viadeo:before{content:\"\"}.fa-viadeo-square:before{content:\"\"}.fa-snapchat:before{content:\"\"}.fa-snapchat-ghost:before{content:\"\"}.fa-snapchat-square:before{content:\"\"}.fa-pied-piper:before{content:\"\"}.fa-first-order:before{content:\"\"}.fa-yoast:before{content:\"\"}.fa-themeisle:before{content:\"\"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:\"\"}.fa-fa:before,.fa-font-awesome:before{content:\"\"}.fa-handshake-o:before{content:\"\"}.fa-envelope-open:before{content:\"\"}.fa-envelope-open-o:before{content:\"\"}.fa-linode:before{content:\"\"}.fa-address-book:before{content:\"\"}.fa-address-book-o:before{content:\"\"}.fa-address-card:before,.fa-vcard:before{content:\"\"}.fa-address-card-o:before,.fa-vcard-o:before{content:\"\"}.fa-user-circle:before{content:\"\"}.fa-user-circle-o:before{content:\"\"}.fa-user-o:before{content:\"\"}.fa-id-badge:before{content:\"\"}.fa-drivers-license:before,.fa-id-card:before{content:\"\"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:\"\"}.fa-quora:before{content:\"\"}.fa-free-code-camp:before{content:\"\"}.fa-telegram:before{content:\"\"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:\"\"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:\"\"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:\"\"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:\"\"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:\"\"}.fa-shower:before{content:\"\"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:\"\"}.fa-podcast:before{content:\"\"}.fa-window-maximize:before{content:\"\"}.fa-window-minimize:before{content:\"\"}.fa-window-restore:before{content:\"\"}.fa-times-rectangle:before,.fa-window-close:before{content:\"\"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:\"\"}.fa-bandcamp:before{content:\"\"}.fa-grav:before{content:\"\"}.fa-etsy:before{content:\"\"}.fa-imdb:before{content:\"\"}.fa-ravelry:before{content:\"\"}.fa-eercast:before{content:\"\"}.fa-microchip:before{content:\"\"}.fa-snowflake-o:before{content:\"\"}.fa-superpowers:before{content:\"\"}.fa-wpexplorer:before{content:\"\"}.fa-meetup:before{content:\"\"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-dropdown .caret,.wy-inline-validate.wy-inline-validate-danger .wy-input-context,.wy-inline-validate.wy-inline-validate-info .wy-input-context,.wy-inline-validate.wy-inline-validate-success .wy-input-context,.wy-inline-validate.wy-inline-validate-warning .wy-input-context,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li button.toctree-expand{font-family:inherit}.fa:before,.icon:before,.rst-content .admonition-title:before,.rst-content .code-block-caption .headerlink:before,.rst-content .eqno .headerlink:before,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before,.wy-menu-vertical li button.toctree-expand:before{font-family:FontAwesome;display:inline-block;font-style:normal;font-weight:400;line-height:1;text-decoration:inherit}.rst-content .code-block-caption a .headerlink,.rst-content .eqno a .headerlink,.rst-content a .admonition-title,.rst-content code.download a span:first-child,.rst-content dl dt a .headerlink,.rst-content h1 a .headerlink,.rst-content h2 a .headerlink,.rst-content h3 a .headerlink,.rst-content h4 a .headerlink,.rst-content h5 a .headerlink,.rst-content h6 a .headerlink,.rst-content p.caption a .headerlink,.rst-content p a .headerlink,.rst-content table>caption a .headerlink,.rst-content tt.download a span:first-child,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li a button.toctree-expand,a .fa,a .icon,a .rst-content .admonition-title,a .rst-content .code-block-caption .headerlink,a .rst-content .eqno .headerlink,a .rst-content code.download span:first-child,a .rst-content dl dt .headerlink,a .rst-content h1 .headerlink,a .rst-content h2 .headerlink,a .rst-content h3 .headerlink,a .rst-content h4 .headerlink,a .rst-content h5 .headerlink,a .rst-content h6 .headerlink,a .rst-content p.caption .headerlink,a .rst-content p .headerlink,a .rst-content table>caption .headerlink,a .rst-content tt.download span:first-child,a .wy-menu-vertical li button.toctree-expand{display:inline-block;text-decoration:inherit}.btn .fa,.btn .icon,.btn .rst-content .admonition-title,.btn .rst-content .code-block-caption .headerlink,.btn .rst-content .eqno .headerlink,.btn .rst-content code.download span:first-child,.btn .rst-content dl dt .headerlink,.btn .rst-content h1 .headerlink,.btn .rst-content h2 .headerlink,.btn .rst-content h3 .headerlink,.btn .rst-content h4 .headerlink,.btn .rst-content h5 .headerlink,.btn .rst-content h6 .headerlink,.btn .rst-content p .headerlink,.btn .rst-content table>caption .headerlink,.btn .rst-content tt.download span:first-child,.btn .wy-menu-vertical li.current>a button.toctree-expand,.btn .wy-menu-vertical li.on a button.toctree-expand,.btn .wy-menu-vertical li button.toctree-expand,.nav .fa,.nav .icon,.nav .rst-content .admonition-title,.nav .rst-content .code-block-caption .headerlink,.nav .rst-content .eqno .headerlink,.nav .rst-content code.download span:first-child,.nav .rst-content dl dt .headerlink,.nav .rst-content h1 .headerlink,.nav .rst-content h2 .headerlink,.nav .rst-content h3 .headerlink,.nav .rst-content h4 .headerlink,.nav .rst-content h5 .headerlink,.nav .rst-content h6 .headerlink,.nav .rst-content p .headerlink,.nav .rst-content table>caption .headerlink,.nav .rst-content tt.download span:first-child,.nav .wy-menu-vertical li.current>a button.toctree-expand,.nav .wy-menu-vertical li.on a button.toctree-expand,.nav .wy-menu-vertical li button.toctree-expand,.rst-content .btn .admonition-title,.rst-content .code-block-caption .btn .headerlink,.rst-content .code-block-caption .nav .headerlink,.rst-content .eqno .btn .headerlink,.rst-content .eqno .nav .headerlink,.rst-content .nav .admonition-title,.rst-content code.download .btn span:first-child,.rst-content code.download .nav span:first-child,.rst-content dl dt .btn .headerlink,.rst-content dl dt .nav .headerlink,.rst-content h1 .btn .headerlink,.rst-content h1 .nav .headerlink,.rst-content h2 .btn .headerlink,.rst-content h2 .nav .headerlink,.rst-content h3 .btn .headerlink,.rst-content h3 .nav .headerlink,.rst-content h4 .btn .headerlink,.rst-content h4 .nav .headerlink,.rst-content h5 .btn .headerlink,.rst-content h5 .nav .headerlink,.rst-content h6 .btn .headerlink,.rst-content h6 .nav .headerlink,.rst-content p .btn .headerlink,.rst-content p .nav .headerlink,.rst-content table>caption .btn .headerlink,.rst-content table>caption .nav .headerlink,.rst-content tt.download .btn span:first-child,.rst-content tt.download .nav span:first-child,.wy-menu-vertical li .btn button.toctree-expand,.wy-menu-vertical li.current>a .btn button.toctree-expand,.wy-menu-vertical li.current>a .nav button.toctree-expand,.wy-menu-vertical li .nav button.toctree-expand,.wy-menu-vertical li.on a .btn button.toctree-expand,.wy-menu-vertical li.on a .nav button.toctree-expand{display:inline}.btn .fa-large.icon,.btn .fa.fa-large,.btn .rst-content .code-block-caption .fa-large.headerlink,.btn .rst-content .eqno .fa-large.headerlink,.btn .rst-content .fa-large.admonition-title,.btn .rst-content code.download span.fa-large:first-child,.btn .rst-content dl dt .fa-large.headerlink,.btn .rst-content h1 .fa-large.headerlink,.btn .rst-content h2 .fa-large.headerlink,.btn .rst-content h3 .fa-large.headerlink,.btn .rst-content h4 .fa-large.headerlink,.btn .rst-content h5 .fa-large.headerlink,.btn .rst-content h6 .fa-large.headerlink,.btn .rst-content p .fa-large.headerlink,.btn .rst-content table>caption .fa-large.headerlink,.btn .rst-content tt.download span.fa-large:first-child,.btn .wy-menu-vertical li button.fa-large.toctree-expand,.nav .fa-large.icon,.nav .fa.fa-large,.nav .rst-content .code-block-caption .fa-large.headerlink,.nav .rst-content .eqno .fa-large.headerlink,.nav .rst-content .fa-large.admonition-title,.nav .rst-content code.download span.fa-large:first-child,.nav .rst-content dl dt .fa-large.headerlink,.nav .rst-content h1 .fa-large.headerlink,.nav .rst-content h2 .fa-large.headerlink,.nav .rst-content h3 .fa-large.headerlink,.nav .rst-content h4 .fa-large.headerlink,.nav .rst-content h5 .fa-large.headerlink,.nav .rst-content h6 .fa-large.headerlink,.nav .rst-content p .fa-large.headerlink,.nav .rst-content table>caption .fa-large.headerlink,.nav .rst-content tt.download span.fa-large:first-child,.nav .wy-menu-vertical li button.fa-large.toctree-expand,.rst-content .btn .fa-large.admonition-title,.rst-content .code-block-caption .btn .fa-large.headerlink,.rst-content .code-block-caption .nav .fa-large.headerlink,.rst-content .eqno .btn .fa-large.headerlink,.rst-content .eqno .nav .fa-large.headerlink,.rst-content .nav .fa-large.admonition-title,.rst-content code.download .btn span.fa-large:first-child,.rst-content code.download .nav span.fa-large:first-child,.rst-content dl dt .btn .fa-large.headerlink,.rst-content dl dt .nav .fa-large.headerlink,.rst-content h1 .btn .fa-large.headerlink,.rst-content h1 .nav .fa-large.headerlink,.rst-content h2 .btn .fa-large.headerlink,.rst-content h2 .nav .fa-large.headerlink,.rst-content h3 .btn .fa-large.headerlink,.rst-content h3 .nav .fa-large.headerlink,.rst-content h4 .btn .fa-large.headerlink,.rst-content h4 .nav .fa-large.headerlink,.rst-content h5 .btn .fa-large.headerlink,.rst-content h5 .nav .fa-large.headerlink,.rst-content h6 .btn .fa-large.headerlink,.rst-content h6 .nav .fa-large.headerlink,.rst-content p .btn .fa-large.headerlink,.rst-content p .nav .fa-large.headerlink,.rst-content table>caption .btn .fa-large.headerlink,.rst-content table>caption .nav .fa-large.headerlink,.rst-content tt.download .btn span.fa-large:first-child,.rst-content tt.download .nav span.fa-large:first-child,.wy-menu-vertical li .btn button.fa-large.toctree-expand,.wy-menu-vertical li .nav button.fa-large.toctree-expand{line-height:.9em}.btn .fa-spin.icon,.btn .fa.fa-spin,.btn .rst-content .code-block-caption .fa-spin.headerlink,.btn .rst-content .eqno .fa-spin.headerlink,.btn .rst-content .fa-spin.admonition-title,.btn .rst-content code.download span.fa-spin:first-child,.btn .rst-content dl dt .fa-spin.headerlink,.btn .rst-content h1 .fa-spin.headerlink,.btn .rst-content h2 .fa-spin.headerlink,.btn .rst-content h3 .fa-spin.headerlink,.btn .rst-content h4 .fa-spin.headerlink,.btn .rst-content h5 .fa-spin.headerlink,.btn .rst-content h6 .fa-spin.headerlink,.btn .rst-content p .fa-spin.headerlink,.btn .rst-content table>caption .fa-spin.headerlink,.btn .rst-content tt.download span.fa-spin:first-child,.btn .wy-menu-vertical li button.fa-spin.toctree-expand,.nav .fa-spin.icon,.nav .fa.fa-spin,.nav .rst-content .code-block-caption .fa-spin.headerlink,.nav .rst-content .eqno .fa-spin.headerlink,.nav .rst-content .fa-spin.admonition-title,.nav .rst-content code.download span.fa-spin:first-child,.nav .rst-content dl dt .fa-spin.headerlink,.nav .rst-content h1 .fa-spin.headerlink,.nav .rst-content h2 .fa-spin.headerlink,.nav .rst-content h3 .fa-spin.headerlink,.nav .rst-content h4 .fa-spin.headerlink,.nav .rst-content h5 .fa-spin.headerlink,.nav .rst-content h6 .fa-spin.headerlink,.nav .rst-content p .fa-spin.headerlink,.nav .rst-content table>caption .fa-spin.headerlink,.nav .rst-content tt.download span.fa-spin:first-child,.nav .wy-menu-vertical li button.fa-spin.toctree-expand,.rst-content .btn .fa-spin.admonition-title,.rst-content .code-block-caption .btn .fa-spin.headerlink,.rst-content .code-block-caption .nav .fa-spin.headerlink,.rst-content .eqno .btn .fa-spin.headerlink,.rst-content .eqno .nav .fa-spin.headerlink,.rst-content .nav .fa-spin.admonition-title,.rst-content code.download .btn span.fa-spin:first-child,.rst-content code.download .nav span.fa-spin:first-child,.rst-content dl dt .btn .fa-spin.headerlink,.rst-content dl dt .nav .fa-spin.headerlink,.rst-content h1 .btn .fa-spin.headerlink,.rst-content h1 .nav .fa-spin.headerlink,.rst-content h2 .btn .fa-spin.headerlink,.rst-content h2 .nav .fa-spin.headerlink,.rst-content h3 .btn .fa-spin.headerlink,.rst-content h3 .nav .fa-spin.headerlink,.rst-content h4 .btn .fa-spin.headerlink,.rst-content h4 .nav .fa-spin.headerlink,.rst-content h5 .btn .fa-spin.headerlink,.rst-content h5 .nav .fa-spin.headerlink,.rst-content h6 .btn .fa-spin.headerlink,.rst-content h6 .nav .fa-spin.headerlink,.rst-content p .btn .fa-spin.headerlink,.rst-content p .nav .fa-spin.headerlink,.rst-content table>caption .btn .fa-spin.headerlink,.rst-content table>caption .nav .fa-spin.headerlink,.rst-content tt.download .btn span.fa-spin:first-child,.rst-content tt.download .nav span.fa-spin:first-child,.wy-menu-vertical li .btn button.fa-spin.toctree-expand,.wy-menu-vertical li .nav button.fa-spin.toctree-expand{display:inline-block}.btn.fa:before,.btn.icon:before,.rst-content .btn.admonition-title:before,.rst-content .code-block-caption .btn.headerlink:before,.rst-content .eqno .btn.headerlink:before,.rst-content code.download span.btn:first-child:before,.rst-content dl dt .btn.headerlink:before,.rst-content h1 .btn.headerlink:before,.rst-content h2 .btn.headerlink:before,.rst-content h3 .btn.headerlink:before,.rst-content h4 .btn.headerlink:before,.rst-content h5 .btn.headerlink:before,.rst-content h6 .btn.headerlink:before,.rst-content p .btn.headerlink:before,.rst-content table>caption .btn.headerlink:before,.rst-content tt.download span.btn:first-child:before,.wy-menu-vertical li button.btn.toctree-expand:before{opacity:.5;-webkit-transition:opacity .05s ease-in;-moz-transition:opacity .05s ease-in;transition:opacity .05s ease-in}.btn.fa:hover:before,.btn.icon:hover:before,.rst-content .btn.admonition-title:hover:before,.rst-content .code-block-caption .btn.headerlink:hover:before,.rst-content .eqno .btn.headerlink:hover:before,.rst-content code.download span.btn:first-child:hover:before,.rst-content dl dt .btn.headerlink:hover:before,.rst-content h1 .btn.headerlink:hover:before,.rst-content h2 .btn.headerlink:hover:before,.rst-content h3 .btn.headerlink:hover:before,.rst-content h4 .btn.headerlink:hover:before,.rst-content h5 .btn.headerlink:hover:before,.rst-content h6 .btn.headerlink:hover:before,.rst-content p .btn.headerlink:hover:before,.rst-content table>caption .btn.headerlink:hover:before,.rst-content tt.download span.btn:first-child:hover:before,.wy-menu-vertical li button.btn.toctree-expand:hover:before{opacity:1}.btn-mini .fa:before,.btn-mini .icon:before,.btn-mini .rst-content .admonition-title:before,.btn-mini .rst-content .code-block-caption .headerlink:before,.btn-mini .rst-content .eqno .headerlink:before,.btn-mini .rst-content code.download span:first-child:before,.btn-mini .rst-content dl dt .headerlink:before,.btn-mini .rst-content h1 .headerlink:before,.btn-mini .rst-content h2 .headerlink:before,.btn-mini .rst-content h3 .headerlink:before,.btn-mini .rst-content h4 .headerlink:before,.btn-mini .rst-content h5 .headerlink:before,.btn-mini .rst-content h6 .headerlink:before,.btn-mini .rst-content p .headerlink:before,.btn-mini .rst-content table>caption .headerlink:before,.btn-mini .rst-content tt.download span:first-child:before,.btn-mini .wy-menu-vertical li button.toctree-expand:before,.rst-content .btn-mini .admonition-title:before,.rst-content .code-block-caption .btn-mini .headerlink:before,.rst-content .eqno .btn-mini .headerlink:before,.rst-content code.download .btn-mini span:first-child:before,.rst-content dl dt .btn-mini .headerlink:before,.rst-content h1 .btn-mini .headerlink:before,.rst-content h2 .btn-mini .headerlink:before,.rst-content h3 .btn-mini .headerlink:before,.rst-content h4 .btn-mini .headerlink:before,.rst-content h5 .btn-mini .headerlink:before,.rst-content h6 .btn-mini .headerlink:before,.rst-content p .btn-mini .headerlink:before,.rst-content table>caption .btn-mini .headerlink:before,.rst-content tt.download .btn-mini span:first-child:before,.wy-menu-vertical li .btn-mini button.toctree-expand:before{font-size:14px;vertical-align:-15%}.rst-content .admonition,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.wy-alert{padding:12px;line-height:24px;margin-bottom:24px;background:#e7f2fa}.rst-content .admonition-title,.wy-alert-title{font-weight:700;display:block;color:#fff;background:#6ab0de;padding:6px 12px;margin:-12px -12px 12px}.rst-content .danger,.rst-content .error,.rst-content .wy-alert-danger.admonition,.rst-content .wy-alert-danger.admonition-todo,.rst-content .wy-alert-danger.attention,.rst-content .wy-alert-danger.caution,.rst-content .wy-alert-danger.hint,.rst-content .wy-alert-danger.important,.rst-content .wy-alert-danger.note,.rst-content .wy-alert-danger.seealso,.rst-content .wy-alert-danger.tip,.rst-content .wy-alert-danger.warning,.wy-alert.wy-alert-danger{background:#fdf3f2}.rst-content .danger .admonition-title,.rst-content .danger .wy-alert-title,.rst-content .error .admonition-title,.rst-content .error .wy-alert-title,.rst-content .wy-alert-danger.admonition-todo .admonition-title,.rst-content .wy-alert-danger.admonition-todo .wy-alert-title,.rst-content .wy-alert-danger.admonition .admonition-title,.rst-content .wy-alert-danger.admonition .wy-alert-title,.rst-content .wy-alert-danger.attention .admonition-title,.rst-content .wy-alert-danger.attention .wy-alert-title,.rst-content .wy-alert-danger.caution .admonition-title,.rst-content .wy-alert-danger.caution .wy-alert-title,.rst-content .wy-alert-danger.hint .admonition-title,.rst-content .wy-alert-danger.hint .wy-alert-title,.rst-content .wy-alert-danger.important .admonition-title,.rst-content .wy-alert-danger.important .wy-alert-title,.rst-content .wy-alert-danger.note .admonition-title,.rst-content .wy-alert-danger.note .wy-alert-title,.rst-content .wy-alert-danger.seealso .admonition-title,.rst-content .wy-alert-danger.seealso .wy-alert-title,.rst-content .wy-alert-danger.tip .admonition-title,.rst-content .wy-alert-danger.tip .wy-alert-title,.rst-content .wy-alert-danger.warning .admonition-title,.rst-content .wy-alert-danger.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-danger .admonition-title,.wy-alert.wy-alert-danger .rst-content .admonition-title,.wy-alert.wy-alert-danger .wy-alert-title{background:#f29f97}.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .warning,.rst-content .wy-alert-warning.admonition,.rst-content .wy-alert-warning.danger,.rst-content .wy-alert-warning.error,.rst-content .wy-alert-warning.hint,.rst-content .wy-alert-warning.important,.rst-content .wy-alert-warning.note,.rst-content .wy-alert-warning.seealso,.rst-content .wy-alert-warning.tip,.wy-alert.wy-alert-warning{background:#ffedcc}.rst-content .admonition-todo .admonition-title,.rst-content .admonition-todo .wy-alert-title,.rst-content .attention .admonition-title,.rst-content .attention .wy-alert-title,.rst-content .caution .admonition-title,.rst-content .caution .wy-alert-title,.rst-content .warning .admonition-title,.rst-content .warning .wy-alert-title,.rst-content .wy-alert-warning.admonition .admonition-title,.rst-content .wy-alert-warning.admonition .wy-alert-title,.rst-content .wy-alert-warning.danger .admonition-title,.rst-content .wy-alert-warning.danger .wy-alert-title,.rst-content .wy-alert-warning.error .admonition-title,.rst-content .wy-alert-warning.error .wy-alert-title,.rst-content .wy-alert-warning.hint .admonition-title,.rst-content .wy-alert-warning.hint .wy-alert-title,.rst-content .wy-alert-warning.important .admonition-title,.rst-content .wy-alert-warning.important .wy-alert-title,.rst-content .wy-alert-warning.note .admonition-title,.rst-content .wy-alert-warning.note .wy-alert-title,.rst-content .wy-alert-warning.seealso .admonition-title,.rst-content .wy-alert-warning.seealso .wy-alert-title,.rst-content .wy-alert-warning.tip .admonition-title,.rst-content .wy-alert-warning.tip .wy-alert-title,.rst-content .wy-alert.wy-alert-warning .admonition-title,.wy-alert.wy-alert-warning .rst-content .admonition-title,.wy-alert.wy-alert-warning .wy-alert-title{background:#f0b37e}.rst-content .note,.rst-content .seealso,.rst-content .wy-alert-info.admonition,.rst-content .wy-alert-info.admonition-todo,.rst-content .wy-alert-info.attention,.rst-content .wy-alert-info.caution,.rst-content .wy-alert-info.danger,.rst-content .wy-alert-info.error,.rst-content .wy-alert-info.hint,.rst-content .wy-alert-info.important,.rst-content .wy-alert-info.tip,.rst-content .wy-alert-info.warning,.wy-alert.wy-alert-info{background:#e7f2fa}.rst-content .note .admonition-title,.rst-content .note .wy-alert-title,.rst-content .seealso .admonition-title,.rst-content .seealso .wy-alert-title,.rst-content .wy-alert-info.admonition-todo .admonition-title,.rst-content .wy-alert-info.admonition-todo .wy-alert-title,.rst-content .wy-alert-info.admonition .admonition-title,.rst-content .wy-alert-info.admonition .wy-alert-title,.rst-content .wy-alert-info.attention .admonition-title,.rst-content .wy-alert-info.attention .wy-alert-title,.rst-content .wy-alert-info.caution .admonition-title,.rst-content .wy-alert-info.caution .wy-alert-title,.rst-content .wy-alert-info.danger .admonition-title,.rst-content .wy-alert-info.danger .wy-alert-title,.rst-content .wy-alert-info.error .admonition-title,.rst-content .wy-alert-info.error .wy-alert-title,.rst-content .wy-alert-info.hint .admonition-title,.rst-content .wy-alert-info.hint .wy-alert-title,.rst-content .wy-alert-info.important .admonition-title,.rst-content .wy-alert-info.important .wy-alert-title,.rst-content .wy-alert-info.tip .admonition-title,.rst-content .wy-alert-info.tip .wy-alert-title,.rst-content .wy-alert-info.warning .admonition-title,.rst-content .wy-alert-info.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-info .admonition-title,.wy-alert.wy-alert-info .rst-content .admonition-title,.wy-alert.wy-alert-info .wy-alert-title{background:#6ab0de}.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .wy-alert-success.admonition,.rst-content .wy-alert-success.admonition-todo,.rst-content .wy-alert-success.attention,.rst-content .wy-alert-success.caution,.rst-content .wy-alert-success.danger,.rst-content .wy-alert-success.error,.rst-content .wy-alert-success.note,.rst-content .wy-alert-success.seealso,.rst-content .wy-alert-success.warning,.wy-alert.wy-alert-success{background:#dbfaf4}.rst-content .hint .admonition-title,.rst-content .hint .wy-alert-title,.rst-content .important .admonition-title,.rst-content .important .wy-alert-title,.rst-content .tip .admonition-title,.rst-content .tip .wy-alert-title,.rst-content .wy-alert-success.admonition-todo .admonition-title,.rst-content .wy-alert-success.admonition-todo .wy-alert-title,.rst-content .wy-alert-success.admonition .admonition-title,.rst-content .wy-alert-success.admonition .wy-alert-title,.rst-content .wy-alert-success.attention .admonition-title,.rst-content .wy-alert-success.attention .wy-alert-title,.rst-content .wy-alert-success.caution .admonition-title,.rst-content .wy-alert-success.caution .wy-alert-title,.rst-content .wy-alert-success.danger .admonition-title,.rst-content .wy-alert-success.danger .wy-alert-title,.rst-content .wy-alert-success.error .admonition-title,.rst-content .wy-alert-success.error .wy-alert-title,.rst-content .wy-alert-success.note .admonition-title,.rst-content .wy-alert-success.note .wy-alert-title,.rst-content .wy-alert-success.seealso .admonition-title,.rst-content .wy-alert-success.seealso .wy-alert-title,.rst-content .wy-alert-success.warning .admonition-title,.rst-content .wy-alert-success.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-success .admonition-title,.wy-alert.wy-alert-success .rst-content .admonition-title,.wy-alert.wy-alert-success .wy-alert-title{background:#1abc9c}.rst-content .wy-alert-neutral.admonition,.rst-content .wy-alert-neutral.admonition-todo,.rst-content .wy-alert-neutral.attention,.rst-content .wy-alert-neutral.caution,.rst-content .wy-alert-neutral.danger,.rst-content .wy-alert-neutral.error,.rst-content .wy-alert-neutral.hint,.rst-content .wy-alert-neutral.important,.rst-content .wy-alert-neutral.note,.rst-content .wy-alert-neutral.seealso,.rst-content .wy-alert-neutral.tip,.rst-content .wy-alert-neutral.warning,.wy-alert.wy-alert-neutral{background:#f3f6f6}.rst-content .wy-alert-neutral.admonition-todo .admonition-title,.rst-content .wy-alert-neutral.admonition-todo .wy-alert-title,.rst-content .wy-alert-neutral.admonition .admonition-title,.rst-content .wy-alert-neutral.admonition .wy-alert-title,.rst-content .wy-alert-neutral.attention .admonition-title,.rst-content .wy-alert-neutral.attention .wy-alert-title,.rst-content .wy-alert-neutral.caution .admonition-title,.rst-content .wy-alert-neutral.caution .wy-alert-title,.rst-content .wy-alert-neutral.danger .admonition-title,.rst-content .wy-alert-neutral.danger .wy-alert-title,.rst-content .wy-alert-neutral.error .admonition-title,.rst-content .wy-alert-neutral.error .wy-alert-title,.rst-content .wy-alert-neutral.hint .admonition-title,.rst-content .wy-alert-neutral.hint .wy-alert-title,.rst-content .wy-alert-neutral.important .admonition-title,.rst-content .wy-alert-neutral.important .wy-alert-title,.rst-content .wy-alert-neutral.note .admonition-title,.rst-content .wy-alert-neutral.note .wy-alert-title,.rst-content .wy-alert-neutral.seealso .admonition-title,.rst-content .wy-alert-neutral.seealso .wy-alert-title,.rst-content .wy-alert-neutral.tip .admonition-title,.rst-content .wy-alert-neutral.tip .wy-alert-title,.rst-content .wy-alert-neutral.warning .admonition-title,.rst-content .wy-alert-neutral.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-neutral .admonition-title,.wy-alert.wy-alert-neutral .rst-content .admonition-title,.wy-alert.wy-alert-neutral .wy-alert-title{color:#404040;background:#e1e4e5}.rst-content .wy-alert-neutral.admonition-todo a,.rst-content .wy-alert-neutral.admonition a,.rst-content .wy-alert-neutral.attention a,.rst-content .wy-alert-neutral.caution a,.rst-content .wy-alert-neutral.danger a,.rst-content .wy-alert-neutral.error a,.rst-content .wy-alert-neutral.hint a,.rst-content .wy-alert-neutral.important a,.rst-content .wy-alert-neutral.note a,.rst-content .wy-alert-neutral.seealso a,.rst-content .wy-alert-neutral.tip a,.rst-content .wy-alert-neutral.warning a,.wy-alert.wy-alert-neutral a{color:#2980b9}.rst-content .admonition-todo p:last-child,.rst-content .admonition p:last-child,.rst-content .attention p:last-child,.rst-content .caution p:last-child,.rst-content .danger p:last-child,.rst-content .error p:last-child,.rst-content .hint p:last-child,.rst-content .important p:last-child,.rst-content .note p:last-child,.rst-content .seealso p:last-child,.rst-content .tip p:last-child,.rst-content .warning p:last-child,.wy-alert p:last-child{margin-bottom:0}.wy-tray-container{position:fixed;bottom:0;left:0;z-index:600}.wy-tray-container li{display:block;width:300px;background:transparent;color:#fff;text-align:center;box-shadow:0 5px 5px 0 rgba(0,0,0,.1);padding:0 24px;min-width:20%;opacity:0;height:0;line-height:56px;overflow:hidden;-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;transition:all .3s ease-in}.wy-tray-container li.wy-tray-item-success{background:#27ae60}.wy-tray-container li.wy-tray-item-info{background:#2980b9}.wy-tray-container li.wy-tray-item-warning{background:#e67e22}.wy-tray-container li.wy-tray-item-danger{background:#e74c3c}.wy-tray-container li.on{opacity:1;height:56px}@media screen and (max-width:768px){.wy-tray-container{bottom:auto;top:0;width:100%}.wy-tray-container li{width:100%}}button{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;cursor:pointer;line-height:normal;-webkit-appearance:button;*overflow:visible}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}button[disabled]{cursor:default}.btn{display:inline-block;border-radius:2px;line-height:normal;white-space:nowrap;text-align:center;cursor:pointer;font-size:100%;padding:6px 12px 8px;color:#fff;border:1px solid rgba(0,0,0,.1);background-color:#27ae60;text-decoration:none;font-weight:400;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;box-shadow:inset 0 1px 2px -1px hsla(0,0%,100%,.5),inset 0 -2px 0 0 rgba(0,0,0,.1);outline-none:false;vertical-align:middle;*display:inline;zoom:1;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all .1s linear;-moz-transition:all .1s linear;transition:all .1s linear}.btn-hover{background:#2e8ece;color:#fff}.btn:hover{background:#2cc36b;color:#fff}.btn:focus{background:#2cc36b;outline:0}.btn:active{box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.05),inset 0 2px 0 0 rgba(0,0,0,.1);padding:8px 12px 6px}.btn:visited{color:#fff}.btn-disabled,.btn-disabled:active,.btn-disabled:focus,.btn-disabled:hover,.btn:disabled{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none}.btn::-moz-focus-inner{padding:0;border:0}.btn-small{font-size:80%}.btn-info{background-color:#2980b9!important}.btn-info:hover{background-color:#2e8ece!important}.btn-neutral{background-color:#f3f6f6!important;color:#404040!important}.btn-neutral:hover{background-color:#e5ebeb!important;color:#404040}.btn-neutral:visited{color:#404040!important}.btn-success{background-color:#27ae60!important}.btn-success:hover{background-color:#295!important}.btn-danger{background-color:#e74c3c!important}.btn-danger:hover{background-color:#ea6153!important}.btn-warning{background-color:#e67e22!important}.btn-warning:hover{background-color:#e98b39!important}.btn-invert{background-color:#222}.btn-invert:hover{background-color:#2f2f2f!important}.btn-link{background-color:transparent!important;color:#2980b9;box-shadow:none;border-color:transparent!important}.btn-link:active,.btn-link:hover{background-color:transparent!important;color:#409ad5!important;box-shadow:none}.btn-link:visited{color:#9b59b6}.wy-btn-group .btn,.wy-control .btn{vertical-align:middle}.wy-btn-group{margin-bottom:24px;*zoom:1}.wy-btn-group:after,.wy-btn-group:before{display:table;content:\"\"}.wy-btn-group:after{clear:both}.wy-dropdown{position:relative;display:inline-block}.wy-dropdown-active .wy-dropdown-menu{display:block}.wy-dropdown-menu{position:absolute;left:0;display:none;float:left;top:100%;min-width:100%;background:#fcfcfc;z-index:100;border:1px solid #cfd7dd;box-shadow:0 2px 2px 0 rgba(0,0,0,.1);padding:12px}.wy-dropdown-menu>dd>a{display:block;clear:both;color:#404040;white-space:nowrap;font-size:90%;padding:0 12px;cursor:pointer}.wy-dropdown-menu>dd>a:hover{background:#2980b9;color:#fff}.wy-dropdown-menu>dd.divider{border-top:1px solid #cfd7dd;margin:6px 0}.wy-dropdown-menu>dd.search{padding-bottom:12px}.wy-dropdown-menu>dd.search input[type=search]{width:100%}.wy-dropdown-menu>dd.call-to-action{background:#e3e3e3;text-transform:uppercase;font-weight:500;font-size:80%}.wy-dropdown-menu>dd.call-to-action:hover{background:#e3e3e3}.wy-dropdown-menu>dd.call-to-action .btn{color:#fff}.wy-dropdown.wy-dropdown-up .wy-dropdown-menu{bottom:100%;top:auto;left:auto;right:0}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu{background:#fcfcfc;margin-top:2px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a{padding:6px 12px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a:hover{background:#2980b9;color:#fff}.wy-dropdown.wy-dropdown-left .wy-dropdown-menu{right:0;left:auto;text-align:right}.wy-dropdown-arrow:before{content:\" \";border-bottom:5px solid #f5f5f5;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute;display:block;top:-4px;left:50%;margin-left:-3px}.wy-dropdown-arrow.wy-dropdown-arrow-left:before{left:11px}.wy-form-stacked select{display:block}.wy-form-aligned .wy-help-inline,.wy-form-aligned input,.wy-form-aligned label,.wy-form-aligned select,.wy-form-aligned textarea{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-form-aligned .wy-control-group>label{display:inline-block;vertical-align:middle;width:10em;margin:6px 12px 0 0;float:left}.wy-form-aligned .wy-control{float:left}.wy-form-aligned .wy-control label{display:block}.wy-form-aligned .wy-control select{margin-top:6px}fieldset{margin:0}fieldset,legend{border:0;padding:0}legend{width:100%;white-space:normal;margin-bottom:24px;font-size:150%;*margin-left:-7px}label,legend{display:block}label{margin:0 0 .3125em;color:#333;font-size:90%}input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}.wy-control-group{margin-bottom:24px;max-width:1200px;margin-left:auto;margin-right:auto;*zoom:1}.wy-control-group:after,.wy-control-group:before{display:table;content:\"\"}.wy-control-group:after{clear:both}.wy-control-group.wy-control-group-required>label:after{content:\" *\";color:#e74c3c}.wy-control-group .wy-form-full,.wy-control-group .wy-form-halves,.wy-control-group .wy-form-thirds{padding-bottom:12px}.wy-control-group .wy-form-full input[type=color],.wy-control-group .wy-form-full input[type=date],.wy-control-group .wy-form-full input[type=datetime-local],.wy-control-group .wy-form-full input[type=datetime],.wy-control-group .wy-form-full input[type=email],.wy-control-group .wy-form-full input[type=month],.wy-control-group .wy-form-full input[type=number],.wy-control-group .wy-form-full input[type=password],.wy-control-group .wy-form-full input[type=search],.wy-control-group .wy-form-full input[type=tel],.wy-control-group .wy-form-full input[type=text],.wy-control-group .wy-form-full input[type=time],.wy-control-group .wy-form-full input[type=url],.wy-control-group .wy-form-full input[type=week],.wy-control-group .wy-form-full select,.wy-control-group .wy-form-halves input[type=color],.wy-control-group .wy-form-halves input[type=date],.wy-control-group .wy-form-halves input[type=datetime-local],.wy-control-group .wy-form-halves input[type=datetime],.wy-control-group .wy-form-halves input[type=email],.wy-control-group .wy-form-halves input[type=month],.wy-control-group .wy-form-halves input[type=number],.wy-control-group .wy-form-halves input[type=password],.wy-control-group .wy-form-halves input[type=search],.wy-control-group .wy-form-halves input[type=tel],.wy-control-group .wy-form-halves input[type=text],.wy-control-group .wy-form-halves input[type=time],.wy-control-group .wy-form-halves input[type=url],.wy-control-group .wy-form-halves input[type=week],.wy-control-group .wy-form-halves select,.wy-control-group .wy-form-thirds input[type=color],.wy-control-group .wy-form-thirds input[type=date],.wy-control-group .wy-form-thirds input[type=datetime-local],.wy-control-group .wy-form-thirds input[type=datetime],.wy-control-group .wy-form-thirds input[type=email],.wy-control-group .wy-form-thirds input[type=month],.wy-control-group .wy-form-thirds input[type=number],.wy-control-group .wy-form-thirds input[type=password],.wy-control-group .wy-form-thirds input[type=search],.wy-control-group .wy-form-thirds input[type=tel],.wy-control-group .wy-form-thirds input[type=text],.wy-control-group .wy-form-thirds input[type=time],.wy-control-group .wy-form-thirds input[type=url],.wy-control-group .wy-form-thirds input[type=week],.wy-control-group .wy-form-thirds select{width:100%}.wy-control-group .wy-form-full{float:left;display:block;width:100%;margin-right:0}.wy-control-group .wy-form-full:last-child{margin-right:0}.wy-control-group .wy-form-halves{float:left;display:block;margin-right:2.35765%;width:48.82117%}.wy-control-group .wy-form-halves:last-child,.wy-control-group .wy-form-halves:nth-of-type(2n){margin-right:0}.wy-control-group .wy-form-halves:nth-of-type(odd){clear:left}.wy-control-group .wy-form-thirds{float:left;display:block;margin-right:2.35765%;width:31.76157%}.wy-control-group .wy-form-thirds:last-child,.wy-control-group .wy-form-thirds:nth-of-type(3n){margin-right:0}.wy-control-group .wy-form-thirds:nth-of-type(3n+1){clear:left}.wy-control-group.wy-control-group-no-input .wy-control,.wy-control-no-input{margin:6px 0 0;font-size:90%}.wy-control-no-input{display:inline-block}.wy-control-group.fluid-input input[type=color],.wy-control-group.fluid-input input[type=date],.wy-control-group.fluid-input input[type=datetime-local],.wy-control-group.fluid-input input[type=datetime],.wy-control-group.fluid-input input[type=email],.wy-control-group.fluid-input input[type=month],.wy-control-group.fluid-input input[type=number],.wy-control-group.fluid-input input[type=password],.wy-control-group.fluid-input input[type=search],.wy-control-group.fluid-input input[type=tel],.wy-control-group.fluid-input input[type=text],.wy-control-group.fluid-input input[type=time],.wy-control-group.fluid-input input[type=url],.wy-control-group.fluid-input input[type=week]{width:100%}.wy-form-message-inline{padding-left:.3em;color:#666;font-size:90%}.wy-form-message{display:block;color:#999;font-size:70%;margin-top:.3125em;font-style:italic}.wy-form-message p{font-size:inherit;font-style:italic;margin-bottom:6px}.wy-form-message p:last-child{margin-bottom:0}input{line-height:normal}input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;*overflow:visible}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:6px;display:inline-block;border:1px solid #ccc;font-size:80%;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;box-shadow:inset 0 1px 3px #ddd;border-radius:0;-webkit-transition:border .3s linear;-moz-transition:border .3s linear;transition:border .3s linear}input[type=datetime-local]{padding:.34375em .625em}input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{padding:0;margin-right:.3125em;*height:13px;*width:13px}input[type=checkbox],input[type=radio],input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus{outline:0;outline:thin dotted\\9;border-color:#333}input.no-focus:focus{border-color:#ccc!important}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted #333;outline:1px auto #129fea}input[type=color][disabled],input[type=date][disabled],input[type=datetime-local][disabled],input[type=datetime][disabled],input[type=email][disabled],input[type=month][disabled],input[type=number][disabled],input[type=password][disabled],input[type=search][disabled],input[type=tel][disabled],input[type=text][disabled],input[type=time][disabled],input[type=url][disabled],input[type=week][disabled]{cursor:not-allowed;background-color:#fafafa}input:focus:invalid,select:focus:invalid,textarea:focus:invalid{color:#e74c3c;border:1px solid #e74c3c}input:focus:invalid:focus,select:focus:invalid:focus,textarea:focus:invalid:focus{border-color:#e74c3c}input[type=checkbox]:focus:invalid:focus,input[type=file]:focus:invalid:focus,input[type=radio]:focus:invalid:focus{outline-color:#e74c3c}input.wy-input-large{padding:12px;font-size:100%}textarea{overflow:auto;vertical-align:top;width:100%;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif}select,textarea{padding:.5em .625em;display:inline-block;border:1px solid #ccc;font-size:80%;box-shadow:inset 0 1px 3px #ddd;-webkit-transition:border .3s linear;-moz-transition:border .3s linear;transition:border .3s linear}select{border:1px solid #ccc;background-color:#fff}select[multiple]{height:auto}select:focus,textarea:focus{outline:0}input[readonly],select[disabled],select[readonly],textarea[disabled],textarea[readonly]{cursor:not-allowed;background-color:#fafafa}input[type=checkbox][disabled],input[type=radio][disabled]{cursor:not-allowed}.wy-checkbox,.wy-radio{margin:6px 0;color:#404040;display:block}.wy-checkbox input,.wy-radio input{vertical-align:baseline}.wy-form-message-inline{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-input-prefix,.wy-input-suffix{white-space:nowrap;padding:6px}.wy-input-prefix .wy-input-context,.wy-input-suffix .wy-input-context{line-height:27px;padding:0 8px;display:inline-block;font-size:80%;background-color:#f3f6f6;border:1px solid #ccc;color:#999}.wy-input-suffix .wy-input-context{border-left:0}.wy-input-prefix .wy-input-context{border-right:0}.wy-switch{position:relative;display:block;height:24px;margin-top:12px;cursor:pointer}.wy-switch:before{left:0;top:0;width:36px;height:12px;background:#ccc}.wy-switch:after,.wy-switch:before{position:absolute;content:\"\";display:block;border-radius:4px;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wy-switch:after{width:18px;height:18px;background:#999;left:-3px;top:-3px}.wy-switch span{position:absolute;left:48px;display:block;font-size:12px;color:#ccc;line-height:1}.wy-switch.active:before{background:#1e8449}.wy-switch.active:after{left:24px;background:#27ae60}.wy-switch.disabled{cursor:not-allowed;opacity:.8}.wy-control-group.wy-control-group-error .wy-form-message,.wy-control-group.wy-control-group-error>label{color:#e74c3c}.wy-control-group.wy-control-group-error input[type=color],.wy-control-group.wy-control-group-error input[type=date],.wy-control-group.wy-control-group-error input[type=datetime-local],.wy-control-group.wy-control-group-error input[type=datetime],.wy-control-group.wy-control-group-error input[type=email],.wy-control-group.wy-control-group-error input[type=month],.wy-control-group.wy-control-group-error input[type=number],.wy-control-group.wy-control-group-error input[type=password],.wy-control-group.wy-control-group-error input[type=search],.wy-control-group.wy-control-group-error input[type=tel],.wy-control-group.wy-control-group-error input[type=text],.wy-control-group.wy-control-group-error input[type=time],.wy-control-group.wy-control-group-error input[type=url],.wy-control-group.wy-control-group-error input[type=week],.wy-control-group.wy-control-group-error textarea{border:1px solid #e74c3c}.wy-inline-validate{white-space:nowrap}.wy-inline-validate .wy-input-context{padding:.5em .625em;display:inline-block;font-size:80%}.wy-inline-validate.wy-inline-validate-success .wy-input-context{color:#27ae60}.wy-inline-validate.wy-inline-validate-danger .wy-input-context{color:#e74c3c}.wy-inline-validate.wy-inline-validate-warning .wy-input-context{color:#e67e22}.wy-inline-validate.wy-inline-validate-info .wy-input-context{color:#2980b9}.rotate-90{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.rotate-180{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.rotate-270{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.mirror{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1)}.mirror.rotate-90{-webkit-transform:scaleX(-1) rotate(90deg);-moz-transform:scaleX(-1) rotate(90deg);-ms-transform:scaleX(-1) rotate(90deg);-o-transform:scaleX(-1) rotate(90deg);transform:scaleX(-1) rotate(90deg)}.mirror.rotate-180{-webkit-transform:scaleX(-1) rotate(180deg);-moz-transform:scaleX(-1) rotate(180deg);-ms-transform:scaleX(-1) rotate(180deg);-o-transform:scaleX(-1) rotate(180deg);transform:scaleX(-1) rotate(180deg)}.mirror.rotate-270{-webkit-transform:scaleX(-1) rotate(270deg);-moz-transform:scaleX(-1) rotate(270deg);-ms-transform:scaleX(-1) rotate(270deg);-o-transform:scaleX(-1) rotate(270deg);transform:scaleX(-1) rotate(270deg)}@media only screen and (max-width:480px){.wy-form button[type=submit]{margin:.7em 0 0}.wy-form input[type=color],.wy-form input[type=date],.wy-form input[type=datetime-local],.wy-form input[type=datetime],.wy-form input[type=email],.wy-form input[type=month],.wy-form input[type=number],.wy-form input[type=password],.wy-form input[type=search],.wy-form input[type=tel],.wy-form input[type=text],.wy-form input[type=time],.wy-form input[type=url],.wy-form input[type=week],.wy-form label{margin-bottom:.3em;display:block}.wy-form input[type=color],.wy-form input[type=date],.wy-form input[type=datetime-local],.wy-form input[type=datetime],.wy-form input[type=email],.wy-form input[type=month],.wy-form input[type=number],.wy-form input[type=password],.wy-form input[type=search],.wy-form input[type=tel],.wy-form input[type=time],.wy-form input[type=url],.wy-form input[type=week]{margin-bottom:0}.wy-form-aligned .wy-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.wy-form-aligned .wy-control{margin:1.5em 0 0}.wy-form-message,.wy-form-message-inline,.wy-form .wy-help-inline{display:block;font-size:80%;padding:6px 0}}@media screen and (max-width:768px){.tablet-hide{display:none}}@media screen and (max-width:480px){.mobile-hide{display:none}}.float-left{float:left}.float-right{float:right}.full-width{width:100%}.rst-content table.docutils,.rst-content table.field-list,.wy-table{border-collapse:collapse;border-spacing:0;empty-cells:show;margin-bottom:24px}.rst-content table.docutils caption,.rst-content table.field-list caption,.wy-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.rst-content table.docutils td,.rst-content table.docutils th,.rst-content table.field-list td,.rst-content table.field-list th,.wy-table td,.wy-table th{font-size:90%;margin:0;overflow:visible;padding:8px 16px}.rst-content table.docutils td:first-child,.rst-content table.docutils th:first-child,.rst-content table.field-list td:first-child,.rst-content table.field-list th:first-child,.wy-table td:first-child,.wy-table th:first-child{border-left-width:0}.rst-content table.docutils thead,.rst-content table.field-list thead,.wy-table thead{color:#000;text-align:left;vertical-align:bottom;white-space:nowrap}.rst-content table.docutils thead th,.rst-content table.field-list thead th,.wy-table thead th{font-weight:700;border-bottom:2px solid #e1e4e5}.rst-content table.docutils td,.rst-content table.field-list td,.wy-table td{background-color:transparent;vertical-align:middle}.rst-content table.docutils td p,.rst-content table.field-list td p,.wy-table td p{line-height:18px}.rst-content table.docutils td p:last-child,.rst-content table.field-list td p:last-child,.wy-table td p:last-child{margin-bottom:0}.rst-content table.docutils .wy-table-cell-min,.rst-content table.field-list .wy-table-cell-min,.wy-table .wy-table-cell-min{width:1%;padding-right:0}.rst-content table.docutils .wy-table-cell-min input[type=checkbox],.rst-content table.field-list .wy-table-cell-min input[type=checkbox],.wy-table .wy-table-cell-min input[type=checkbox]{margin:0}.wy-table-secondary{color:grey;font-size:90%}.wy-table-tertiary{color:grey;font-size:80%}.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td,.wy-table-backed,.wy-table-odd td,.wy-table-striped tr:nth-child(2n-1) td{background-color:#f3f6f6}.rst-content table.docutils,.wy-table-bordered-all{border:1px solid #e1e4e5}.rst-content table.docutils td,.wy-table-bordered-all td{border-bottom:1px solid #e1e4e5;border-left:1px solid #e1e4e5}.rst-content table.docutils tbody>tr:last-child td,.wy-table-bordered-all tbody>tr:last-child td{border-bottom-width:0}.wy-table-bordered{border:1px solid #e1e4e5}.wy-table-bordered-rows td{border-bottom:1px solid #e1e4e5}.wy-table-bordered-rows tbody>tr:last-child td{border-bottom-width:0}.wy-table-horizontal td,.wy-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #e1e4e5}.wy-table-horizontal tbody>tr:last-child td{border-bottom-width:0}.wy-table-responsive{margin-bottom:24px;max-width:100%;overflow:auto}.wy-table-responsive table{margin-bottom:0!important}.wy-table-responsive table td,.wy-table-responsive table th{white-space:nowrap}a{color:#2980b9;text-decoration:none;cursor:pointer}a:hover{color:#3091d1}a:visited{color:#9b59b6}html{height:100%}body,html{overflow-x:hidden}body{font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;font-weight:400;color:#404040;min-height:100%;background:#edf0f2}.wy-text-left{text-align:left}.wy-text-center{text-align:center}.wy-text-right{text-align:right}.wy-text-large{font-size:120%}.wy-text-normal{font-size:100%}.wy-text-small,small{font-size:80%}.wy-text-strike{text-decoration:line-through}.wy-text-warning{color:#e67e22!important}a.wy-text-warning:hover{color:#eb9950!important}.wy-text-info{color:#2980b9!important}a.wy-text-info:hover{color:#409ad5!important}.wy-text-success{color:#27ae60!important}a.wy-text-success:hover{color:#36d278!important}.wy-text-danger{color:#e74c3c!important}a.wy-text-danger:hover{color:#ed7669!important}.wy-text-neutral{color:#404040!important}a.wy-text-neutral:hover{color:#595959!important}.rst-content .toctree-wrapper>p.caption,h1,h2,h3,h4,h5,h6,legend{margin-top:0;font-weight:700;font-family:Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif}p{line-height:24px;font-size:16px;margin:0 0 24px}h1{font-size:175%}.rst-content .toctree-wrapper>p.caption,h2{font-size:150%}h3{font-size:125%}h4{font-size:115%}h5{font-size:110%}h6{font-size:100%}hr{display:block;height:1px;border:0;border-top:1px solid #e1e4e5;margin:24px 0;padding:0}.rst-content code,.rst-content tt,code{white-space:nowrap;max-width:100%;background:#fff;border:1px solid #e1e4e5;font-size:75%;padding:0 5px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#e74c3c;overflow-x:auto}.rst-content tt.code-large,code.code-large{font-size:90%}.rst-content .section ul,.rst-content .toctree-wrapper ul,.rst-content section ul,.wy-plain-list-disc,article ul{list-style:disc;line-height:24px;margin-bottom:24px}.rst-content .section ul li,.rst-content .toctree-wrapper ul li,.rst-content section ul li,.wy-plain-list-disc li,article ul li{list-style:disc;margin-left:24px}.rst-content .section ul li p:last-child,.rst-content .section ul li ul,.rst-content .toctree-wrapper ul li p:last-child,.rst-content .toctree-wrapper ul li ul,.rst-content section ul li p:last-child,.rst-content section ul li ul,.wy-plain-list-disc li p:last-child,.wy-plain-list-disc li ul,article ul li p:last-child,article ul li ul{margin-bottom:0}.rst-content .section ul li li,.rst-content .toctree-wrapper ul li li,.rst-content section ul li li,.wy-plain-list-disc li li,article ul li li{list-style:circle}.rst-content .section ul li li li,.rst-content .toctree-wrapper ul li li li,.rst-content section ul li li li,.wy-plain-list-disc li li li,article ul li li li{list-style:square}.rst-content .section ul li ol li,.rst-content .toctree-wrapper ul li ol li,.rst-content section ul li ol li,.wy-plain-list-disc li ol li,article ul li ol li{list-style:decimal}.rst-content .section ol,.rst-content .section ol.arabic,.rst-content .toctree-wrapper ol,.rst-content .toctree-wrapper ol.arabic,.rst-content section ol,.rst-content section ol.arabic,.wy-plain-list-decimal,article ol{list-style:decimal;line-height:24px;margin-bottom:24px}.rst-content .section ol.arabic li,.rst-content .section ol li,.rst-content .toctree-wrapper ol.arabic li,.rst-content .toctree-wrapper ol li,.rst-content section ol.arabic li,.rst-content section ol li,.wy-plain-list-decimal li,article ol li{list-style:decimal;margin-left:24px}.rst-content .section ol.arabic li ul,.rst-content .section ol li p:last-child,.rst-content .section ol li ul,.rst-content .toctree-wrapper ol.arabic li ul,.rst-content .toctree-wrapper ol li p:last-child,.rst-content .toctree-wrapper ol li ul,.rst-content section ol.arabic li ul,.rst-content section ol li p:last-child,.rst-content section ol li ul,.wy-plain-list-decimal li p:last-child,.wy-plain-list-decimal li ul,article ol li p:last-child,article ol li ul{margin-bottom:0}.rst-content .section ol.arabic li ul li,.rst-content .section ol li ul li,.rst-content .toctree-wrapper ol.arabic li ul li,.rst-content .toctree-wrapper ol li ul li,.rst-content section ol.arabic li ul li,.rst-content section ol li ul li,.wy-plain-list-decimal li ul li,article ol li ul li{list-style:disc}.wy-breadcrumbs{*zoom:1}.wy-breadcrumbs:after,.wy-breadcrumbs:before{display:table;content:\"\"}.wy-breadcrumbs:after{clear:both}.wy-breadcrumbs>li{display:inline-block;padding-top:5px}.wy-breadcrumbs>li.wy-breadcrumbs-aside{float:right}.rst-content .wy-breadcrumbs>li code,.rst-content .wy-breadcrumbs>li tt,.wy-breadcrumbs>li .rst-content tt,.wy-breadcrumbs>li code{all:inherit;color:inherit}.breadcrumb-item:before{content:\"/\";color:#bbb;font-size:13px;padding:0 6px 0 3px}.wy-breadcrumbs-extra{margin-bottom:0;color:#b3b3b3;font-size:80%;display:inline-block}@media screen and (max-width:480px){.wy-breadcrumbs-extra,.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}@media print{.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}html{font-size:16px}.wy-affix{position:fixed;top:1.618em}.wy-menu a:hover{text-decoration:none}.wy-menu-horiz{*zoom:1}.wy-menu-horiz:after,.wy-menu-horiz:before{display:table;content:\"\"}.wy-menu-horiz:after{clear:both}.wy-menu-horiz li,.wy-menu-horiz ul{display:inline-block}.wy-menu-horiz li:hover{background:hsla(0,0%,100%,.1)}.wy-menu-horiz li.divide-left{border-left:1px solid #404040}.wy-menu-horiz li.divide-right{border-right:1px solid #404040}.wy-menu-horiz a{height:32px;display:inline-block;line-height:32px;padding:0 16px}.wy-menu-vertical{width:300px}.wy-menu-vertical header,.wy-menu-vertical p.caption{color:#55a5d9;height:32px;line-height:32px;padding:0 1.618em;margin:12px 0 0;display:block;font-weight:700;text-transform:uppercase;font-size:85%;white-space:nowrap}.wy-menu-vertical ul{margin-bottom:0}.wy-menu-vertical li.divide-top{border-top:1px solid #404040}.wy-menu-vertical li.divide-bottom{border-bottom:1px solid #404040}.wy-menu-vertical li.current{background:#e3e3e3}.wy-menu-vertical li.current a{color:grey;border-right:1px solid #c9c9c9;padding:.4045em 2.427em}.wy-menu-vertical li.current a:hover{background:#d6d6d6}.rst-content .wy-menu-vertical li tt,.wy-menu-vertical li .rst-content tt,.wy-menu-vertical li code{border:none;background:inherit;color:inherit;padding-left:0;padding-right:0}.wy-menu-vertical li button.toctree-expand{display:block;float:left;margin-left:-1.2em;line-height:18px;color:#4d4d4d;border:none;background:none;padding:0}.wy-menu-vertical li.current>a,.wy-menu-vertical li.on a{color:#404040;font-weight:700;position:relative;background:#fcfcfc;border:none;padding:.4045em 1.618em}.wy-menu-vertical li.current>a:hover,.wy-menu-vertical li.on a:hover{background:#fcfcfc}.wy-menu-vertical li.current>a:hover button.toctree-expand,.wy-menu-vertical li.on a:hover button.toctree-expand{color:grey}.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand{display:block;line-height:18px;color:#333}.wy-menu-vertical li.toctree-l1.current>a{border-bottom:1px solid #c9c9c9;border-top:1px solid #c9c9c9}.wy-menu-vertical .toctree-l1.current .toctree-l2>ul,.wy-menu-vertical .toctree-l2.current .toctree-l3>ul,.wy-menu-vertical .toctree-l3.current .toctree-l4>ul,.wy-menu-vertical .toctree-l4.current .toctree-l5>ul,.wy-menu-vertical .toctree-l5.current .toctree-l6>ul,.wy-menu-vertical .toctree-l6.current .toctree-l7>ul,.wy-menu-vertical .toctree-l7.current .toctree-l8>ul,.wy-menu-vertical .toctree-l8.current .toctree-l9>ul,.wy-menu-vertical .toctree-l9.current .toctree-l10>ul,.wy-menu-vertical .toctree-l10.current .toctree-l11>ul{display:none}.wy-menu-vertical .toctree-l1.current .current.toctree-l2>ul,.wy-menu-vertical .toctree-l2.current .current.toctree-l3>ul,.wy-menu-vertical .toctree-l3.current .current.toctree-l4>ul,.wy-menu-vertical .toctree-l4.current .current.toctree-l5>ul,.wy-menu-vertical .toctree-l5.current .current.toctree-l6>ul,.wy-menu-vertical .toctree-l6.current .current.toctree-l7>ul,.wy-menu-vertical .toctree-l7.current .current.toctree-l8>ul,.wy-menu-vertical .toctree-l8.current .current.toctree-l9>ul,.wy-menu-vertical .toctree-l9.current .current.toctree-l10>ul,.wy-menu-vertical .toctree-l10.current .current.toctree-l11>ul{display:block}.wy-menu-vertical li.toctree-l3,.wy-menu-vertical li.toctree-l4{font-size:.9em}.wy-menu-vertical li.toctree-l2 a,.wy-menu-vertical li.toctree-l3 a,.wy-menu-vertical li.toctree-l4 a,.wy-menu-vertical li.toctree-l5 a,.wy-menu-vertical li.toctree-l6 a,.wy-menu-vertical li.toctree-l7 a,.wy-menu-vertical li.toctree-l8 a,.wy-menu-vertical li.toctree-l9 a,.wy-menu-vertical li.toctree-l10 a{color:#404040}.wy-menu-vertical li.toctree-l2 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l3 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l4 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l5 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l6 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l7 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l8 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l9 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l10 a:hover button.toctree-expand{color:grey}.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a,.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a,.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a,.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a,.wy-menu-vertical li.toctree-l6.current li.toctree-l7>a,.wy-menu-vertical li.toctree-l7.current li.toctree-l8>a,.wy-menu-vertical li.toctree-l8.current li.toctree-l9>a,.wy-menu-vertical li.toctree-l9.current li.toctree-l10>a,.wy-menu-vertical li.toctree-l10.current li.toctree-l11>a{display:block}.wy-menu-vertical li.toctree-l2.current>a{padding:.4045em 2.427em}.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a{padding:.4045em 1.618em .4045em 4.045em}.wy-menu-vertical li.toctree-l3.current>a{padding:.4045em 4.045em}.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a{padding:.4045em 1.618em .4045em 5.663em}.wy-menu-vertical li.toctree-l4.current>a{padding:.4045em 5.663em}.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a{padding:.4045em 1.618em .4045em 7.281em}.wy-menu-vertical li.toctree-l5.current>a{padding:.4045em 7.281em}.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a{padding:.4045em 1.618em .4045em 8.899em}.wy-menu-vertical li.toctree-l6.current>a{padding:.4045em 8.899em}.wy-menu-vertical li.toctree-l6.current li.toctree-l7>a{padding:.4045em 1.618em .4045em 10.517em}.wy-menu-vertical li.toctree-l7.current>a{padding:.4045em 10.517em}.wy-menu-vertical li.toctree-l7.current li.toctree-l8>a{padding:.4045em 1.618em .4045em 12.135em}.wy-menu-vertical li.toctree-l8.current>a{padding:.4045em 12.135em}.wy-menu-vertical li.toctree-l8.current li.toctree-l9>a{padding:.4045em 1.618em .4045em 13.753em}.wy-menu-vertical li.toctree-l9.current>a{padding:.4045em 13.753em}.wy-menu-vertical li.toctree-l9.current li.toctree-l10>a{padding:.4045em 1.618em .4045em 15.371em}.wy-menu-vertical li.toctree-l10.current>a{padding:.4045em 15.371em}.wy-menu-vertical li.toctree-l10.current li.toctree-l11>a{padding:.4045em 1.618em .4045em 16.989em}.wy-menu-vertical li.toctree-l2.current>a,.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a{background:#c9c9c9}.wy-menu-vertical li.toctree-l2 button.toctree-expand{color:#a3a3a3}.wy-menu-vertical li.toctree-l3.current>a,.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a{background:#bdbdbd}.wy-menu-vertical li.toctree-l3 button.toctree-expand{color:#969696}.wy-menu-vertical li.current ul{display:block}.wy-menu-vertical li ul{margin-bottom:0;display:none}.wy-menu-vertical li ul li a{margin-bottom:0;color:#d9d9d9;font-weight:400}.wy-menu-vertical a{line-height:18px;padding:.4045em 1.618em;display:block;position:relative;font-size:90%;color:#d9d9d9}.wy-menu-vertical a:hover{background-color:#4e4a4a;cursor:pointer}.wy-menu-vertical a:hover button.toctree-expand{color:#d9d9d9}.wy-menu-vertical a:active{background-color:#2980b9;cursor:pointer;color:#fff}.wy-menu-vertical a:active button.toctree-expand{color:#fff}.wy-side-nav-search{display:block;width:300px;padding:.809em;margin-bottom:.809em;z-index:200;background-color:#2980b9;text-align:center;color:#fcfcfc}.wy-side-nav-search input[type=text]{width:100%;border-radius:50px;padding:6px 12px;border-color:#2472a4}.wy-side-nav-search img{display:block;margin:auto auto .809em;height:45px;width:45px;background-color:#2980b9;padding:5px;border-radius:100%}.wy-side-nav-search .wy-dropdown>a,.wy-side-nav-search>a{color:#fcfcfc;font-size:100%;font-weight:700;display:inline-block;padding:4px 6px;margin-bottom:.809em;max-width:100%}.wy-side-nav-search .wy-dropdown>a:hover,.wy-side-nav-search>a:hover{background:hsla(0,0%,100%,.1)}.wy-side-nav-search .wy-dropdown>a img.logo,.wy-side-nav-search>a img.logo{display:block;margin:0 auto;height:auto;width:auto;border-radius:0;max-width:100%;background:transparent}.wy-side-nav-search .wy-dropdown>a.icon img.logo,.wy-side-nav-search>a.icon img.logo{margin-top:.85em}.wy-side-nav-search>div.version{margin-top:-.4045em;margin-bottom:.809em;font-weight:400;color:hsla(0,0%,100%,.3)}.wy-nav .wy-menu-vertical header{color:#2980b9}.wy-nav .wy-menu-vertical a{color:#b3b3b3}.wy-nav .wy-menu-vertical a:hover{background-color:#2980b9;color:#fff}[data-menu-wrap]{-webkit-transition:all .2s ease-in;-moz-transition:all .2s ease-in;transition:all .2s ease-in;position:absolute;opacity:1;width:100%;opacity:0}[data-menu-wrap].move-center{left:0;right:auto;opacity:1}[data-menu-wrap].move-left{right:auto;left:-100%;opacity:0}[data-menu-wrap].move-right{right:-100%;left:auto;opacity:0}.wy-body-for-nav{background:#fcfcfc}.wy-grid-for-nav{position:absolute;width:100%;height:100%}.wy-nav-side{position:fixed;top:0;bottom:0;left:0;padding-bottom:2em;width:300px;overflow-x:hidden;overflow-y:hidden;min-height:100%;color:#9b9b9b;background:#343131;z-index:200}.wy-side-scroll{width:320px;position:relative;overflow-x:hidden;overflow-y:scroll;height:100%}.wy-nav-top{display:none;background:#2980b9;color:#fff;padding:.4045em .809em;position:relative;line-height:50px;text-align:center;font-size:100%;*zoom:1}.wy-nav-top:after,.wy-nav-top:before{display:table;content:\"\"}.wy-nav-top:after{clear:both}.wy-nav-top a{color:#fff;font-weight:700}.wy-nav-top img{margin-right:12px;height:45px;width:45px;background-color:#2980b9;padding:5px;border-radius:100%}.wy-nav-top i{font-size:30px;float:left;cursor:pointer;padding-top:inherit}.wy-nav-content-wrap{margin-left:300px;background:#fcfcfc;min-height:100%}.wy-nav-content{padding:1.618em 3.236em;height:100%;max-width:800px;margin:auto}.wy-body-mask{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.2);display:none;z-index:499}.wy-body-mask.on{display:block}footer{color:grey}footer p{margin-bottom:12px}.rst-content footer span.commit tt,footer span.commit .rst-content tt,footer span.commit code{padding:0;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;font-size:1em;background:none;border:none;color:grey}.rst-footer-buttons{*zoom:1}.rst-footer-buttons:after,.rst-footer-buttons:before{width:100%;display:table;content:\"\"}.rst-footer-buttons:after{clear:both}.rst-breadcrumbs-buttons{margin-top:12px;*zoom:1}.rst-breadcrumbs-buttons:after,.rst-breadcrumbs-buttons:before{display:table;content:\"\"}.rst-breadcrumbs-buttons:after{clear:both}#search-results .search li{margin-bottom:24px;border-bottom:1px solid #e1e4e5;padding-bottom:24px}#search-results .search li:first-child{border-top:1px solid #e1e4e5;padding-top:24px}#search-results .search li a{font-size:120%;margin-bottom:12px;display:inline-block}#search-results .context{color:grey;font-size:90%}.genindextable li>ul{margin-left:24px}@media screen and (max-width:768px){.wy-body-for-nav{background:#fcfcfc}.wy-nav-top{display:block}.wy-nav-side{left:-300px}.wy-nav-side.shift{width:85%;left:0}.wy-menu.wy-menu-vertical,.wy-side-nav-search,.wy-side-scroll{width:auto}.wy-nav-content-wrap{margin-left:0}.wy-nav-content-wrap .wy-nav-content{padding:1.618em}.wy-nav-content-wrap.shift{position:fixed;min-width:100%;left:85%;top:0;height:100%;overflow:hidden}}@media screen and (min-width:1100px){.wy-nav-content-wrap{background:rgba(0,0,0,.05)}.wy-nav-content{margin:0;background:#fcfcfc}}@media print{.rst-versions,.wy-nav-side,footer{display:none}.wy-nav-content-wrap{margin-left:0}}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60;*zoom:1}.rst-versions .rst-current-version:after,.rst-versions .rst-current-version:before{display:table;content:\"\"}.rst-versions .rst-current-version:after{clear:both}.rst-content .code-block-caption .rst-versions .rst-current-version .headerlink,.rst-content .eqno .rst-versions .rst-current-version .headerlink,.rst-content .rst-versions .rst-current-version .admonition-title,.rst-content code.download .rst-versions .rst-current-version span:first-child,.rst-content dl dt .rst-versions .rst-current-version .headerlink,.rst-content h1 .rst-versions .rst-current-version .headerlink,.rst-content h2 .rst-versions .rst-current-version .headerlink,.rst-content h3 .rst-versions .rst-current-version .headerlink,.rst-content h4 .rst-versions .rst-current-version .headerlink,.rst-content h5 .rst-versions .rst-current-version .headerlink,.rst-content h6 .rst-versions .rst-current-version .headerlink,.rst-content p .rst-versions .rst-current-version .headerlink,.rst-content table>caption .rst-versions .rst-current-version .headerlink,.rst-content tt.download .rst-versions .rst-current-version span:first-child,.rst-versions .rst-current-version .fa,.rst-versions .rst-current-version .icon,.rst-versions .rst-current-version .rst-content .admonition-title,.rst-versions .rst-current-version .rst-content .code-block-caption .headerlink,.rst-versions .rst-current-version .rst-content .eqno .headerlink,.rst-versions .rst-current-version .rst-content code.download span:first-child,.rst-versions .rst-current-version .rst-content dl dt .headerlink,.rst-versions .rst-current-version .rst-content h1 .headerlink,.rst-versions .rst-current-version .rst-content h2 .headerlink,.rst-versions .rst-current-version .rst-content h3 .headerlink,.rst-versions .rst-current-version .rst-content h4 .headerlink,.rst-versions .rst-current-version .rst-content h5 .headerlink,.rst-versions .rst-current-version .rst-content h6 .headerlink,.rst-versions .rst-current-version .rst-content p .headerlink,.rst-versions .rst-current-version .rst-content table>caption .headerlink,.rst-versions .rst-current-version .rst-content tt.download span:first-child,.rst-versions .rst-current-version .wy-menu-vertical li button.toctree-expand,.wy-menu-vertical li .rst-versions .rst-current-version button.toctree-expand{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}.rst-content .toctree-wrapper>p.caption,.rst-content h1,.rst-content h2,.rst-content h3,.rst-content h4,.rst-content h5,.rst-content h6{margin-bottom:24px}.rst-content img{max-width:100%;height:auto}.rst-content div.figure,.rst-content figure{margin-bottom:24px}.rst-content div.figure .caption-text,.rst-content figure .caption-text{font-style:italic}.rst-content div.figure p:last-child.caption,.rst-content figure p:last-child.caption{margin-bottom:0}.rst-content div.figure.align-center,.rst-content figure.align-center{text-align:center}.rst-content .section>a>img,.rst-content .section>img,.rst-content section>a>img,.rst-content section>img{margin-bottom:24px}.rst-content abbr[title]{text-decoration:none}.rst-content.style-external-links a.reference.external:after{font-family:FontAwesome;content:\"\\f08e\";color:#b3b3b3;vertical-align:super;font-size:60%;margin:0 .2em}.rst-content blockquote{margin-left:24px;line-height:24px;margin-bottom:24px}.rst-content pre.literal-block{white-space:pre;margin:0;padding:12px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;display:block;overflow:auto}.rst-content div[class^=highlight],.rst-content pre.literal-block{border:1px solid #e1e4e5;overflow-x:auto;margin:1px 0 24px}.rst-content div[class^=highlight] div[class^=highlight],.rst-content pre.literal-block div[class^=highlight]{padding:0;border:none;margin:0}.rst-content div[class^=highlight] td.code{width:100%}.rst-content .linenodiv pre{border-right:1px solid #e6e9ea;margin:0;padding:12px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;user-select:none;pointer-events:none}.rst-content div[class^=highlight] pre{white-space:pre;margin:0;padding:12px;display:block;overflow:auto}.rst-content div[class^=highlight] pre .hll{display:block;margin:0 -12px;padding:0 12px}.rst-content .linenodiv pre,.rst-content div[class^=highlight] pre,.rst-content pre.literal-block{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;font-size:12px;line-height:1.4}.rst-content div.highlight .gp,.rst-content div.highlight span.linenos{user-select:none;pointer-events:none}.rst-content div.highlight span.linenos{display:inline-block;padding-left:0;padding-right:12px;margin-right:12px;border-right:1px solid #e6e9ea}.rst-content .code-block-caption{font-style:italic;font-size:85%;line-height:1;padding:1em 0;text-align:center}@media print{.rst-content .codeblock,.rst-content div[class^=highlight],.rst-content div[class^=highlight] pre{white-space:pre-wrap}}.rst-content .admonition,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning{clear:both}.rst-content .admonition-todo .last,.rst-content .admonition-todo>:last-child,.rst-content .admonition .last,.rst-content .admonition>:last-child,.rst-content .attention .last,.rst-content .attention>:last-child,.rst-content .caution .last,.rst-content .caution>:last-child,.rst-content .danger .last,.rst-content .danger>:last-child,.rst-content .error .last,.rst-content .error>:last-child,.rst-content .hint .last,.rst-content .hint>:last-child,.rst-content .important .last,.rst-content .important>:last-child,.rst-content .note .last,.rst-content .note>:last-child,.rst-content .seealso .last,.rst-content .seealso>:last-child,.rst-content .tip .last,.rst-content .tip>:last-child,.rst-content .warning .last,.rst-content .warning>:last-child{margin-bottom:0}.rst-content .admonition-title:before{margin-right:4px}.rst-content .admonition table{border-color:rgba(0,0,0,.1)}.rst-content .admonition table td,.rst-content .admonition table th{background:transparent!important;border-color:rgba(0,0,0,.1)!important}.rst-content .section ol.loweralpha,.rst-content .section ol.loweralpha>li,.rst-content .toctree-wrapper ol.loweralpha,.rst-content .toctree-wrapper ol.loweralpha>li,.rst-content section ol.loweralpha,.rst-content section ol.loweralpha>li{list-style:lower-alpha}.rst-content .section ol.upperalpha,.rst-content .section ol.upperalpha>li,.rst-content .toctree-wrapper ol.upperalpha,.rst-content .toctree-wrapper ol.upperalpha>li,.rst-content section ol.upperalpha,.rst-content section ol.upperalpha>li{list-style:upper-alpha}.rst-content .section ol li>*,.rst-content .section ul li>*,.rst-content .toctree-wrapper ol li>*,.rst-content .toctree-wrapper ul li>*,.rst-content section ol li>*,.rst-content section ul li>*{margin-top:12px;margin-bottom:12px}.rst-content .section ol li>:first-child,.rst-content .section ul li>:first-child,.rst-content .toctree-wrapper ol li>:first-child,.rst-content .toctree-wrapper ul li>:first-child,.rst-content section ol li>:first-child,.rst-content section ul li>:first-child{margin-top:0}.rst-content .section ol li>p,.rst-content .section ol li>p:last-child,.rst-content .section ul li>p,.rst-content .section ul li>p:last-child,.rst-content .toctree-wrapper ol li>p,.rst-content .toctree-wrapper ol li>p:last-child,.rst-content .toctree-wrapper ul li>p,.rst-content .toctree-wrapper ul li>p:last-child,.rst-content section ol li>p,.rst-content section ol li>p:last-child,.rst-content section ul li>p,.rst-content section ul li>p:last-child{margin-bottom:12px}.rst-content .section ol li>p:only-child,.rst-content .section ol li>p:only-child:last-child,.rst-content .section ul li>p:only-child,.rst-content .section ul li>p:only-child:last-child,.rst-content .toctree-wrapper ol li>p:only-child,.rst-content .toctree-wrapper ol li>p:only-child:last-child,.rst-content .toctree-wrapper ul li>p:only-child,.rst-content .toctree-wrapper ul li>p:only-child:last-child,.rst-content section ol li>p:only-child,.rst-content section ol li>p:only-child:last-child,.rst-content section ul li>p:only-child,.rst-content section ul li>p:only-child:last-child{margin-bottom:0}.rst-content .section ol li>ol,.rst-content .section ol li>ul,.rst-content .section ul li>ol,.rst-content .section ul li>ul,.rst-content .toctree-wrapper ol li>ol,.rst-content .toctree-wrapper ol li>ul,.rst-content .toctree-wrapper ul li>ol,.rst-content .toctree-wrapper ul li>ul,.rst-content section ol li>ol,.rst-content section ol li>ul,.rst-content section ul li>ol,.rst-content section ul li>ul{margin-bottom:12px}.rst-content .section ol.simple li>*,.rst-content .section ol.simple li ol,.rst-content .section ol.simple li ul,.rst-content .section ul.simple li>*,.rst-content .section ul.simple li ol,.rst-content .section ul.simple li ul,.rst-content .toctree-wrapper ol.simple li>*,.rst-content .toctree-wrapper ol.simple li ol,.rst-content .toctree-wrapper ol.simple li ul,.rst-content .toctree-wrapper ul.simple li>*,.rst-content .toctree-wrapper ul.simple li ol,.rst-content .toctree-wrapper ul.simple li ul,.rst-content section ol.simple li>*,.rst-content section ol.simple li ol,.rst-content section ol.simple li ul,.rst-content section ul.simple li>*,.rst-content section ul.simple li ol,.rst-content section ul.simple li ul{margin-top:0;margin-bottom:0}.rst-content .line-block{margin-left:0;margin-bottom:24px;line-height:24px}.rst-content .line-block .line-block{margin-left:24px;margin-bottom:0}.rst-content .topic-title{font-weight:700;margin-bottom:12px}.rst-content .toc-backref{color:#404040}.rst-content .align-right{float:right;margin:0 0 24px 24px}.rst-content .align-left{float:left;margin:0 24px 24px 0}.rst-content .align-center{margin:auto}.rst-content .align-center:not(table){display:block}.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content .toctree-wrapper>p.caption .headerlink,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink{opacity:0;font-size:14px;font-family:FontAwesome;margin-left:.5em}.rst-content .code-block-caption .headerlink:focus,.rst-content .code-block-caption:hover .headerlink,.rst-content .eqno .headerlink:focus,.rst-content .eqno:hover .headerlink,.rst-content .toctree-wrapper>p.caption .headerlink:focus,.rst-content .toctree-wrapper>p.caption:hover .headerlink,.rst-content dl dt .headerlink:focus,.rst-content dl dt:hover .headerlink,.rst-content h1 .headerlink:focus,.rst-content h1:hover .headerlink,.rst-content h2 .headerlink:focus,.rst-content h2:hover .headerlink,.rst-content h3 .headerlink:focus,.rst-content h3:hover .headerlink,.rst-content h4 .headerlink:focus,.rst-content h4:hover .headerlink,.rst-content h5 .headerlink:focus,.rst-content h5:hover .headerlink,.rst-content h6 .headerlink:focus,.rst-content h6:hover .headerlink,.rst-content p.caption .headerlink:focus,.rst-content p.caption:hover .headerlink,.rst-content p .headerlink:focus,.rst-content p:hover .headerlink,.rst-content table>caption .headerlink:focus,.rst-content table>caption:hover .headerlink{opacity:1}.rst-content p a{overflow-wrap:anywhere}.rst-content .wy-table td p,.rst-content .wy-table td ul,.rst-content .wy-table th p,.rst-content .wy-table th ul,.rst-content table.docutils td p,.rst-content table.docutils td ul,.rst-content table.docutils th p,.rst-content table.docutils th ul,.rst-content table.field-list td p,.rst-content table.field-list td ul,.rst-content table.field-list th p,.rst-content table.field-list th ul{font-size:inherit}.rst-content .btn:focus{outline:2px solid}.rst-content table>caption .headerlink:after{font-size:12px}.rst-content .centered{text-align:center}.rst-content .sidebar{float:right;width:40%;display:block;margin:0 0 24px 24px;padding:24px;background:#f3f6f6;border:1px solid #e1e4e5}.rst-content .sidebar dl,.rst-content .sidebar p,.rst-content .sidebar ul{font-size:90%}.rst-content .sidebar .last,.rst-content .sidebar>:last-child{margin-bottom:0}.rst-content .sidebar .sidebar-title{display:block;font-family:Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif;font-weight:700;background:#e1e4e5;padding:6px 12px;margin:-24px -24px 24px;font-size:100%}.rst-content .highlighted{background:#f1c40f;box-shadow:0 0 0 2px #f1c40f;display:inline;font-weight:700}.rst-content .citation-reference,.rst-content .footnote-reference{vertical-align:baseline;position:relative;top:-.4em;line-height:0;font-size:90%}.rst-content .citation-reference>span.fn-bracket,.rst-content .footnote-reference>span.fn-bracket{display:none}.rst-content .hlist{width:100%}.rst-content dl dt span.classifier:before{content:\" : \"}.rst-content dl dt span.classifier-delimiter{display:none!important}html.writer-html4 .rst-content table.docutils.citation,html.writer-html4 .rst-content table.docutils.footnote{background:none;border:none}html.writer-html4 .rst-content table.docutils.citation td,html.writer-html4 .rst-content table.docutils.citation tr,html.writer-html4 .rst-content table.docutils.footnote td,html.writer-html4 .rst-content table.docutils.footnote tr{border:none;background-color:transparent!important;white-space:normal}html.writer-html4 .rst-content table.docutils.citation td.label,html.writer-html4 .rst-content table.docutils.footnote td.label{padding-left:0;padding-right:0;vertical-align:top}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.field-list,html.writer-html5 .rst-content dl.footnote{display:grid;grid-template-columns:auto minmax(80%,95%)}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dt{display:inline-grid;grid-template-columns:max-content auto}html.writer-html5 .rst-content aside.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content div.citation{display:grid;grid-template-columns:auto auto minmax(.65rem,auto) minmax(40%,95%)}html.writer-html5 .rst-content aside.citation>span.label,html.writer-html5 .rst-content aside.footnote>span.label,html.writer-html5 .rst-content div.citation>span.label{grid-column-start:1;grid-column-end:2}html.writer-html5 .rst-content aside.citation>span.backrefs,html.writer-html5 .rst-content aside.footnote>span.backrefs,html.writer-html5 .rst-content div.citation>span.backrefs{grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:3}html.writer-html5 .rst-content aside.citation>p,html.writer-html5 .rst-content aside.footnote>p,html.writer-html5 .rst-content div.citation>p{grid-column-start:4;grid-column-end:5}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.field-list,html.writer-html5 .rst-content dl.footnote{margin-bottom:24px}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dt{padding-left:1rem}html.writer-html5 .rst-content dl.citation>dd,html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dd,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dd,html.writer-html5 .rst-content dl.footnote>dt{margin-bottom:0}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.footnote{font-size:.9rem}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.footnote>dt{margin:0 .5rem .5rem 0;line-height:1.2rem;word-break:break-all;font-weight:400}html.writer-html5 .rst-content dl.citation>dt>span.brackets:before,html.writer-html5 .rst-content dl.footnote>dt>span.brackets:before{content:\"[\"}html.writer-html5 .rst-content dl.citation>dt>span.brackets:after,html.writer-html5 .rst-content dl.footnote>dt>span.brackets:after{content:\"]\"}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref{text-align:left;font-style:italic;margin-left:.65rem;word-break:break-word;word-spacing:-.1rem;max-width:5rem}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref>a,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref>a{word-break:keep-all}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref>a:not(:first-child):before,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref>a:not(:first-child):before{content:\" \"}html.writer-html5 .rst-content dl.citation>dd,html.writer-html5 .rst-content dl.footnote>dd{margin:0 0 .5rem;line-height:1.2rem}html.writer-html5 .rst-content dl.citation>dd p,html.writer-html5 .rst-content dl.footnote>dd p{font-size:.9rem}html.writer-html5 .rst-content aside.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content div.citation{padding-left:1rem;padding-right:1rem;font-size:.9rem;line-height:1.2rem}html.writer-html5 .rst-content aside.citation p,html.writer-html5 .rst-content aside.footnote p,html.writer-html5 .rst-content div.citation p{font-size:.9rem;line-height:1.2rem;margin-bottom:12px}html.writer-html5 .rst-content aside.citation span.backrefs,html.writer-html5 .rst-content aside.footnote span.backrefs,html.writer-html5 .rst-content div.citation span.backrefs{text-align:left;font-style:italic;margin-left:.65rem;word-break:break-word;word-spacing:-.1rem;max-width:5rem}html.writer-html5 .rst-content aside.citation span.backrefs>a,html.writer-html5 .rst-content aside.footnote span.backrefs>a,html.writer-html5 .rst-content div.citation span.backrefs>a{word-break:keep-all}html.writer-html5 .rst-content aside.citation span.backrefs>a:not(:first-child):before,html.writer-html5 .rst-content aside.footnote span.backrefs>a:not(:first-child):before,html.writer-html5 .rst-content div.citation span.backrefs>a:not(:first-child):before{content:\" \"}html.writer-html5 .rst-content aside.citation span.label,html.writer-html5 .rst-content aside.footnote span.label,html.writer-html5 .rst-content div.citation span.label{line-height:1.2rem}html.writer-html5 .rst-content aside.citation-list,html.writer-html5 .rst-content aside.footnote-list,html.writer-html5 .rst-content div.citation-list{margin-bottom:24px}html.writer-html5 .rst-content dl.option-list kbd{font-size:.9rem}.rst-content table.docutils.footnote,html.writer-html4 .rst-content table.docutils.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content aside.footnote-list aside.footnote,html.writer-html5 .rst-content div.citation-list>div.citation,html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.footnote{color:grey}.rst-content table.docutils.footnote code,.rst-content table.docutils.footnote tt,html.writer-html4 .rst-content table.docutils.citation code,html.writer-html4 .rst-content table.docutils.citation tt,html.writer-html5 .rst-content aside.footnote-list aside.footnote code,html.writer-html5 .rst-content aside.footnote-list aside.footnote tt,html.writer-html5 .rst-content aside.footnote code,html.writer-html5 .rst-content aside.footnote tt,html.writer-html5 .rst-content div.citation-list>div.citation code,html.writer-html5 .rst-content div.citation-list>div.citation tt,html.writer-html5 .rst-content dl.citation code,html.writer-html5 .rst-content dl.citation tt,html.writer-html5 .rst-content dl.footnote code,html.writer-html5 .rst-content dl.footnote tt{color:#555}.rst-content .wy-table-responsive.citation,.rst-content .wy-table-responsive.footnote{margin-bottom:0}.rst-content .wy-table-responsive.citation+:not(.citation),.rst-content .wy-table-responsive.footnote+:not(.footnote){margin-top:24px}.rst-content .wy-table-responsive.citation:last-child,.rst-content .wy-table-responsive.footnote:last-child{margin-bottom:24px}.rst-content table.docutils th{border-color:#e1e4e5}html.writer-html5 .rst-content table.docutils th{border:1px solid #e1e4e5}html.writer-html5 .rst-content table.docutils td>p,html.writer-html5 .rst-content table.docutils th>p{line-height:1rem;margin-bottom:0;font-size:.9rem}.rst-content table.docutils td .last,.rst-content table.docutils td .last>:last-child{margin-bottom:0}.rst-content table.field-list,.rst-content table.field-list td{border:none}.rst-content table.field-list td p{line-height:inherit}.rst-content table.field-list td>strong{display:inline-block}.rst-content table.field-list .field-name{padding-right:10px;text-align:left;white-space:nowrap}.rst-content table.field-list .field-body{text-align:left}.rst-content code,.rst-content tt{color:#000;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;padding:2px 5px}.rst-content code big,.rst-content code em,.rst-content tt big,.rst-content tt em{font-size:100%!important;line-height:normal}.rst-content code.literal,.rst-content tt.literal{color:#e74c3c;white-space:normal}.rst-content code.xref,.rst-content tt.xref,a .rst-content code,a .rst-content tt{font-weight:700;color:#404040;overflow-wrap:normal}.rst-content kbd,.rst-content pre,.rst-content samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace}.rst-content a code,.rst-content a tt{color:#2980b9}.rst-content dl{margin-bottom:24px}.rst-content dl dt{font-weight:700;margin-bottom:12px}.rst-content dl ol,.rst-content dl p,.rst-content dl table,.rst-content dl ul{margin-bottom:12px}.rst-content dl dd{margin:0 0 12px 24px;line-height:24px}.rst-content dl dd>ol:last-child,.rst-content dl dd>p:last-child,.rst-content dl dd>table:last-child,.rst-content dl dd>ul:last-child{margin-bottom:0}html.writer-html4 .rst-content dl:not(.docutils),html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple){margin-bottom:24px}html.writer-html4 .rst-content dl:not(.docutils)>dt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt{display:table;margin:6px 0;font-size:90%;line-height:normal;background:#e7f2fa;color:#2980b9;border-top:3px solid #6ab0de;padding:6px;position:relative}html.writer-html4 .rst-content dl:not(.docutils)>dt:before,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt:before{color:#6ab0de}html.writer-html4 .rst-content dl:not(.docutils)>dt .headerlink,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink{color:#404040;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt{margin-bottom:6px;border:none;border-left:3px solid #ccc;background:#f0f0f0;color:#555}html.writer-html4 .rst-content dl:not(.docutils) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink{color:#404040;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils)>dt:first-child,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt:first-child{margin-top:0}html.writer-html4 .rst-content dl:not(.docutils) code.descclassname,html.writer-html4 .rst-content dl:not(.docutils) code.descname,html.writer-html4 .rst-content dl:not(.docutils) tt.descclassname,html.writer-html4 .rst-content dl:not(.docutils) tt.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descname{background-color:transparent;border:none;padding:0;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils) code.descname,html.writer-html4 .rst-content dl:not(.docutils) tt.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descname{font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) .optional,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .optional{display:inline-block;padding:0 4px;color:#000;font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) .property,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .property{display:inline-block;padding-right:8px;max-width:100%}html.writer-html4 .rst-content dl:not(.docutils) .k,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .k{font-style:italic}html.writer-html4 .rst-content dl:not(.docutils) .descclassname,html.writer-html4 .rst-content dl:not(.docutils) .descname,html.writer-html4 .rst-content dl:not(.docutils) .sig-name,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-name{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#000}.rst-content .viewcode-back,.rst-content .viewcode-link{display:inline-block;color:#27ae60;font-size:80%;padding-left:24px}.rst-content .viewcode-back{display:block;float:right}.rst-content p.rubric{margin-bottom:12px;font-weight:700}.rst-content code.download,.rst-content tt.download{background:inherit;padding:inherit;font-weight:400;font-family:inherit;font-size:inherit;color:inherit;border:inherit;white-space:inherit}.rst-content code.download span:first-child,.rst-content tt.download span:first-child{-webkit-font-smoothing:subpixel-antialiased}.rst-content code.download span:first-child:before,.rst-content tt.download span:first-child:before{margin-right:4px}.rst-content .guilabel{border:1px solid #7fbbe3;background:#e7f2fa;font-size:80%;font-weight:700;border-radius:4px;padding:2.4px 6px;margin:auto 2px}.rst-content :not(dl.option-list)>:not(dt):not(kbd):not(.kbd)>.kbd,.rst-content :not(dl.option-list)>:not(dt):not(kbd):not(.kbd)>kbd{color:inherit;font-size:80%;background-color:#fff;border:1px solid #a6a6a6;border-radius:4px;box-shadow:0 2px grey;padding:2.4px 6px;margin:auto 0}.rst-content .versionmodified{font-style:italic}@media screen and (max-width:480px){.rst-content .sidebar{width:100%}}span[id*=MathJax-Span]{color:#404040}.math{text-align:center}@font-face{font-family:Lato;src:url(fonts/lato-normal.woff2?bd03a2cc277bbbc338d464e679fe9942) format(\"woff2\"),url(fonts/lato-normal.woff?27bd77b9162d388cb8d4c4217c7c5e2a) format(\"woff\");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-bold.woff2?cccb897485813c7c256901dbca54ecf2) format(\"woff2\"),url(fonts/lato-bold.woff?d878b6c29b10beca227e9eef4246111b) format(\"woff\");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-bold-italic.woff2?0b6bb6725576b072c5d0b02ecdd1900d) format(\"woff2\"),url(fonts/lato-bold-italic.woff?9c7e4e9eb485b4a121c760e61bc3707c) format(\"woff\");font-weight:700;font-style:italic;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-normal-italic.woff2?4eb103b4d12be57cb1d040ed5e162e9d) format(\"woff2\"),url(fonts/lato-normal-italic.woff?f28f2d6482446544ef1ea1ccc6dd5892) format(\"woff\");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:Roboto Slab;font-style:normal;font-weight:400;src:url(fonts/Roboto-Slab-Regular.woff2?7abf5b8d04d26a2cafea937019bca958) format(\"woff2\"),url(fonts/Roboto-Slab-Regular.woff?c1be9284088d487c5e3ff0a10a92e58c) format(\"woff\");font-display:block}@font-face{font-family:Roboto Slab;font-style:normal;font-weight:700;src:url(fonts/Roboto-Slab-Bold.woff2?9984f4a9bda09be08e83f2506954adbe) format(\"woff2\"),url(fonts/Roboto-Slab-Bold.woff?bed5564a116b05148e3b3bea6fb1162a) format(\"woff\");font-display:block}\n"
  },
  {
    "path": "docs/css/theme_extra.css",
    "content": "/*\n * Wrap inline code samples otherwise they shoot of the side and\n * can't be read at all.\n *\n * https://github.com/mkdocs/mkdocs/issues/313\n * https://github.com/mkdocs/mkdocs/issues/233\n * https://github.com/mkdocs/mkdocs/issues/834\n */\n.rst-content code {\n    white-space: pre-wrap;\n    word-wrap: break-word;\n    padding: 2px 5px;\n}\n\n/**\n * Make code blocks display as blocks and give them the appropriate\n * font size and padding.\n *\n * https://github.com/mkdocs/mkdocs/issues/855\n * https://github.com/mkdocs/mkdocs/issues/834\n * https://github.com/mkdocs/mkdocs/issues/233\n */\n.rst-content pre code {\n    white-space: pre;\n    word-wrap: normal;\n    display: block;\n    padding: 12px;\n    font-size: 12px;\n}\n\n/**\n * Fix code colors\n *\n * https://github.com/mkdocs/mkdocs/issues/2027\n */\n.rst-content code {\n    color: #E74C3C;\n}\n\n.rst-content pre code {\n    color: #000;\n    background: #f8f8f8;\n}\n\n/*\n * Fix link colors when the link text is inline code.\n *\n * https://github.com/mkdocs/mkdocs/issues/718\n */\na code {\n    color: #2980B9;\n}\na:hover code {\n    color: #3091d1;\n}\na:visited code {\n    color: #9B59B6;\n}\n\n/*\n * The CSS classes from highlight.js seem to clash with the\n * ReadTheDocs theme causing some code to be incorrectly made\n * bold and italic.\n *\n * https://github.com/mkdocs/mkdocs/issues/411\n */\npre .cs, pre .c {\n    font-weight: inherit;\n    font-style: inherit;\n}\n\n/*\n * Fix some issues with the theme and non-highlighted code\n * samples. Without and highlighting styles attached the\n * formatting is broken.\n *\n * https://github.com/mkdocs/mkdocs/issues/319\n */\n.rst-content .no-highlight {\n    display: block;\n    padding: 0.5em;\n    color: #333;\n}\n\n\n/*\n * Additions specific to the search functionality provided by MkDocs\n */\n\n.search-results {\n    margin-top: 23px;\n}\n\n.search-results article {\n    border-top: 1px solid #E1E4E5;\n    padding-top: 24px;\n}\n\n.search-results article:first-child {\n    border-top: none;\n}\n\nform .search-query {\n    width: 100%;\n    border-radius: 50px;\n    padding: 6px 12px;\n    border-color: #D1D4D5;\n}\n\n/*\n * Improve inline code blocks within admonitions.\n *\n * https://github.com/mkdocs/mkdocs/issues/656\n */\n .rst-content .admonition code {\n    color: #404040;\n    border: 1px solid #c7c9cb;\n    border: 1px solid rgba(0, 0, 0, 0.2);\n    background: #f8fbfd;\n    background: rgba(255, 255, 255, 0.7);\n}\n\n/*\n * Account for wide tables which go off the side.\n * Override borders to avoid weirdness on narrow tables.\n *\n * https://github.com/mkdocs/mkdocs/issues/834\n * https://github.com/mkdocs/mkdocs/pull/1034\n */\n.rst-content .section .docutils {\n    width: 100%;\n    overflow: auto;\n    display: block;\n    border: none;\n}\n\ntd, th {\n    border: 1px solid #e1e4e5 !important;\n    border-collapse: collapse;\n}\n\n/*\n * Without the following amendments, the navigation in the theme will be\n * slightly cut off. This is due to the fact that the .wy-nav-side has a\n * padding-bottom of 2em, which must not necessarily align with the font-size of\n * 90 % on the .rst-current-version container, combined with the padding of 12px\n * above and below. These amendments fix this in two steps: First, make sure the\n * .rst-current-version container has a fixed height of 40px, achieved using\n * line-height, and then applying a padding-bottom of 40px to this container. In\n * a second step, the items within that container are re-aligned using flexbox.\n *\n * https://github.com/mkdocs/mkdocs/issues/2012\n */\n .wy-nav-side {\n    padding-bottom: 40px;\n}\n\n/* For section-index only */\n.wy-menu-vertical .current-section p {\n    background-color: #e3e3e3;\n    color: #404040;\n}\n\n/*\n * The second step of above amendment: Here we make sure the items are aligned\n * correctly within the .rst-current-version container. Using flexbox, we\n * achieve it in such a way that it will look like the following:\n *\n * [No repo_name]\n *         Next >>                    // On the first page\n * << Previous     Next >>            // On all subsequent pages\n *\n * [With repo_name]\n *    <repo_name>        Next >>      // On the first page\n * <repo_name>  << Previous  Next >>  // On all subsequent pages\n *\n * https://github.com/mkdocs/mkdocs/issues/2012\n */\n.rst-versions .rst-current-version {\n    padding: 0 12px;\n    display: flex;\n    font-size: initial;\n    justify-content: space-between;\n    align-items: center;\n    line-height: 40px;\n}\n\n/*\n * Please note that this amendment also involves removing certain inline-styles\n * from the file ./mkdocs/themes/readthedocs/versions.html.\n *\n * https://github.com/mkdocs/mkdocs/issues/2012\n */\n.rst-current-version span {\n    flex: 1;\n    text-align: center;\n}\n"
  },
  {
    "path": "docs/customization/index.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /><link rel=\"canonical\" href=\"https://neutronx.github.io/django-markdownx/customization/\" />\n      <link rel=\"shortcut icon\" href=\"../img/favicon.ico\" />\n    <title>Customization - Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"../css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"../css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n      <script>\n        // Current page data\n        var mkdocs_page_name = \"Customization\";\n        var mkdocs_page_input_path = \"customization.md\";\n        var mkdocs_page_url = \"/django-markdownx/customization/\";\n      </script>\n    \n    <!--[if lt IE 9]>\n      <script src=\"../js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\"..\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"../search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"..\">Django MarkdownX</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../installation/\">Installation</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../getting_started/\">Getting Started</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../example/\">Example</a>\n                </li>\n              </ul>\n              <ul class=\"current\">\n                <li class=\"toctree-l1 current\"><a class=\"reference internal current\" href=\"#\">Customization</a>\n    <ul class=\"current\">\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#general-ex-settings\">General (ex. settings)</a>\n        <ul>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#widget\">Widget</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#fields\">Fields</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#image-tags\">Image tags</a>\n    </li>\n        </ul>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#settings\">Settings</a>\n        <ul>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_markdownify_function\">MARKDOWNX_MARKDOWNIFY_FUNCTION</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_markdown_extensions\">MARKDOWNX_MARKDOWN_EXTENSIONS</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_markdown_extension_configs\">MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_urls_path\">MARKDOWNX_URLS_PATH</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_upload_urls_path\">MARKDOWNX_UPLOAD_URLS_PATH</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_media_path\">MARKDOWNX_MEDIA_PATH</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_upload_max_size\">MARKDOWNX_UPLOAD_MAX_SIZE</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_upload_content_types\">MARKDOWNX_UPLOAD_CONTENT_TYPES</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_skip_resize\">MARKDOWNX_SKIP_RESIZE</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_image_max_size\">MARKDOWNX_IMAGE_MAX_SIZE</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_svg_javascript_protection\">MARKDOWNX_SVG_JAVASCRIPT_PROTECTION</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_editor_resizable\">MARKDOWNX_EDITOR_RESIZABLE</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownx_server_call_latency\">MARKDOWNX_SERVER_CALL_LATENCY</a>\n    </li>\n        </ul>\n    </li>\n    </ul>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../javascript/\">JavaScript</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../translations/\">Translations</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../contributions/\">Contributions</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../license/\">License</a>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\"..\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\"..\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n      <li class=\"breadcrumb-item active\">Customization</li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n                <h1 id=\"customization\">Customization<a class=\"headerlink\" href=\"#customization\" title=\"Permanent link\">&para;</a></h1>\n<h2 id=\"general-ex-settings\">General (ex. settings)<a class=\"headerlink\" href=\"#general-ex-settings\" title=\"Permanent link\">&para;</a></h2>\n<h3 id=\"widget\">Widget<a class=\"headerlink\" href=\"#widget\" title=\"Permanent link\">&para;</a></h3>\n<p>The default widget is as seen <a href=\"https://github.com/neutronX/django-markdownx/blob/master/markdownx/templates/markdownx/widget.html\">here</a>.</p>\n<p>If you would like to customise this; for instance, using <a href=\"https://getbootstrap.com\">Bootstrap v3</a> to implement side-by-side panes (as seen in :doc:<code>preview animation&lt;index&gt;</code>), you should override the default widget’s template by creating your own template and saving it under <code>markdownx/widget.html</code> in your project's <code>TEMPLATE_DIRS</code>.</p>\n<p>Here is an example of the contents:</p>\n<pre class=\"highlight\"><code class=\"language-html\">&lt;div class=\"markdownx row\"&gt;\n    &lt;div class=\"col-md-6\"&gt;\n        {% include 'django/forms/widgets/textarea.html' %}\n    &lt;/div&gt;\n    &lt;div class=\"col-md-6\"&gt;\n        &lt;div class=\"markdownx-preview\"&gt;&lt;/div&gt;\n    &lt;/div&gt;\n&lt;/div&gt;</code></pre>\n<h3 id=\"fields\">Fields<a class=\"headerlink\" href=\"#fields\" title=\"Permanent link\">&para;</a></h3>\n<p>We have ensured that MarkdownX is fully extensible and provides a high degree of flexibility in development.</p>\n<p>There are times that you may wish to Markdownify a different type of field, or utilize your own customized widget. To accommodate this, we have provided the tools to apply MarkdownX infrastructure to other fields through <em>Widgets</em>.</p>\n<p>For instance, to apply MarkdownX to <code>TextField</code> instances in your Django Admins, you can override the default widget in the Admins module in <code>admin.py</code> of your Django App as follows:</p>\n<pre class=\"highlight\"><code class=\"language-python\">from django.db import models\nfrom django.contrib import admin\n\nfrom markdownx.widgets import AdminMarkdownxWidget\n\nfrom .models import MyModel\n\n\nclass MyModelAdmin(admin.ModelAdmin):\n    formfield_overrides = {\n        models.TextField: {'widget': AdminMarkdownxWidget},\n    }\n\n\nadmin.site.register(MyModel, MyModelAdmin)</code></pre>\n<h3 id=\"image-tags\">Image tags<a class=\"headerlink\" href=\"#image-tags\" title=\"Permanent link\">&para;</a></h3>\n<p>Markdown uses <code>![]()</code> tag by default to insert uploaded image file. This generates a simple (X)HTML <code>&lt;image&gt;</code> tag. If you wish to have more control and use your own HTML tags, you may create a custom <code>form_valid()</code> function in\n<code>ImageUploadView</code> class, as highlighted <a href=\"https://github.com/neutronX/django-markdownx/blob/master/markdownx/views.py#L55-L82\">here</a>.</p>\n<hr />\n<h2 id=\"settings\">Settings<a class=\"headerlink\" href=\"#settings\" title=\"Permanent link\">&para;</a></h2>\n<p>You may place any of the variables outlined in this page in your <code>settings.py</code>, alter their values and override default behaviours:</p>\n<ul>\n<li><a href=\"#markdownx_markdownify_function\"><code>MARKDOWNX_MARKDOWNIFY_FUNCTION</code></a></li>\n<li><a href=\"#markdownx_markdown_extensions\"><code>MARKDOWNX_MARKDOWN_EXTENSIONS</code></a></li>\n<li><a href=\"#markdownx_markdown_extension_configs\"><code>MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS</code></a></li>\n<li><a href=\"#markdownx_urls_path\"><code>MARKDOWNX_URLS_PATH</code></a></li>\n<li><a href=\"#markdownx_upload_urls_path\"><code>MARKDOWNX_UPLOAD_URLS_PATH</code></a></li>\n<li><a href=\"#markdownx_media_path\"><code>MARKDOWNX_MEDIA_PATH</code></a></li>\n<li><a href=\"#markdownx_upload_max_size\"><code>MARKDOWNX_UPLOAD_MAX_SIZE</code></a></li>\n<li><a href=\"#markdownx_upload_content_types\"><code>MARKDOWNX_UPLOAD_CONTENT_TYPES</code></a></li>\n<li><a href=\"#markdownx_skip_resize\"><code>MARKDOWNX_SKIP_RESIZE</code></a></li>\n<li><a href=\"#markdownx_image_max_size\"><code>MARKDOWNX_IMAGE_MAX_SIZE</code></a></li>\n<li><a href=\"#markdownx_svg_javascript_protection\"><code>MARKDOWNX_SVG_JAVASCRIPT_PROTECTION</code></a></li>\n<li><a href=\"#markdownx_editor_resizable\"><code>MARKDOWNX_EDITOR_RESIZABLE</code></a></li>\n<li><a href=\"#markdownx_server_call_latency\"><code>MARKDOWNX_SERVER_CALL_LATENCY</code></a></li>\n</ul>\n<div class=\"admonition attention\">\n<p class=\"admonition-title\">Attention</p>\n<p>The focus of this section is on the customisation of features controlled in the <strong>backend</strong>. Additional customisations, or to be rather more accurate, <strong>event controls</strong> are enabled in the frontend through JavaScript events. To learn more about these events, see our <a href=\"../javascript/#events\">JavaScript documentation on events</a>.</p>\n</div>\n<hr />\n<h3 id=\"markdownx_markdownify_function\"><code>MARKDOWNX_MARKDOWNIFY_FUNCTION</code><a class=\"headerlink\" href=\"#markdownx_markdownify_function\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>'markdownx.utils.markdownify'</code></p>\n<p>Markdown to HTML function. Takes an argument of type <code>str()</code> and returns the HTML encoded output as <code>str()</code>.</p>\n<p>Default function that compiles markdown using defined extensions. Using custom function can allow you to pre-process or post-process markdown text. See below for more info.</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_MARKDOWNIFY_FUNCTION = 'markdownx.utils.markdownify'</code></pre>\n<p>This function uses the <a href=\"https://python-markdown.github.io/\">Markdown package</a> for trans-compilation.</p>\n<div class=\"admonition note\">\n<p class=\"admonition-title\">Note</p>\n<p>The function name must be entered as string, and the relevant package must be installed and accessible to the current interpreter such that it can later be imported as and when needed. So <code>markdownx.utils.markdownify</code> essentially means <code>from markdownx.utils import markdownify</code>.</p>\n</div>\n<div class=\"admonition hint\">\n<p class=\"admonition-title\">Hint</p>\n<p>The default function (<code>markdownx.utils.markdownify</code>) that handles the trans-compilation of Markdown to HTML looks like this:</p>\n<pre class=\"highlight\"><code class=\"language-python\">from markdown import markdown\n\nfrom .settings import (\n    MARKDOWNX_MARKDOWN_EXTENSIONS,\n    MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS\n)\n\ndef markdownify(content):\n    md = markdown(\n        text=content,\n        extensions=MARKDOWNX_MARKDOWN_EXTENSIONS,\n        extension_configs=MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS\n    )\n    return md</code></pre>\n</div>\n<h3 id=\"markdownx_markdown_extensions\"><code>MARKDOWNX_MARKDOWN_EXTENSIONS</code><a class=\"headerlink\" href=\"#markdownx_markdown_extensions\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: empty <code>list()</code></p>\n<p>List of <code>str()</code>. List of Markdown extensions that you would like to use. See <a href=\"https://python-markdown.github.io/extensions/#officially-supported-extensions\">available extensions</a> in Markdown docs. For instance, the extension <a href=\"https://python-markdown.github.io/extensions/extra/\">extra</a> enables features such as abbreviations, footnotes, tables and so on.</p>\n<p>We recommend you read the documentation for the <a href=\"https://python-markdown.github.io/\">Markdown package</a>, our default Markdown trans-compiler.</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_MARKDOWN_EXTENSIONS = [\n    'markdown.extensions.extra'\n]</code></pre>\n<h3 id=\"markdownx_markdown_extension_configs\"><code>MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS</code><a class=\"headerlink\" href=\"#markdownx_markdown_extension_configs\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: empty <code>dict()</code></p>\n<p>Configuration object for used markdown extensions. See <code>extension_configs</code> in <a href=\"https://python-markdown.github.io/reference/#extension_configs\">Markdown docs</a>. Here is a general idea:</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS = {\n    'extension_name_1': {\n        'option_1': 'value_1'\n    }\n}</code></pre>\n<h3 id=\"markdownx_urls_path\"><code>MARKDOWNX_URLS_PATH</code><a class=\"headerlink\" href=\"#markdownx_urls_path\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>'/markdownx/markdownify/'</code></p>\n<p>Relative URL to which the Markdown text is sent to be encoded as HTML.</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_URLS_PATH = '/markdownx/markdownify/'</code></pre>\n<h3 id=\"markdownx_upload_urls_path\"><code>MARKDOWNX_UPLOAD_URLS_PATH</code><a class=\"headerlink\" href=\"#markdownx_upload_urls_path\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>'/markdownx/upload/'</code></p>\n<p>URL that accepts file uploads (images) through an AJAX <code>POST</code> request. The request response will contain markdown formatted markup containing the relative URL for the image.</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_UPLOAD_URLS_PATH = '/markdownx/upload/'</code></pre>\n<h3 id=\"markdownx_media_path\"><code>MARKDOWNX_MEDIA_PATH</code><a class=\"headerlink\" href=\"#markdownx_media_path\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>'markdownx/'</code></p>\n<p>The path where the images will be stored in your <code>MEDIA_ROOT</code> directory.</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_MEDIA_PATH = 'markdownx/'</code></pre>\n<div class=\"admonition tip\">\n<p class=\"admonition-title\">Tip</p>\n<p><strong>Recommended</strong>: Storing all uploaded images in a single directory would over time results in a lot files being stored in one location. This would slow down the process of saving and loading files substantially, and can in turn lead to your website becoming very slow when it comes to loading images. To address this issue, it is better to save the uploads in different directories. Here is an example of how this can be achieved:</p>\n<pre class=\"highlight\"><code class=\"language-python\">from datetime import datetime\n\nMARKDOWNX_MEDIA_PATH = datetime.now().strftime('markdownx/%Y/%m/%d')</code></pre>\n<p>This ensures that uploaded files are stored in a different directory on the basis of the date on which they are uploaded. So for instance; an image uploaded on the 15th of April 2017 will be stored under <code>media/markdownx/2017/4/15/unique_name.png</code>.</p>\n</div>\n<h3 id=\"markdownx_upload_max_size\"><code>MARKDOWNX_UPLOAD_MAX_SIZE</code><a class=\"headerlink\" href=\"#markdownx_upload_max_size\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>50 * 1024 * 1024</code> bytes</p>\n<p>Maximum image size allowed in bytes: Default is 50MB, which is equal to 52,428,800 bytes.</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_UPLOAD_MAX_SIZE = 50 * 1024 * 1024</code></pre>\n<div class=\"admonition tip\">\n<p class=\"admonition-title\">Tip</p>\n<p>It is considered a good practice to display large numbers in a meaningful way. For instance, 52,438,800 bytes is better displayed in code as <code>= 50 * 1024 * 1024  # 50 MB in bytes</code> instead (the comment is also important). Fellow programmers will thank you for this in the future!</p>\n</div>\n<h3 id=\"markdownx_upload_content_types\"><code>MARKDOWNX_UPLOAD_CONTENT_TYPES</code><a class=\"headerlink\" href=\"#markdownx_upload_content_types\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml']</code></p>\n<p>Image formats that the user is permitted to upload. Enable / disable support for different image formats.</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_UPLOAD_CONTENT_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml']</code></pre>\n<h3 id=\"markdownx_skip_resize\"><code>MARKDOWNX_SKIP_RESIZE</code><a class=\"headerlink\" href=\"#markdownx_skip_resize\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>['image/svg+xml', 'image/gif']</code></p>\n<p>Image formats that should not be resized automatically. The default value honors that resizing an SVG does not make sense and that PIL does not support GIF animation.</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_SKIP_RESIZE = ['image/svg+xml', 'image/gif']</code></pre>\n<h3 id=\"markdownx_image_max_size\"><code>MARKDOWNX_IMAGE_MAX_SIZE</code><a class=\"headerlink\" href=\"#markdownx_image_max_size\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>{ 'size': (500, 500), 'quality': 90 }</code></p>\n<p>Different options describing final image processing; e.g. dimension and quality.</p>\n<div class=\"admonition note\">\n<p class=\"admonition-title\">Note</p>\n<p>Quality restrictions do not apply to <code>image/svg+xml</code> formatted graphics.</p>\n</div>\n<p>Options are:</p>\n<table>\n<thead>\n<tr>\n<th>Option</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>size</td>\n<td><code>(width,height)</code></td>\n<td>when one of the dimensions is set to zero, e.g. <code>(500, 0)</code>,  the height is calculated automatically so as to keep the dimensions intact.</td>\n</tr>\n<tr>\n<td>quality</td>\n<td><code>int</code></td>\n<td>image quality from <code>0</code> (full compression) to <code>100</code> (no compression). Default: <code>90</code></td>\n</tr>\n<tr>\n<td>crop</td>\n<td><code>Boolean</code></td>\n<td>if <code>True</code>, the <code>size</code> is used to crop the image. Default: <code>False</code></td>\n</tr>\n<tr>\n<td>upscale</td>\n<td><code>Boolean</code></td>\n<td>if image dimensions are smaller than those defined in <code>size</code>, upscale to <code>size</code> dimensions. Default: <code>False</code></td>\n</tr>\n</tbody>\n</table>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_IMAGE_MAX_SIZE = {\n    'size': (500, 500),\n    'quality': 90\n}</code></pre>\n<h3 id=\"markdownx_svg_javascript_protection\"><code>MARKDOWNX_SVG_JAVASCRIPT_PROTECTION</code><a class=\"headerlink\" href=\"#markdownx_svg_javascript_protection\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>True</code></p>\n<p>SVG graphics are in essence XML files formatted in a specific way; which means that they can contain JavaScript codes. This introduces a potential front-end security vulnerability for prospective users who will see the SVG image in context; e.g. it may be employed to collect the user's IP address or other personal information.</p>\n<div class=\"admonition note\">\n<p class=\"admonition-title\">Note</p>\n<p>This type of attack is known as <a href=\"https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)\">XSS (Cross-site Scripting) attack</a>. See this <a href=\"https://www.owasp.org/images/0/03/Mario_Heiderich_OWASP_Sweden_The_image_that_called_me.pdf\">presentation</a> by Mario Heiderich to learn more on SVG XSS attacks. There are a number of ways to deal with this vulnerability.</p>\n<p>Django is great at security, and provides very good protection against XSS attacks (see the Django <a href=\"https://docs.djangoproject.com/en/dev/topics/security/#cross-site-scripting-xss-protection\">documentation</a> for additional information) providing the <a href=\"https://docs.djangoproject.com/en/dev/ref/middleware/#module-django.middleware.csrf\">CSRF protection middleware</a> is enabled. When it comes to AJAX requests, however, CSRF protection may sometimes be disabled for various reasons.</p>\n</div>\n<p>As a last resort, however, we have included an <em>optional</em> integrity check against JavaScript tags for SVG formatted files just in case everything else is disabled. This protection is enabled by default, and may be disabled by setting the value to <code>False</code> if so is desired.</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_SVG_JAVASCRIPT_PROTECTION = True</code></pre>\n<div class=\"admonition important\">\n<p class=\"admonition-title\">Important</p>\n<p>MarkdownX does <em>not</em> disable CSRF protection by default, and requires the token for all AJAX request.</p>\n</div>\n<h3 id=\"markdownx_editor_resizable\"><code>MARKDOWNX_EDITOR_RESIZABLE</code><a class=\"headerlink\" href=\"#markdownx_editor_resizable\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>True</code></p>\n<p>Change the editor's height to match the height of the inner contents whilst typing.</p>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_EDITOR_RESIZABLE = True</code></pre>\n<h3 id=\"markdownx_server_call_latency\"><code>MARKDOWNX_SERVER_CALL_LATENCY</code><a class=\"headerlink\" href=\"#markdownx_server_call_latency\" title=\"Permanent link\">&para;</a></h3>\n<p>Default: <code>500</code> miliseconds</p>\n<p>Latency (minimum lag) between server calls as <code>int</code>. Minimum allowed: 500 milliseconds.</p>\n<div class=\"admonition note\">\n<p class=\"admonition-title\">Note</p>\n<p>When the value of a MarkdownX editor is changed, a call is made to the server to trans-compile Markdown into HTML. However, a minimum latency of <strong>500 milliseconds</strong> has been imposed between the calls. This is to prevent the bombardment of the server with a huge number of HTTP requests (you don't want to DDoS your own server). This latency maintains a balance between responsiveness and protection, and is well-suited for medium traffic. Nonetheless, if your website enjoys a particularly high traffic, you may wish to alter this value slightly depending on the number of CPUs, the amount memory, and how much you are willing to compromise on responsiveness.</p>\n</div>\n<pre class=\"highlight\"><code class=\"language-python\">MARKDOWNX_SERVER_CALL_LATENCY = 500  # milliseconds</code></pre>\n<div class=\"admonition attention\">\n<p class=\"admonition-title\">Attention</p>\n<p>Any values below 500 milliseconds is silently ignored and replaced.</p>\n</div>\n              \n            </div>\n          </div><footer>\n    <div class=\"rst-footer-buttons\" role=\"navigation\" aria-label=\"Footer Navigation\">\n        <a href=\"../example/\" class=\"btn btn-neutral float-left\" title=\"Example\"><span class=\"icon icon-circle-arrow-left\"></span> Previous</a>\n        <a href=\"../javascript/\" class=\"btn btn-neutral float-right\" title=\"JavaScript\">Next <span class=\"icon icon-circle-arrow-right\"></span></a>\n    </div>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n      <span><a href=\"../example/\" style=\"color: #fcfcfc\">&laquo; Previous</a></span>\n    \n    \n      <span><a href=\"../javascript/\" style=\"color: #fcfcfc\">Next &raquo;</a></span>\n    \n  </span>\n</div>\n    <script src=\"../js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \"..\";</script>\n    <script src=\"../js/theme_extra.js\"></script>\n    <script src=\"../js/theme.js\"></script>\n      <script src=\"../search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n"
  },
  {
    "path": "docs/example/index.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /><link rel=\"canonical\" href=\"https://neutronx.github.io/django-markdownx/example/\" />\n      <link rel=\"shortcut icon\" href=\"../img/favicon.ico\" />\n    <title>Example - Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"../css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"../css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n      <script>\n        // Current page data\n        var mkdocs_page_name = \"Example\";\n        var mkdocs_page_input_path = \"example.md\";\n        var mkdocs_page_url = \"/django-markdownx/example/\";\n      </script>\n    \n    <!--[if lt IE 9]>\n      <script src=\"../js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\"..\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"../search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"..\">Django MarkdownX</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../installation/\">Installation</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../getting_started/\">Getting Started</a>\n                </li>\n              </ul>\n              <ul class=\"current\">\n                <li class=\"toctree-l1 current\"><a class=\"reference internal current\" href=\"#\">Example</a>\n    <ul class=\"current\">\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#model\">Model</a>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#form\">Form</a>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#django-admin\">Django Admin</a>\n    </li>\n    </ul>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../customization/\">Customization</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../javascript/\">JavaScript</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../translations/\">Translations</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../contributions/\">Contributions</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../license/\">License</a>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\"..\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\"..\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n      <li class=\"breadcrumb-item active\">Example</li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n                <h1 id=\"example\">Example<a class=\"headerlink\" href=\"#example\" title=\"Permanent link\">&para;</a></h1>\n<p>Have you:</p>\n<ul>\n<li>successfully <a href=\"../installation/\">installed MarkdownX</a>?</li>\n<li>followed the instructions on how to <a href=\"../getting_started/\">get started</a>?</li>\n</ul>\n<p>If so, you are set for the next step. Here you can find comprehensive examples of how to use different MarkdownX\nfeatures to your advantage.</p>\n<h2 id=\"model\">Model<a class=\"headerlink\" href=\"#model\" title=\"Permanent link\">&para;</a></h2>\n<p>This is how you implement a MarkdownX field in your models. In your <code>app/models.py</code>:</p>\n<pre class=\"highlight\"><code class=\"language-python\">from markdownx.models import MarkdownxField\n\nclass MyModel(models.Model):\n    myfield = MarkdownxField()</code></pre>\n<p>... and then, include the form media in the relevant template using <code>{{ form.media }}</code>, like so:</p>\n<pre class=\"highlight\"><code class=\"language-html\">&lt;form method=\"POST\" action=\"\"&gt;{% csrf_token %}\n    {{ form }}\n&lt;/form&gt;\n\n{{ form.media }}</code></pre>\n<div class=\"admonition note\">\n<p class=\"admonition-title\">Note</p>\n<p>The field extends Django's own <a href=\"https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.TextField\">TextField</a> and is saved in the database accordingly.</p>\n</div>\n<h2 id=\"form\">Form<a class=\"headerlink\" href=\"#form\" title=\"Permanent link\">&para;</a></h2>\n<p>You can also implement MarkdownX through the forms. This will be done in your <code>app/forms.py</code> as follows:</p>\n<pre class=\"highlight\"><code class=\"language-python\">from markdownx.fields import MarkdownxFormField\n\nclass MyForm(forms.Form):\n    myfield = MarkdownxFormField()</code></pre>\n<p>... and then, include a form's required media in the template using <code>{{ form.media }}</code>:</p>\n<pre class=\"highlight\"><code class=\"language-html\">&lt;form method=\"POST\" action=\"\"&gt;{% csrf_token %}\n    {{ form }}\n&lt;/form&gt;\n\n{{ form.media }}</code></pre>\n<h2 id=\"django-admin\">Django Admin<a class=\"headerlink\" href=\"#django-admin\" title=\"Permanent link\">&para;</a></h2>\n<p>When using included <code>MarkdownxModel</code> class in your models, just use <code>MarkdownxModelAdmin</code> in your <code>app/admin.py</code> as follows:</p>\n<pre class=\"highlight\"><code class=\"language-python\">from django.contrib import admin\nfrom markdownx.admin import MarkdownxModelAdmin\nfrom .models import MyModel\n\nadmin.site.register(MyModel, MarkdownxModelAdmin)</code></pre>\n              \n            </div>\n          </div><footer>\n    <div class=\"rst-footer-buttons\" role=\"navigation\" aria-label=\"Footer Navigation\">\n        <a href=\"../getting_started/\" class=\"btn btn-neutral float-left\" title=\"Getting Started\"><span class=\"icon icon-circle-arrow-left\"></span> Previous</a>\n        <a href=\"../customization/\" class=\"btn btn-neutral float-right\" title=\"Customization\">Next <span class=\"icon icon-circle-arrow-right\"></span></a>\n    </div>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n      <span><a href=\"../getting_started/\" style=\"color: #fcfcfc\">&laquo; Previous</a></span>\n    \n    \n      <span><a href=\"../customization/\" style=\"color: #fcfcfc\">Next &raquo;</a></span>\n    \n  </span>\n</div>\n    <script src=\"../js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \"..\";</script>\n    <script src=\"../js/theme_extra.js\"></script>\n    <script src=\"../js/theme.js\"></script>\n      <script src=\"../search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n"
  },
  {
    "path": "docs/getting_started/index.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /><link rel=\"canonical\" href=\"https://neutronx.github.io/django-markdownx/getting_started/\" />\n      <link rel=\"shortcut icon\" href=\"../img/favicon.ico\" />\n    <title>Getting Started - Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"../css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"../css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n      <script>\n        // Current page data\n        var mkdocs_page_name = \"Getting Started\";\n        var mkdocs_page_input_path = \"getting_started.md\";\n        var mkdocs_page_url = \"/django-markdownx/getting_started/\";\n      </script>\n    \n    <!--[if lt IE 9]>\n      <script src=\"../js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\"..\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"../search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"..\">Django MarkdownX</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../installation/\">Installation</a>\n                </li>\n              </ul>\n              <ul class=\"current\">\n                <li class=\"toctree-l1 current\"><a class=\"reference internal current\" href=\"#\">Getting Started</a>\n    <ul class=\"current\">\n    </ul>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../example/\">Example</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../customization/\">Customization</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../javascript/\">JavaScript</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../translations/\">Translations</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../contributions/\">Contributions</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../license/\">License</a>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\"..\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\"..\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n      <li class=\"breadcrumb-item active\">Getting Started</li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n                <h1 id=\"getting-started\">Getting Started<a class=\"headerlink\" href=\"#getting-started\" title=\"Permanent link\">&para;</a></h1>\n<p>First and foremost, add <code>markdownx</code> to the list of <code>INSTALLED_APPS</code> in <code>settings.py</code>.</p>\n<pre class=\"highlight\"><code class=\"language-python\">INSTALLED_APPS = (\n    # [...]\n    'markdownx',\n)</code></pre>\n<p>You may alter default behaviours by adding and changing relevant variables in your settings. See <a href=\"../customization/\">customization</a> for additional information.</p>\n<p>Add MarkdownX URL patterns to your <code>urls.py</code>. You can do this using either of these methods depending on your style:</p>\n<pre class=\"highlight\"><code class=\"language-python\">urlpatterns = [\n    # [...]\n    path('markdownx/', include('markdownx.urls')),\n]</code></pre>\n<p>or alternatively:</p>\n<pre class=\"highlight\"><code class=\"language-python\">from django.conf.urls import url, include\nfrom markdownx import urls as markdownx\n\nurlpatterns += [\n    path('markdownx/', include(markdownx)),\n]</code></pre>\n<p>and, don't forget to collect MarkdownX assets to your <code>STATIC_ROOT</code>. To do this, run:\n<pre class=\"highlight\"><code class=\"language-python\">python3 manage.py collectstatic</code></pre></p>\n              \n            </div>\n          </div><footer>\n    <div class=\"rst-footer-buttons\" role=\"navigation\" aria-label=\"Footer Navigation\">\n        <a href=\"../installation/\" class=\"btn btn-neutral float-left\" title=\"Installation\"><span class=\"icon icon-circle-arrow-left\"></span> Previous</a>\n        <a href=\"../example/\" class=\"btn btn-neutral float-right\" title=\"Example\">Next <span class=\"icon icon-circle-arrow-right\"></span></a>\n    </div>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n      <span><a href=\"../installation/\" style=\"color: #fcfcfc\">&laquo; Previous</a></span>\n    \n    \n      <span><a href=\"../example/\" style=\"color: #fcfcfc\">Next &raquo;</a></span>\n    \n  </span>\n</div>\n    <script src=\"../js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \"..\";</script>\n    <script src=\"../js/theme_extra.js\"></script>\n    <script src=\"../js/theme.js\"></script>\n      <script src=\"../search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n"
  },
  {
    "path": "docs/index.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /><meta name=\"description\" content=\"None\" /><link rel=\"canonical\" href=\"https://neutronx.github.io/django-markdownx/\" />\n      <link rel=\"shortcut icon\" href=\"img/favicon.ico\" />\n    <title>Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n      <script>\n        // Current page data\n        var mkdocs_page_name = \"Django MarkdownX\";\n        var mkdocs_page_input_path = \"index.md\";\n        var mkdocs_page_url = \"/django-markdownx/\";\n      </script>\n    \n    <!--[if lt IE 9]>\n      <script src=\"js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\".\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"./search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul class=\"current\">\n                <li class=\"toctree-l1 current\"><a class=\"reference internal current\" href=\"#\">Django MarkdownX</a>\n    <ul class=\"current\">\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#key-features\">Key features</a>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#preview\">Preview</a>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#acknowledgements\">Acknowledgements</a>\n    </li>\n    </ul>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"installation/\">Installation</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"getting_started/\">Getting Started</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"example/\">Example</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"customization/\">Customization</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"javascript/\">JavaScript</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"translations/\">Translations</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"contributions/\">Contributions</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"license/\">License</a>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\".\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\".\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n      <li class=\"breadcrumb-item active\">Django MarkdownX</li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n                <h1 id=\"django-markdownx\">Django MarkdownX<a class=\"headerlink\" href=\"#django-markdownx\" title=\"Permanent link\">&para;</a></h1>\n<p>Django MarkdownX is a comprehensive <a href=\"https://en.wikipedia.org/wiki/Markdown\">Markdown</a> plugin built for <a href=\"https://www.djangoproject.com\">Django</a>, the renowned high-level Python web framework, with flexibility, extensibility, and ease-of-use at its core.</p>\n<p><strong>GitHub:</strong> <a href=\"https://github.com/neutronX/django-markdownx\">https://github.com/neutronX/django-markdownx</a><br>\n<strong>PyPi:</strong> <a href=\"https://pypi.org/project/django-markdownx/\">https://pypi.org/project/django-markdownx/</a></p>\n<h2 id=\"key-features\">Key features<a class=\"headerlink\" href=\"#key-features\" title=\"Permanent link\">&para;</a></h2>\n<ul>\n<li>Raw editing.</li>\n<li>Live preview.</li>\n<li>Drag &amp; drop image uploads (automatically stored in the designated location in the <em>Media</em> directory).</li>\n<li>Customizable image insertion tag.</li>\n<li>Definition of maximum size for an image.</li>\n<li>Definition of acceptable image formats (PNG, JPEG, SVG).</li>\n<li>Image manipulations (compression, size reduction, cropping, upscaling).</li>\n<li>Pre- and post- text modification.</li>\n<li>Easy template customization, layout modification, and personalization.</li>\n<li>Multiple editors per page.</li>\n<li>Django Admin support.</li>\n</ul>\n<h2 id=\"preview\">Preview<a class=\"headerlink\" href=\"#preview\" title=\"Permanent link\">&para;</a></h2>\n<p><img alt=\"django-markdownx preview\" src=\"https://github.com/neutronX/django-markdownx/raw/master/django-markdownx-preview.gif?raw=true\" /></p>\n<h2 id=\"acknowledgements\">Acknowledgements<a class=\"headerlink\" href=\"#acknowledgements\" title=\"Permanent link\">&para;</a></h2>\n<p>We acknowledge and appreciate every contribution made towards improving <strong>Django MarkdownX</strong>, a list of which can be\nfound on our <a href=\"https://github.com/adi-/django-markdownx/graphs/contributors\">GitHub contributors page</a>.</p>\n              \n            </div>\n          </div><footer>\n    <div class=\"rst-footer-buttons\" role=\"navigation\" aria-label=\"Footer Navigation\">\n        <a href=\"installation/\" class=\"btn btn-neutral float-right\" title=\"Installation\">Next <span class=\"icon icon-circle-arrow-right\"></span></a>\n    </div>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n    \n      <span><a href=\"installation/\" style=\"color: #fcfcfc\">Next &raquo;</a></span>\n    \n  </span>\n</div>\n    <script src=\"js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \".\";</script>\n    <script src=\"js/theme_extra.js\"></script>\n    <script src=\"js/theme.js\"></script>\n      <script src=\"search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n\n<!--\nMkDocs version : 1.6.1\nBuild Date UTC : 2025-04-25 05:38:05.723138+00:00\n-->\n"
  },
  {
    "path": "docs/installation/index.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /><link rel=\"canonical\" href=\"https://neutronx.github.io/django-markdownx/installation/\" />\n      <link rel=\"shortcut icon\" href=\"../img/favicon.ico\" />\n    <title>Installation - Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"../css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"../css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n      <script>\n        // Current page data\n        var mkdocs_page_name = \"Installation\";\n        var mkdocs_page_input_path = \"installation.md\";\n        var mkdocs_page_url = \"/django-markdownx/installation/\";\n      </script>\n    \n    <!--[if lt IE 9]>\n      <script src=\"../js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\"..\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"../search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"..\">Django MarkdownX</a>\n                </li>\n              </ul>\n              <ul class=\"current\">\n                <li class=\"toctree-l1 current\"><a class=\"reference internal current\" href=\"#\">Installation</a>\n    <ul class=\"current\">\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#using-pip\">Using PIP</a>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#from-the-source\">From the source</a>\n    </li>\n    </ul>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../getting_started/\">Getting Started</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../example/\">Example</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../customization/\">Customization</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../javascript/\">JavaScript</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../translations/\">Translations</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../contributions/\">Contributions</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../license/\">License</a>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\"..\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\"..\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n      <li class=\"breadcrumb-item active\">Installation</li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n                <h1 id=\"installation\">Installation<a class=\"headerlink\" href=\"#installation\" title=\"Permanent link\">&para;</a></h1>\n<h2 id=\"using-pip\">Using PIP<a class=\"headerlink\" href=\"#using-pip\" title=\"Permanent link\">&para;</a></h2>\n<p>Django MarkdownX may be installed directly using Python Package Index (PyPi):</p>\n<pre class=\"highlight\"><code class=\"language-bash\">pip install django-markdownx</code></pre>\n<h2 id=\"from-the-source\">From the source<a class=\"headerlink\" href=\"#from-the-source\" title=\"Permanent link\">&para;</a></h2>\n<p>Should you wish to download and install it using the source code, you can do as follows:</p>\n<div class=\"admonition note\">\n<p class=\"admonition-title\">Note</p>\n<p>Make sure you have activated your virtual environment if you’re using one.</p>\n</div>\n<p>We start off by downloading the source code from GitHub and navigate to the downloaded directory:</p>\n<pre class=\"highlight\"><code class=\"language-bash\">git clone https://github.com/neutronX/django-markdownx.git\ncd django-markdownx/</code></pre>\n<p>Install the package.</p>\n<pre class=\"highlight\"><code class=\"language-bash\">python3 setup.py install</code></pre>\n              \n            </div>\n          </div><footer>\n    <div class=\"rst-footer-buttons\" role=\"navigation\" aria-label=\"Footer Navigation\">\n        <a href=\"..\" class=\"btn btn-neutral float-left\" title=\"Django MarkdownX\"><span class=\"icon icon-circle-arrow-left\"></span> Previous</a>\n        <a href=\"../getting_started/\" class=\"btn btn-neutral float-right\" title=\"Getting Started\">Next <span class=\"icon icon-circle-arrow-right\"></span></a>\n    </div>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n      <span><a href=\"..\" style=\"color: #fcfcfc\">&laquo; Previous</a></span>\n    \n    \n      <span><a href=\"../getting_started/\" style=\"color: #fcfcfc\">Next &raquo;</a></span>\n    \n  </span>\n</div>\n    <script src=\"../js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \"..\";</script>\n    <script src=\"../js/theme_extra.js\"></script>\n    <script src=\"../js/theme.js\"></script>\n      <script src=\"../search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n"
  },
  {
    "path": "docs/javascript/index.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /><link rel=\"canonical\" href=\"https://neutronx.github.io/django-markdownx/javascript/\" />\n      <link rel=\"shortcut icon\" href=\"../img/favicon.ico\" />\n    <title>JavaScript - Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"../css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"../css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n      <script>\n        // Current page data\n        var mkdocs_page_name = \"JavaScript\";\n        var mkdocs_page_input_path = \"javascript.md\";\n        var mkdocs_page_url = \"/django-markdownx/javascript/\";\n      </script>\n    \n    <!--[if lt IE 9]>\n      <script src=\"../js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\"..\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"../search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"..\">Django MarkdownX</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../installation/\">Installation</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../getting_started/\">Getting Started</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../example/\">Example</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../customization/\">Customization</a>\n                </li>\n              </ul>\n              <ul class=\"current\">\n                <li class=\"toctree-l1 current\"><a class=\"reference internal current\" href=\"#\">JavaScript</a>\n    <ul class=\"current\">\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#events\">Events</a>\n        <ul>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownxinit\">markdownx.init</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownxupdate\">markdownx.update</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownxupdateerror\">markdownx.updateError</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownxmarkdownxfileuploadbegin\">markdownx.markdownx.fileUploadBegin</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownxfileuploadend\">markdownx.fileUploadEnd</a>\n    </li>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#markdownxfileuploaderror\">markdownx.fileUploadError</a>\n    </li>\n        </ul>\n    </li>\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#compatibility\">Compatibility</a>\n    </li>\n    </ul>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../translations/\">Translations</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../contributions/\">Contributions</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../license/\">License</a>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\"..\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\"..\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n      <li class=\"breadcrumb-item active\">JavaScript</li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n                <h1 id=\"javascript\">JavaScript<a class=\"headerlink\" href=\"#javascript\" title=\"Permanent link\">&para;</a></h1>\n<h2 id=\"events\">Events<a class=\"headerlink\" href=\"#events\" title=\"Permanent link\">&para;</a></h2>\n<p>Some MarkdownX processes trigger events that may be utilized for different purposes. To handle such events in JavaScript, you may take advantage of event listeners as exemplified below:</p>\n<ul>\n<li><a href=\"#markdownxinit\"><code>markdownx.init</code></a></li>\n<li><a href=\"#markdownxupdate\"><code>markdownx.update</code></a></li>\n<li><a href=\"#markdownxupdateerror\"><code>markdownx.updateError</code></a></li>\n<li><a href=\"#markdownxmarkdownxfileuploadbegin\"><code>markdownx.markdownx.fileUploadBegin</code></a></li>\n<li><a href=\"#markdownxfileuploadend\"><code>markdownx.fileUploadEnd</code></a></li>\n<li><a href=\"#markdownxfileuploaderror\"><code>markdownx.fileUploadError</code></a></li>\n</ul>\n<h3 id=\"markdownxinit\"><code>markdownx.init</code><a class=\"headerlink\" href=\"#markdownxinit\" title=\"Permanent link\">&para;</a></h3>\n<p>Triggered after jQuery plugin init. <code>markdownx.init</code> is an event that does <em>not</em> return a response.</p>\n<p>JavaScript ECMA 2015+:</p>\n<pre class=\"highlight\"><code class=\"language-javascript\">let element = document.getElementsByClassName('markdownx');\n\nObject.keys(element).map(key =&gt;\n\n    element[key].addEventListener('markdownx.init', () =&gt; console.log(\"MarkdownX initialized.\"))\n\n);</code></pre>\n<h3 id=\"markdownxupdate\"><code>markdownx.update</code><a class=\"headerlink\" href=\"#markdownxupdate\" title=\"Permanent link\">&para;</a></h3>\n<p>Triggered when editor text is markdownified. Returns: <strong>response</strong> (<em>string</em>) variable containing markdownified text.</p>\n<p>JavaScript ECMA 2015+:</p>\n<pre class=\"highlight\"><code class=\"language-javascript\">let element = document.getElementsByClassName('markdownx');\n\nObject.keys(element).map(key =&gt;\n\n    element[key].addEventListener('markdownx.update', event =&gt; console.log(event.detail))\n\n);</code></pre>\n<h3 id=\"markdownxupdateerror\"><code>markdownx.updateError</code><a class=\"headerlink\" href=\"#markdownxupdateerror\" title=\"Permanent link\">&para;</a></h3>\n<p>Triggered when a problem occurred during markdownify.</p>\n<h3 id=\"markdownxmarkdownxfileuploadbegin\"><code>markdownx.markdownx.fileUploadBegin</code><a class=\"headerlink\" href=\"#markdownxmarkdownxfileuploadbegin\" title=\"Permanent link\">&para;</a></h3>\n<p>Triggered when the file is posted.</p>\n<h3 id=\"markdownxfileuploadend\"><code>markdownx.fileUploadEnd</code><a class=\"headerlink\" href=\"#markdownxfileuploadend\" title=\"Permanent link\">&para;</a></h3>\n<p>Triggered when the file has been uploaded.</p>\n<h3 id=\"markdownxfileuploaderror\"><code>markdownx.fileUploadError</code><a class=\"headerlink\" href=\"#markdownxfileuploaderror\" title=\"Permanent link\">&para;</a></h3>\n<p>Triggered if the upload didn’t work.</p>\n<h2 id=\"compatibility\">Compatibility<a class=\"headerlink\" href=\"#compatibility\" title=\"Permanent link\">&para;</a></h2>\n<p>We rely on JavaScript to handle front-end events (e.g. trans-compilation of Markdown to HTML, uploading image).</p>\n<p>MarkdownX's JavaScript code is written in TypeScript using Pure JavaScript and under ECMA 2016 standard.</p>\n<p>Currently, the code is trans-compiled into ECMA 5 (approved in 2011) to provide support for older browsers, specifically IE 10+. See additional detailed on <a href=\"https://kangax.github.io/compat-table/es5/\">browser compatibilities</a>.</p>\n              \n            </div>\n          </div><footer>\n    <div class=\"rst-footer-buttons\" role=\"navigation\" aria-label=\"Footer Navigation\">\n        <a href=\"../customization/\" class=\"btn btn-neutral float-left\" title=\"Customization\"><span class=\"icon icon-circle-arrow-left\"></span> Previous</a>\n        <a href=\"../translations/\" class=\"btn btn-neutral float-right\" title=\"Translations\">Next <span class=\"icon icon-circle-arrow-right\"></span></a>\n    </div>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n      <span><a href=\"../customization/\" style=\"color: #fcfcfc\">&laquo; Previous</a></span>\n    \n    \n      <span><a href=\"../translations/\" style=\"color: #fcfcfc\">Next &raquo;</a></span>\n    \n  </span>\n</div>\n    <script src=\"../js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \"..\";</script>\n    <script src=\"../js/theme_extra.js\"></script>\n    <script src=\"../js/theme.js\"></script>\n      <script src=\"../search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n"
  },
  {
    "path": "docs/js/theme.js",
    "content": "/* sphinx_rtd_theme version 1.0.0 | MIT license */\n!function(n){var e={};function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},t.r=function(n){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(n,\"__esModule\",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&\"object\"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:n}),2&e&&\"string\"!=typeof n)for(var o in n)t.d(i,o,function(e){return n[e]}.bind(null,o));return i},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,\"a\",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p=\"\",t(t.s=0)}([function(n,e,t){t(1),n.exports=t(3)},function(n,e,t){(function(){var e=\"undefined\"!=typeof window?window.jQuery:t(2);n.exports.ThemeNav={navBar:null,win:null,winScroll:!1,winResize:!1,linkScroll:!1,winPosition:0,winHeight:null,docHeight:null,isRunning:!1,enable:function(n){var t=this;void 0===n&&(n=!0),t.isRunning||(t.isRunning=!0,e((function(e){t.init(e),t.reset(),t.win.on(\"hashchange\",t.reset),n&&t.win.on(\"scroll\",(function(){t.linkScroll||t.winScroll||(t.winScroll=!0,requestAnimationFrame((function(){t.onScroll()})))})),t.win.on(\"resize\",(function(){t.winResize||(t.winResize=!0,requestAnimationFrame((function(){t.onResize()})))})),t.onResize()})))},enableSticky:function(){this.enable(!0)},init:function(n){n(document);var e=this;this.navBar=n(\"div.wy-side-scroll:first\"),this.win=n(window),n(document).on(\"click\",\"[data-toggle='wy-nav-top']\",(function(){n(\"[data-toggle='wy-nav-shift']\").toggleClass(\"shift\"),n(\"[data-toggle='rst-versions']\").toggleClass(\"shift\")})).on(\"click\",\".wy-menu-vertical ul li a\",(function(){var t=n(this);n(\"[data-toggle='wy-nav-shift']\").removeClass(\"shift\"),n(\"[data-toggle='rst-versions']\").toggleClass(\"shift\"),e.toggleCurrent(t),e.hashChange()})).on(\"click\",\"[data-toggle='rst-current-version']\",(function(){n(\"[data-toggle='rst-versions']\").toggleClass(\"shift-up\")})),n(\"table.docutils:not(.field-list,.footnote,.citation)\").wrap(\"<div class='wy-table-responsive'></div>\"),n(\"table.docutils.footnote\").wrap(\"<div class='wy-table-responsive footnote'></div>\"),n(\"table.docutils.citation\").wrap(\"<div class='wy-table-responsive citation'></div>\"),n(\".wy-menu-vertical ul\").not(\".simple\").siblings(\"a\").each((function(){var t=n(this);expand=n('<button class=\"toctree-expand\" title=\"Open/close menu\"></button>'),expand.on(\"click\",(function(n){return e.toggleCurrent(t),n.stopPropagation(),!1})),t.prepend(expand)}))},reset:function(){var n=encodeURI(window.location.hash)||\"#\";try{var e=$(\".wy-menu-vertical\"),t=e.find('[href=\"'+n+'\"]');if(0===t.length){var i=$('.document [id=\"'+n.substring(1)+'\"]').closest(\"div.section\");0===(t=e.find('[href=\"#'+i.attr(\"id\")+'\"]')).length&&(t=e.find('[href=\"#\"]'))}if(t.length>0){$(\".wy-menu-vertical .current\").removeClass(\"current\").attr(\"aria-expanded\",\"false\"),t.addClass(\"current\").attr(\"aria-expanded\",\"true\"),t.closest(\"li.toctree-l1\").parent().addClass(\"current\").attr(\"aria-expanded\",\"true\");for(let n=1;n<=10;n++)t.closest(\"li.toctree-l\"+n).addClass(\"current\").attr(\"aria-expanded\",\"true\");t[0].scrollIntoView()}}catch(n){console.log(\"Error expanding nav for anchor\",n)}},onScroll:function(){this.winScroll=!1;var n=this.win.scrollTop(),e=n+this.winHeight,t=this.navBar.scrollTop()+(n-this.winPosition);n<0||e>this.docHeight||(this.navBar.scrollTop(t),this.winPosition=n)},onResize:function(){this.winResize=!1,this.winHeight=this.win.height(),this.docHeight=$(document).height()},hashChange:function(){this.linkScroll=!0,this.win.one(\"hashchange\",(function(){this.linkScroll=!1}))},toggleCurrent:function(n){var e=n.closest(\"li\");e.siblings(\"li.current\").removeClass(\"current\").attr(\"aria-expanded\",\"false\"),e.siblings().find(\"li.current\").removeClass(\"current\").attr(\"aria-expanded\",\"false\");var t=e.find(\"> ul li\");t.length&&(t.removeClass(\"current\").attr(\"aria-expanded\",\"false\"),e.toggleClass(\"current\").attr(\"aria-expanded\",(function(n,e){return\"true\"==e?\"false\":\"true\"})))}},\"undefined\"!=typeof window&&(window.SphinxRtdTheme={Navigation:n.exports.ThemeNav,StickyNav:n.exports.ThemeNav}),function(){for(var n=0,e=[\"ms\",\"moz\",\"webkit\",\"o\"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+\"RequestAnimationFrame\"],window.cancelAnimationFrame=window[e[t]+\"CancelAnimationFrame\"]||window[e[t]+\"CancelRequestAnimationFrame\"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var i=(new Date).getTime(),o=Math.max(0,16-(i-n)),r=window.setTimeout((function(){e(i+o)}),o);return n=i+o,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})}()}).call(window)},function(n,e){n.exports=jQuery},function(n,e,t){}]);\n"
  },
  {
    "path": "docs/js/theme_extra.js",
    "content": "/*\n * Assign 'docutils' class to tables so styling and\n * JavaScript behavior is applied.\n *\n * https://github.com/mkdocs/mkdocs/issues/2028\n */\n\n$('div.rst-content table').addClass('docutils');\n"
  },
  {
    "path": "docs/license/index.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /><link rel=\"canonical\" href=\"https://neutronx.github.io/django-markdownx/license/\" />\n      <link rel=\"shortcut icon\" href=\"../img/favicon.ico\" />\n    <title>License - Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"../css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"../css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n      <script>\n        // Current page data\n        var mkdocs_page_name = \"License\";\n        var mkdocs_page_input_path = \"license.md\";\n        var mkdocs_page_url = \"/django-markdownx/license/\";\n      </script>\n    \n    <!--[if lt IE 9]>\n      <script src=\"../js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\"..\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"../search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"..\">Django MarkdownX</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../installation/\">Installation</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../getting_started/\">Getting Started</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../example/\">Example</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../customization/\">Customization</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../javascript/\">JavaScript</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../translations/\">Translations</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../contributions/\">Contributions</a>\n                </li>\n              </ul>\n              <ul class=\"current\">\n                <li class=\"toctree-l1 current\"><a class=\"reference internal current\" href=\"#\">License</a>\n    <ul class=\"current\">\n    </ul>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\"..\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\"..\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n      <li class=\"breadcrumb-item active\">License</li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n                <h1 id=\"license\">License<a class=\"headerlink\" href=\"#license\" title=\"Permanent link\">&para;</a></h1>\n<p>MarkdownX is licensed under the <a href=\"https://opensource.org/licenses/BSD-2-Clause\">2-clause BSD</a> license, and Open Source Initiative approved license.</p>\n<p>Redistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:</p>\n<ol>\n<li>\n<p>Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.</p>\n</li>\n<li>\n<p>Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.</p>\n</li>\n</ol>\n<p>This software is provided by the copyright holders and contributors \"as is\" and\nany express or implied warranties, including, but not limited to, the implied\nwarranties of merchantability and fitness for a particular purpose are\ndisclaimed. in no event shall the copyright owner or contributors be liable for\nany direct, indirect, incidental, special, exemplary, or consequential damages\n(including, but not limited to, procurement of substitute goods or services;\nloss of use, data, or profits; or business interruption) however caused and\non any theory of liability, whether in contract, strict liability, or tort\n(including negligence or otherwise) arising in any way out of the use of this\nsoftware, even if advised of the possibility of such damage.</p>\n              \n            </div>\n          </div><footer>\n    <div class=\"rst-footer-buttons\" role=\"navigation\" aria-label=\"Footer Navigation\">\n        <a href=\"../contributions/\" class=\"btn btn-neutral float-left\" title=\"Contributions\"><span class=\"icon icon-circle-arrow-left\"></span> Previous</a>\n    </div>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n      <span><a href=\"../contributions/\" style=\"color: #fcfcfc\">&laquo; Previous</a></span>\n    \n    \n  </span>\n</div>\n    <script src=\"../js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \"..\";</script>\n    <script src=\"../js/theme_extra.js\"></script>\n    <script src=\"../js/theme.js\"></script>\n      <script src=\"../search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n"
  },
  {
    "path": "docs/search/lunr.js",
    "content": "/**\n * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9\n * Copyright (C) 2020 Oliver Nightingale\n * @license MIT\n */\n\n;(function(){\n\n/**\n * A convenience function for configuring and constructing\n * a new lunr Index.\n *\n * A lunr.Builder instance is created and the pipeline setup\n * with a trimmer, stop word filter and stemmer.\n *\n * This builder object is yielded to the configuration function\n * that is passed as a parameter, allowing the list of fields\n * and other builder parameters to be customised.\n *\n * All documents _must_ be added within the passed config function.\n *\n * @example\n * var idx = lunr(function () {\n *   this.field('title')\n *   this.field('body')\n *   this.ref('id')\n *\n *   documents.forEach(function (doc) {\n *     this.add(doc)\n *   }, this)\n * })\n *\n * @see {@link lunr.Builder}\n * @see {@link lunr.Pipeline}\n * @see {@link lunr.trimmer}\n * @see {@link lunr.stopWordFilter}\n * @see {@link lunr.stemmer}\n * @namespace {function} lunr\n */\nvar lunr = function (config) {\n  var builder = new lunr.Builder\n\n  builder.pipeline.add(\n    lunr.trimmer,\n    lunr.stopWordFilter,\n    lunr.stemmer\n  )\n\n  builder.searchPipeline.add(\n    lunr.stemmer\n  )\n\n  config.call(builder, builder)\n  return builder.build()\n}\n\nlunr.version = \"2.3.9\"\n/*!\n * lunr.utils\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * A namespace containing utils for the rest of the lunr library\n * @namespace lunr.utils\n */\nlunr.utils = {}\n\n/**\n * Print a warning message to the console.\n *\n * @param {String} message The message to be printed.\n * @memberOf lunr.utils\n * @function\n */\nlunr.utils.warn = (function (global) {\n  /* eslint-disable no-console */\n  return function (message) {\n    if (global.console && console.warn) {\n      console.warn(message)\n    }\n  }\n  /* eslint-enable no-console */\n})(this)\n\n/**\n * Convert an object to a string.\n *\n * In the case of `null` and `undefined` the function returns\n * the empty string, in all other cases the result of calling\n * `toString` on the passed object is returned.\n *\n * @param {Any} obj The object to convert to a string.\n * @return {String} string representation of the passed object.\n * @memberOf lunr.utils\n */\nlunr.utils.asString = function (obj) {\n  if (obj === void 0 || obj === null) {\n    return \"\"\n  } else {\n    return obj.toString()\n  }\n}\n\n/**\n * Clones an object.\n *\n * Will create a copy of an existing object such that any mutations\n * on the copy cannot affect the original.\n *\n * Only shallow objects are supported, passing a nested object to this\n * function will cause a TypeError.\n *\n * Objects with primitives, and arrays of primitives are supported.\n *\n * @param {Object} obj The object to clone.\n * @return {Object} a clone of the passed object.\n * @throws {TypeError} when a nested object is passed.\n * @memberOf Utils\n */\nlunr.utils.clone = function (obj) {\n  if (obj === null || obj === undefined) {\n    return obj\n  }\n\n  var clone = Object.create(null),\n      keys = Object.keys(obj)\n\n  for (var i = 0; i < keys.length; i++) {\n    var key = keys[i],\n        val = obj[key]\n\n    if (Array.isArray(val)) {\n      clone[key] = val.slice()\n      continue\n    }\n\n    if (typeof val === 'string' ||\n        typeof val === 'number' ||\n        typeof val === 'boolean') {\n      clone[key] = val\n      continue\n    }\n\n    throw new TypeError(\"clone is not deep and does not support nested objects\")\n  }\n\n  return clone\n}\nlunr.FieldRef = function (docRef, fieldName, stringValue) {\n  this.docRef = docRef\n  this.fieldName = fieldName\n  this._stringValue = stringValue\n}\n\nlunr.FieldRef.joiner = \"/\"\n\nlunr.FieldRef.fromString = function (s) {\n  var n = s.indexOf(lunr.FieldRef.joiner)\n\n  if (n === -1) {\n    throw \"malformed field ref string\"\n  }\n\n  var fieldRef = s.slice(0, n),\n      docRef = s.slice(n + 1)\n\n  return new lunr.FieldRef (docRef, fieldRef, s)\n}\n\nlunr.FieldRef.prototype.toString = function () {\n  if (this._stringValue == undefined) {\n    this._stringValue = this.fieldName + lunr.FieldRef.joiner + this.docRef\n  }\n\n  return this._stringValue\n}\n/*!\n * lunr.Set\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * A lunr set.\n *\n * @constructor\n */\nlunr.Set = function (elements) {\n  this.elements = Object.create(null)\n\n  if (elements) {\n    this.length = elements.length\n\n    for (var i = 0; i < this.length; i++) {\n      this.elements[elements[i]] = true\n    }\n  } else {\n    this.length = 0\n  }\n}\n\n/**\n * A complete set that contains all elements.\n *\n * @static\n * @readonly\n * @type {lunr.Set}\n */\nlunr.Set.complete = {\n  intersect: function (other) {\n    return other\n  },\n\n  union: function () {\n    return this\n  },\n\n  contains: function () {\n    return true\n  }\n}\n\n/**\n * An empty set that contains no elements.\n *\n * @static\n * @readonly\n * @type {lunr.Set}\n */\nlunr.Set.empty = {\n  intersect: function () {\n    return this\n  },\n\n  union: function (other) {\n    return other\n  },\n\n  contains: function () {\n    return false\n  }\n}\n\n/**\n * Returns true if this set contains the specified object.\n *\n * @param {object} object - Object whose presence in this set is to be tested.\n * @returns {boolean} - True if this set contains the specified object.\n */\nlunr.Set.prototype.contains = function (object) {\n  return !!this.elements[object]\n}\n\n/**\n * Returns a new set containing only the elements that are present in both\n * this set and the specified set.\n *\n * @param {lunr.Set} other - set to intersect with this set.\n * @returns {lunr.Set} a new set that is the intersection of this and the specified set.\n */\n\nlunr.Set.prototype.intersect = function (other) {\n  var a, b, elements, intersection = []\n\n  if (other === lunr.Set.complete) {\n    return this\n  }\n\n  if (other === lunr.Set.empty) {\n    return other\n  }\n\n  if (this.length < other.length) {\n    a = this\n    b = other\n  } else {\n    a = other\n    b = this\n  }\n\n  elements = Object.keys(a.elements)\n\n  for (var i = 0; i < elements.length; i++) {\n    var element = elements[i]\n    if (element in b.elements) {\n      intersection.push(element)\n    }\n  }\n\n  return new lunr.Set (intersection)\n}\n\n/**\n * Returns a new set combining the elements of this and the specified set.\n *\n * @param {lunr.Set} other - set to union with this set.\n * @return {lunr.Set} a new set that is the union of this and the specified set.\n */\n\nlunr.Set.prototype.union = function (other) {\n  if (other === lunr.Set.complete) {\n    return lunr.Set.complete\n  }\n\n  if (other === lunr.Set.empty) {\n    return this\n  }\n\n  return new lunr.Set(Object.keys(this.elements).concat(Object.keys(other.elements)))\n}\n/**\n * A function to calculate the inverse document frequency for\n * a posting. This is shared between the builder and the index\n *\n * @private\n * @param {object} posting - The posting for a given term\n * @param {number} documentCount - The total number of documents.\n */\nlunr.idf = function (posting, documentCount) {\n  var documentsWithTerm = 0\n\n  for (var fieldName in posting) {\n    if (fieldName == '_index') continue // Ignore the term index, its not a field\n    documentsWithTerm += Object.keys(posting[fieldName]).length\n  }\n\n  var x = (documentCount - documentsWithTerm + 0.5) / (documentsWithTerm + 0.5)\n\n  return Math.log(1 + Math.abs(x))\n}\n\n/**\n * A token wraps a string representation of a token\n * as it is passed through the text processing pipeline.\n *\n * @constructor\n * @param {string} [str=''] - The string token being wrapped.\n * @param {object} [metadata={}] - Metadata associated with this token.\n */\nlunr.Token = function (str, metadata) {\n  this.str = str || \"\"\n  this.metadata = metadata || {}\n}\n\n/**\n * Returns the token string that is being wrapped by this object.\n *\n * @returns {string}\n */\nlunr.Token.prototype.toString = function () {\n  return this.str\n}\n\n/**\n * A token update function is used when updating or optionally\n * when cloning a token.\n *\n * @callback lunr.Token~updateFunction\n * @param {string} str - The string representation of the token.\n * @param {Object} metadata - All metadata associated with this token.\n */\n\n/**\n * Applies the given function to the wrapped string token.\n *\n * @example\n * token.update(function (str, metadata) {\n *   return str.toUpperCase()\n * })\n *\n * @param {lunr.Token~updateFunction} fn - A function to apply to the token string.\n * @returns {lunr.Token}\n */\nlunr.Token.prototype.update = function (fn) {\n  this.str = fn(this.str, this.metadata)\n  return this\n}\n\n/**\n * Creates a clone of this token. Optionally a function can be\n * applied to the cloned token.\n *\n * @param {lunr.Token~updateFunction} [fn] - An optional function to apply to the cloned token.\n * @returns {lunr.Token}\n */\nlunr.Token.prototype.clone = function (fn) {\n  fn = fn || function (s) { return s }\n  return new lunr.Token (fn(this.str, this.metadata), this.metadata)\n}\n/*!\n * lunr.tokenizer\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * A function for splitting a string into tokens ready to be inserted into\n * the search index. Uses `lunr.tokenizer.separator` to split strings, change\n * the value of this property to change how strings are split into tokens.\n *\n * This tokenizer will convert its parameter to a string by calling `toString` and\n * then will split this string on the character in `lunr.tokenizer.separator`.\n * Arrays will have their elements converted to strings and wrapped in a lunr.Token.\n *\n * Optional metadata can be passed to the tokenizer, this metadata will be cloned and\n * added as metadata to every token that is created from the object to be tokenized.\n *\n * @static\n * @param {?(string|object|object[])} obj - The object to convert into tokens\n * @param {?object} metadata - Optional metadata to associate with every token\n * @returns {lunr.Token[]}\n * @see {@link lunr.Pipeline}\n */\nlunr.tokenizer = function (obj, metadata) {\n  if (obj == null || obj == undefined) {\n    return []\n  }\n\n  if (Array.isArray(obj)) {\n    return obj.map(function (t) {\n      return new lunr.Token(\n        lunr.utils.asString(t).toLowerCase(),\n        lunr.utils.clone(metadata)\n      )\n    })\n  }\n\n  var str = obj.toString().toLowerCase(),\n      len = str.length,\n      tokens = []\n\n  for (var sliceEnd = 0, sliceStart = 0; sliceEnd <= len; sliceEnd++) {\n    var char = str.charAt(sliceEnd),\n        sliceLength = sliceEnd - sliceStart\n\n    if ((char.match(lunr.tokenizer.separator) || sliceEnd == len)) {\n\n      if (sliceLength > 0) {\n        var tokenMetadata = lunr.utils.clone(metadata) || {}\n        tokenMetadata[\"position\"] = [sliceStart, sliceLength]\n        tokenMetadata[\"index\"] = tokens.length\n\n        tokens.push(\n          new lunr.Token (\n            str.slice(sliceStart, sliceEnd),\n            tokenMetadata\n          )\n        )\n      }\n\n      sliceStart = sliceEnd + 1\n    }\n\n  }\n\n  return tokens\n}\n\n/**\n * The separator used to split a string into tokens. Override this property to change the behaviour of\n * `lunr.tokenizer` behaviour when tokenizing strings. By default this splits on whitespace and hyphens.\n *\n * @static\n * @see lunr.tokenizer\n */\nlunr.tokenizer.separator = /[\\s\\-]+/\n/*!\n * lunr.Pipeline\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * lunr.Pipelines maintain an ordered list of functions to be applied to all\n * tokens in documents entering the search index and queries being ran against\n * the index.\n *\n * An instance of lunr.Index created with the lunr shortcut will contain a\n * pipeline with a stop word filter and an English language stemmer. Extra\n * functions can be added before or after either of these functions or these\n * default functions can be removed.\n *\n * When run the pipeline will call each function in turn, passing a token, the\n * index of that token in the original list of all tokens and finally a list of\n * all the original tokens.\n *\n * The output of functions in the pipeline will be passed to the next function\n * in the pipeline. To exclude a token from entering the index the function\n * should return undefined, the rest of the pipeline will not be called with\n * this token.\n *\n * For serialisation of pipelines to work, all functions used in an instance of\n * a pipeline should be registered with lunr.Pipeline. Registered functions can\n * then be loaded. If trying to load a serialised pipeline that uses functions\n * that are not registered an error will be thrown.\n *\n * If not planning on serialising the pipeline then registering pipeline functions\n * is not necessary.\n *\n * @constructor\n */\nlunr.Pipeline = function () {\n  this._stack = []\n}\n\nlunr.Pipeline.registeredFunctions = Object.create(null)\n\n/**\n * A pipeline function maps lunr.Token to lunr.Token. A lunr.Token contains the token\n * string as well as all known metadata. A pipeline function can mutate the token string\n * or mutate (or add) metadata for a given token.\n *\n * A pipeline function can indicate that the passed token should be discarded by returning\n * null, undefined or an empty string. This token will not be passed to any downstream pipeline\n * functions and will not be added to the index.\n *\n * Multiple tokens can be returned by returning an array of tokens. Each token will be passed\n * to any downstream pipeline functions and all will returned tokens will be added to the index.\n *\n * Any number of pipeline functions may be chained together using a lunr.Pipeline.\n *\n * @interface lunr.PipelineFunction\n * @param {lunr.Token} token - A token from the document being processed.\n * @param {number} i - The index of this token in the complete list of tokens for this document/field.\n * @param {lunr.Token[]} tokens - All tokens for this document/field.\n * @returns {(?lunr.Token|lunr.Token[])}\n */\n\n/**\n * Register a function with the pipeline.\n *\n * Functions that are used in the pipeline should be registered if the pipeline\n * needs to be serialised, or a serialised pipeline needs to be loaded.\n *\n * Registering a function does not add it to a pipeline, functions must still be\n * added to instances of the pipeline for them to be used when running a pipeline.\n *\n * @param {lunr.PipelineFunction} fn - The function to check for.\n * @param {String} label - The label to register this function with\n */\nlunr.Pipeline.registerFunction = function (fn, label) {\n  if (label in this.registeredFunctions) {\n    lunr.utils.warn('Overwriting existing registered function: ' + label)\n  }\n\n  fn.label = label\n  lunr.Pipeline.registeredFunctions[fn.label] = fn\n}\n\n/**\n * Warns if the function is not registered as a Pipeline function.\n *\n * @param {lunr.PipelineFunction} fn - The function to check for.\n * @private\n */\nlunr.Pipeline.warnIfFunctionNotRegistered = function (fn) {\n  var isRegistered = fn.label && (fn.label in this.registeredFunctions)\n\n  if (!isRegistered) {\n    lunr.utils.warn('Function is not registered with pipeline. This may cause problems when serialising the index.\\n', fn)\n  }\n}\n\n/**\n * Loads a previously serialised pipeline.\n *\n * All functions to be loaded must already be registered with lunr.Pipeline.\n * If any function from the serialised data has not been registered then an\n * error will be thrown.\n *\n * @param {Object} serialised - The serialised pipeline to load.\n * @returns {lunr.Pipeline}\n */\nlunr.Pipeline.load = function (serialised) {\n  var pipeline = new lunr.Pipeline\n\n  serialised.forEach(function (fnName) {\n    var fn = lunr.Pipeline.registeredFunctions[fnName]\n\n    if (fn) {\n      pipeline.add(fn)\n    } else {\n      throw new Error('Cannot load unregistered function: ' + fnName)\n    }\n  })\n\n  return pipeline\n}\n\n/**\n * Adds new functions to the end of the pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction[]} functions - Any number of functions to add to the pipeline.\n */\nlunr.Pipeline.prototype.add = function () {\n  var fns = Array.prototype.slice.call(arguments)\n\n  fns.forEach(function (fn) {\n    lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n    this._stack.push(fn)\n  }, this)\n}\n\n/**\n * Adds a single function after a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction} existingFn - A function that already exists in the pipeline.\n * @param {lunr.PipelineFunction} newFn - The new function to add to the pipeline.\n */\nlunr.Pipeline.prototype.after = function (existingFn, newFn) {\n  lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n  var pos = this._stack.indexOf(existingFn)\n  if (pos == -1) {\n    throw new Error('Cannot find existingFn')\n  }\n\n  pos = pos + 1\n  this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Adds a single function before a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction} existingFn - A function that already exists in the pipeline.\n * @param {lunr.PipelineFunction} newFn - The new function to add to the pipeline.\n */\nlunr.Pipeline.prototype.before = function (existingFn, newFn) {\n  lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n  var pos = this._stack.indexOf(existingFn)\n  if (pos == -1) {\n    throw new Error('Cannot find existingFn')\n  }\n\n  this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Removes a function from the pipeline.\n *\n * @param {lunr.PipelineFunction} fn The function to remove from the pipeline.\n */\nlunr.Pipeline.prototype.remove = function (fn) {\n  var pos = this._stack.indexOf(fn)\n  if (pos == -1) {\n    return\n  }\n\n  this._stack.splice(pos, 1)\n}\n\n/**\n * Runs the current list of functions that make up the pipeline against the\n * passed tokens.\n *\n * @param {Array} tokens The tokens to run through the pipeline.\n * @returns {Array}\n */\nlunr.Pipeline.prototype.run = function (tokens) {\n  var stackLength = this._stack.length\n\n  for (var i = 0; i < stackLength; i++) {\n    var fn = this._stack[i]\n    var memo = []\n\n    for (var j = 0; j < tokens.length; j++) {\n      var result = fn(tokens[j], j, tokens)\n\n      if (result === null || result === void 0 || result === '') continue\n\n      if (Array.isArray(result)) {\n        for (var k = 0; k < result.length; k++) {\n          memo.push(result[k])\n        }\n      } else {\n        memo.push(result)\n      }\n    }\n\n    tokens = memo\n  }\n\n  return tokens\n}\n\n/**\n * Convenience method for passing a string through a pipeline and getting\n * strings out. This method takes care of wrapping the passed string in a\n * token and mapping the resulting tokens back to strings.\n *\n * @param {string} str - The string to pass through the pipeline.\n * @param {?object} metadata - Optional metadata to associate with the token\n * passed to the pipeline.\n * @returns {string[]}\n */\nlunr.Pipeline.prototype.runString = function (str, metadata) {\n  var token = new lunr.Token (str, metadata)\n\n  return this.run([token]).map(function (t) {\n    return t.toString()\n  })\n}\n\n/**\n * Resets the pipeline by removing any existing processors.\n *\n */\nlunr.Pipeline.prototype.reset = function () {\n  this._stack = []\n}\n\n/**\n * Returns a representation of the pipeline ready for serialisation.\n *\n * Logs a warning if the function has not been registered.\n *\n * @returns {Array}\n */\nlunr.Pipeline.prototype.toJSON = function () {\n  return this._stack.map(function (fn) {\n    lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n\n    return fn.label\n  })\n}\n/*!\n * lunr.Vector\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * A vector is used to construct the vector space of documents and queries. These\n * vectors support operations to determine the similarity between two documents or\n * a document and a query.\n *\n * Normally no parameters are required for initializing a vector, but in the case of\n * loading a previously dumped vector the raw elements can be provided to the constructor.\n *\n * For performance reasons vectors are implemented with a flat array, where an elements\n * index is immediately followed by its value. E.g. [index, value, index, value]. This\n * allows the underlying array to be as sparse as possible and still offer decent\n * performance when being used for vector calculations.\n *\n * @constructor\n * @param {Number[]} [elements] - The flat list of element index and element value pairs.\n */\nlunr.Vector = function (elements) {\n  this._magnitude = 0\n  this.elements = elements || []\n}\n\n\n/**\n * Calculates the position within the vector to insert a given index.\n *\n * This is used internally by insert and upsert. If there are duplicate indexes then\n * the position is returned as if the value for that index were to be updated, but it\n * is the callers responsibility to check whether there is a duplicate at that index\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @returns {Number}\n */\nlunr.Vector.prototype.positionForIndex = function (index) {\n  // For an empty vector the tuple can be inserted at the beginning\n  if (this.elements.length == 0) {\n    return 0\n  }\n\n  var start = 0,\n      end = this.elements.length / 2,\n      sliceLength = end - start,\n      pivotPoint = Math.floor(sliceLength / 2),\n      pivotIndex = this.elements[pivotPoint * 2]\n\n  while (sliceLength > 1) {\n    if (pivotIndex < index) {\n      start = pivotPoint\n    }\n\n    if (pivotIndex > index) {\n      end = pivotPoint\n    }\n\n    if (pivotIndex == index) {\n      break\n    }\n\n    sliceLength = end - start\n    pivotPoint = start + Math.floor(sliceLength / 2)\n    pivotIndex = this.elements[pivotPoint * 2]\n  }\n\n  if (pivotIndex == index) {\n    return pivotPoint * 2\n  }\n\n  if (pivotIndex > index) {\n    return pivotPoint * 2\n  }\n\n  if (pivotIndex < index) {\n    return (pivotPoint + 1) * 2\n  }\n}\n\n/**\n * Inserts an element at an index within the vector.\n *\n * Does not allow duplicates, will throw an error if there is already an entry\n * for this index.\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @param {Number} val - The value to be inserted into the vector.\n */\nlunr.Vector.prototype.insert = function (insertIdx, val) {\n  this.upsert(insertIdx, val, function () {\n    throw \"duplicate index\"\n  })\n}\n\n/**\n * Inserts or updates an existing index within the vector.\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @param {Number} val - The value to be inserted into the vector.\n * @param {function} fn - A function that is called for updates, the existing value and the\n * requested value are passed as arguments\n */\nlunr.Vector.prototype.upsert = function (insertIdx, val, fn) {\n  this._magnitude = 0\n  var position = this.positionForIndex(insertIdx)\n\n  if (this.elements[position] == insertIdx) {\n    this.elements[position + 1] = fn(this.elements[position + 1], val)\n  } else {\n    this.elements.splice(position, 0, insertIdx, val)\n  }\n}\n\n/**\n * Calculates the magnitude of this vector.\n *\n * @returns {Number}\n */\nlunr.Vector.prototype.magnitude = function () {\n  if (this._magnitude) return this._magnitude\n\n  var sumOfSquares = 0,\n      elementsLength = this.elements.length\n\n  for (var i = 1; i < elementsLength; i += 2) {\n    var val = this.elements[i]\n    sumOfSquares += val * val\n  }\n\n  return this._magnitude = Math.sqrt(sumOfSquares)\n}\n\n/**\n * Calculates the dot product of this vector and another vector.\n *\n * @param {lunr.Vector} otherVector - The vector to compute the dot product with.\n * @returns {Number}\n */\nlunr.Vector.prototype.dot = function (otherVector) {\n  var dotProduct = 0,\n      a = this.elements, b = otherVector.elements,\n      aLen = a.length, bLen = b.length,\n      aVal = 0, bVal = 0,\n      i = 0, j = 0\n\n  while (i < aLen && j < bLen) {\n    aVal = a[i], bVal = b[j]\n    if (aVal < bVal) {\n      i += 2\n    } else if (aVal > bVal) {\n      j += 2\n    } else if (aVal == bVal) {\n      dotProduct += a[i + 1] * b[j + 1]\n      i += 2\n      j += 2\n    }\n  }\n\n  return dotProduct\n}\n\n/**\n * Calculates the similarity between this vector and another vector.\n *\n * @param {lunr.Vector} otherVector - The other vector to calculate the\n * similarity with.\n * @returns {Number}\n */\nlunr.Vector.prototype.similarity = function (otherVector) {\n  return this.dot(otherVector) / this.magnitude() || 0\n}\n\n/**\n * Converts the vector to an array of the elements within the vector.\n *\n * @returns {Number[]}\n */\nlunr.Vector.prototype.toArray = function () {\n  var output = new Array (this.elements.length / 2)\n\n  for (var i = 1, j = 0; i < this.elements.length; i += 2, j++) {\n    output[j] = this.elements[i]\n  }\n\n  return output\n}\n\n/**\n * A JSON serializable representation of the vector.\n *\n * @returns {Number[]}\n */\nlunr.Vector.prototype.toJSON = function () {\n  return this.elements\n}\n/* eslint-disable */\n/*!\n * lunr.stemmer\n * Copyright (C) 2020 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */\n\n/**\n * lunr.stemmer is an english language stemmer, this is a JavaScript\n * implementation of the PorterStemmer taken from http://tartarus.org/~martin\n *\n * @static\n * @implements {lunr.PipelineFunction}\n * @param {lunr.Token} token - The string to stem\n * @returns {lunr.Token}\n * @see {@link lunr.Pipeline}\n * @function\n */\nlunr.stemmer = (function(){\n  var step2list = {\n      \"ational\" : \"ate\",\n      \"tional\" : \"tion\",\n      \"enci\" : \"ence\",\n      \"anci\" : \"ance\",\n      \"izer\" : \"ize\",\n      \"bli\" : \"ble\",\n      \"alli\" : \"al\",\n      \"entli\" : \"ent\",\n      \"eli\" : \"e\",\n      \"ousli\" : \"ous\",\n      \"ization\" : \"ize\",\n      \"ation\" : \"ate\",\n      \"ator\" : \"ate\",\n      \"alism\" : \"al\",\n      \"iveness\" : \"ive\",\n      \"fulness\" : \"ful\",\n      \"ousness\" : \"ous\",\n      \"aliti\" : \"al\",\n      \"iviti\" : \"ive\",\n      \"biliti\" : \"ble\",\n      \"logi\" : \"log\"\n    },\n\n    step3list = {\n      \"icate\" : \"ic\",\n      \"ative\" : \"\",\n      \"alize\" : \"al\",\n      \"iciti\" : \"ic\",\n      \"ical\" : \"ic\",\n      \"ful\" : \"\",\n      \"ness\" : \"\"\n    },\n\n    c = \"[^aeiou]\",          // consonant\n    v = \"[aeiouy]\",          // vowel\n    C = c + \"[^aeiouy]*\",    // consonant sequence\n    V = v + \"[aeiou]*\",      // vowel sequence\n\n    mgr0 = \"^(\" + C + \")?\" + V + C,               // [C]VC... is m>0\n    meq1 = \"^(\" + C + \")?\" + V + C + \"(\" + V + \")?$\",  // [C]VC[V] is m=1\n    mgr1 = \"^(\" + C + \")?\" + V + C + V + C,       // [C]VCVC... is m>1\n    s_v = \"^(\" + C + \")?\" + v;                   // vowel in stem\n\n  var re_mgr0 = new RegExp(mgr0);\n  var re_mgr1 = new RegExp(mgr1);\n  var re_meq1 = new RegExp(meq1);\n  var re_s_v = new RegExp(s_v);\n\n  var re_1a = /^(.+?)(ss|i)es$/;\n  var re2_1a = /^(.+?)([^s])s$/;\n  var re_1b = /^(.+?)eed$/;\n  var re2_1b = /^(.+?)(ed|ing)$/;\n  var re_1b_2 = /.$/;\n  var re2_1b_2 = /(at|bl|iz)$/;\n  var re3_1b_2 = new RegExp(\"([^aeiouylsz])\\\\1$\");\n  var re4_1b_2 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n  var re_1c = /^(.+?[^aeiou])y$/;\n  var re_2 = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;\n\n  var re_3 = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;\n\n  var re_4 = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;\n  var re2_4 = /^(.+?)(s|t)(ion)$/;\n\n  var re_5 = /^(.+?)e$/;\n  var re_5_1 = /ll$/;\n  var re3_5 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n  var porterStemmer = function porterStemmer(w) {\n    var stem,\n      suffix,\n      firstch,\n      re,\n      re2,\n      re3,\n      re4;\n\n    if (w.length < 3) { return w; }\n\n    firstch = w.substr(0,1);\n    if (firstch == \"y\") {\n      w = firstch.toUpperCase() + w.substr(1);\n    }\n\n    // Step 1a\n    re = re_1a\n    re2 = re2_1a;\n\n    if (re.test(w)) { w = w.replace(re,\"$1$2\"); }\n    else if (re2.test(w)) { w = w.replace(re2,\"$1$2\"); }\n\n    // Step 1b\n    re = re_1b;\n    re2 = re2_1b;\n    if (re.test(w)) {\n      var fp = re.exec(w);\n      re = re_mgr0;\n      if (re.test(fp[1])) {\n        re = re_1b_2;\n        w = w.replace(re,\"\");\n      }\n    } else if (re2.test(w)) {\n      var fp = re2.exec(w);\n      stem = fp[1];\n      re2 = re_s_v;\n      if (re2.test(stem)) {\n        w = stem;\n        re2 = re2_1b_2;\n        re3 = re3_1b_2;\n        re4 = re4_1b_2;\n        if (re2.test(w)) { w = w + \"e\"; }\n        else if (re3.test(w)) { re = re_1b_2; w = w.replace(re,\"\"); }\n        else if (re4.test(w)) { w = w + \"e\"; }\n      }\n    }\n\n    // Step 1c - replace suffix y or Y by i if preceded by a non-vowel which is not the first letter of the word (so cry -> cri, by -> by, say -> say)\n    re = re_1c;\n    if (re.test(w)) {\n      var fp = re.exec(w);\n      stem = fp[1];\n      w = stem + \"i\";\n    }\n\n    // Step 2\n    re = re_2;\n    if (re.test(w)) {\n      var fp = re.exec(w);\n      stem = fp[1];\n      suffix = fp[2];\n      re = re_mgr0;\n      if (re.test(stem)) {\n        w = stem + step2list[suffix];\n      }\n    }\n\n    // Step 3\n    re = re_3;\n    if (re.test(w)) {\n      var fp = re.exec(w);\n      stem = fp[1];\n      suffix = fp[2];\n      re = re_mgr0;\n      if (re.test(stem)) {\n        w = stem + step3list[suffix];\n      }\n    }\n\n    // Step 4\n    re = re_4;\n    re2 = re2_4;\n    if (re.test(w)) {\n      var fp = re.exec(w);\n      stem = fp[1];\n      re = re_mgr1;\n      if (re.test(stem)) {\n        w = stem;\n      }\n    } else if (re2.test(w)) {\n      var fp = re2.exec(w);\n      stem = fp[1] + fp[2];\n      re2 = re_mgr1;\n      if (re2.test(stem)) {\n        w = stem;\n      }\n    }\n\n    // Step 5\n    re = re_5;\n    if (re.test(w)) {\n      var fp = re.exec(w);\n      stem = fp[1];\n      re = re_mgr1;\n      re2 = re_meq1;\n      re3 = re3_5;\n      if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) {\n        w = stem;\n      }\n    }\n\n    re = re_5_1;\n    re2 = re_mgr1;\n    if (re.test(w) && re2.test(w)) {\n      re = re_1b_2;\n      w = w.replace(re,\"\");\n    }\n\n    // and turn initial Y back to y\n\n    if (firstch == \"y\") {\n      w = firstch.toLowerCase() + w.substr(1);\n    }\n\n    return w;\n  };\n\n  return function (token) {\n    return token.update(porterStemmer);\n  }\n})();\n\nlunr.Pipeline.registerFunction(lunr.stemmer, 'stemmer')\n/*!\n * lunr.stopWordFilter\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * lunr.generateStopWordFilter builds a stopWordFilter function from the provided\n * list of stop words.\n *\n * The built in lunr.stopWordFilter is built using this generator and can be used\n * to generate custom stopWordFilters for applications or non English languages.\n *\n * @function\n * @param {Array} token The token to pass through the filter\n * @returns {lunr.PipelineFunction}\n * @see lunr.Pipeline\n * @see lunr.stopWordFilter\n */\nlunr.generateStopWordFilter = function (stopWords) {\n  var words = stopWords.reduce(function (memo, stopWord) {\n    memo[stopWord] = stopWord\n    return memo\n  }, {})\n\n  return function (token) {\n    if (token && words[token.toString()] !== token.toString()) return token\n  }\n}\n\n/**\n * lunr.stopWordFilter is an English language stop word list filter, any words\n * contained in the list will not be passed through the filter.\n *\n * This is intended to be used in the Pipeline. If the token does not pass the\n * filter then undefined will be returned.\n *\n * @function\n * @implements {lunr.PipelineFunction}\n * @params {lunr.Token} token - A token to check for being a stop word.\n * @returns {lunr.Token}\n * @see {@link lunr.Pipeline}\n */\nlunr.stopWordFilter = lunr.generateStopWordFilter([\n  'a',\n  'able',\n  'about',\n  'across',\n  'after',\n  'all',\n  'almost',\n  'also',\n  'am',\n  'among',\n  'an',\n  'and',\n  'any',\n  'are',\n  'as',\n  'at',\n  'be',\n  'because',\n  'been',\n  'but',\n  'by',\n  'can',\n  'cannot',\n  'could',\n  'dear',\n  'did',\n  'do',\n  'does',\n  'either',\n  'else',\n  'ever',\n  'every',\n  'for',\n  'from',\n  'get',\n  'got',\n  'had',\n  'has',\n  'have',\n  'he',\n  'her',\n  'hers',\n  'him',\n  'his',\n  'how',\n  'however',\n  'i',\n  'if',\n  'in',\n  'into',\n  'is',\n  'it',\n  'its',\n  'just',\n  'least',\n  'let',\n  'like',\n  'likely',\n  'may',\n  'me',\n  'might',\n  'most',\n  'must',\n  'my',\n  'neither',\n  'no',\n  'nor',\n  'not',\n  'of',\n  'off',\n  'often',\n  'on',\n  'only',\n  'or',\n  'other',\n  'our',\n  'own',\n  'rather',\n  'said',\n  'say',\n  'says',\n  'she',\n  'should',\n  'since',\n  'so',\n  'some',\n  'than',\n  'that',\n  'the',\n  'their',\n  'them',\n  'then',\n  'there',\n  'these',\n  'they',\n  'this',\n  'tis',\n  'to',\n  'too',\n  'twas',\n  'us',\n  'wants',\n  'was',\n  'we',\n  'were',\n  'what',\n  'when',\n  'where',\n  'which',\n  'while',\n  'who',\n  'whom',\n  'why',\n  'will',\n  'with',\n  'would',\n  'yet',\n  'you',\n  'your'\n])\n\nlunr.Pipeline.registerFunction(lunr.stopWordFilter, 'stopWordFilter')\n/*!\n * lunr.trimmer\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * lunr.trimmer is a pipeline function for trimming non word\n * characters from the beginning and end of tokens before they\n * enter the index.\n *\n * This implementation may not work correctly for non latin\n * characters and should either be removed or adapted for use\n * with languages with non-latin characters.\n *\n * @static\n * @implements {lunr.PipelineFunction}\n * @param {lunr.Token} token The token to pass through the filter\n * @returns {lunr.Token}\n * @see lunr.Pipeline\n */\nlunr.trimmer = function (token) {\n  return token.update(function (s) {\n    return s.replace(/^\\W+/, '').replace(/\\W+$/, '')\n  })\n}\n\nlunr.Pipeline.registerFunction(lunr.trimmer, 'trimmer')\n/*!\n * lunr.TokenSet\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * A token set is used to store the unique list of all tokens\n * within an index. Token sets are also used to represent an\n * incoming query to the index, this query token set and index\n * token set are then intersected to find which tokens to look\n * up in the inverted index.\n *\n * A token set can hold multiple tokens, as in the case of the\n * index token set, or it can hold a single token as in the\n * case of a simple query token set.\n *\n * Additionally token sets are used to perform wildcard matching.\n * Leading, contained and trailing wildcards are supported, and\n * from this edit distance matching can also be provided.\n *\n * Token sets are implemented as a minimal finite state automata,\n * where both common prefixes and suffixes are shared between tokens.\n * This helps to reduce the space used for storing the token set.\n *\n * @constructor\n */\nlunr.TokenSet = function () {\n  this.final = false\n  this.edges = {}\n  this.id = lunr.TokenSet._nextId\n  lunr.TokenSet._nextId += 1\n}\n\n/**\n * Keeps track of the next, auto increment, identifier to assign\n * to a new tokenSet.\n *\n * TokenSets require a unique identifier to be correctly minimised.\n *\n * @private\n */\nlunr.TokenSet._nextId = 1\n\n/**\n * Creates a TokenSet instance from the given sorted array of words.\n *\n * @param {String[]} arr - A sorted array of strings to create the set from.\n * @returns {lunr.TokenSet}\n * @throws Will throw an error if the input array is not sorted.\n */\nlunr.TokenSet.fromArray = function (arr) {\n  var builder = new lunr.TokenSet.Builder\n\n  for (var i = 0, len = arr.length; i < len; i++) {\n    builder.insert(arr[i])\n  }\n\n  builder.finish()\n  return builder.root\n}\n\n/**\n * Creates a token set from a query clause.\n *\n * @private\n * @param {Object} clause - A single clause from lunr.Query.\n * @param {string} clause.term - The query clause term.\n * @param {number} [clause.editDistance] - The optional edit distance for the term.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.fromClause = function (clause) {\n  if ('editDistance' in clause) {\n    return lunr.TokenSet.fromFuzzyString(clause.term, clause.editDistance)\n  } else {\n    return lunr.TokenSet.fromString(clause.term)\n  }\n}\n\n/**\n * Creates a token set representing a single string with a specified\n * edit distance.\n *\n * Insertions, deletions, substitutions and transpositions are each\n * treated as an edit distance of 1.\n *\n * Increasing the allowed edit distance will have a dramatic impact\n * on the performance of both creating and intersecting these TokenSets.\n * It is advised to keep the edit distance less than 3.\n *\n * @param {string} str - The string to create the token set from.\n * @param {number} editDistance - The allowed edit distance to match.\n * @returns {lunr.Vector}\n */\nlunr.TokenSet.fromFuzzyString = function (str, editDistance) {\n  var root = new lunr.TokenSet\n\n  var stack = [{\n    node: root,\n    editsRemaining: editDistance,\n    str: str\n  }]\n\n  while (stack.length) {\n    var frame = stack.pop()\n\n    // no edit\n    if (frame.str.length > 0) {\n      var char = frame.str.charAt(0),\n          noEditNode\n\n      if (char in frame.node.edges) {\n        noEditNode = frame.node.edges[char]\n      } else {\n        noEditNode = new lunr.TokenSet\n        frame.node.edges[char] = noEditNode\n      }\n\n      if (frame.str.length == 1) {\n        noEditNode.final = true\n      }\n\n      stack.push({\n        node: noEditNode,\n        editsRemaining: frame.editsRemaining,\n        str: frame.str.slice(1)\n      })\n    }\n\n    if (frame.editsRemaining == 0) {\n      continue\n    }\n\n    // insertion\n    if (\"*\" in frame.node.edges) {\n      var insertionNode = frame.node.edges[\"*\"]\n    } else {\n      var insertionNode = new lunr.TokenSet\n      frame.node.edges[\"*\"] = insertionNode\n    }\n\n    if (frame.str.length == 0) {\n      insertionNode.final = true\n    }\n\n    stack.push({\n      node: insertionNode,\n      editsRemaining: frame.editsRemaining - 1,\n      str: frame.str\n    })\n\n    // deletion\n    // can only do a deletion if we have enough edits remaining\n    // and if there are characters left to delete in the string\n    if (frame.str.length > 1) {\n      stack.push({\n        node: frame.node,\n        editsRemaining: frame.editsRemaining - 1,\n        str: frame.str.slice(1)\n      })\n    }\n\n    // deletion\n    // just removing the last character from the str\n    if (frame.str.length == 1) {\n      frame.node.final = true\n    }\n\n    // substitution\n    // can only do a substitution if we have enough edits remaining\n    // and if there are characters left to substitute\n    if (frame.str.length >= 1) {\n      if (\"*\" in frame.node.edges) {\n        var substitutionNode = frame.node.edges[\"*\"]\n      } else {\n        var substitutionNode = new lunr.TokenSet\n        frame.node.edges[\"*\"] = substitutionNode\n      }\n\n      if (frame.str.length == 1) {\n        substitutionNode.final = true\n      }\n\n      stack.push({\n        node: substitutionNode,\n        editsRemaining: frame.editsRemaining - 1,\n        str: frame.str.slice(1)\n      })\n    }\n\n    // transposition\n    // can only do a transposition if there are edits remaining\n    // and there are enough characters to transpose\n    if (frame.str.length > 1) {\n      var charA = frame.str.charAt(0),\n          charB = frame.str.charAt(1),\n          transposeNode\n\n      if (charB in frame.node.edges) {\n        transposeNode = frame.node.edges[charB]\n      } else {\n        transposeNode = new lunr.TokenSet\n        frame.node.edges[charB] = transposeNode\n      }\n\n      if (frame.str.length == 1) {\n        transposeNode.final = true\n      }\n\n      stack.push({\n        node: transposeNode,\n        editsRemaining: frame.editsRemaining - 1,\n        str: charA + frame.str.slice(2)\n      })\n    }\n  }\n\n  return root\n}\n\n/**\n * Creates a TokenSet from a string.\n *\n * The string may contain one or more wildcard characters (*)\n * that will allow wildcard matching when intersecting with\n * another TokenSet.\n *\n * @param {string} str - The string to create a TokenSet from.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.fromString = function (str) {\n  var node = new lunr.TokenSet,\n      root = node\n\n  /*\n   * Iterates through all characters within the passed string\n   * appending a node for each character.\n   *\n   * When a wildcard character is found then a self\n   * referencing edge is introduced to continually match\n   * any number of any characters.\n   */\n  for (var i = 0, len = str.length; i < len; i++) {\n    var char = str[i],\n        final = (i == len - 1)\n\n    if (char == \"*\") {\n      node.edges[char] = node\n      node.final = final\n\n    } else {\n      var next = new lunr.TokenSet\n      next.final = final\n\n      node.edges[char] = next\n      node = next\n    }\n  }\n\n  return root\n}\n\n/**\n * Converts this TokenSet into an array of strings\n * contained within the TokenSet.\n *\n * This is not intended to be used on a TokenSet that\n * contains wildcards, in these cases the results are\n * undefined and are likely to cause an infinite loop.\n *\n * @returns {string[]}\n */\nlunr.TokenSet.prototype.toArray = function () {\n  var words = []\n\n  var stack = [{\n    prefix: \"\",\n    node: this\n  }]\n\n  while (stack.length) {\n    var frame = stack.pop(),\n        edges = Object.keys(frame.node.edges),\n        len = edges.length\n\n    if (frame.node.final) {\n      /* In Safari, at this point the prefix is sometimes corrupted, see:\n       * https://github.com/olivernn/lunr.js/issues/279 Calling any\n       * String.prototype method forces Safari to \"cast\" this string to what\n       * it's supposed to be, fixing the bug. */\n      frame.prefix.charAt(0)\n      words.push(frame.prefix)\n    }\n\n    for (var i = 0; i < len; i++) {\n      var edge = edges[i]\n\n      stack.push({\n        prefix: frame.prefix.concat(edge),\n        node: frame.node.edges[edge]\n      })\n    }\n  }\n\n  return words\n}\n\n/**\n * Generates a string representation of a TokenSet.\n *\n * This is intended to allow TokenSets to be used as keys\n * in objects, largely to aid the construction and minimisation\n * of a TokenSet. As such it is not designed to be a human\n * friendly representation of the TokenSet.\n *\n * @returns {string}\n */\nlunr.TokenSet.prototype.toString = function () {\n  // NOTE: Using Object.keys here as this.edges is very likely\n  // to enter 'hash-mode' with many keys being added\n  //\n  // avoiding a for-in loop here as it leads to the function\n  // being de-optimised (at least in V8). From some simple\n  // benchmarks the performance is comparable, but allowing\n  // V8 to optimize may mean easy performance wins in the future.\n\n  if (this._str) {\n    return this._str\n  }\n\n  var str = this.final ? '1' : '0',\n      labels = Object.keys(this.edges).sort(),\n      len = labels.length\n\n  for (var i = 0; i < len; i++) {\n    var label = labels[i],\n        node = this.edges[label]\n\n    str = str + label + node.id\n  }\n\n  return str\n}\n\n/**\n * Returns a new TokenSet that is the intersection of\n * this TokenSet and the passed TokenSet.\n *\n * This intersection will take into account any wildcards\n * contained within the TokenSet.\n *\n * @param {lunr.TokenSet} b - An other TokenSet to intersect with.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.prototype.intersect = function (b) {\n  var output = new lunr.TokenSet,\n      frame = undefined\n\n  var stack = [{\n    qNode: b,\n    output: output,\n    node: this\n  }]\n\n  while (stack.length) {\n    frame = stack.pop()\n\n    // NOTE: As with the #toString method, we are using\n    // Object.keys and a for loop instead of a for-in loop\n    // as both of these objects enter 'hash' mode, causing\n    // the function to be de-optimised in V8\n    var qEdges = Object.keys(frame.qNode.edges),\n        qLen = qEdges.length,\n        nEdges = Object.keys(frame.node.edges),\n        nLen = nEdges.length\n\n    for (var q = 0; q < qLen; q++) {\n      var qEdge = qEdges[q]\n\n      for (var n = 0; n < nLen; n++) {\n        var nEdge = nEdges[n]\n\n        if (nEdge == qEdge || qEdge == '*') {\n          var node = frame.node.edges[nEdge],\n              qNode = frame.qNode.edges[qEdge],\n              final = node.final && qNode.final,\n              next = undefined\n\n          if (nEdge in frame.output.edges) {\n            // an edge already exists for this character\n            // no need to create a new node, just set the finality\n            // bit unless this node is already final\n            next = frame.output.edges[nEdge]\n            next.final = next.final || final\n\n          } else {\n            // no edge exists yet, must create one\n            // set the finality bit and insert it\n            // into the output\n            next = new lunr.TokenSet\n            next.final = final\n            frame.output.edges[nEdge] = next\n          }\n\n          stack.push({\n            qNode: qNode,\n            output: next,\n            node: node\n          })\n        }\n      }\n    }\n  }\n\n  return output\n}\nlunr.TokenSet.Builder = function () {\n  this.previousWord = \"\"\n  this.root = new lunr.TokenSet\n  this.uncheckedNodes = []\n  this.minimizedNodes = {}\n}\n\nlunr.TokenSet.Builder.prototype.insert = function (word) {\n  var node,\n      commonPrefix = 0\n\n  if (word < this.previousWord) {\n    throw new Error (\"Out of order word insertion\")\n  }\n\n  for (var i = 0; i < word.length && i < this.previousWord.length; i++) {\n    if (word[i] != this.previousWord[i]) break\n    commonPrefix++\n  }\n\n  this.minimize(commonPrefix)\n\n  if (this.uncheckedNodes.length == 0) {\n    node = this.root\n  } else {\n    node = this.uncheckedNodes[this.uncheckedNodes.length - 1].child\n  }\n\n  for (var i = commonPrefix; i < word.length; i++) {\n    var nextNode = new lunr.TokenSet,\n        char = word[i]\n\n    node.edges[char] = nextNode\n\n    this.uncheckedNodes.push({\n      parent: node,\n      char: char,\n      child: nextNode\n    })\n\n    node = nextNode\n  }\n\n  node.final = true\n  this.previousWord = word\n}\n\nlunr.TokenSet.Builder.prototype.finish = function () {\n  this.minimize(0)\n}\n\nlunr.TokenSet.Builder.prototype.minimize = function (downTo) {\n  for (var i = this.uncheckedNodes.length - 1; i >= downTo; i--) {\n    var node = this.uncheckedNodes[i],\n        childKey = node.child.toString()\n\n    if (childKey in this.minimizedNodes) {\n      node.parent.edges[node.char] = this.minimizedNodes[childKey]\n    } else {\n      // Cache the key for this node since\n      // we know it can't change anymore\n      node.child._str = childKey\n\n      this.minimizedNodes[childKey] = node.child\n    }\n\n    this.uncheckedNodes.pop()\n  }\n}\n/*!\n * lunr.Index\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * An index contains the built index of all documents and provides a query interface\n * to the index.\n *\n * Usually instances of lunr.Index will not be created using this constructor, instead\n * lunr.Builder should be used to construct new indexes, or lunr.Index.load should be\n * used to load previously built and serialized indexes.\n *\n * @constructor\n * @param {Object} attrs - The attributes of the built search index.\n * @param {Object} attrs.invertedIndex - An index of term/field to document reference.\n * @param {Object<string, lunr.Vector>} attrs.fieldVectors - Field vectors\n * @param {lunr.TokenSet} attrs.tokenSet - An set of all corpus tokens.\n * @param {string[]} attrs.fields - The names of indexed document fields.\n * @param {lunr.Pipeline} attrs.pipeline - The pipeline to use for search terms.\n */\nlunr.Index = function (attrs) {\n  this.invertedIndex = attrs.invertedIndex\n  this.fieldVectors = attrs.fieldVectors\n  this.tokenSet = attrs.tokenSet\n  this.fields = attrs.fields\n  this.pipeline = attrs.pipeline\n}\n\n/**\n * A result contains details of a document matching a search query.\n * @typedef {Object} lunr.Index~Result\n * @property {string} ref - The reference of the document this result represents.\n * @property {number} score - A number between 0 and 1 representing how similar this document is to the query.\n * @property {lunr.MatchData} matchData - Contains metadata about this match including which term(s) caused the match.\n */\n\n/**\n * Although lunr provides the ability to create queries using lunr.Query, it also provides a simple\n * query language which itself is parsed into an instance of lunr.Query.\n *\n * For programmatically building queries it is advised to directly use lunr.Query, the query language\n * is best used for human entered text rather than program generated text.\n *\n * At its simplest queries can just be a single term, e.g. `hello`, multiple terms are also supported\n * and will be combined with OR, e.g `hello world` will match documents that contain either 'hello'\n * or 'world', though those that contain both will rank higher in the results.\n *\n * Wildcards can be included in terms to match one or more unspecified characters, these wildcards can\n * be inserted anywhere within the term, and more than one wildcard can exist in a single term. Adding\n * wildcards will increase the number of documents that will be found but can also have a negative\n * impact on query performance, especially with wildcards at the beginning of a term.\n *\n * Terms can be restricted to specific fields, e.g. `title:hello`, only documents with the term\n * hello in the title field will match this query. Using a field not present in the index will lead\n * to an error being thrown.\n *\n * Modifiers can also be added to terms, lunr supports edit distance and boost modifiers on terms. A term\n * boost will make documents matching that term score higher, e.g. `foo^5`. Edit distance is also supported\n * to provide fuzzy matching, e.g. 'hello~2' will match documents with hello with an edit distance of 2.\n * Avoid large values for edit distance to improve query performance.\n *\n * Each term also supports a presence modifier. By default a term's presence in document is optional, however\n * this can be changed to either required or prohibited. For a term's presence to be required in a document the\n * term should be prefixed with a '+', e.g. `+foo bar` is a search for documents that must contain 'foo' and\n * optionally contain 'bar'. Conversely a leading '-' sets the terms presence to prohibited, i.e. it must not\n * appear in a document, e.g. `-foo bar` is a search for documents that do not contain 'foo' but may contain 'bar'.\n *\n * To escape special characters the backslash character '\\' can be used, this allows searches to include\n * characters that would normally be considered modifiers, e.g. `foo\\~2` will search for a term \"foo~2\" instead\n * of attempting to apply a boost of 2 to the search term \"foo\".\n *\n * @typedef {string} lunr.Index~QueryString\n * @example <caption>Simple single term query</caption>\n * hello\n * @example <caption>Multiple term query</caption>\n * hello world\n * @example <caption>term scoped to a field</caption>\n * title:hello\n * @example <caption>term with a boost of 10</caption>\n * hello^10\n * @example <caption>term with an edit distance of 2</caption>\n * hello~2\n * @example <caption>terms with presence modifiers</caption>\n * -foo +bar baz\n */\n\n/**\n * Performs a search against the index using lunr query syntax.\n *\n * Results will be returned sorted by their score, the most relevant results\n * will be returned first.  For details on how the score is calculated, please see\n * the {@link https://lunrjs.com/guides/searching.html#scoring|guide}.\n *\n * For more programmatic querying use lunr.Index#query.\n *\n * @param {lunr.Index~QueryString} queryString - A string containing a lunr query.\n * @throws {lunr.QueryParseError} If the passed query string cannot be parsed.\n * @returns {lunr.Index~Result[]}\n */\nlunr.Index.prototype.search = function (queryString) {\n  return this.query(function (query) {\n    var parser = new lunr.QueryParser(queryString, query)\n    parser.parse()\n  })\n}\n\n/**\n * A query builder callback provides a query object to be used to express\n * the query to perform on the index.\n *\n * @callback lunr.Index~queryBuilder\n * @param {lunr.Query} query - The query object to build up.\n * @this lunr.Query\n */\n\n/**\n * Performs a query against the index using the yielded lunr.Query object.\n *\n * If performing programmatic queries against the index, this method is preferred\n * over lunr.Index#search so as to avoid the additional query parsing overhead.\n *\n * A query object is yielded to the supplied function which should be used to\n * express the query to be run against the index.\n *\n * Note that although this function takes a callback parameter it is _not_ an\n * asynchronous operation, the callback is just yielded a query object to be\n * customized.\n *\n * @param {lunr.Index~queryBuilder} fn - A function that is used to build the query.\n * @returns {lunr.Index~Result[]}\n */\nlunr.Index.prototype.query = function (fn) {\n  // for each query clause\n  // * process terms\n  // * expand terms from token set\n  // * find matching documents and metadata\n  // * get document vectors\n  // * score documents\n\n  var query = new lunr.Query(this.fields),\n      matchingFields = Object.create(null),\n      queryVectors = Object.create(null),\n      termFieldCache = Object.create(null),\n      requiredMatches = Object.create(null),\n      prohibitedMatches = Object.create(null)\n\n  /*\n   * To support field level boosts a query vector is created per\n   * field. An empty vector is eagerly created to support negated\n   * queries.\n   */\n  for (var i = 0; i < this.fields.length; i++) {\n    queryVectors[this.fields[i]] = new lunr.Vector\n  }\n\n  fn.call(query, query)\n\n  for (var i = 0; i < query.clauses.length; i++) {\n    /*\n     * Unless the pipeline has been disabled for this term, which is\n     * the case for terms with wildcards, we need to pass the clause\n     * term through the search pipeline. A pipeline returns an array\n     * of processed terms. Pipeline functions may expand the passed\n     * term, which means we may end up performing multiple index lookups\n     * for a single query term.\n     */\n    var clause = query.clauses[i],\n        terms = null,\n        clauseMatches = lunr.Set.empty\n\n    if (clause.usePipeline) {\n      terms = this.pipeline.runString(clause.term, {\n        fields: clause.fields\n      })\n    } else {\n      terms = [clause.term]\n    }\n\n    for (var m = 0; m < terms.length; m++) {\n      var term = terms[m]\n\n      /*\n       * Each term returned from the pipeline needs to use the same query\n       * clause object, e.g. the same boost and or edit distance. The\n       * simplest way to do this is to re-use the clause object but mutate\n       * its term property.\n       */\n      clause.term = term\n\n      /*\n       * From the term in the clause we create a token set which will then\n       * be used to intersect the indexes token set to get a list of terms\n       * to lookup in the inverted index\n       */\n      var termTokenSet = lunr.TokenSet.fromClause(clause),\n          expandedTerms = this.tokenSet.intersect(termTokenSet).toArray()\n\n      /*\n       * If a term marked as required does not exist in the tokenSet it is\n       * impossible for the search to return any matches. We set all the field\n       * scoped required matches set to empty and stop examining any further\n       * clauses.\n       */\n      if (expandedTerms.length === 0 && clause.presence === lunr.Query.presence.REQUIRED) {\n        for (var k = 0; k < clause.fields.length; k++) {\n          var field = clause.fields[k]\n          requiredMatches[field] = lunr.Set.empty\n        }\n\n        break\n      }\n\n      for (var j = 0; j < expandedTerms.length; j++) {\n        /*\n         * For each term get the posting and termIndex, this is required for\n         * building the query vector.\n         */\n        var expandedTerm = expandedTerms[j],\n            posting = this.invertedIndex[expandedTerm],\n            termIndex = posting._index\n\n        for (var k = 0; k < clause.fields.length; k++) {\n          /*\n           * For each field that this query term is scoped by (by default\n           * all fields are in scope) we need to get all the document refs\n           * that have this term in that field.\n           *\n           * The posting is the entry in the invertedIndex for the matching\n           * term from above.\n           */\n          var field = clause.fields[k],\n              fieldPosting = posting[field],\n              matchingDocumentRefs = Object.keys(fieldPosting),\n              termField = expandedTerm + \"/\" + field,\n              matchingDocumentsSet = new lunr.Set(matchingDocumentRefs)\n\n          /*\n           * if the presence of this term is required ensure that the matching\n           * documents are added to the set of required matches for this clause.\n           *\n           */\n          if (clause.presence == lunr.Query.presence.REQUIRED) {\n            clauseMatches = clauseMatches.union(matchingDocumentsSet)\n\n            if (requiredMatches[field] === undefined) {\n              requiredMatches[field] = lunr.Set.complete\n            }\n          }\n\n          /*\n           * if the presence of this term is prohibited ensure that the matching\n           * documents are added to the set of prohibited matches for this field,\n           * creating that set if it does not yet exist.\n           */\n          if (clause.presence == lunr.Query.presence.PROHIBITED) {\n            if (prohibitedMatches[field] === undefined) {\n              prohibitedMatches[field] = lunr.Set.empty\n            }\n\n            prohibitedMatches[field] = prohibitedMatches[field].union(matchingDocumentsSet)\n\n            /*\n             * Prohibited matches should not be part of the query vector used for\n             * similarity scoring and no metadata should be extracted so we continue\n             * to the next field\n             */\n            continue\n          }\n\n          /*\n           * The query field vector is populated using the termIndex found for\n           * the term and a unit value with the appropriate boost applied.\n           * Using upsert because there could already be an entry in the vector\n           * for the term we are working with. In that case we just add the scores\n           * together.\n           */\n          queryVectors[field].upsert(termIndex, clause.boost, function (a, b) { return a + b })\n\n          /**\n           * If we've already seen this term, field combo then we've already collected\n           * the matching documents and metadata, no need to go through all that again\n           */\n          if (termFieldCache[termField]) {\n            continue\n          }\n\n          for (var l = 0; l < matchingDocumentRefs.length; l++) {\n            /*\n             * All metadata for this term/field/document triple\n             * are then extracted and collected into an instance\n             * of lunr.MatchData ready to be returned in the query\n             * results\n             */\n            var matchingDocumentRef = matchingDocumentRefs[l],\n                matchingFieldRef = new lunr.FieldRef (matchingDocumentRef, field),\n                metadata = fieldPosting[matchingDocumentRef],\n                fieldMatch\n\n            if ((fieldMatch = matchingFields[matchingFieldRef]) === undefined) {\n              matchingFields[matchingFieldRef] = new lunr.MatchData (expandedTerm, field, metadata)\n            } else {\n              fieldMatch.add(expandedTerm, field, metadata)\n            }\n\n          }\n\n          termFieldCache[termField] = true\n        }\n      }\n    }\n\n    /**\n     * If the presence was required we need to update the requiredMatches field sets.\n     * We do this after all fields for the term have collected their matches because\n     * the clause terms presence is required in _any_ of the fields not _all_ of the\n     * fields.\n     */\n    if (clause.presence === lunr.Query.presence.REQUIRED) {\n      for (var k = 0; k < clause.fields.length; k++) {\n        var field = clause.fields[k]\n        requiredMatches[field] = requiredMatches[field].intersect(clauseMatches)\n      }\n    }\n  }\n\n  /**\n   * Need to combine the field scoped required and prohibited\n   * matching documents into a global set of required and prohibited\n   * matches\n   */\n  var allRequiredMatches = lunr.Set.complete,\n      allProhibitedMatches = lunr.Set.empty\n\n  for (var i = 0; i < this.fields.length; i++) {\n    var field = this.fields[i]\n\n    if (requiredMatches[field]) {\n      allRequiredMatches = allRequiredMatches.intersect(requiredMatches[field])\n    }\n\n    if (prohibitedMatches[field]) {\n      allProhibitedMatches = allProhibitedMatches.union(prohibitedMatches[field])\n    }\n  }\n\n  var matchingFieldRefs = Object.keys(matchingFields),\n      results = [],\n      matches = Object.create(null)\n\n  /*\n   * If the query is negated (contains only prohibited terms)\n   * we need to get _all_ fieldRefs currently existing in the\n   * index. This is only done when we know that the query is\n   * entirely prohibited terms to avoid any cost of getting all\n   * fieldRefs unnecessarily.\n   *\n   * Additionally, blank MatchData must be created to correctly\n   * populate the results.\n   */\n  if (query.isNegated()) {\n    matchingFieldRefs = Object.keys(this.fieldVectors)\n\n    for (var i = 0; i < matchingFieldRefs.length; i++) {\n      var matchingFieldRef = matchingFieldRefs[i]\n      var fieldRef = lunr.FieldRef.fromString(matchingFieldRef)\n      matchingFields[matchingFieldRef] = new lunr.MatchData\n    }\n  }\n\n  for (var i = 0; i < matchingFieldRefs.length; i++) {\n    /*\n     * Currently we have document fields that match the query, but we\n     * need to return documents. The matchData and scores are combined\n     * from multiple fields belonging to the same document.\n     *\n     * Scores are calculated by field, using the query vectors created\n     * above, and combined into a final document score using addition.\n     */\n    var fieldRef = lunr.FieldRef.fromString(matchingFieldRefs[i]),\n        docRef = fieldRef.docRef\n\n    if (!allRequiredMatches.contains(docRef)) {\n      continue\n    }\n\n    if (allProhibitedMatches.contains(docRef)) {\n      continue\n    }\n\n    var fieldVector = this.fieldVectors[fieldRef],\n        score = queryVectors[fieldRef.fieldName].similarity(fieldVector),\n        docMatch\n\n    if ((docMatch = matches[docRef]) !== undefined) {\n      docMatch.score += score\n      docMatch.matchData.combine(matchingFields[fieldRef])\n    } else {\n      var match = {\n        ref: docRef,\n        score: score,\n        matchData: matchingFields[fieldRef]\n      }\n      matches[docRef] = match\n      results.push(match)\n    }\n  }\n\n  /*\n   * Sort the results objects by score, highest first.\n   */\n  return results.sort(function (a, b) {\n    return b.score - a.score\n  })\n}\n\n/**\n * Prepares the index for JSON serialization.\n *\n * The schema for this JSON blob will be described in a\n * separate JSON schema file.\n *\n * @returns {Object}\n */\nlunr.Index.prototype.toJSON = function () {\n  var invertedIndex = Object.keys(this.invertedIndex)\n    .sort()\n    .map(function (term) {\n      return [term, this.invertedIndex[term]]\n    }, this)\n\n  var fieldVectors = Object.keys(this.fieldVectors)\n    .map(function (ref) {\n      return [ref, this.fieldVectors[ref].toJSON()]\n    }, this)\n\n  return {\n    version: lunr.version,\n    fields: this.fields,\n    fieldVectors: fieldVectors,\n    invertedIndex: invertedIndex,\n    pipeline: this.pipeline.toJSON()\n  }\n}\n\n/**\n * Loads a previously serialized lunr.Index\n *\n * @param {Object} serializedIndex - A previously serialized lunr.Index\n * @returns {lunr.Index}\n */\nlunr.Index.load = function (serializedIndex) {\n  var attrs = {},\n      fieldVectors = {},\n      serializedVectors = serializedIndex.fieldVectors,\n      invertedIndex = Object.create(null),\n      serializedInvertedIndex = serializedIndex.invertedIndex,\n      tokenSetBuilder = new lunr.TokenSet.Builder,\n      pipeline = lunr.Pipeline.load(serializedIndex.pipeline)\n\n  if (serializedIndex.version != lunr.version) {\n    lunr.utils.warn(\"Version mismatch when loading serialised index. Current version of lunr '\" + lunr.version + \"' does not match serialized index '\" + serializedIndex.version + \"'\")\n  }\n\n  for (var i = 0; i < serializedVectors.length; i++) {\n    var tuple = serializedVectors[i],\n        ref = tuple[0],\n        elements = tuple[1]\n\n    fieldVectors[ref] = new lunr.Vector(elements)\n  }\n\n  for (var i = 0; i < serializedInvertedIndex.length; i++) {\n    var tuple = serializedInvertedIndex[i],\n        term = tuple[0],\n        posting = tuple[1]\n\n    tokenSetBuilder.insert(term)\n    invertedIndex[term] = posting\n  }\n\n  tokenSetBuilder.finish()\n\n  attrs.fields = serializedIndex.fields\n\n  attrs.fieldVectors = fieldVectors\n  attrs.invertedIndex = invertedIndex\n  attrs.tokenSet = tokenSetBuilder.root\n  attrs.pipeline = pipeline\n\n  return new lunr.Index(attrs)\n}\n/*!\n * lunr.Builder\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * lunr.Builder performs indexing on a set of documents and\n * returns instances of lunr.Index ready for querying.\n *\n * All configuration of the index is done via the builder, the\n * fields to index, the document reference, the text processing\n * pipeline and document scoring parameters are all set on the\n * builder before indexing.\n *\n * @constructor\n * @property {string} _ref - Internal reference to the document reference field.\n * @property {string[]} _fields - Internal reference to the document fields to index.\n * @property {object} invertedIndex - The inverted index maps terms to document fields.\n * @property {object} documentTermFrequencies - Keeps track of document term frequencies.\n * @property {object} documentLengths - Keeps track of the length of documents added to the index.\n * @property {lunr.tokenizer} tokenizer - Function for splitting strings into tokens for indexing.\n * @property {lunr.Pipeline} pipeline - The pipeline performs text processing on tokens before indexing.\n * @property {lunr.Pipeline} searchPipeline - A pipeline for processing search terms before querying the index.\n * @property {number} documentCount - Keeps track of the total number of documents indexed.\n * @property {number} _b - A parameter to control field length normalization, setting this to 0 disabled normalization, 1 fully normalizes field lengths, the default value is 0.75.\n * @property {number} _k1 - A parameter to control how quickly an increase in term frequency results in term frequency saturation, the default value is 1.2.\n * @property {number} termIndex - A counter incremented for each unique term, used to identify a terms position in the vector space.\n * @property {array} metadataWhitelist - A list of metadata keys that have been whitelisted for entry in the index.\n */\nlunr.Builder = function () {\n  this._ref = \"id\"\n  this._fields = Object.create(null)\n  this._documents = Object.create(null)\n  this.invertedIndex = Object.create(null)\n  this.fieldTermFrequencies = {}\n  this.fieldLengths = {}\n  this.tokenizer = lunr.tokenizer\n  this.pipeline = new lunr.Pipeline\n  this.searchPipeline = new lunr.Pipeline\n  this.documentCount = 0\n  this._b = 0.75\n  this._k1 = 1.2\n  this.termIndex = 0\n  this.metadataWhitelist = []\n}\n\n/**\n * Sets the document field used as the document reference. Every document must have this field.\n * The type of this field in the document should be a string, if it is not a string it will be\n * coerced into a string by calling toString.\n *\n * The default ref is 'id'.\n *\n * The ref should _not_ be changed during indexing, it should be set before any documents are\n * added to the index. Changing it during indexing can lead to inconsistent results.\n *\n * @param {string} ref - The name of the reference field in the document.\n */\nlunr.Builder.prototype.ref = function (ref) {\n  this._ref = ref\n}\n\n/**\n * A function that is used to extract a field from a document.\n *\n * Lunr expects a field to be at the top level of a document, if however the field\n * is deeply nested within a document an extractor function can be used to extract\n * the right field for indexing.\n *\n * @callback fieldExtractor\n * @param {object} doc - The document being added to the index.\n * @returns {?(string|object|object[])} obj - The object that will be indexed for this field.\n * @example <caption>Extracting a nested field</caption>\n * function (doc) { return doc.nested.field }\n */\n\n/**\n * Adds a field to the list of document fields that will be indexed. Every document being\n * indexed should have this field. Null values for this field in indexed documents will\n * not cause errors but will limit the chance of that document being retrieved by searches.\n *\n * All fields should be added before adding documents to the index. Adding fields after\n * a document has been indexed will have no effect on already indexed documents.\n *\n * Fields can be boosted at build time. This allows terms within that field to have more\n * importance when ranking search results. Use a field boost to specify that matches within\n * one field are more important than other fields.\n *\n * @param {string} fieldName - The name of a field to index in all documents.\n * @param {object} attributes - Optional attributes associated with this field.\n * @param {number} [attributes.boost=1] - Boost applied to all terms within this field.\n * @param {fieldExtractor} [attributes.extractor] - Function to extract a field from a document.\n * @throws {RangeError} fieldName cannot contain unsupported characters '/'\n */\nlunr.Builder.prototype.field = function (fieldName, attributes) {\n  if (/\\//.test(fieldName)) {\n    throw new RangeError (\"Field '\" + fieldName + \"' contains illegal character '/'\")\n  }\n\n  this._fields[fieldName] = attributes || {}\n}\n\n/**\n * A parameter to tune the amount of field length normalisation that is applied when\n * calculating relevance scores. A value of 0 will completely disable any normalisation\n * and a value of 1 will fully normalise field lengths. The default is 0.75. Values of b\n * will be clamped to the range 0 - 1.\n *\n * @param {number} number - The value to set for this tuning parameter.\n */\nlunr.Builder.prototype.b = function (number) {\n  if (number < 0) {\n    this._b = 0\n  } else if (number > 1) {\n    this._b = 1\n  } else {\n    this._b = number\n  }\n}\n\n/**\n * A parameter that controls the speed at which a rise in term frequency results in term\n * frequency saturation. The default value is 1.2. Setting this to a higher value will give\n * slower saturation levels, a lower value will result in quicker saturation.\n *\n * @param {number} number - The value to set for this tuning parameter.\n */\nlunr.Builder.prototype.k1 = function (number) {\n  this._k1 = number\n}\n\n/**\n * Adds a document to the index.\n *\n * Before adding fields to the index the index should have been fully setup, with the document\n * ref and all fields to index already having been specified.\n *\n * The document must have a field name as specified by the ref (by default this is 'id') and\n * it should have all fields defined for indexing, though null or undefined values will not\n * cause errors.\n *\n * Entire documents can be boosted at build time. Applying a boost to a document indicates that\n * this document should rank higher in search results than other documents.\n *\n * @param {object} doc - The document to add to the index.\n * @param {object} attributes - Optional attributes associated with this document.\n * @param {number} [attributes.boost=1] - Boost applied to all terms within this document.\n */\nlunr.Builder.prototype.add = function (doc, attributes) {\n  var docRef = doc[this._ref],\n      fields = Object.keys(this._fields)\n\n  this._documents[docRef] = attributes || {}\n  this.documentCount += 1\n\n  for (var i = 0; i < fields.length; i++) {\n    var fieldName = fields[i],\n        extractor = this._fields[fieldName].extractor,\n        field = extractor ? extractor(doc) : doc[fieldName],\n        tokens = this.tokenizer(field, {\n          fields: [fieldName]\n        }),\n        terms = this.pipeline.run(tokens),\n        fieldRef = new lunr.FieldRef (docRef, fieldName),\n        fieldTerms = Object.create(null)\n\n    this.fieldTermFrequencies[fieldRef] = fieldTerms\n    this.fieldLengths[fieldRef] = 0\n\n    // store the length of this field for this document\n    this.fieldLengths[fieldRef] += terms.length\n\n    // calculate term frequencies for this field\n    for (var j = 0; j < terms.length; j++) {\n      var term = terms[j]\n\n      if (fieldTerms[term] == undefined) {\n        fieldTerms[term] = 0\n      }\n\n      fieldTerms[term] += 1\n\n      // add to inverted index\n      // create an initial posting if one doesn't exist\n      if (this.invertedIndex[term] == undefined) {\n        var posting = Object.create(null)\n        posting[\"_index\"] = this.termIndex\n        this.termIndex += 1\n\n        for (var k = 0; k < fields.length; k++) {\n          posting[fields[k]] = Object.create(null)\n        }\n\n        this.invertedIndex[term] = posting\n      }\n\n      // add an entry for this term/fieldName/docRef to the invertedIndex\n      if (this.invertedIndex[term][fieldName][docRef] == undefined) {\n        this.invertedIndex[term][fieldName][docRef] = Object.create(null)\n      }\n\n      // store all whitelisted metadata about this token in the\n      // inverted index\n      for (var l = 0; l < this.metadataWhitelist.length; l++) {\n        var metadataKey = this.metadataWhitelist[l],\n            metadata = term.metadata[metadataKey]\n\n        if (this.invertedIndex[term][fieldName][docRef][metadataKey] == undefined) {\n          this.invertedIndex[term][fieldName][docRef][metadataKey] = []\n        }\n\n        this.invertedIndex[term][fieldName][docRef][metadataKey].push(metadata)\n      }\n    }\n\n  }\n}\n\n/**\n * Calculates the average document length for this index\n *\n * @private\n */\nlunr.Builder.prototype.calculateAverageFieldLengths = function () {\n\n  var fieldRefs = Object.keys(this.fieldLengths),\n      numberOfFields = fieldRefs.length,\n      accumulator = {},\n      documentsWithField = {}\n\n  for (var i = 0; i < numberOfFields; i++) {\n    var fieldRef = lunr.FieldRef.fromString(fieldRefs[i]),\n        field = fieldRef.fieldName\n\n    documentsWithField[field] || (documentsWithField[field] = 0)\n    documentsWithField[field] += 1\n\n    accumulator[field] || (accumulator[field] = 0)\n    accumulator[field] += this.fieldLengths[fieldRef]\n  }\n\n  var fields = Object.keys(this._fields)\n\n  for (var i = 0; i < fields.length; i++) {\n    var fieldName = fields[i]\n    accumulator[fieldName] = accumulator[fieldName] / documentsWithField[fieldName]\n  }\n\n  this.averageFieldLength = accumulator\n}\n\n/**\n * Builds a vector space model of every document using lunr.Vector\n *\n * @private\n */\nlunr.Builder.prototype.createFieldVectors = function () {\n  var fieldVectors = {},\n      fieldRefs = Object.keys(this.fieldTermFrequencies),\n      fieldRefsLength = fieldRefs.length,\n      termIdfCache = Object.create(null)\n\n  for (var i = 0; i < fieldRefsLength; i++) {\n    var fieldRef = lunr.FieldRef.fromString(fieldRefs[i]),\n        fieldName = fieldRef.fieldName,\n        fieldLength = this.fieldLengths[fieldRef],\n        fieldVector = new lunr.Vector,\n        termFrequencies = this.fieldTermFrequencies[fieldRef],\n        terms = Object.keys(termFrequencies),\n        termsLength = terms.length\n\n\n    var fieldBoost = this._fields[fieldName].boost || 1,\n        docBoost = this._documents[fieldRef.docRef].boost || 1\n\n    for (var j = 0; j < termsLength; j++) {\n      var term = terms[j],\n          tf = termFrequencies[term],\n          termIndex = this.invertedIndex[term]._index,\n          idf, score, scoreWithPrecision\n\n      if (termIdfCache[term] === undefined) {\n        idf = lunr.idf(this.invertedIndex[term], this.documentCount)\n        termIdfCache[term] = idf\n      } else {\n        idf = termIdfCache[term]\n      }\n\n      score = idf * ((this._k1 + 1) * tf) / (this._k1 * (1 - this._b + this._b * (fieldLength / this.averageFieldLength[fieldName])) + tf)\n      score *= fieldBoost\n      score *= docBoost\n      scoreWithPrecision = Math.round(score * 1000) / 1000\n      // Converts 1.23456789 to 1.234.\n      // Reducing the precision so that the vectors take up less\n      // space when serialised. Doing it now so that they behave\n      // the same before and after serialisation. Also, this is\n      // the fastest approach to reducing a number's precision in\n      // JavaScript.\n\n      fieldVector.insert(termIndex, scoreWithPrecision)\n    }\n\n    fieldVectors[fieldRef] = fieldVector\n  }\n\n  this.fieldVectors = fieldVectors\n}\n\n/**\n * Creates a token set of all tokens in the index using lunr.TokenSet\n *\n * @private\n */\nlunr.Builder.prototype.createTokenSet = function () {\n  this.tokenSet = lunr.TokenSet.fromArray(\n    Object.keys(this.invertedIndex).sort()\n  )\n}\n\n/**\n * Builds the index, creating an instance of lunr.Index.\n *\n * This completes the indexing process and should only be called\n * once all documents have been added to the index.\n *\n * @returns {lunr.Index}\n */\nlunr.Builder.prototype.build = function () {\n  this.calculateAverageFieldLengths()\n  this.createFieldVectors()\n  this.createTokenSet()\n\n  return new lunr.Index({\n    invertedIndex: this.invertedIndex,\n    fieldVectors: this.fieldVectors,\n    tokenSet: this.tokenSet,\n    fields: Object.keys(this._fields),\n    pipeline: this.searchPipeline\n  })\n}\n\n/**\n * Applies a plugin to the index builder.\n *\n * A plugin is a function that is called with the index builder as its context.\n * Plugins can be used to customise or extend the behaviour of the index\n * in some way. A plugin is just a function, that encapsulated the custom\n * behaviour that should be applied when building the index.\n *\n * The plugin function will be called with the index builder as its argument, additional\n * arguments can also be passed when calling use. The function will be called\n * with the index builder as its context.\n *\n * @param {Function} plugin The plugin to apply.\n */\nlunr.Builder.prototype.use = function (fn) {\n  var args = Array.prototype.slice.call(arguments, 1)\n  args.unshift(this)\n  fn.apply(this, args)\n}\n/**\n * Contains and collects metadata about a matching document.\n * A single instance of lunr.MatchData is returned as part of every\n * lunr.Index~Result.\n *\n * @constructor\n * @param {string} term - The term this match data is associated with\n * @param {string} field - The field in which the term was found\n * @param {object} metadata - The metadata recorded about this term in this field\n * @property {object} metadata - A cloned collection of metadata associated with this document.\n * @see {@link lunr.Index~Result}\n */\nlunr.MatchData = function (term, field, metadata) {\n  var clonedMetadata = Object.create(null),\n      metadataKeys = Object.keys(metadata || {})\n\n  // Cloning the metadata to prevent the original\n  // being mutated during match data combination.\n  // Metadata is kept in an array within the inverted\n  // index so cloning the data can be done with\n  // Array#slice\n  for (var i = 0; i < metadataKeys.length; i++) {\n    var key = metadataKeys[i]\n    clonedMetadata[key] = metadata[key].slice()\n  }\n\n  this.metadata = Object.create(null)\n\n  if (term !== undefined) {\n    this.metadata[term] = Object.create(null)\n    this.metadata[term][field] = clonedMetadata\n  }\n}\n\n/**\n * An instance of lunr.MatchData will be created for every term that matches a\n * document. However only one instance is required in a lunr.Index~Result. This\n * method combines metadata from another instance of lunr.MatchData with this\n * objects metadata.\n *\n * @param {lunr.MatchData} otherMatchData - Another instance of match data to merge with this one.\n * @see {@link lunr.Index~Result}\n */\nlunr.MatchData.prototype.combine = function (otherMatchData) {\n  var terms = Object.keys(otherMatchData.metadata)\n\n  for (var i = 0; i < terms.length; i++) {\n    var term = terms[i],\n        fields = Object.keys(otherMatchData.metadata[term])\n\n    if (this.metadata[term] == undefined) {\n      this.metadata[term] = Object.create(null)\n    }\n\n    for (var j = 0; j < fields.length; j++) {\n      var field = fields[j],\n          keys = Object.keys(otherMatchData.metadata[term][field])\n\n      if (this.metadata[term][field] == undefined) {\n        this.metadata[term][field] = Object.create(null)\n      }\n\n      for (var k = 0; k < keys.length; k++) {\n        var key = keys[k]\n\n        if (this.metadata[term][field][key] == undefined) {\n          this.metadata[term][field][key] = otherMatchData.metadata[term][field][key]\n        } else {\n          this.metadata[term][field][key] = this.metadata[term][field][key].concat(otherMatchData.metadata[term][field][key])\n        }\n\n      }\n    }\n  }\n}\n\n/**\n * Add metadata for a term/field pair to this instance of match data.\n *\n * @param {string} term - The term this match data is associated with\n * @param {string} field - The field in which the term was found\n * @param {object} metadata - The metadata recorded about this term in this field\n */\nlunr.MatchData.prototype.add = function (term, field, metadata) {\n  if (!(term in this.metadata)) {\n    this.metadata[term] = Object.create(null)\n    this.metadata[term][field] = metadata\n    return\n  }\n\n  if (!(field in this.metadata[term])) {\n    this.metadata[term][field] = metadata\n    return\n  }\n\n  var metadataKeys = Object.keys(metadata)\n\n  for (var i = 0; i < metadataKeys.length; i++) {\n    var key = metadataKeys[i]\n\n    if (key in this.metadata[term][field]) {\n      this.metadata[term][field][key] = this.metadata[term][field][key].concat(metadata[key])\n    } else {\n      this.metadata[term][field][key] = metadata[key]\n    }\n  }\n}\n/**\n * A lunr.Query provides a programmatic way of defining queries to be performed\n * against a {@link lunr.Index}.\n *\n * Prefer constructing a lunr.Query using the {@link lunr.Index#query} method\n * so the query object is pre-initialized with the right index fields.\n *\n * @constructor\n * @property {lunr.Query~Clause[]} clauses - An array of query clauses.\n * @property {string[]} allFields - An array of all available fields in a lunr.Index.\n */\nlunr.Query = function (allFields) {\n  this.clauses = []\n  this.allFields = allFields\n}\n\n/**\n * Constants for indicating what kind of automatic wildcard insertion will be used when constructing a query clause.\n *\n * This allows wildcards to be added to the beginning and end of a term without having to manually do any string\n * concatenation.\n *\n * The wildcard constants can be bitwise combined to select both leading and trailing wildcards.\n *\n * @constant\n * @default\n * @property {number} wildcard.NONE - The term will have no wildcards inserted, this is the default behaviour\n * @property {number} wildcard.LEADING - Prepend the term with a wildcard, unless a leading wildcard already exists\n * @property {number} wildcard.TRAILING - Append a wildcard to the term, unless a trailing wildcard already exists\n * @see lunr.Query~Clause\n * @see lunr.Query#clause\n * @see lunr.Query#term\n * @example <caption>query term with trailing wildcard</caption>\n * query.term('foo', { wildcard: lunr.Query.wildcard.TRAILING })\n * @example <caption>query term with leading and trailing wildcard</caption>\n * query.term('foo', {\n *   wildcard: lunr.Query.wildcard.LEADING | lunr.Query.wildcard.TRAILING\n * })\n */\n\nlunr.Query.wildcard = new String (\"*\")\nlunr.Query.wildcard.NONE = 0\nlunr.Query.wildcard.LEADING = 1\nlunr.Query.wildcard.TRAILING = 2\n\n/**\n * Constants for indicating what kind of presence a term must have in matching documents.\n *\n * @constant\n * @enum {number}\n * @see lunr.Query~Clause\n * @see lunr.Query#clause\n * @see lunr.Query#term\n * @example <caption>query term with required presence</caption>\n * query.term('foo', { presence: lunr.Query.presence.REQUIRED })\n */\nlunr.Query.presence = {\n  /**\n   * Term's presence in a document is optional, this is the default value.\n   */\n  OPTIONAL: 1,\n\n  /**\n   * Term's presence in a document is required, documents that do not contain\n   * this term will not be returned.\n   */\n  REQUIRED: 2,\n\n  /**\n   * Term's presence in a document is prohibited, documents that do contain\n   * this term will not be returned.\n   */\n  PROHIBITED: 3\n}\n\n/**\n * A single clause in a {@link lunr.Query} contains a term and details on how to\n * match that term against a {@link lunr.Index}.\n *\n * @typedef {Object} lunr.Query~Clause\n * @property {string[]} fields - The fields in an index this clause should be matched against.\n * @property {number} [boost=1] - Any boost that should be applied when matching this clause.\n * @property {number} [editDistance] - Whether the term should have fuzzy matching applied, and how fuzzy the match should be.\n * @property {boolean} [usePipeline] - Whether the term should be passed through the search pipeline.\n * @property {number} [wildcard=lunr.Query.wildcard.NONE] - Whether the term should have wildcards appended or prepended.\n * @property {number} [presence=lunr.Query.presence.OPTIONAL] - The terms presence in any matching documents.\n */\n\n/**\n * Adds a {@link lunr.Query~Clause} to this query.\n *\n * Unless the clause contains the fields to be matched all fields will be matched. In addition\n * a default boost of 1 is applied to the clause.\n *\n * @param {lunr.Query~Clause} clause - The clause to add to this query.\n * @see lunr.Query~Clause\n * @returns {lunr.Query}\n */\nlunr.Query.prototype.clause = function (clause) {\n  if (!('fields' in clause)) {\n    clause.fields = this.allFields\n  }\n\n  if (!('boost' in clause)) {\n    clause.boost = 1\n  }\n\n  if (!('usePipeline' in clause)) {\n    clause.usePipeline = true\n  }\n\n  if (!('wildcard' in clause)) {\n    clause.wildcard = lunr.Query.wildcard.NONE\n  }\n\n  if ((clause.wildcard & lunr.Query.wildcard.LEADING) && (clause.term.charAt(0) != lunr.Query.wildcard)) {\n    clause.term = \"*\" + clause.term\n  }\n\n  if ((clause.wildcard & lunr.Query.wildcard.TRAILING) && (clause.term.slice(-1) != lunr.Query.wildcard)) {\n    clause.term = \"\" + clause.term + \"*\"\n  }\n\n  if (!('presence' in clause)) {\n    clause.presence = lunr.Query.presence.OPTIONAL\n  }\n\n  this.clauses.push(clause)\n\n  return this\n}\n\n/**\n * A negated query is one in which every clause has a presence of\n * prohibited. These queries require some special processing to return\n * the expected results.\n *\n * @returns boolean\n */\nlunr.Query.prototype.isNegated = function () {\n  for (var i = 0; i < this.clauses.length; i++) {\n    if (this.clauses[i].presence != lunr.Query.presence.PROHIBITED) {\n      return false\n    }\n  }\n\n  return true\n}\n\n/**\n * Adds a term to the current query, under the covers this will create a {@link lunr.Query~Clause}\n * to the list of clauses that make up this query.\n *\n * The term is used as is, i.e. no tokenization will be performed by this method. Instead conversion\n * to a token or token-like string should be done before calling this method.\n *\n * The term will be converted to a string by calling `toString`. Multiple terms can be passed as an\n * array, each term in the array will share the same options.\n *\n * @param {object|object[]} term - The term(s) to add to the query.\n * @param {object} [options] - Any additional properties to add to the query clause.\n * @returns {lunr.Query}\n * @see lunr.Query#clause\n * @see lunr.Query~Clause\n * @example <caption>adding a single term to a query</caption>\n * query.term(\"foo\")\n * @example <caption>adding a single term to a query and specifying search fields, term boost and automatic trailing wildcard</caption>\n * query.term(\"foo\", {\n *   fields: [\"title\"],\n *   boost: 10,\n *   wildcard: lunr.Query.wildcard.TRAILING\n * })\n * @example <caption>using lunr.tokenizer to convert a string to tokens before using them as terms</caption>\n * query.term(lunr.tokenizer(\"foo bar\"))\n */\nlunr.Query.prototype.term = function (term, options) {\n  if (Array.isArray(term)) {\n    term.forEach(function (t) { this.term(t, lunr.utils.clone(options)) }, this)\n    return this\n  }\n\n  var clause = options || {}\n  clause.term = term.toString()\n\n  this.clause(clause)\n\n  return this\n}\nlunr.QueryParseError = function (message, start, end) {\n  this.name = \"QueryParseError\"\n  this.message = message\n  this.start = start\n  this.end = end\n}\n\nlunr.QueryParseError.prototype = new Error\nlunr.QueryLexer = function (str) {\n  this.lexemes = []\n  this.str = str\n  this.length = str.length\n  this.pos = 0\n  this.start = 0\n  this.escapeCharPositions = []\n}\n\nlunr.QueryLexer.prototype.run = function () {\n  var state = lunr.QueryLexer.lexText\n\n  while (state) {\n    state = state(this)\n  }\n}\n\nlunr.QueryLexer.prototype.sliceString = function () {\n  var subSlices = [],\n      sliceStart = this.start,\n      sliceEnd = this.pos\n\n  for (var i = 0; i < this.escapeCharPositions.length; i++) {\n    sliceEnd = this.escapeCharPositions[i]\n    subSlices.push(this.str.slice(sliceStart, sliceEnd))\n    sliceStart = sliceEnd + 1\n  }\n\n  subSlices.push(this.str.slice(sliceStart, this.pos))\n  this.escapeCharPositions.length = 0\n\n  return subSlices.join('')\n}\n\nlunr.QueryLexer.prototype.emit = function (type) {\n  this.lexemes.push({\n    type: type,\n    str: this.sliceString(),\n    start: this.start,\n    end: this.pos\n  })\n\n  this.start = this.pos\n}\n\nlunr.QueryLexer.prototype.escapeCharacter = function () {\n  this.escapeCharPositions.push(this.pos - 1)\n  this.pos += 1\n}\n\nlunr.QueryLexer.prototype.next = function () {\n  if (this.pos >= this.length) {\n    return lunr.QueryLexer.EOS\n  }\n\n  var char = this.str.charAt(this.pos)\n  this.pos += 1\n  return char\n}\n\nlunr.QueryLexer.prototype.width = function () {\n  return this.pos - this.start\n}\n\nlunr.QueryLexer.prototype.ignore = function () {\n  if (this.start == this.pos) {\n    this.pos += 1\n  }\n\n  this.start = this.pos\n}\n\nlunr.QueryLexer.prototype.backup = function () {\n  this.pos -= 1\n}\n\nlunr.QueryLexer.prototype.acceptDigitRun = function () {\n  var char, charCode\n\n  do {\n    char = this.next()\n    charCode = char.charCodeAt(0)\n  } while (charCode > 47 && charCode < 58)\n\n  if (char != lunr.QueryLexer.EOS) {\n    this.backup()\n  }\n}\n\nlunr.QueryLexer.prototype.more = function () {\n  return this.pos < this.length\n}\n\nlunr.QueryLexer.EOS = 'EOS'\nlunr.QueryLexer.FIELD = 'FIELD'\nlunr.QueryLexer.TERM = 'TERM'\nlunr.QueryLexer.EDIT_DISTANCE = 'EDIT_DISTANCE'\nlunr.QueryLexer.BOOST = 'BOOST'\nlunr.QueryLexer.PRESENCE = 'PRESENCE'\n\nlunr.QueryLexer.lexField = function (lexer) {\n  lexer.backup()\n  lexer.emit(lunr.QueryLexer.FIELD)\n  lexer.ignore()\n  return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexTerm = function (lexer) {\n  if (lexer.width() > 1) {\n    lexer.backup()\n    lexer.emit(lunr.QueryLexer.TERM)\n  }\n\n  lexer.ignore()\n\n  if (lexer.more()) {\n    return lunr.QueryLexer.lexText\n  }\n}\n\nlunr.QueryLexer.lexEditDistance = function (lexer) {\n  lexer.ignore()\n  lexer.acceptDigitRun()\n  lexer.emit(lunr.QueryLexer.EDIT_DISTANCE)\n  return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexBoost = function (lexer) {\n  lexer.ignore()\n  lexer.acceptDigitRun()\n  lexer.emit(lunr.QueryLexer.BOOST)\n  return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexEOS = function (lexer) {\n  if (lexer.width() > 0) {\n    lexer.emit(lunr.QueryLexer.TERM)\n  }\n}\n\n// This matches the separator used when tokenising fields\n// within a document. These should match otherwise it is\n// not possible to search for some tokens within a document.\n//\n// It is possible for the user to change the separator on the\n// tokenizer so it _might_ clash with any other of the special\n// characters already used within the search string, e.g. :.\n//\n// This means that it is possible to change the separator in\n// such a way that makes some words unsearchable using a search\n// string.\nlunr.QueryLexer.termSeparator = lunr.tokenizer.separator\n\nlunr.QueryLexer.lexText = function (lexer) {\n  while (true) {\n    var char = lexer.next()\n\n    if (char == lunr.QueryLexer.EOS) {\n      return lunr.QueryLexer.lexEOS\n    }\n\n    // Escape character is '\\'\n    if (char.charCodeAt(0) == 92) {\n      lexer.escapeCharacter()\n      continue\n    }\n\n    if (char == \":\") {\n      return lunr.QueryLexer.lexField\n    }\n\n    if (char == \"~\") {\n      lexer.backup()\n      if (lexer.width() > 0) {\n        lexer.emit(lunr.QueryLexer.TERM)\n      }\n      return lunr.QueryLexer.lexEditDistance\n    }\n\n    if (char == \"^\") {\n      lexer.backup()\n      if (lexer.width() > 0) {\n        lexer.emit(lunr.QueryLexer.TERM)\n      }\n      return lunr.QueryLexer.lexBoost\n    }\n\n    // \"+\" indicates term presence is required\n    // checking for length to ensure that only\n    // leading \"+\" are considered\n    if (char == \"+\" && lexer.width() === 1) {\n      lexer.emit(lunr.QueryLexer.PRESENCE)\n      return lunr.QueryLexer.lexText\n    }\n\n    // \"-\" indicates term presence is prohibited\n    // checking for length to ensure that only\n    // leading \"-\" are considered\n    if (char == \"-\" && lexer.width() === 1) {\n      lexer.emit(lunr.QueryLexer.PRESENCE)\n      return lunr.QueryLexer.lexText\n    }\n\n    if (char.match(lunr.QueryLexer.termSeparator)) {\n      return lunr.QueryLexer.lexTerm\n    }\n  }\n}\n\nlunr.QueryParser = function (str, query) {\n  this.lexer = new lunr.QueryLexer (str)\n  this.query = query\n  this.currentClause = {}\n  this.lexemeIdx = 0\n}\n\nlunr.QueryParser.prototype.parse = function () {\n  this.lexer.run()\n  this.lexemes = this.lexer.lexemes\n\n  var state = lunr.QueryParser.parseClause\n\n  while (state) {\n    state = state(this)\n  }\n\n  return this.query\n}\n\nlunr.QueryParser.prototype.peekLexeme = function () {\n  return this.lexemes[this.lexemeIdx]\n}\n\nlunr.QueryParser.prototype.consumeLexeme = function () {\n  var lexeme = this.peekLexeme()\n  this.lexemeIdx += 1\n  return lexeme\n}\n\nlunr.QueryParser.prototype.nextClause = function () {\n  var completedClause = this.currentClause\n  this.query.clause(completedClause)\n  this.currentClause = {}\n}\n\nlunr.QueryParser.parseClause = function (parser) {\n  var lexeme = parser.peekLexeme()\n\n  if (lexeme == undefined) {\n    return\n  }\n\n  switch (lexeme.type) {\n    case lunr.QueryLexer.PRESENCE:\n      return lunr.QueryParser.parsePresence\n    case lunr.QueryLexer.FIELD:\n      return lunr.QueryParser.parseField\n    case lunr.QueryLexer.TERM:\n      return lunr.QueryParser.parseTerm\n    default:\n      var errorMessage = \"expected either a field or a term, found \" + lexeme.type\n\n      if (lexeme.str.length >= 1) {\n        errorMessage += \" with value '\" + lexeme.str + \"'\"\n      }\n\n      throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n  }\n}\n\nlunr.QueryParser.parsePresence = function (parser) {\n  var lexeme = parser.consumeLexeme()\n\n  if (lexeme == undefined) {\n    return\n  }\n\n  switch (lexeme.str) {\n    case \"-\":\n      parser.currentClause.presence = lunr.Query.presence.PROHIBITED\n      break\n    case \"+\":\n      parser.currentClause.presence = lunr.Query.presence.REQUIRED\n      break\n    default:\n      var errorMessage = \"unrecognised presence operator'\" + lexeme.str + \"'\"\n      throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n  }\n\n  var nextLexeme = parser.peekLexeme()\n\n  if (nextLexeme == undefined) {\n    var errorMessage = \"expecting term or field, found nothing\"\n    throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n  }\n\n  switch (nextLexeme.type) {\n    case lunr.QueryLexer.FIELD:\n      return lunr.QueryParser.parseField\n    case lunr.QueryLexer.TERM:\n      return lunr.QueryParser.parseTerm\n    default:\n      var errorMessage = \"expecting term or field, found '\" + nextLexeme.type + \"'\"\n      throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n  }\n}\n\nlunr.QueryParser.parseField = function (parser) {\n  var lexeme = parser.consumeLexeme()\n\n  if (lexeme == undefined) {\n    return\n  }\n\n  if (parser.query.allFields.indexOf(lexeme.str) == -1) {\n    var possibleFields = parser.query.allFields.map(function (f) { return \"'\" + f + \"'\" }).join(', '),\n        errorMessage = \"unrecognised field '\" + lexeme.str + \"', possible fields: \" + possibleFields\n\n    throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n  }\n\n  parser.currentClause.fields = [lexeme.str]\n\n  var nextLexeme = parser.peekLexeme()\n\n  if (nextLexeme == undefined) {\n    var errorMessage = \"expecting term, found nothing\"\n    throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n  }\n\n  switch (nextLexeme.type) {\n    case lunr.QueryLexer.TERM:\n      return lunr.QueryParser.parseTerm\n    default:\n      var errorMessage = \"expecting term, found '\" + nextLexeme.type + \"'\"\n      throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n  }\n}\n\nlunr.QueryParser.parseTerm = function (parser) {\n  var lexeme = parser.consumeLexeme()\n\n  if (lexeme == undefined) {\n    return\n  }\n\n  parser.currentClause.term = lexeme.str.toLowerCase()\n\n  if (lexeme.str.indexOf(\"*\") != -1) {\n    parser.currentClause.usePipeline = false\n  }\n\n  var nextLexeme = parser.peekLexeme()\n\n  if (nextLexeme == undefined) {\n    parser.nextClause()\n    return\n  }\n\n  switch (nextLexeme.type) {\n    case lunr.QueryLexer.TERM:\n      parser.nextClause()\n      return lunr.QueryParser.parseTerm\n    case lunr.QueryLexer.FIELD:\n      parser.nextClause()\n      return lunr.QueryParser.parseField\n    case lunr.QueryLexer.EDIT_DISTANCE:\n      return lunr.QueryParser.parseEditDistance\n    case lunr.QueryLexer.BOOST:\n      return lunr.QueryParser.parseBoost\n    case lunr.QueryLexer.PRESENCE:\n      parser.nextClause()\n      return lunr.QueryParser.parsePresence\n    default:\n      var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n      throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n  }\n}\n\nlunr.QueryParser.parseEditDistance = function (parser) {\n  var lexeme = parser.consumeLexeme()\n\n  if (lexeme == undefined) {\n    return\n  }\n\n  var editDistance = parseInt(lexeme.str, 10)\n\n  if (isNaN(editDistance)) {\n    var errorMessage = \"edit distance must be numeric\"\n    throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n  }\n\n  parser.currentClause.editDistance = editDistance\n\n  var nextLexeme = parser.peekLexeme()\n\n  if (nextLexeme == undefined) {\n    parser.nextClause()\n    return\n  }\n\n  switch (nextLexeme.type) {\n    case lunr.QueryLexer.TERM:\n      parser.nextClause()\n      return lunr.QueryParser.parseTerm\n    case lunr.QueryLexer.FIELD:\n      parser.nextClause()\n      return lunr.QueryParser.parseField\n    case lunr.QueryLexer.EDIT_DISTANCE:\n      return lunr.QueryParser.parseEditDistance\n    case lunr.QueryLexer.BOOST:\n      return lunr.QueryParser.parseBoost\n    case lunr.QueryLexer.PRESENCE:\n      parser.nextClause()\n      return lunr.QueryParser.parsePresence\n    default:\n      var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n      throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n  }\n}\n\nlunr.QueryParser.parseBoost = function (parser) {\n  var lexeme = parser.consumeLexeme()\n\n  if (lexeme == undefined) {\n    return\n  }\n\n  var boost = parseInt(lexeme.str, 10)\n\n  if (isNaN(boost)) {\n    var errorMessage = \"boost must be numeric\"\n    throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n  }\n\n  parser.currentClause.boost = boost\n\n  var nextLexeme = parser.peekLexeme()\n\n  if (nextLexeme == undefined) {\n    parser.nextClause()\n    return\n  }\n\n  switch (nextLexeme.type) {\n    case lunr.QueryLexer.TERM:\n      parser.nextClause()\n      return lunr.QueryParser.parseTerm\n    case lunr.QueryLexer.FIELD:\n      parser.nextClause()\n      return lunr.QueryParser.parseField\n    case lunr.QueryLexer.EDIT_DISTANCE:\n      return lunr.QueryParser.parseEditDistance\n    case lunr.QueryLexer.BOOST:\n      return lunr.QueryParser.parseBoost\n    case lunr.QueryLexer.PRESENCE:\n      parser.nextClause()\n      return lunr.QueryParser.parsePresence\n    default:\n      var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n      throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n  }\n}\n\n  /**\n   * export the module via AMD, CommonJS or as a browser global\n   * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js\n   */\n  ;(function (root, factory) {\n    if (typeof define === 'function' && define.amd) {\n      // AMD. Register as an anonymous module.\n      define(factory)\n    } else if (typeof exports === 'object') {\n      /**\n       * Node. Does not work with strict CommonJS, but\n       * only CommonJS-like environments that support module.exports,\n       * like Node.\n       */\n      module.exports = factory()\n    } else {\n      // Browser globals (root is window)\n      root.lunr = factory()\n    }\n  }(this, function () {\n    /**\n     * Just return a value to define the module export.\n     * This example returns an object, but the module\n     * can return a function as the exported value.\n     */\n    return lunr\n  }))\n})();\n"
  },
  {
    "path": "docs/search/main.js",
    "content": "function getSearchTermFromLocation() {\n  var sPageURL = window.location.search.substring(1);\n  var sURLVariables = sPageURL.split('&');\n  for (var i = 0; i < sURLVariables.length; i++) {\n    var sParameterName = sURLVariables[i].split('=');\n    if (sParameterName[0] == 'q') {\n      return decodeURIComponent(sParameterName[1].replace(/\\+/g, '%20'));\n    }\n  }\n}\n\nfunction joinUrl (base, path) {\n  if (path.substring(0, 1) === \"/\") {\n    // path starts with `/`. Thus it is absolute.\n    return path;\n  }\n  if (base.substring(base.length-1) === \"/\") {\n    // base ends with `/`\n    return base + path;\n  }\n  return base + \"/\" + path;\n}\n\nfunction escapeHtml (value) {\n  return value.replace(/&/g, '&amp;')\n    .replace(/\"/g, '&quot;')\n    .replace(/</g, '&lt;')\n    .replace(/>/g, '&gt;');\n}\n\nfunction formatResult (location, title, summary) {\n  return '<article><h3><a href=\"' + joinUrl(base_url, location) + '\">'+ escapeHtml(title) + '</a></h3><p>' + escapeHtml(summary) +'</p></article>';\n}\n\nfunction displayResults (results) {\n  var search_results = document.getElementById(\"mkdocs-search-results\");\n  while (search_results.firstChild) {\n    search_results.removeChild(search_results.firstChild);\n  }\n  if (results.length > 0){\n    for (var i=0; i < results.length; i++){\n      var result = results[i];\n      var html = formatResult(result.location, result.title, result.summary);\n      search_results.insertAdjacentHTML('beforeend', html);\n    }\n  } else {\n    var noResultsText = search_results.getAttribute('data-no-results-text');\n    if (!noResultsText) {\n      noResultsText = \"No results found\";\n    }\n    search_results.insertAdjacentHTML('beforeend', '<p>' + noResultsText + '</p>');\n  }\n}\n\nfunction doSearch () {\n  var query = document.getElementById('mkdocs-search-query').value;\n  if (query.length > min_search_length) {\n    if (!window.Worker) {\n      displayResults(search(query));\n    } else {\n      searchWorker.postMessage({query: query});\n    }\n  } else {\n    // Clear results for short queries\n    displayResults([]);\n  }\n}\n\nfunction initSearch () {\n  var search_input = document.getElementById('mkdocs-search-query');\n  if (search_input) {\n    search_input.addEventListener(\"keyup\", doSearch);\n  }\n  var term = getSearchTermFromLocation();\n  if (term) {\n    search_input.value = term;\n    doSearch();\n  }\n}\n\nfunction onWorkerMessage (e) {\n  if (e.data.allowSearch) {\n    initSearch();\n  } else if (e.data.results) {\n    var results = e.data.results;\n    displayResults(results);\n  } else if (e.data.config) {\n    min_search_length = e.data.config.min_search_length-1;\n  }\n}\n\nif (!window.Worker) {\n  console.log('Web Worker API not supported');\n  // load index in main thread\n  $.getScript(joinUrl(base_url, \"search/worker.js\")).done(function () {\n    console.log('Loaded worker');\n    init();\n    window.postMessage = function (msg) {\n      onWorkerMessage({data: msg});\n    };\n  }).fail(function (jqxhr, settings, exception) {\n    console.error('Could not load worker.js');\n  });\n} else {\n  // Wrap search in a web worker\n  var searchWorker = new Worker(joinUrl(base_url, \"search/worker.js\"));\n  searchWorker.postMessage({init: true});\n  searchWorker.onmessage = onWorkerMessage;\n}\n"
  },
  {
    "path": "docs/search/search_index.json",
    "content": "{\"config\":{\"indexing\":\"full\",\"lang\":[\"en\"],\"min_search_length\":3,\"prebuild_index\":false,\"separator\":\"[\\\\s\\\\-]+\"},\"docs\":[{\"location\":\"\",\"text\":\"Django MarkdownX \\u00b6 Django MarkdownX is a comprehensive Markdown plugin built for Django , the renowned high-level Python web framework, with flexibility, extensibility, and ease-of-use at its core. GitHub: https://github.com/neutronX/django-markdownx PyPi: https://pypi.org/project/django-markdownx/ Key features \\u00b6 Raw editing. Live preview. Drag & drop image uploads (automatically stored in the designated location in the Media directory). Customizable image insertion tag. Definition of maximum size for an image. Definition of acceptable image formats (PNG, JPEG, SVG). Image manipulations (compression, size reduction, cropping, upscaling). Pre- and post- text modification. Easy template customization, layout modification, and personalization. Multiple editors per page. Django Admin support. Preview \\u00b6 Acknowledgements \\u00b6 We acknowledge and appreciate every contribution made towards improving Django MarkdownX , a list of which can be found on our GitHub contributors page .\",\"title\":\"Django MarkdownX\"},{\"location\":\"#django-markdownx\",\"text\":\"Django MarkdownX is a comprehensive Markdown plugin built for Django , the renowned high-level Python web framework, with flexibility, extensibility, and ease-of-use at its core. GitHub: https://github.com/neutronX/django-markdownx PyPi: https://pypi.org/project/django-markdownx/\",\"title\":\"Django MarkdownX\"},{\"location\":\"#key-features\",\"text\":\"Raw editing. Live preview. Drag & drop image uploads (automatically stored in the designated location in the Media directory). Customizable image insertion tag. Definition of maximum size for an image. Definition of acceptable image formats (PNG, JPEG, SVG). Image manipulations (compression, size reduction, cropping, upscaling). Pre- and post- text modification. Easy template customization, layout modification, and personalization. Multiple editors per page. Django Admin support.\",\"title\":\"Key features\"},{\"location\":\"#preview\",\"text\":\"\",\"title\":\"Preview\"},{\"location\":\"#acknowledgements\",\"text\":\"We acknowledge and appreciate every contribution made towards improving Django MarkdownX , a list of which can be found on our GitHub contributors page .\",\"title\":\"Acknowledgements\"},{\"location\":\"contributions/\",\"text\":\"Contributions \\u00b6 We welcome and encourage contributions of all nature; from pointing out an error or a potential problem, to translations, to feature requests, and pull requests. We have a implemented a fully comprehensive developers' environment that comes with many functionalities, including its own Vagrant and Docker containers. To set up the developers' environment, start off by cloning our source code from GitHub , like so: git clone https://github.com/neutronX/django-markdownx.git One that's done, change to the cloned directory and run: python3 dev.py -h to see the options available. Quick reference \\u00b6 -h , --help \\u00b6 Show the help message and exit. -v , --vagrant \\u00b6 Install Vagrant development environment (requires Vagrant). -d , --docker \\u00b6 Install Docker development environment (requires Docker). -c , --clean \\u00b6 Clean up the development files (only the ones that have been automatically created). -run-vagrant \\u00b6 Run vagrant development environment (runs --vagrant if the files don't already exist). Vagrant must be installed on your machine. -run-docker \\u00b6 Run docker development environment (runs --docker if the files don't already exist). Docker must already be installed on your machine, and Docker Daemon must be up and running. -no-container \\u00b6 Create development files without a container-based development environment (creates manage.py and runtests.py ). Optional \\u00b6 --with-docs \\u00b6 Install documentation development environment. --with-npm-settings \\u00b6 Install npm installation environment, including package.json for front-end (TypeScript) development (requires node.js and npm ). Note --with-docs and --with-npm-settings are optional and need to be accompanied by one of the required arguments. To save the changes made within the developers' environment, use -c or --clean ; and you will be asked if you would like to override the existing settings. Do not commit your changes before doing this . Example \\u00b6 This will install the following files: manage.py runtests.py Makefile create_docs.py It will also install the requirements for compiling the documentations. You do not need to create the documentations locally if you do not intend to change them. Although you are welcome to do so, for minor changes, it is probably easier to report an issue on GitHub as compiling the documentations can be somewhat tricky. python3 dev.py -no-container --with-docs However, if you still want to run a preview of the edited documentation, use the following command to see the result (it will run documentation preview on port http://localhost:8001 ) mkdocs serve Once done, please run: python3 dev.py -c to clean the installed files. If any of them have been altered, you will be asked for additional instructions as to whether to save the changes or discard them and hold onto the default. Tests \\u00b6 Django packages require manage.py and more often than not, settings.py files to run. This introduces a challenge for testing apps outside of a fully constructed project environment. This is one of the reasons why we introduced the developers' environment, which allows for a fully setup container ( Vagrant or Docker ) to create an inclusive virtual server that can be used to run MarkdownX independently. Attention You need to have either Vagrant or Docker along with Oracle VirtualBox installed and configured to run either of these. Note Vagrant will attempt to download and install Ubuntu Xenial, whilst Docker uses the default operating system if one already exists. To take advantage of this, you should clone the source code from GitHub as explained above, and depending on your container of choice, follow these instructions: Vagrant \\u00b6 python3 dev.py --vagrant Files will be created: Vagrantfile bootstrap.sh runtests.py manage.py package.json python3 dev.py -run-vagrant Connect to server using http://localhost:8000/ or http://127.0.0.1:8000/ Docker \\u00b6 python3 dev.py --docker Files will be created: Dockerfile docker-compose.yml entrypoint.sh runtests.py manage.py package.json python3 dev.py -run-docker Connect to server using http://localhost:8000/ or http://127.0.0.1:8000/ Tip Any changes made to the code whilst the container is up and running is automatically reflected without the need to restart the container. Cleanup \\u00b6 Once done, please run: python3 dev.py -c to clean the installed files. If any of them have been altered, you will be asked for additional instructions as to whether to save the changes or discard them and hold onto the default.\",\"title\":\"Contributions\"},{\"location\":\"contributions/#contributions\",\"text\":\"We welcome and encourage contributions of all nature; from pointing out an error or a potential problem, to translations, to feature requests, and pull requests. We have a implemented a fully comprehensive developers' environment that comes with many functionalities, including its own Vagrant and Docker containers. To set up the developers' environment, start off by cloning our source code from GitHub , like so: git clone https://github.com/neutronX/django-markdownx.git One that's done, change to the cloned directory and run: python3 dev.py -h to see the options available.\",\"title\":\"Contributions\"},{\"location\":\"contributions/#quick-reference\",\"text\":\"\",\"title\":\"Quick reference\"},{\"location\":\"contributions/#-h-help\",\"text\":\"Show the help message and exit.\",\"title\":\"-h, --help\"},{\"location\":\"contributions/#-v-vagrant\",\"text\":\"Install Vagrant development environment (requires Vagrant).\",\"title\":\"-v, --vagrant\"},{\"location\":\"contributions/#-d-docker\",\"text\":\"Install Docker development environment (requires Docker).\",\"title\":\"-d, --docker\"},{\"location\":\"contributions/#-c-clean\",\"text\":\"Clean up the development files (only the ones that have been automatically created).\",\"title\":\"-c, --clean\"},{\"location\":\"contributions/#-run-vagrant\",\"text\":\"Run vagrant development environment (runs --vagrant if the files don't already exist). Vagrant must be installed on your machine.\",\"title\":\"-run-vagrant\"},{\"location\":\"contributions/#-run-docker\",\"text\":\"Run docker development environment (runs --docker if the files don't already exist). Docker must already be installed on your machine, and Docker Daemon must be up and running.\",\"title\":\"-run-docker\"},{\"location\":\"contributions/#-no-container\",\"text\":\"Create development files without a container-based development environment (creates manage.py and runtests.py ).\",\"title\":\"-no-container\"},{\"location\":\"contributions/#optional\",\"text\":\"\",\"title\":\"Optional\"},{\"location\":\"contributions/#-with-docs\",\"text\":\"Install documentation development environment.\",\"title\":\"--with-docs\"},{\"location\":\"contributions/#-with-npm-settings\",\"text\":\"Install npm installation environment, including package.json for front-end (TypeScript) development (requires node.js and npm ). Note --with-docs and --with-npm-settings are optional and need to be accompanied by one of the required arguments. To save the changes made within the developers' environment, use -c or --clean ; and you will be asked if you would like to override the existing settings. Do not commit your changes before doing this .\",\"title\":\"--with-npm-settings\"},{\"location\":\"contributions/#example\",\"text\":\"This will install the following files: manage.py runtests.py Makefile create_docs.py It will also install the requirements for compiling the documentations. You do not need to create the documentations locally if you do not intend to change them. Although you are welcome to do so, for minor changes, it is probably easier to report an issue on GitHub as compiling the documentations can be somewhat tricky. python3 dev.py -no-container --with-docs However, if you still want to run a preview of the edited documentation, use the following command to see the result (it will run documentation preview on port http://localhost:8001 ) mkdocs serve Once done, please run: python3 dev.py -c to clean the installed files. If any of them have been altered, you will be asked for additional instructions as to whether to save the changes or discard them and hold onto the default.\",\"title\":\"Example\"},{\"location\":\"contributions/#tests\",\"text\":\"Django packages require manage.py and more often than not, settings.py files to run. This introduces a challenge for testing apps outside of a fully constructed project environment. This is one of the reasons why we introduced the developers' environment, which allows for a fully setup container ( Vagrant or Docker ) to create an inclusive virtual server that can be used to run MarkdownX independently. Attention You need to have either Vagrant or Docker along with Oracle VirtualBox installed and configured to run either of these. Note Vagrant will attempt to download and install Ubuntu Xenial, whilst Docker uses the default operating system if one already exists. To take advantage of this, you should clone the source code from GitHub as explained above, and depending on your container of choice, follow these instructions:\",\"title\":\"Tests\"},{\"location\":\"contributions/#vagrant\",\"text\":\"python3 dev.py --vagrant Files will be created: Vagrantfile bootstrap.sh runtests.py manage.py package.json python3 dev.py -run-vagrant Connect to server using http://localhost:8000/ or http://127.0.0.1:8000/\",\"title\":\"Vagrant\"},{\"location\":\"contributions/#docker\",\"text\":\"python3 dev.py --docker Files will be created: Dockerfile docker-compose.yml entrypoint.sh runtests.py manage.py package.json python3 dev.py -run-docker Connect to server using http://localhost:8000/ or http://127.0.0.1:8000/ Tip Any changes made to the code whilst the container is up and running is automatically reflected without the need to restart the container.\",\"title\":\"Docker\"},{\"location\":\"contributions/#cleanup\",\"text\":\"Once done, please run: python3 dev.py -c to clean the installed files. If any of them have been altered, you will be asked for additional instructions as to whether to save the changes or discard them and hold onto the default.\",\"title\":\"Cleanup\"},{\"location\":\"customization/\",\"text\":\"Customization \\u00b6 General (ex. settings) \\u00b6 Widget \\u00b6 The default widget is as seen here . If you would like to customise this; for instance, using Bootstrap v3 to implement side-by-side panes (as seen in :doc: preview animation<index> ), you should override the default widget\\u2019s template by creating your own template and saving it under markdownx/widget.html in your project's TEMPLATE_DIRS . Here is an example of the contents: <div class=\\\"markdownx row\\\"> <div class=\\\"col-md-6\\\"> {% include 'django/forms/widgets/textarea.html' %} </div> <div class=\\\"col-md-6\\\"> <div class=\\\"markdownx-preview\\\"></div> </div> </div> Fields \\u00b6 We have ensured that MarkdownX is fully extensible and provides a high degree of flexibility in development. There are times that you may wish to Markdownify a different type of field, or utilize your own customized widget. To accommodate this, we have provided the tools to apply MarkdownX infrastructure to other fields through Widgets . For instance, to apply MarkdownX to TextField instances in your Django Admins, you can override the default widget in the Admins module in admin.py of your Django App as follows: from django.db import models from django.contrib import admin from markdownx.widgets import AdminMarkdownxWidget from .models import MyModel class MyModelAdmin(admin.ModelAdmin): formfield_overrides = { models.TextField: {'widget': AdminMarkdownxWidget}, } admin.site.register(MyModel, MyModelAdmin) Image tags \\u00b6 Markdown uses ![]() tag by default to insert uploaded image file. This generates a simple (X)HTML <image> tag. If you wish to have more control and use your own HTML tags, you may create a custom form_valid() function in ImageUploadView class, as highlighted here . Settings \\u00b6 You may place any of the variables outlined in this page in your settings.py , alter their values and override default behaviours: MARKDOWNX_MARKDOWNIFY_FUNCTION MARKDOWNX_MARKDOWN_EXTENSIONS MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS MARKDOWNX_URLS_PATH MARKDOWNX_UPLOAD_URLS_PATH MARKDOWNX_MEDIA_PATH MARKDOWNX_UPLOAD_MAX_SIZE MARKDOWNX_UPLOAD_CONTENT_TYPES MARKDOWNX_SKIP_RESIZE MARKDOWNX_IMAGE_MAX_SIZE MARKDOWNX_SVG_JAVASCRIPT_PROTECTION MARKDOWNX_EDITOR_RESIZABLE MARKDOWNX_SERVER_CALL_LATENCY Attention The focus of this section is on the customisation of features controlled in the backend . Additional customisations, or to be rather more accurate, event controls are enabled in the frontend through JavaScript events. To learn more about these events, see our JavaScript documentation on events . MARKDOWNX_MARKDOWNIFY_FUNCTION \\u00b6 Default: 'markdownx.utils.markdownify' Markdown to HTML function. Takes an argument of type str() and returns the HTML encoded output as str() . Default function that compiles markdown using defined extensions. Using custom function can allow you to pre-process or post-process markdown text. See below for more info. MARKDOWNX_MARKDOWNIFY_FUNCTION = 'markdownx.utils.markdownify' This function uses the Markdown package for trans-compilation. Note The function name must be entered as string, and the relevant package must be installed and accessible to the current interpreter such that it can later be imported as and when needed. So markdownx.utils.markdownify essentially means from markdownx.utils import markdownify . Hint The default function ( markdownx.utils.markdownify ) that handles the trans-compilation of Markdown to HTML looks like this: from markdown import markdown from .settings import ( MARKDOWNX_MARKDOWN_EXTENSIONS, MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS ) def markdownify(content): md = markdown( text=content, extensions=MARKDOWNX_MARKDOWN_EXTENSIONS, extension_configs=MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS ) return md MARKDOWNX_MARKDOWN_EXTENSIONS \\u00b6 Default: empty list() List of str() . List of Markdown extensions that you would like to use. See available extensions in Markdown docs. For instance, the extension extra enables features such as abbreviations, footnotes, tables and so on. We recommend you read the documentation for the Markdown package , our default Markdown trans-compiler. MARKDOWNX_MARKDOWN_EXTENSIONS = [ 'markdown.extensions.extra' ] MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS \\u00b6 Default: empty dict() Configuration object for used markdown extensions. See extension_configs in Markdown docs . Here is a general idea: MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS = { 'extension_name_1': { 'option_1': 'value_1' } } MARKDOWNX_URLS_PATH \\u00b6 Default: '/markdownx/markdownify/' Relative URL to which the Markdown text is sent to be encoded as HTML. MARKDOWNX_URLS_PATH = '/markdownx/markdownify/' MARKDOWNX_UPLOAD_URLS_PATH \\u00b6 Default: '/markdownx/upload/' URL that accepts file uploads (images) through an AJAX POST request. The request response will contain markdown formatted markup containing the relative URL for the image. MARKDOWNX_UPLOAD_URLS_PATH = '/markdownx/upload/' MARKDOWNX_MEDIA_PATH \\u00b6 Default: 'markdownx/' The path where the images will be stored in your MEDIA_ROOT directory. MARKDOWNX_MEDIA_PATH = 'markdownx/' Tip Recommended : Storing all uploaded images in a single directory would over time results in a lot files being stored in one location. This would slow down the process of saving and loading files substantially, and can in turn lead to your website becoming very slow when it comes to loading images. To address this issue, it is better to save the uploads in different directories. Here is an example of how this can be achieved: from datetime import datetime MARKDOWNX_MEDIA_PATH = datetime.now().strftime('markdownx/%Y/%m/%d') This ensures that uploaded files are stored in a different directory on the basis of the date on which they are uploaded. So for instance; an image uploaded on the 15th of April 2017 will be stored under media/markdownx/2017/4/15/unique_name.png . MARKDOWNX_UPLOAD_MAX_SIZE \\u00b6 Default: 50 * 1024 * 1024 bytes Maximum image size allowed in bytes: Default is 50MB, which is equal to 52,428,800 bytes. MARKDOWNX_UPLOAD_MAX_SIZE = 50 * 1024 * 1024 Tip It is considered a good practice to display large numbers in a meaningful way. For instance, 52,438,800 bytes is better displayed in code as = 50 * 1024 * 1024 # 50 MB in bytes instead (the comment is also important). Fellow programmers will thank you for this in the future! MARKDOWNX_UPLOAD_CONTENT_TYPES \\u00b6 Default: ['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml'] Image formats that the user is permitted to upload. Enable / disable support for different image formats. MARKDOWNX_UPLOAD_CONTENT_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml'] MARKDOWNX_SKIP_RESIZE \\u00b6 Default: ['image/svg+xml', 'image/gif'] Image formats that should not be resized automatically. The default value honors that resizing an SVG does not make sense and that PIL does not support GIF animation. MARKDOWNX_SKIP_RESIZE = ['image/svg+xml', 'image/gif'] MARKDOWNX_IMAGE_MAX_SIZE \\u00b6 Default: { 'size': (500, 500), 'quality': 90 } Different options describing final image processing; e.g. dimension and quality. Note Quality restrictions do not apply to image/svg+xml formatted graphics. Options are: Option Value Description size (width,height) when one of the dimensions is set to zero, e.g. (500, 0) , the height is calculated automatically so as to keep the dimensions intact. quality int image quality from 0 (full compression) to 100 (no compression). Default: 90 crop Boolean if True , the size is used to crop the image. Default: False upscale Boolean if image dimensions are smaller than those defined in size , upscale to size dimensions. Default: False MARKDOWNX_IMAGE_MAX_SIZE = { 'size': (500, 500), 'quality': 90 } MARKDOWNX_SVG_JAVASCRIPT_PROTECTION \\u00b6 Default: True SVG graphics are in essence XML files formatted in a specific way; which means that they can contain JavaScript codes. This introduces a potential front-end security vulnerability for prospective users who will see the SVG image in context; e.g. it may be employed to collect the user's IP address or other personal information. Note This type of attack is known as XSS (Cross-site Scripting) attack . See this presentation by Mario Heiderich to learn more on SVG XSS attacks. There are a number of ways to deal with this vulnerability. Django is great at security, and provides very good protection against XSS attacks (see the Django documentation for additional information) providing the CSRF protection middleware is enabled. When it comes to AJAX requests, however, CSRF protection may sometimes be disabled for various reasons. As a last resort, however, we have included an optional integrity check against JavaScript tags for SVG formatted files just in case everything else is disabled. This protection is enabled by default, and may be disabled by setting the value to False if so is desired. MARKDOWNX_SVG_JAVASCRIPT_PROTECTION = True Important MarkdownX does not disable CSRF protection by default, and requires the token for all AJAX request. MARKDOWNX_EDITOR_RESIZABLE \\u00b6 Default: True Change the editor's height to match the height of the inner contents whilst typing. MARKDOWNX_EDITOR_RESIZABLE = True MARKDOWNX_SERVER_CALL_LATENCY \\u00b6 Default: 500 miliseconds Latency (minimum lag) between server calls as int . Minimum allowed: 500 milliseconds. Note When the value of a MarkdownX editor is changed, a call is made to the server to trans-compile Markdown into HTML. However, a minimum latency of 500 milliseconds has been imposed between the calls. This is to prevent the bombardment of the server with a huge number of HTTP requests (you don't want to DDoS your own server). This latency maintains a balance between responsiveness and protection, and is well-suited for medium traffic. Nonetheless, if your website enjoys a particularly high traffic, you may wish to alter this value slightly depending on the number of CPUs, the amount memory, and how much you are willing to compromise on responsiveness. MARKDOWNX_SERVER_CALL_LATENCY = 500 # milliseconds Attention Any values below 500 milliseconds is silently ignored and replaced.\",\"title\":\"Customization\"},{\"location\":\"customization/#customization\",\"text\":\"\",\"title\":\"Customization\"},{\"location\":\"customization/#general-ex-settings\",\"text\":\"\",\"title\":\"General (ex. settings)\"},{\"location\":\"customization/#widget\",\"text\":\"The default widget is as seen here . If you would like to customise this; for instance, using Bootstrap v3 to implement side-by-side panes (as seen in :doc: preview animation<index> ), you should override the default widget\\u2019s template by creating your own template and saving it under markdownx/widget.html in your project's TEMPLATE_DIRS . Here is an example of the contents: <div class=\\\"markdownx row\\\"> <div class=\\\"col-md-6\\\"> {% include 'django/forms/widgets/textarea.html' %} </div> <div class=\\\"col-md-6\\\"> <div class=\\\"markdownx-preview\\\"></div> </div> </div>\",\"title\":\"Widget\"},{\"location\":\"customization/#fields\",\"text\":\"We have ensured that MarkdownX is fully extensible and provides a high degree of flexibility in development. There are times that you may wish to Markdownify a different type of field, or utilize your own customized widget. To accommodate this, we have provided the tools to apply MarkdownX infrastructure to other fields through Widgets . For instance, to apply MarkdownX to TextField instances in your Django Admins, you can override the default widget in the Admins module in admin.py of your Django App as follows: from django.db import models from django.contrib import admin from markdownx.widgets import AdminMarkdownxWidget from .models import MyModel class MyModelAdmin(admin.ModelAdmin): formfield_overrides = { models.TextField: {'widget': AdminMarkdownxWidget}, } admin.site.register(MyModel, MyModelAdmin)\",\"title\":\"Fields\"},{\"location\":\"customization/#image-tags\",\"text\":\"Markdown uses ![]() tag by default to insert uploaded image file. This generates a simple (X)HTML <image> tag. If you wish to have more control and use your own HTML tags, you may create a custom form_valid() function in ImageUploadView class, as highlighted here .\",\"title\":\"Image tags\"},{\"location\":\"customization/#settings\",\"text\":\"You may place any of the variables outlined in this page in your settings.py , alter their values and override default behaviours: MARKDOWNX_MARKDOWNIFY_FUNCTION MARKDOWNX_MARKDOWN_EXTENSIONS MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS MARKDOWNX_URLS_PATH MARKDOWNX_UPLOAD_URLS_PATH MARKDOWNX_MEDIA_PATH MARKDOWNX_UPLOAD_MAX_SIZE MARKDOWNX_UPLOAD_CONTENT_TYPES MARKDOWNX_SKIP_RESIZE MARKDOWNX_IMAGE_MAX_SIZE MARKDOWNX_SVG_JAVASCRIPT_PROTECTION MARKDOWNX_EDITOR_RESIZABLE MARKDOWNX_SERVER_CALL_LATENCY Attention The focus of this section is on the customisation of features controlled in the backend . Additional customisations, or to be rather more accurate, event controls are enabled in the frontend through JavaScript events. To learn more about these events, see our JavaScript documentation on events .\",\"title\":\"Settings\"},{\"location\":\"customization/#markdownx_markdownify_function\",\"text\":\"Default: 'markdownx.utils.markdownify' Markdown to HTML function. Takes an argument of type str() and returns the HTML encoded output as str() . Default function that compiles markdown using defined extensions. Using custom function can allow you to pre-process or post-process markdown text. See below for more info. MARKDOWNX_MARKDOWNIFY_FUNCTION = 'markdownx.utils.markdownify' This function uses the Markdown package for trans-compilation. Note The function name must be entered as string, and the relevant package must be installed and accessible to the current interpreter such that it can later be imported as and when needed. So markdownx.utils.markdownify essentially means from markdownx.utils import markdownify . Hint The default function ( markdownx.utils.markdownify ) that handles the trans-compilation of Markdown to HTML looks like this: from markdown import markdown from .settings import ( MARKDOWNX_MARKDOWN_EXTENSIONS, MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS ) def markdownify(content): md = markdown( text=content, extensions=MARKDOWNX_MARKDOWN_EXTENSIONS, extension_configs=MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS ) return md\",\"title\":\"MARKDOWNX_MARKDOWNIFY_FUNCTION\"},{\"location\":\"customization/#markdownx_markdown_extensions\",\"text\":\"Default: empty list() List of str() . List of Markdown extensions that you would like to use. See available extensions in Markdown docs. For instance, the extension extra enables features such as abbreviations, footnotes, tables and so on. We recommend you read the documentation for the Markdown package , our default Markdown trans-compiler. MARKDOWNX_MARKDOWN_EXTENSIONS = [ 'markdown.extensions.extra' ]\",\"title\":\"MARKDOWNX_MARKDOWN_EXTENSIONS\"},{\"location\":\"customization/#markdownx_markdown_extension_configs\",\"text\":\"Default: empty dict() Configuration object for used markdown extensions. See extension_configs in Markdown docs . Here is a general idea: MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS = { 'extension_name_1': { 'option_1': 'value_1' } }\",\"title\":\"MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS\"},{\"location\":\"customization/#markdownx_urls_path\",\"text\":\"Default: '/markdownx/markdownify/' Relative URL to which the Markdown text is sent to be encoded as HTML. MARKDOWNX_URLS_PATH = '/markdownx/markdownify/'\",\"title\":\"MARKDOWNX_URLS_PATH\"},{\"location\":\"customization/#markdownx_upload_urls_path\",\"text\":\"Default: '/markdownx/upload/' URL that accepts file uploads (images) through an AJAX POST request. The request response will contain markdown formatted markup containing the relative URL for the image. MARKDOWNX_UPLOAD_URLS_PATH = '/markdownx/upload/'\",\"title\":\"MARKDOWNX_UPLOAD_URLS_PATH\"},{\"location\":\"customization/#markdownx_media_path\",\"text\":\"Default: 'markdownx/' The path where the images will be stored in your MEDIA_ROOT directory. MARKDOWNX_MEDIA_PATH = 'markdownx/' Tip Recommended : Storing all uploaded images in a single directory would over time results in a lot files being stored in one location. This would slow down the process of saving and loading files substantially, and can in turn lead to your website becoming very slow when it comes to loading images. To address this issue, it is better to save the uploads in different directories. Here is an example of how this can be achieved: from datetime import datetime MARKDOWNX_MEDIA_PATH = datetime.now().strftime('markdownx/%Y/%m/%d') This ensures that uploaded files are stored in a different directory on the basis of the date on which they are uploaded. So for instance; an image uploaded on the 15th of April 2017 will be stored under media/markdownx/2017/4/15/unique_name.png .\",\"title\":\"MARKDOWNX_MEDIA_PATH\"},{\"location\":\"customization/#markdownx_upload_max_size\",\"text\":\"Default: 50 * 1024 * 1024 bytes Maximum image size allowed in bytes: Default is 50MB, which is equal to 52,428,800 bytes. MARKDOWNX_UPLOAD_MAX_SIZE = 50 * 1024 * 1024 Tip It is considered a good practice to display large numbers in a meaningful way. For instance, 52,438,800 bytes is better displayed in code as = 50 * 1024 * 1024 # 50 MB in bytes instead (the comment is also important). Fellow programmers will thank you for this in the future!\",\"title\":\"MARKDOWNX_UPLOAD_MAX_SIZE\"},{\"location\":\"customization/#markdownx_upload_content_types\",\"text\":\"Default: ['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml'] Image formats that the user is permitted to upload. Enable / disable support for different image formats. MARKDOWNX_UPLOAD_CONTENT_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml']\",\"title\":\"MARKDOWNX_UPLOAD_CONTENT_TYPES\"},{\"location\":\"customization/#markdownx_skip_resize\",\"text\":\"Default: ['image/svg+xml', 'image/gif'] Image formats that should not be resized automatically. The default value honors that resizing an SVG does not make sense and that PIL does not support GIF animation. MARKDOWNX_SKIP_RESIZE = ['image/svg+xml', 'image/gif']\",\"title\":\"MARKDOWNX_SKIP_RESIZE\"},{\"location\":\"customization/#markdownx_image_max_size\",\"text\":\"Default: { 'size': (500, 500), 'quality': 90 } Different options describing final image processing; e.g. dimension and quality. Note Quality restrictions do not apply to image/svg+xml formatted graphics. Options are: Option Value Description size (width,height) when one of the dimensions is set to zero, e.g. (500, 0) , the height is calculated automatically so as to keep the dimensions intact. quality int image quality from 0 (full compression) to 100 (no compression). Default: 90 crop Boolean if True , the size is used to crop the image. Default: False upscale Boolean if image dimensions are smaller than those defined in size , upscale to size dimensions. Default: False MARKDOWNX_IMAGE_MAX_SIZE = { 'size': (500, 500), 'quality': 90 }\",\"title\":\"MARKDOWNX_IMAGE_MAX_SIZE\"},{\"location\":\"customization/#markdownx_svg_javascript_protection\",\"text\":\"Default: True SVG graphics are in essence XML files formatted in a specific way; which means that they can contain JavaScript codes. This introduces a potential front-end security vulnerability for prospective users who will see the SVG image in context; e.g. it may be employed to collect the user's IP address or other personal information. Note This type of attack is known as XSS (Cross-site Scripting) attack . See this presentation by Mario Heiderich to learn more on SVG XSS attacks. There are a number of ways to deal with this vulnerability. Django is great at security, and provides very good protection against XSS attacks (see the Django documentation for additional information) providing the CSRF protection middleware is enabled. When it comes to AJAX requests, however, CSRF protection may sometimes be disabled for various reasons. As a last resort, however, we have included an optional integrity check against JavaScript tags for SVG formatted files just in case everything else is disabled. This protection is enabled by default, and may be disabled by setting the value to False if so is desired. MARKDOWNX_SVG_JAVASCRIPT_PROTECTION = True Important MarkdownX does not disable CSRF protection by default, and requires the token for all AJAX request.\",\"title\":\"MARKDOWNX_SVG_JAVASCRIPT_PROTECTION\"},{\"location\":\"customization/#markdownx_editor_resizable\",\"text\":\"Default: True Change the editor's height to match the height of the inner contents whilst typing. MARKDOWNX_EDITOR_RESIZABLE = True\",\"title\":\"MARKDOWNX_EDITOR_RESIZABLE\"},{\"location\":\"customization/#markdownx_server_call_latency\",\"text\":\"Default: 500 miliseconds Latency (minimum lag) between server calls as int . Minimum allowed: 500 milliseconds. Note When the value of a MarkdownX editor is changed, a call is made to the server to trans-compile Markdown into HTML. However, a minimum latency of 500 milliseconds has been imposed between the calls. This is to prevent the bombardment of the server with a huge number of HTTP requests (you don't want to DDoS your own server). This latency maintains a balance between responsiveness and protection, and is well-suited for medium traffic. Nonetheless, if your website enjoys a particularly high traffic, you may wish to alter this value slightly depending on the number of CPUs, the amount memory, and how much you are willing to compromise on responsiveness. MARKDOWNX_SERVER_CALL_LATENCY = 500 # milliseconds Attention Any values below 500 milliseconds is silently ignored and replaced.\",\"title\":\"MARKDOWNX_SERVER_CALL_LATENCY\"},{\"location\":\"example/\",\"text\":\"Example \\u00b6 Have you: successfully installed MarkdownX ? followed the instructions on how to get started ? If so, you are set for the next step. Here you can find comprehensive examples of how to use different MarkdownX features to your advantage. Model \\u00b6 This is how you implement a MarkdownX field in your models. In your app/models.py : from markdownx.models import MarkdownxField class MyModel(models.Model): myfield = MarkdownxField() ... and then, include the form media in the relevant template using {{ form.media }} , like so: <form method=\\\"POST\\\" action=\\\"\\\">{% csrf_token %} {{ form }} </form> {{ form.media }} Note The field extends Django's own TextField and is saved in the database accordingly. Form \\u00b6 You can also implement MarkdownX through the forms. This will be done in your app/forms.py as follows: from markdownx.fields import MarkdownxFormField class MyForm(forms.Form): myfield = MarkdownxFormField() ... and then, include a form's required media in the template using {{ form.media }} : <form method=\\\"POST\\\" action=\\\"\\\">{% csrf_token %} {{ form }} </form> {{ form.media }} Django Admin \\u00b6 When using included MarkdownxModel class in your models, just use MarkdownxModelAdmin in your app/admin.py as follows: from django.contrib import admin from markdownx.admin import MarkdownxModelAdmin from .models import MyModel admin.site.register(MyModel, MarkdownxModelAdmin)\",\"title\":\"Example\"},{\"location\":\"example/#example\",\"text\":\"Have you: successfully installed MarkdownX ? followed the instructions on how to get started ? If so, you are set for the next step. Here you can find comprehensive examples of how to use different MarkdownX features to your advantage.\",\"title\":\"Example\"},{\"location\":\"example/#model\",\"text\":\"This is how you implement a MarkdownX field in your models. In your app/models.py : from markdownx.models import MarkdownxField class MyModel(models.Model): myfield = MarkdownxField() ... and then, include the form media in the relevant template using {{ form.media }} , like so: <form method=\\\"POST\\\" action=\\\"\\\">{% csrf_token %} {{ form }} </form> {{ form.media }} Note The field extends Django's own TextField and is saved in the database accordingly.\",\"title\":\"Model\"},{\"location\":\"example/#form\",\"text\":\"You can also implement MarkdownX through the forms. This will be done in your app/forms.py as follows: from markdownx.fields import MarkdownxFormField class MyForm(forms.Form): myfield = MarkdownxFormField() ... and then, include a form's required media in the template using {{ form.media }} : <form method=\\\"POST\\\" action=\\\"\\\">{% csrf_token %} {{ form }} </form> {{ form.media }}\",\"title\":\"Form\"},{\"location\":\"example/#django-admin\",\"text\":\"When using included MarkdownxModel class in your models, just use MarkdownxModelAdmin in your app/admin.py as follows: from django.contrib import admin from markdownx.admin import MarkdownxModelAdmin from .models import MyModel admin.site.register(MyModel, MarkdownxModelAdmin)\",\"title\":\"Django Admin\"},{\"location\":\"getting_started/\",\"text\":\"Getting Started \\u00b6 First and foremost, add markdownx to the list of INSTALLED_APPS in settings.py . INSTALLED_APPS = ( # [...] 'markdownx', ) You may alter default behaviours by adding and changing relevant variables in your settings. See customization for additional information. Add MarkdownX URL patterns to your urls.py . You can do this using either of these methods depending on your style: urlpatterns = [ # [...] path('markdownx/', include('markdownx.urls')), ] or alternatively: from django.conf.urls import url, include from markdownx import urls as markdownx urlpatterns += [ path('markdownx/', include(markdownx)), ] and, don't forget to collect MarkdownX assets to your STATIC_ROOT . To do this, run: python3 manage.py collectstatic\",\"title\":\"Getting Started\"},{\"location\":\"getting_started/#getting-started\",\"text\":\"First and foremost, add markdownx to the list of INSTALLED_APPS in settings.py . INSTALLED_APPS = ( # [...] 'markdownx', ) You may alter default behaviours by adding and changing relevant variables in your settings. See customization for additional information. Add MarkdownX URL patterns to your urls.py . You can do this using either of these methods depending on your style: urlpatterns = [ # [...] path('markdownx/', include('markdownx.urls')), ] or alternatively: from django.conf.urls import url, include from markdownx import urls as markdownx urlpatterns += [ path('markdownx/', include(markdownx)), ] and, don't forget to collect MarkdownX assets to your STATIC_ROOT . To do this, run: python3 manage.py collectstatic\",\"title\":\"Getting Started\"},{\"location\":\"installation/\",\"text\":\"Installation \\u00b6 Using PIP \\u00b6 Django MarkdownX may be installed directly using Python Package Index (PyPi): pip install django-markdownx From the source \\u00b6 Should you wish to download and install it using the source code, you can do as follows: Note Make sure you have activated your virtual environment if you\\u2019re using one. We start off by downloading the source code from GitHub and navigate to the downloaded directory: git clone https://github.com/neutronX/django-markdownx.git cd django-markdownx/ Install the package. python3 setup.py install\",\"title\":\"Installation\"},{\"location\":\"installation/#installation\",\"text\":\"\",\"title\":\"Installation\"},{\"location\":\"installation/#using-pip\",\"text\":\"Django MarkdownX may be installed directly using Python Package Index (PyPi): pip install django-markdownx\",\"title\":\"Using PIP\"},{\"location\":\"installation/#from-the-source\",\"text\":\"Should you wish to download and install it using the source code, you can do as follows: Note Make sure you have activated your virtual environment if you\\u2019re using one. We start off by downloading the source code from GitHub and navigate to the downloaded directory: git clone https://github.com/neutronX/django-markdownx.git cd django-markdownx/ Install the package. python3 setup.py install\",\"title\":\"From the source\"},{\"location\":\"javascript/\",\"text\":\"JavaScript \\u00b6 Events \\u00b6 Some MarkdownX processes trigger events that may be utilized for different purposes. To handle such events in JavaScript, you may take advantage of event listeners as exemplified below: markdownx.init markdownx.update markdownx.updateError markdownx.markdownx.fileUploadBegin markdownx.fileUploadEnd markdownx.fileUploadError markdownx.init \\u00b6 Triggered after jQuery plugin init. markdownx.init is an event that does not return a response. JavaScript ECMA 2015+: let element = document.getElementsByClassName('markdownx'); Object.keys(element).map(key => element[key].addEventListener('markdownx.init', () => console.log(\\\"MarkdownX initialized.\\\")) ); markdownx.update \\u00b6 Triggered when editor text is markdownified. Returns: response ( string ) variable containing markdownified text. JavaScript ECMA 2015+: let element = document.getElementsByClassName('markdownx'); Object.keys(element).map(key => element[key].addEventListener('markdownx.update', event => console.log(event.detail)) ); markdownx.updateError \\u00b6 Triggered when a problem occurred during markdownify. markdownx.markdownx.fileUploadBegin \\u00b6 Triggered when the file is posted. markdownx.fileUploadEnd \\u00b6 Triggered when the file has been uploaded. markdownx.fileUploadError \\u00b6 Triggered if the upload didn\\u2019t work. Compatibility \\u00b6 We rely on JavaScript to handle front-end events (e.g. trans-compilation of Markdown to HTML, uploading image). MarkdownX's JavaScript code is written in TypeScript using Pure JavaScript and under ECMA 2016 standard. Currently, the code is trans-compiled into ECMA 5 (approved in 2011) to provide support for older browsers, specifically IE 10+. See additional detailed on browser compatibilities .\",\"title\":\"JavaScript\"},{\"location\":\"javascript/#javascript\",\"text\":\"\",\"title\":\"JavaScript\"},{\"location\":\"javascript/#events\",\"text\":\"Some MarkdownX processes trigger events that may be utilized for different purposes. To handle such events in JavaScript, you may take advantage of event listeners as exemplified below: markdownx.init markdownx.update markdownx.updateError markdownx.markdownx.fileUploadBegin markdownx.fileUploadEnd markdownx.fileUploadError\",\"title\":\"Events\"},{\"location\":\"javascript/#markdownxinit\",\"text\":\"Triggered after jQuery plugin init. markdownx.init is an event that does not return a response. JavaScript ECMA 2015+: let element = document.getElementsByClassName('markdownx'); Object.keys(element).map(key => element[key].addEventListener('markdownx.init', () => console.log(\\\"MarkdownX initialized.\\\")) );\",\"title\":\"markdownx.init\"},{\"location\":\"javascript/#markdownxupdate\",\"text\":\"Triggered when editor text is markdownified. Returns: response ( string ) variable containing markdownified text. JavaScript ECMA 2015+: let element = document.getElementsByClassName('markdownx'); Object.keys(element).map(key => element[key].addEventListener('markdownx.update', event => console.log(event.detail)) );\",\"title\":\"markdownx.update\"},{\"location\":\"javascript/#markdownxupdateerror\",\"text\":\"Triggered when a problem occurred during markdownify.\",\"title\":\"markdownx.updateError\"},{\"location\":\"javascript/#markdownxmarkdownxfileuploadbegin\",\"text\":\"Triggered when the file is posted.\",\"title\":\"markdownx.markdownx.fileUploadBegin\"},{\"location\":\"javascript/#markdownxfileuploadend\",\"text\":\"Triggered when the file has been uploaded.\",\"title\":\"markdownx.fileUploadEnd\"},{\"location\":\"javascript/#markdownxfileuploaderror\",\"text\":\"Triggered if the upload didn\\u2019t work.\",\"title\":\"markdownx.fileUploadError\"},{\"location\":\"javascript/#compatibility\",\"text\":\"We rely on JavaScript to handle front-end events (e.g. trans-compilation of Markdown to HTML, uploading image). MarkdownX's JavaScript code is written in TypeScript using Pure JavaScript and under ECMA 2016 standard. Currently, the code is trans-compiled into ECMA 5 (approved in 2011) to provide support for older browsers, specifically IE 10+. See additional detailed on browser compatibilities .\",\"title\":\"Compatibility\"},{\"location\":\"license/\",\"text\":\"License \\u00b6 MarkdownX is licensed under the 2-clause BSD license, and Open Source Initiative approved license. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. This software is provided by the copyright holders and contributors \\\"as is\\\" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. in no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.\",\"title\":\"License\"},{\"location\":\"license/#license\",\"text\":\"MarkdownX is licensed under the 2-clause BSD license, and Open Source Initiative approved license. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. This software is provided by the copyright holders and contributors \\\"as is\\\" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. in no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.\",\"title\":\"License\"},{\"location\":\"translations/\",\"text\":\"Translations \\u00b6 Django's strength is in its global community. Similarly, MarkdownX developers come from across the world too. We are therefore commit to make the plugin as inclusive as possible. To this end, we provide translation of all messages produced by MarkdownX to various languages. Current languages \\u00b6 English Polish (Polski) German (Deutsch) French (Fran\\u00e7ais) Persian (\\u0641\\u0627\\u0631\\u0633\\u06cc) Dutch (Nederlands) Your language is not included? \\u00b6 Wanna contribute? Why not help us with the translation of messages? It's not really that long. Even more? Help us translate the documentations.\",\"title\":\"Translations\"},{\"location\":\"translations/#translations\",\"text\":\"Django's strength is in its global community. Similarly, MarkdownX developers come from across the world too. We are therefore commit to make the plugin as inclusive as possible. To this end, we provide translation of all messages produced by MarkdownX to various languages.\",\"title\":\"Translations\"},{\"location\":\"translations/#current-languages\",\"text\":\"English Polish (Polski) German (Deutsch) French (Fran\\u00e7ais) Persian (\\u0641\\u0627\\u0631\\u0633\\u06cc) Dutch (Nederlands)\",\"title\":\"Current languages\"},{\"location\":\"translations/#your-language-is-not-included\",\"text\":\"Wanna contribute? Why not help us with the translation of messages? It's not really that long. Even more? Help us translate the documentations.\",\"title\":\"Your language is not included?\"}]}"
  },
  {
    "path": "docs/search/worker.js",
    "content": "var base_path = 'function' === typeof importScripts ? '.' : '/search/';\nvar allowSearch = false;\nvar index;\nvar documents = {};\nvar lang = ['en'];\nvar data;\n\nfunction getScript(script, callback) {\n  console.log('Loading script: ' + script);\n  $.getScript(base_path + script).done(function () {\n    callback();\n  }).fail(function (jqxhr, settings, exception) {\n    console.log('Error: ' + exception);\n  });\n}\n\nfunction getScriptsInOrder(scripts, callback) {\n  if (scripts.length === 0) {\n    callback();\n    return;\n  }\n  getScript(scripts[0], function() {\n    getScriptsInOrder(scripts.slice(1), callback);\n  });\n}\n\nfunction loadScripts(urls, callback) {\n  if( 'function' === typeof importScripts ) {\n    importScripts.apply(null, urls);\n    callback();\n  } else {\n    getScriptsInOrder(urls, callback);\n  }\n}\n\nfunction onJSONLoaded () {\n  data = JSON.parse(this.responseText);\n  var scriptsToLoad = ['lunr.js'];\n  if (data.config && data.config.lang && data.config.lang.length) {\n    lang = data.config.lang;\n  }\n  if (lang.length > 1 || lang[0] !== \"en\") {\n    scriptsToLoad.push('lunr.stemmer.support.js');\n    if (lang.length > 1) {\n      scriptsToLoad.push('lunr.multi.js');\n    }\n    if (lang.includes(\"ja\") || lang.includes(\"jp\")) {\n      scriptsToLoad.push('tinyseg.js');\n    }\n    for (var i=0; i < lang.length; i++) {\n      if (lang[i] != 'en') {\n        scriptsToLoad.push(['lunr', lang[i], 'js'].join('.'));\n      }\n    }\n  }\n  loadScripts(scriptsToLoad, onScriptsLoaded);\n}\n\nfunction onScriptsLoaded () {\n  console.log('All search scripts loaded, building Lunr index...');\n  if (data.config && data.config.separator && data.config.separator.length) {\n    lunr.tokenizer.separator = new RegExp(data.config.separator);\n  }\n\n  if (data.index) {\n    index = lunr.Index.load(data.index);\n    data.docs.forEach(function (doc) {\n      documents[doc.location] = doc;\n    });\n    console.log('Lunr pre-built index loaded, search ready');\n  } else {\n    index = lunr(function () {\n      if (lang.length === 1 && lang[0] !== \"en\" && lunr[lang[0]]) {\n        this.use(lunr[lang[0]]);\n      } else if (lang.length > 1) {\n        this.use(lunr.multiLanguage.apply(null, lang));  // spread operator not supported in all browsers: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator#Browser_compatibility\n      }\n      this.field('title');\n      this.field('text');\n      this.ref('location');\n\n      for (var i=0; i < data.docs.length; i++) {\n        var doc = data.docs[i];\n        this.add(doc);\n        documents[doc.location] = doc;\n      }\n    });\n    console.log('Lunr index built, search ready');\n  }\n  allowSearch = true;\n  postMessage({config: data.config});\n  postMessage({allowSearch: allowSearch});\n}\n\nfunction init () {\n  var oReq = new XMLHttpRequest();\n  oReq.addEventListener(\"load\", onJSONLoaded);\n  var index_path = base_path + '/search_index.json';\n  if( 'function' === typeof importScripts ){\n      index_path = 'search_index.json';\n  }\n  oReq.open(\"GET\", index_path);\n  oReq.send();\n}\n\nfunction search (query) {\n  if (!allowSearch) {\n    console.error('Assets for search still loading');\n    return;\n  }\n\n  var resultDocuments = [];\n  var results = index.search(query);\n  for (var i=0; i < results.length; i++){\n    var result = results[i];\n    doc = documents[result.ref];\n    doc.summary = doc.text.substring(0, 200);\n    resultDocuments.push(doc);\n  }\n  return resultDocuments;\n}\n\nif( 'function' === typeof importScripts ) {\n  onmessage = function (e) {\n    if (e.data.init) {\n      init();\n    } else if (e.data.query) {\n      postMessage({ results: search(e.data.query) });\n    } else {\n      console.error(\"Worker - Unrecognized message: \" + e);\n    }\n  };\n}\n"
  },
  {
    "path": "docs/search.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n      <link rel=\"shortcut icon\" href=\"./img/favicon.ico\" />\n    <title>Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"./css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"./css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n    <!--[if lt IE 9]>\n      <script src=\"./js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\"./.\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"./search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"./.\">Django MarkdownX</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"./installation/\">Installation</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"./getting_started/\">Getting Started</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"./example/\">Example</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"./customization/\">Customization</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"./javascript/\">JavaScript</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"./translations/\">Translations</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"./contributions/\">Contributions</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"./license/\">License</a>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\"./.\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\"./.\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n\n  <h1 id=\"search\">Search Results</h1>\n\n  <form id=\"content_search\" action=\"search.html\">\n    <span role=\"status\" aria-live=\"polite\" class=\"ui-helper-hidden-accessible\"></span>\n    <input name=\"q\" id=\"mkdocs-search-query\" type=\"text\" class=\"search_input search-query ui-autocomplete-input\" placeholder=\"Search the Docs\" aria-label=\"Search the Docs\" autocomplete=\"off\" autofocus title=\"Type search term here\">\n  </form>\n\n  <div id=\"mkdocs-search-results\" class=\"search-results\" data-no-results-text=\"No results found\">\n    Searching...\n  </div>\n\n\n            </div>\n          </div><footer>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n    \n  </span>\n</div>\n    <script src=\"./js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \".\";</script>\n    <script src=\"./js/theme_extra.js\"></script>\n    <script src=\"./js/theme.js\"></script>\n      <script src=\"./search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n"
  },
  {
    "path": "docs/sitemap.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n    <url>\n         <loc>https://neutronx.github.io/django-markdownx/</loc>\n         <lastmod>2025-04-25</lastmod>\n    </url>\n    <url>\n         <loc>https://neutronx.github.io/django-markdownx/contributions/</loc>\n         <lastmod>2025-04-25</lastmod>\n    </url>\n    <url>\n         <loc>https://neutronx.github.io/django-markdownx/customization/</loc>\n         <lastmod>2025-04-25</lastmod>\n    </url>\n    <url>\n         <loc>https://neutronx.github.io/django-markdownx/example/</loc>\n         <lastmod>2025-04-25</lastmod>\n    </url>\n    <url>\n         <loc>https://neutronx.github.io/django-markdownx/getting_started/</loc>\n         <lastmod>2025-04-25</lastmod>\n    </url>\n    <url>\n         <loc>https://neutronx.github.io/django-markdownx/installation/</loc>\n         <lastmod>2025-04-25</lastmod>\n    </url>\n    <url>\n         <loc>https://neutronx.github.io/django-markdownx/javascript/</loc>\n         <lastmod>2025-04-25</lastmod>\n    </url>\n    <url>\n         <loc>https://neutronx.github.io/django-markdownx/license/</loc>\n         <lastmod>2025-04-25</lastmod>\n    </url>\n    <url>\n         <loc>https://neutronx.github.io/django-markdownx/translations/</loc>\n         <lastmod>2025-04-25</lastmod>\n    </url>\n</urlset>"
  },
  {
    "path": "docs/translations/index.html",
    "content": "<!DOCTYPE html>\n<html class=\"writer-html5\" lang=\"en\" >\n<head>\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /><link rel=\"canonical\" href=\"https://neutronx.github.io/django-markdownx/translations/\" />\n      <link rel=\"shortcut icon\" href=\"../img/favicon.ico\" />\n    <title>Translations - Django Markdownx</title>\n    <link rel=\"stylesheet\" href=\"../css/theme.css\" />\n    <link rel=\"stylesheet\" href=\"../css/theme_extra.css\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css\" />\n    \n      <script>\n        // Current page data\n        var mkdocs_page_name = \"Translations\";\n        var mkdocs_page_input_path = \"translations.md\";\n        var mkdocs_page_url = \"/django-markdownx/translations/\";\n      </script>\n    \n    <!--[if lt IE 9]>\n      <script src=\"../js/html5shiv.min.js\"></script>\n    <![endif]-->\n      <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/bash.min.js\"></script>\n        <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/django.min.js\"></script>\n      <script>hljs.highlightAll();</script> \n</head>\n\n<body class=\"wy-body-for-nav\" role=\"document\">\n\n  <div class=\"wy-grid-for-nav\">\n    <nav data-toggle=\"wy-nav-shift\" class=\"wy-nav-side stickynav\">\n    <div class=\"wy-side-scroll\">\n      <div class=\"wy-side-nav-search\">\n          <a href=\"..\" class=\"icon icon-home\"> Django Markdownx\n        </a><div role=\"search\">\n  <form id =\"rtd-search-form\" class=\"wy-form\" action=\"../search.html\" method=\"get\">\n      <input type=\"text\" name=\"q\" placeholder=\"Search docs\" aria-label=\"Search docs\" title=\"Type search term here\" />\n  </form>\n</div>\n      </div>\n\n      <div class=\"wy-menu wy-menu-vertical\" data-spy=\"affix\" role=\"navigation\" aria-label=\"Navigation menu\">\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"..\">Django MarkdownX</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../installation/\">Installation</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../getting_started/\">Getting Started</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../example/\">Example</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../customization/\">Customization</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../javascript/\">JavaScript</a>\n                </li>\n              </ul>\n              <ul class=\"current\">\n                <li class=\"toctree-l1 current\"><a class=\"reference internal current\" href=\"#\">Translations</a>\n    <ul class=\"current\">\n    <li class=\"toctree-l2\"><a class=\"reference internal\" href=\"#current-languages\">Current languages</a>\n        <ul>\n    <li class=\"toctree-l3\"><a class=\"reference internal\" href=\"#your-language-is-not-included\">Your language is not included?</a>\n    </li>\n        </ul>\n    </li>\n    </ul>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../contributions/\">Contributions</a>\n                </li>\n              </ul>\n              <ul>\n                <li class=\"toctree-l1\"><a class=\"reference internal\" href=\"../license/\">License</a>\n                </li>\n              </ul>\n      </div>\n    </div>\n    </nav>\n\n    <section data-toggle=\"wy-nav-shift\" class=\"wy-nav-content-wrap\">\n      <nav class=\"wy-nav-top\" role=\"navigation\" aria-label=\"Mobile navigation menu\">\n          <i data-toggle=\"wy-nav-top\" class=\"fa fa-bars\"></i>\n          <a href=\"..\">Django Markdownx</a>\n        \n      </nav>\n      <div class=\"wy-nav-content\">\n        <div class=\"rst-content\"><div role=\"navigation\" aria-label=\"breadcrumbs navigation\">\n  <ul class=\"wy-breadcrumbs\">\n    <li><a href=\"..\" class=\"icon icon-home\" aria-label=\"Docs\"></a></li>\n      <li class=\"breadcrumb-item active\">Translations</li>\n    <li class=\"wy-breadcrumbs-aside\">\n    </li>\n  </ul>\n  <hr/>\n</div>\n          <div role=\"main\" class=\"document\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Article\">\n            <div class=\"section\" itemprop=\"articleBody\">\n              \n                <h1 id=\"translations\">Translations<a class=\"headerlink\" href=\"#translations\" title=\"Permanent link\">&para;</a></h1>\n<p>Django's strength is in its global community. Similarly, MarkdownX developers come from across the world too. We are therefore commit to make the plugin as inclusive as possible. To this end, we provide translation of all messages produced by MarkdownX to various languages.</p>\n<h2 id=\"current-languages\">Current languages<a class=\"headerlink\" href=\"#current-languages\" title=\"Permanent link\">&para;</a></h2>\n<ul>\n<li>English</li>\n<li>Polish (Polski)</li>\n<li>German (Deutsch)</li>\n<li>French (Français)</li>\n<li>Persian (فارسی)</li>\n<li>Dutch (Nederlands)</li>\n</ul>\n<hr />\n<h3 id=\"your-language-is-not-included\">Your language is not included?<a class=\"headerlink\" href=\"#your-language-is-not-included\" title=\"Permanent link\">&para;</a></h3>\n<p><strong>Wanna contribute?</strong>\nWhy not help us with the translation of messages? It's not really that long.</p>\n<p><strong>Even more?</strong>\nHelp us translate the documentations.</p>\n              \n            </div>\n          </div><footer>\n    <div class=\"rst-footer-buttons\" role=\"navigation\" aria-label=\"Footer Navigation\">\n        <a href=\"../javascript/\" class=\"btn btn-neutral float-left\" title=\"JavaScript\"><span class=\"icon icon-circle-arrow-left\"></span> Previous</a>\n        <a href=\"../contributions/\" class=\"btn btn-neutral float-right\" title=\"Contributions\">Next <span class=\"icon icon-circle-arrow-right\"></span></a>\n    </div>\n\n  <hr/>\n\n  <div role=\"contentinfo\">\n    <!-- Copyright etc -->\n  </div>\n\n  Built with <a href=\"https://www.mkdocs.org/\">MkDocs</a> using a <a href=\"https://github.com/readthedocs/sphinx_rtd_theme\">theme</a> provided by <a href=\"https://readthedocs.org\">Read the Docs</a>.\n</footer>\n          \n        </div>\n      </div>\n\n    </section>\n\n  </div>\n\n  <div class=\"rst-versions\" role=\"note\" aria-label=\"Versions\">\n  <span class=\"rst-current-version\" data-toggle=\"rst-current-version\">\n    \n        <span>\n          <a href=\"https://github.com/neutronX/django-markdownx/\" class=\"fa fa-github\" style=\"color: #fcfcfc\"> GitHub</a>\n        </span>\n    \n    \n      <span><a href=\"../javascript/\" style=\"color: #fcfcfc\">&laquo; Previous</a></span>\n    \n    \n      <span><a href=\"../contributions/\" style=\"color: #fcfcfc\">Next &raquo;</a></span>\n    \n  </span>\n</div>\n    <script src=\"../js/jquery-3.6.0.min.js\"></script>\n    <script>var base_url = \"..\";</script>\n    <script src=\"../js/theme_extra.js\"></script>\n    <script src=\"../js/theme.js\"></script>\n      <script src=\"../search/main.js\"></script>\n    <script>\n        jQuery(function () {\n            SphinxRtdTheme.Navigation.enable(true);\n        });\n    </script>\n\n</body>\n</html>\n"
  },
  {
    "path": "docs-src/contributions.md",
    "content": "# Contributions\n\nWe welcome and encourage contributions of all nature; from pointing out an error or a potential problem, to translations, to feature requests, and pull requests.\n\nWe have a implemented a fully comprehensive developers' environment that comes with many functionalities, including its\nown [Vagrant](https://www.vagrantup.com) and [Docker](https://www.docker.com) containers.\n\n\t\nTo set up the developers' environment, start off by cloning our source code from [GitHub](https://github.com/neutronX/django-markdownx), like so:\n\n```bash\ngit clone https://github.com/neutronX/django-markdownx.git\n```\n\nOne that's done, change to the cloned directory and run:\n\n```python\npython3 dev.py -h\n```\n\nto see the options available.\n\n## Quick reference\n\n### ``-h``, ``--help``\nShow the help message and exit.\n\n### ``-v``, ``--vagrant``\nInstall Vagrant development environment (requires Vagrant).\n\n### ``-d``, ``--docker``\nInstall Docker development environment (requires Docker).\n\n### ``-c``, ``--clean``\nClean up the development files (only the ones that have been automatically created).\n\n### ``-run-vagrant``\nRun vagrant development environment (runs ``--vagrant`` if the files don't already exist). Vagrant must be installed on your machine.\n\n### ``-run-docker``\nRun docker development environment (runs ``--docker`` if the files don't already exist). Docker must already be installed on your machine, and Docker Daemon must be up and running.\n\n### ``-no-container``\nCreate development files without a container-based development environment (creates `manage.py` and `runtests.py`).\n\n## Optional\n\n### ``--with-docs``\nInstall documentation development environment.\n\n### ``--with-npm-settings``\nInstall npm installation environment, including `package.json` for front-end (TypeScript) development (requires ``node.js`` and ``npm``).\n\n!!! note\n    - ``--with-docs`` and ``--with-npm-settings`` are optional and need to be accompanied by one of the required arguments.\n    - To save the changes made within the developers' environment, use ``-c`` or ``--clean``; and you will be asked if you\n    would like to override the existing settings. **Do not commit your changes before doing this**.\n\n## Example\n\nThis will install the following files:\n\n- manage.py\n- runtests.py\n- Makefile\n- create_docs.py\n\nIt will also install the requirements for compiling the documentations. You do not \nneed to create the documentations locally if you do not intend to change them. \nAlthough you are welcome to do so, for minor changes, it is probably easier to report \nan issue on GitHub as compiling the documentations can be somewhat tricky.\n\n```bash\npython3 dev.py -no-container --with-docs\n```\n\nHowever, if you still want to run a preview of the edited documentation, use the \nfollowing command to see the result (it will run documentation preview on port \n`http://localhost:8001`)\n\n```bash\nmkdocs serve\n```\n\nOnce done, please run:\n\n```bash\npython3 dev.py -c\n```\n\nto clean the installed files. If any of them have been altered, you will be asked for additional instructions as to whether to save the changes or discard them and hold onto the default.\n\n## Tests\n\nDjango packages require `manage.py` and more often than not, `settings.py` files to run. This introduces a challenge for testing apps outside of a fully constructed project environment. This is one of the reasons why we introduced the developers' environment, which allows for a fully setup container ([Vagrant](https://www.vagrantup.com) or [Docker](https://www.docker.com)) to create an inclusive virtual server that can be used to run MarkdownX independently.\n\n!!! attention\n    You need to have either [Vagrant](https://www.vagrantup.com) or [Docker](https://www.docker.com) along with [Oracle VirtualBox](https://www.virtualbox.org) installed and configured to run either of these.\n\n!!! note\n    Vagrant will attempt to download and install Ubuntu Xenial, whilst Docker uses the default operating system if one already exists.\n\nTo take advantage of this, you should clone the source code from [GitHub](https://github.com/neutronX/django-markdownx) as explained above, and depending on your container of choice, follow these instructions:\n\n## Vagrant\n\n```bash\npython3 dev.py --vagrant\n```\n\nFiles will be created:\n\n- Vagrantfile\n- bootstrap.sh\n- runtests.py\n- manage.py\n- package.json\n\n```bash\npython3 dev.py -run-vagrant\n```\n\nConnect to server using ```http://localhost:8000/``` or ```http://127.0.0.1:8000/```\n\n## Docker\n\n```bash\npython3 dev.py --docker\n```\n\nFiles will be created:\n\n- Dockerfile\n- docker-compose.yml\n- entrypoint.sh\n- runtests.py\n- manage.py\n- package.json\n\n```bash\npython3 dev.py -run-docker\n```\n\nConnect to server using ```http://localhost:8000/``` or ```http://127.0.0.1:8000/```\n\n---\n\n!!! tip\n    Any changes made to the code whilst the container is up and running is automatically reflected without the need to restart the container.\n    \n## Cleanup\n\nOnce done, please run:\n\n```bash\npython3 dev.py -c\n```\n\nto clean the installed files. If any of them have been altered, you will be asked for additional instructions as to whether to save the changes or discard them and hold onto the default.\n"
  },
  {
    "path": "docs-src/customization.md",
    "content": "# Customization\n\n## General (ex. settings)\n\n### Widget\n\nThe default widget is as seen [here](https://github.com/neutronX/django-markdownx/blob/master/markdownx/templates/markdownx/widget.html).\n\nIf you would like to customise this; for instance, using [Bootstrap v3](https://getbootstrap.com) to implement side-by-side panes (as seen in :doc:`preview animation<index>`), you should override the default widget’s template by creating your own template and saving it under ``markdownx/widget.html`` in your project's `TEMPLATE_DIRS`.\n\nHere is an example of the contents:\n\n```html\n<div class=\"markdownx row\">\n    <div class=\"col-md-6\">\n        {% include 'django/forms/widgets/textarea.html' %}\n    </div>\n    <div class=\"col-md-6\">\n        <div class=\"markdownx-preview\"></div>\n    </div>\n</div>\n```\n\n### Fields\n\nWe have ensured that MarkdownX is fully extensible and provides a high degree of flexibility in development.\n\nThere are times that you may wish to Markdownify a different type of field, or utilize your own customized widget. To accommodate this, we have provided the tools to apply MarkdownX infrastructure to other fields through *Widgets*.\n\nFor instance, to apply MarkdownX to ``TextField`` instances in your Django Admins, you can override the default widget in the Admins module in `admin.py` of your Django App as follows:\n\n```python\nfrom django.db import models\nfrom django.contrib import admin\n\nfrom markdownx.widgets import AdminMarkdownxWidget\n\nfrom .models import MyModel\n\n\nclass MyModelAdmin(admin.ModelAdmin):\n    formfield_overrides = {\n        models.TextField: {'widget': AdminMarkdownxWidget},\n    }\n\n\nadmin.site.register(MyModel, MyModelAdmin)\n```\n\n### Image tags\n\nMarkdown uses ``![]()`` tag by default to insert uploaded image file. This generates a simple (X)HTML ``<image>`` tag. If you wish to have more control and use your own HTML tags, you may create a custom ``form_valid()`` function in\n``ImageUploadView`` class, as highlighted [here](https://github.com/neutronX/django-markdownx/blob/master/markdownx/views.py#L55-L82).\n\n---\n\n## Settings\n\nYou may place any of the variables outlined in this page in your `settings.py`, alter their values and override default behaviours:\n\n* [`MARKDOWNX_MARKDOWNIFY_FUNCTION`](#markdownx_markdownify_function)\n* [`MARKDOWNX_MARKDOWN_EXTENSIONS`](#markdownx_markdown_extensions)\n* [`MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS`](#markdownx_markdown_extension_configs)\n* [`MARKDOWNX_URLS_PATH`](#markdownx_urls_path)\n* [`MARKDOWNX_UPLOAD_URLS_PATH`](#markdownx_upload_urls_path)\n* [`MARKDOWNX_MEDIA_PATH`](#markdownx_media_path)\n* [`MARKDOWNX_UPLOAD_MAX_SIZE`](#markdownx_upload_max_size)\n* [`MARKDOWNX_UPLOAD_CONTENT_TYPES`](#markdownx_upload_content_types)\n* [`MARKDOWNX_SKIP_RESIZE`](#markdownx_skip_resize)\n* [`MARKDOWNX_IMAGE_MAX_SIZE`](#markdownx_image_max_size)\n* [`MARKDOWNX_SVG_JAVASCRIPT_PROTECTION`](#markdownx_svg_javascript_protection)\n* [`MARKDOWNX_EDITOR_RESIZABLE`](#markdownx_editor_resizable)\n* [`MARKDOWNX_SERVER_CALL_LATENCY`](#markdownx_server_call_latency)\n\n!!! attention\n\tThe focus of this section is on the customisation of features controlled in the **backend**. Additional customisations, or to be rather more accurate, **event controls** are enabled in the frontend through JavaScript events. To learn more about these events, see our [JavaScript documentation on events](javascript.md#events).\n\n---\n\n### `MARKDOWNX_MARKDOWNIFY_FUNCTION`\n\nDefault: ``'markdownx.utils.markdownify'``\n\nMarkdown to HTML function. Takes an argument of type ``str()`` and returns the HTML encoded output as ``str()``.\n\nDefault function that compiles markdown using defined extensions. Using custom function can allow you to pre-process or post-process markdown text. See below for more info.\n\n```python\nMARKDOWNX_MARKDOWNIFY_FUNCTION = 'markdownx.utils.markdownify'\n```\n\nThis function uses the [Markdown package](https://python-markdown.github.io/) for trans-compilation.\n\n!!! note\n\tThe function name must be entered as string, and the relevant package must be installed and accessible to the current interpreter such that it can later be imported as and when needed. So ``markdownx.utils.markdownify`` essentially means ``from markdownx.utils import markdownify``.\n\n!!! hint\n\tThe default function (``markdownx.utils.markdownify``) that handles the trans-compilation of Markdown to HTML looks like this:\n\n\t```python\n\tfrom markdown import markdown\n\n    from .settings import (\n        MARKDOWNX_MARKDOWN_EXTENSIONS,\n        MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS\n    )\n\n    def markdownify(content):\n        md = markdown(\n            text=content,\n            extensions=MARKDOWNX_MARKDOWN_EXTENSIONS,\n            extension_configs=MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS\n        )\n        return md\n\t```\n\n### `MARKDOWNX_MARKDOWN_EXTENSIONS`\n\nDefault: empty ``list()``\n\nList of ``str()``. List of Markdown extensions that you would like to use. See [available extensions](https://python-markdown.github.io/extensions/#officially-supported-extensions) in Markdown docs. For instance, the extension [extra](https://python-markdown.github.io/extensions/extra/) enables features such as abbreviations, footnotes, tables and so on.\n\nWe recommend you read the documentation for the [Markdown package](https://python-markdown.github.io/), our default Markdown trans-compiler.\n\n```python\nMARKDOWNX_MARKDOWN_EXTENSIONS = [\n    'markdown.extensions.extra'\n]\n```\n\n\n### `MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS`\n\nDefault: empty ``dict()``\n\nConfiguration object for used markdown extensions. See ``extension_configs`` in [Markdown docs](https://python-markdown.github.io/reference/#extension_configs). Here is a general idea:\n\n```python\nMARKDOWNX_MARKDOWN_EXTENSION_CONFIGS = {\n    'extension_name_1': {\n        'option_1': 'value_1'\n    }\n}\n```\n\n### `MARKDOWNX_URLS_PATH`\n\nDefault: `'/markdownx/markdownify/'`\n\nRelative URL to which the Markdown text is sent to be encoded as HTML.\n\n```python\nMARKDOWNX_URLS_PATH = '/markdownx/markdownify/'\n```\n\n### `MARKDOWNX_UPLOAD_URLS_PATH`\n\nDefault: `'/markdownx/upload/'`\n\nURL that accepts file uploads (images) through an AJAX `POST` request. The request response will contain markdown formatted markup containing the relative URL for the image.\n\n```python\nMARKDOWNX_UPLOAD_URLS_PATH = '/markdownx/upload/'\n```\n\n### `MARKDOWNX_MEDIA_PATH`\n\nDefault: `'markdownx/'`\n\nThe path where the images will be stored in your `MEDIA_ROOT` directory.\n\n```python\nMARKDOWNX_MEDIA_PATH = 'markdownx/'\n```\n\n!!! tip\n\t**Recommended**: Storing all uploaded images in a single directory would over time results in a lot files being stored in one location. This would slow down the process of saving and loading files substantially, and can in turn lead to your website becoming very slow when it comes to loading images. To address this issue, it is better to save the uploads in different directories. Here is an example of how this can be achieved:\n\n\t```python\n\tfrom datetime import datetime\n\n    MARKDOWNX_MEDIA_PATH = datetime.now().strftime('markdownx/%Y/%m/%d')\n\t```\n\n\tThis ensures that uploaded files are stored in a different directory on the basis of the date on which they are uploaded. So for instance; an image uploaded on the 15th of April 2017 will be stored under ``media/markdownx/2017/4/15/unique_name.png``.\n\n### `MARKDOWNX_UPLOAD_MAX_SIZE`\n\nDefault: `50 * 1024 * 1024` bytes\n\nMaximum image size allowed in bytes: Default is 50MB, which is equal to 52,428,800 bytes.\n\n```python\nMARKDOWNX_UPLOAD_MAX_SIZE = 50 * 1024 * 1024\n```\n\n!!! tip\n\tIt is considered a good practice to display large numbers in a meaningful way. For instance, 52,438,800 bytes is better displayed in code as `= 50 * 1024 * 1024  # 50 MB in bytes` instead (the comment is also important). Fellow programmers will thank you for this in the future!\n\n### `MARKDOWNX_UPLOAD_CONTENT_TYPES`\n\nDefault: `['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml']`\n\nImage formats that the user is permitted to upload. Enable / disable support for different image formats.\n\n```python\nMARKDOWNX_UPLOAD_CONTENT_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml']\n```\n\n### `MARKDOWNX_SKIP_RESIZE`\n\nDefault: `['image/svg+xml', 'image/gif']`\n\nImage formats that should not be resized automatically. The default value honors that resizing an SVG does not make sense and that PIL does not support GIF animation.\n\n```python\nMARKDOWNX_SKIP_RESIZE = ['image/svg+xml', 'image/gif']\n```\n\n### `MARKDOWNX_IMAGE_MAX_SIZE`\n\nDefault: `{ 'size': (500, 500), 'quality': 90 }`\n\nDifferent options describing final image processing; e.g. dimension and quality.\n\n!!! note\n\tQuality restrictions do not apply to `image/svg+xml` formatted graphics.\n\nOptions are:\n\nOption | Value | Description\n-|-|-\nsize | `(width,height)` | when one of the dimensions is set to zero, e.g. ``(500, 0)``,  the height is calculated automatically so as to keep the dimensions intact.\nquality | `int` | image quality from `0` (full compression) to `100` (no compression). Default: `90`\ncrop | `Boolean` | if `True`, the `size` is used to crop the image. Default: `False`\nupscale | `Boolean` | if image dimensions are smaller than those defined in `size`, upscale to `size` dimensions. Default: `False`\n\n\n```python\nMARKDOWNX_IMAGE_MAX_SIZE = {\n    'size': (500, 500),\n    'quality': 90\n}\n```\n\n### `MARKDOWNX_SVG_JAVASCRIPT_PROTECTION`\n\nDefault: `True`\n\nSVG graphics are in essence XML files formatted in a specific way; which means that they can contain JavaScript codes. This introduces a potential front-end security vulnerability for prospective users who will see the SVG image in context; e.g. it may be employed to collect the user's IP address or other personal information.\n\n!!! note\n\tThis type of attack is known as [XSS (Cross-site Scripting) attack](https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)). See this [presentation](https://www.owasp.org/images/0/03/Mario_Heiderich_OWASP_Sweden_The_image_that_called_me.pdf) by Mario Heiderich to learn more on SVG XSS attacks. There are a number of ways to deal with this vulnerability.\n\n    Django is great at security, and provides very good protection against XSS attacks (see the Django [documentation](https://docs.djangoproject.com/en/dev/topics/security/#cross-site-scripting-xss-protection) for additional information) providing the [CSRF protection middleware](https://docs.djangoproject.com/en/dev/ref/middleware/#module-django.middleware.csrf) is enabled. When it comes to AJAX requests, however, CSRF protection may sometimes be disabled for various reasons.\n\nAs a last resort, however, we have included an *optional* integrity check against JavaScript tags for SVG formatted files just in case everything else is disabled. This protection is enabled by default, and may be disabled by setting the value to ``False`` if so is desired.\n\n```python\nMARKDOWNX_SVG_JAVASCRIPT_PROTECTION = True\n```\n\n!!! important\n\tMarkdownX does *not* disable CSRF protection by default, and requires the token for all AJAX request.\n\n### `MARKDOWNX_EDITOR_RESIZABLE`\n\nDefault: `True`\n\nChange the editor's height to match the height of the inner contents whilst typing.\n\n```python\nMARKDOWNX_EDITOR_RESIZABLE = True\n```\n\n### `MARKDOWNX_SERVER_CALL_LATENCY`\n\nDefault: `500` miliseconds\n\nLatency (minimum lag) between server calls as `int`. Minimum allowed: 500 milliseconds.\n\n!!! note\n\tWhen the value of a MarkdownX editor is changed, a call is made to the server to trans-compile Markdown into HTML. However, a minimum latency of **500 milliseconds** has been imposed between the calls. This is to prevent the bombardment of the server with a huge number of HTTP requests (you don't want to DDoS your own server). This latency maintains a balance between responsiveness and protection, and is well-suited for medium traffic. Nonetheless, if your website enjoys a particularly high traffic, you may wish to alter this value slightly depending on the number of CPUs, the amount memory, and how much you are willing to compromise on responsiveness.\n\n```python\nMARKDOWNX_SERVER_CALL_LATENCY = 500  # milliseconds\n```\n\n!!! attention\n\tAny values below 500 milliseconds is silently ignored and replaced.\n"
  },
  {
    "path": "docs-src/example.md",
    "content": "# Example\n\nHave you:\n\n- successfully [installed MarkdownX](installation.md)?\n- followed the instructions on how to [get started](getting_started.md)?\n\nIf so, you are set for the next step. Here you can find comprehensive examples of how to use different MarkdownX\nfeatures to your advantage.\n\n\n## Model\n\nThis is how you implement a MarkdownX field in your models. In your `app/models.py`:\n\n```python\nfrom markdownx.models import MarkdownxField\n\nclass MyModel(models.Model):\n\tmyfield = MarkdownxField()\n```\n\n... and then, include the form media in the relevant template using ``{{ form.media }}``, like so:\n\n```html\n<form method=\"POST\" action=\"\">{% csrf_token %}\n    {{ form }}\n</form>\n\n{{ form.media }}\n```\n\n!!! note\n\tThe field extends Django's own [TextField](https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.TextField) and is saved in the database accordingly.\n\n## Form\n\nYou can also implement MarkdownX through the forms. This will be done in your `app/forms.py` as follows:\n\n```python\nfrom markdownx.fields import MarkdownxFormField\n\nclass MyForm(forms.Form):\n    myfield = MarkdownxFormField()\n```\n\n... and then, include a form's required media in the template using ``{{ form.media }}``:\n\n```html\n<form method=\"POST\" action=\"\">{% csrf_token %}\n    {{ form }}\n</form>\n\n{{ form.media }}\n```\n\n## Django Admin\n\nWhen using included ``MarkdownxModel`` class in your models, just use ``MarkdownxModelAdmin`` in your `app/admin.py` as follows:\n\n```python\nfrom django.contrib import admin\nfrom markdownx.admin import MarkdownxModelAdmin\nfrom .models import MyModel\n\nadmin.site.register(MyModel, MarkdownxModelAdmin)\n```\n"
  },
  {
    "path": "docs-src/getting_started.md",
    "content": "# Getting Started\n\nFirst and foremost, add ``markdownx`` to the list of ``INSTALLED_APPS`` in `settings.py`.\n\n```python\nINSTALLED_APPS = (\n\t# [...]\n\t'markdownx',\n)\n```\n\nYou may alter default behaviours by adding and changing relevant variables in your settings. See [customization](customization.md) for additional information.\n\nAdd MarkdownX URL patterns to your `urls.py`. You can do this using either of these methods depending on your style:\n\n```python\nurlpatterns = [\n\t# [...]\n\tpath('markdownx/', include('markdownx.urls')),\n]\n```\n\nor alternatively:\n\n```python\nfrom django.conf.urls import url, include\nfrom markdownx import urls as markdownx\n\nurlpatterns += [\n    path('markdownx/', include(markdownx)),\n]\n```\n\nand, don't forget to collect MarkdownX assets to your `STATIC_ROOT`. To do this, run:\n```python\npython3 manage.py collectstatic\n```\n"
  },
  {
    "path": "docs-src/index.md",
    "content": "# Django MarkdownX\n\nDjango MarkdownX is a comprehensive [Markdown](https://en.wikipedia.org/wiki/Markdown) plugin built for [Django](https://www.djangoproject.com), the renowned high-level Python web framework, with flexibility, extensibility, and ease-of-use at its core.\n\n**GitHub:** [https://github.com/neutronX/django-markdownx](https://github.com/neutronX/django-markdownx)<br>\n**PyPi:** [https://pypi.org/project/django-markdownx/](https://pypi.org/project/django-markdownx/)\n\n## Key features\n\n* Raw editing.\n* Live preview.\n* Drag & drop image uploads (automatically stored in the designated location in the *Media* directory).\n* Customizable image insertion tag.\n* Definition of maximum size for an image.\n* Definition of acceptable image formats (PNG, JPEG, SVG).\n* Image manipulations (compression, size reduction, cropping, upscaling).\n* Pre- and post- text modification.\n* Easy template customization, layout modification, and personalization.\n* Multiple editors per page.\n* Django Admin support.\n\n## Preview\n\n![django-markdownx preview](https://github.com/neutronX/django-markdownx/raw/master/django-markdownx-preview.gif?raw=true)\n\n## Acknowledgements\n\nWe acknowledge and appreciate every contribution made towards improving **Django MarkdownX**, a list of which can be\nfound on our [GitHub contributors page](https://github.com/adi-/django-markdownx/graphs/contributors).\n"
  },
  {
    "path": "docs-src/installation.md",
    "content": "# Installation\n\n## Using PIP\n\nDjango MarkdownX may be installed directly using Python Package Index (PyPi):\n\n```bash\npip install django-markdownx\n```\n\n## From the source\n\nShould you wish to download and install it using the source code, you can do as follows:\n\n!!! note\n\tMake sure you have activated your virtual environment if you’re using one.\n\t\nWe start off by downloading the source code from GitHub and navigate to the downloaded directory:\n\n```bash\ngit clone https://github.com/neutronX/django-markdownx.git\ncd django-markdownx/\n```\n\nInstall the package.\n\n```bash\npython3 setup.py install\n```\n"
  },
  {
    "path": "docs-src/javascript.md",
    "content": "# JavaScript\n\n## Events\n\nSome MarkdownX processes trigger events that may be utilized for different purposes. To handle such events in JavaScript, you may take advantage of event listeners as exemplified below:\n\n- [`markdownx.init`](#markdownxinit)\n- [`markdownx.update`](#markdownxupdate)\n- [`markdownx.updateError`](#markdownxupdateerror)\n- [`markdownx.markdownx.fileUploadBegin`](#markdownxmarkdownxfileuploadbegin)\n- [`markdownx.fileUploadEnd`](#markdownxfileuploadend)\n- [`markdownx.fileUploadError`](#markdownxfileuploaderror)\n\n\n### `markdownx.init`\n\nTriggered after jQuery plugin init. `markdownx.init` is an event that does *not* return a response.\n\nJavaScript ECMA 2015+:\n\n```javascript\nlet element = document.getElementsByClassName('markdownx');\n\nObject.keys(element).map(key =>\n\n    element[key].addEventListener('markdownx.init', () => console.log(\"MarkdownX initialized.\"))\n\n);\n```\n\n### `markdownx.update`\n\nTriggered when editor text is markdownified. Returns: **response** (*string*) variable containing markdownified text.\n\nJavaScript ECMA 2015+:\n\n```javascript\nlet element = document.getElementsByClassName('markdownx');\n\nObject.keys(element).map(key =>\n\n    element[key].addEventListener('markdownx.update', event => console.log(event.detail))\n\n);\n```\n\n### `markdownx.updateError`\n\nTriggered when a problem occurred during markdownify.\n\n### `markdownx.markdownx.fileUploadBegin`\n\nTriggered when the file is posted.\n\n### `markdownx.fileUploadEnd`\n\nTriggered when the file has been uploaded.\n\n### `markdownx.fileUploadError`\n\nTriggered if the upload didn’t work.\n\n## Compatibility\n\nWe rely on JavaScript to handle front-end events (e.g. trans-compilation of Markdown to HTML, uploading image).\n\nMarkdownX's JavaScript code is written in TypeScript using Pure JavaScript and under ECMA 2016 standard.\n\nCurrently, the code is trans-compiled into ECMA 5 (approved in 2011) to provide support for older browsers, specifically IE 10+. See additional detailed on [browser compatibilities](https://kangax.github.io/compat-table/es5/).\n"
  },
  {
    "path": "docs-src/license.md",
    "content": "# License\n\nMarkdownX is licensed under the [2-clause BSD](https://opensource.org/licenses/BSD-2-Clause) license, and Open Source Initiative approved license.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\nThis software is provided by the copyright holders and contributors \"as is\" and\nany express or implied warranties, including, but not limited to, the implied\nwarranties of merchantability and fitness for a particular purpose are\ndisclaimed. in no event shall the copyright owner or contributors be liable for\nany direct, indirect, incidental, special, exemplary, or consequential damages\n(including, but not limited to, procurement of substitute goods or services;\nloss of use, data, or profits; or business interruption) however caused and\non any theory of liability, whether in contract, strict liability, or tort\n(including negligence or otherwise) arising in any way out of the use of this\nsoftware, even if advised of the possibility of such damage.\n"
  },
  {
    "path": "docs-src/requirements.txt",
    "content": "mkdocs\npymdown-extensions\n"
  },
  {
    "path": "docs-src/translations.md",
    "content": "# Translations\n\nDjango's strength is in its global community. Similarly, MarkdownX developers come from across the world too. We are therefore commit to make the plugin as inclusive as possible. To this end, we provide translation of all messages produced by MarkdownX to various languages.\n\n## Current languages\n\n- English\n- Polish (Polski)\n- German (Deutsch)\n- French (Français)\n- Persian (فارسی)\n- Dutch (Nederlands)\n\n---\n\n### Your language is not included?\n\n**Wanna contribute?**\nWhy not help us with the translation of messages? It's not really that long.\n\n**Even more?**\nHelp us translate the documentations.\n"
  },
  {
    "path": "markdownx/__init__.py",
    "content": "\"\"\"\nDjango MarkdownX\n================\n\n|PyPi_Status| |Build_Status| |Format| |Supported_versions_of_Python| |Supported_versions_of_Django| |License|\n\n.. raw:: html\n\n   <iframe src=\"https://ghbtns.com/github-btn.html?user=neutronX&repo=django-markdownx&type=star&count=true\"\n   frameborder=\"0\" scrolling=\"0\" width=\"120px\" height=\"20px\"></iframe>\n   <iframe src=\"https://ghbtns.com/github-btn.html?user=neutronX&repo=django-markdownx&type=watch&count=true&v=2\"\n   frameborder=\"0\" scrolling=\"0\" width=\"120px\" height=\"20px\"></iframe>\n\n------------\n\nDocumentations\n--------------\n\nDjango MarkdownX is a comprehensive Markdown_ plugin built for Django_, the renowned high-level\nPython web framework, with flexibility, extensibility, and ease-of-use at its core.\n\n\nKey features\n````````````\n\n* Raw editing.\n* Live preview.\n* Drag & drop image uploads (automatically stored in the designated location in the *Media* directory).\n* Customizable image insertion tag.\n* Definition of maximum size for an image.\n* Definition of acceptable image formats (PNG, JPEG, SVG).\n* Image manipulations (compression, size reduction, cropping, upscaling).\n* Pre- and post- text modification.\n* Easy template customization, layout modification, and personalization.\n* Multiple editors per page.\n* Django Admin support.\n\n.. image:: https://github.com/neutronX/django-markdownx/raw/master/django-markdownx-preview.gif?raw=true\n   :target: https://github.com/neutronX/django-markdownx\n   :align: center\n   :alt: django-markdownx preview\n\n.. _Markdown: https://en.wikipedia.org/wiki/Markdown\n.. _Django: https://www.djangoproject.com\n\n.. |PyPi_Status| image:: https://img.shields.io/pypi/status/django-markdownx.svg\n.. |Build_Status| image:: https://img.shields.io/travis/neutronX/django-markdownx.svg\n.. |Format| image:: https://img.shields.io/pypi/format/django-markdownx.svg\n.. |Supported_versions_of_Python| image:: https://img.shields.io/pypi/pyversions/django-markdownx.svg\n.. |Supported_versions_of_Django| image:: https://img.shields.io/badge/Django-2.0,%202.1,%202.2,%203.0-green.svg\n.. |License| image:: https://img.shields.io/pypi/l/django-markdownx.svg\n\n------------\n\"\"\"\n\n# ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=\n# Imports\n# ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-\n# None\n\n# ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=\n# Documentations\n# ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-\n__credits__ = 'Adi, Pouria Hadjibagheri'\n__copyright__ = 'Copyright 2017'\n__license__ = 'BSD'\n__maintainer__ = 'Adi, Pouria Hadjibagheri'\n__url__ = 'https://github.com/neutronX/django-markdownx'\n__version__ = '4.0.9'\n__description__ = 'A comprehensive Markdown editor built for Django.'\n# ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-\n\n\nif __name__ == '__main__':\n    raise RuntimeError(\n        'MarkdownX is a Django plugin. It is not meant to be run as an stand-alone module.'\n    )\n"
  },
  {
    "path": "markdownx/admin.py",
    "content": "from django.contrib import admin\n\nfrom .models import MarkdownxField\nfrom .widgets import AdminMarkdownxWidget\n\n\nclass MarkdownxModelAdmin(admin.ModelAdmin):\n    \"\"\"\n    Django admin representation for ``MarkdownxField`` in models.\n\n    See **Django Admin** in :doc:`../../example` for additional information.\n    \"\"\"\n\n    formfield_overrides = {\n        MarkdownxField: {'widget': AdminMarkdownxWidget}\n    }\n"
  },
  {
    "path": "markdownx/exceptions.py",
    "content": "from django.forms import ValidationError\nfrom django.utils.translation import gettext_lazy as _\n\n\nclass MarkdownxImageUploadError(ValidationError):\n    \"\"\"\n    Custom **MarkdownX** exceptions.\n    \"\"\"\n\n    @classmethod\n    def not_uploaded(cls):\n        \"\"\"\n        No file is available to upload.\n\n        :return: Locale compatible version of the error with the following message:\n\n                 - No files have been uploaded.\n\n        :rtype: MarkdownxImageUploadError\n        \"\"\"\n        return cls(_('No files have been uploaded.'))\n\n    @classmethod\n    def unsupported_format(cls):\n        \"\"\"\n\n        The file is of a format not defined in :guilabel:`settings.py`\n        or if default, in :guilabel:`markdownx/settings.py`.\n\n        :return: Locale compatible version of the error with the following message:\n\n                 - File type is not supported.\n\n        :rtype: MarkdownxImageUploadError\n        \"\"\"\n        return cls(_('File type is not supported.'))\n\n    @classmethod\n    def invalid_size(cls, current, expected):\n        \"\"\"\n        The file is larger in size that the maximum allow in :guilabel:`settings.py` (or the default).\n\n        :param current: Current size of the file.\n        :type current: float, int\n        :param expected: Expected (maximum permitted) size of the file.\n        :type expected: float, int\n        :return: Locale compatible version of the error with the following message:\n\n                 - Please keep file size under %(max)s. Current file size: %(current)s.'\n\n        :rtype: MarkdownxImageUploadError\n        \"\"\"\n        from django.template.defaultfilters import filesizeformat\n\n        return cls(\n            _('Please keep file size under %(max)s. Current file size: %(current)s.') % {\n                'max': filesizeformat(expected),\n                'current': filesizeformat(current)\n            }\n        )\n"
  },
  {
    "path": "markdownx/fields.py",
    "content": "from django import forms\n\nfrom .widgets import MarkdownxWidget\n\n\nclass MarkdownxFormField(forms.CharField):\n    \"\"\"\n    Used in FormFields as a Markdown enabled replacement for ``CharField``.\n    \"\"\"\n\n    def __init__(self, *args, **kwargs):\n        \"\"\"\n        Arguments are similar to Django's default ``CharField``.\n\n        See Django's `documentations on CharField`_ for additional information.\n\n        .. _docs on Charfield: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.CharField\n        \"\"\"\n        super(MarkdownxFormField, self).__init__(*args, **kwargs)\n\n        if issubclass(self.widget.__class__, forms.widgets.MultiWidget):\n            is_markdownx_widget = any(\n                issubclass(item.__class__, MarkdownxWidget)\n                    for item in getattr(self.widget, 'widgets', list())\n            )\n\n            if not is_markdownx_widget:\n                self.widget = MarkdownxWidget()\n\n        elif not issubclass(self.widget.__class__, MarkdownxWidget):\n            self.widget = MarkdownxWidget()\n"
  },
  {
    "path": "markdownx/forms.py",
    "content": "from collections import namedtuple\nfrom io import BytesIO\nfrom os import SEEK_END\nfrom os import SEEK_SET\nfrom os import path\nfrom uuid import uuid4\n\nfrom django import forms\nfrom django.core.files.storage import default_storage\nfrom django.core.files.uploadedfile import InMemoryUploadedFile\n\nfrom .exceptions import MarkdownxImageUploadError\nfrom .settings import MARKDOWNX_IMAGE_MAX_SIZE\nfrom .settings import MARKDOWNX_MEDIA_PATH\nfrom .settings import MARKDOWNX_SKIP_RESIZE\nfrom .settings import MARKDOWNX_SVG_JAVASCRIPT_PROTECTION\nfrom .settings import MARKDOWNX_UPLOAD_CONTENT_TYPES\nfrom .settings import MARKDOWNX_UPLOAD_MAX_SIZE\nfrom .utils import scale_and_crop\nfrom .utils import xml_has_javascript\n\n\nclass ImageForm(forms.Form):\n    \"\"\"\n    Used for the handling of images uploaded using the editor through :guilabel:`AJAX`.\n    \"\"\"\n\n    image = forms.FileField()\n\n    # Separately defined as it needs to be\n    # processed a text file rather than image.\n    _SVG_TYPE = 'image/svg+xml'\n\n    def save(self, commit=True):\n        \"\"\"\n        Saves the uploaded image in the designated location.\n\n        If image type is not liste as ``MARKDOWNX_SKIP_RESIZE``, a byteIO of image\n        content_type is created and subsequently save; otherwise, the image is saved\n        in its existing ``charset`` with its existing mime type.\n\n        *Note*: The dimension of image files (excluding SVG) are set using ``PIL``.\n\n        :param commit: If ``True``, the file is saved to the disk;\n                       otherwise, it is held in the memory.\n        :type commit: bool\n        :return: An instance of saved image if ``commit is True``,\n                 else ``namedtuple(path, image)``.\n        :rtype: bool, namedtuple\n        \"\"\"\n        image = self.files.get('image')\n        content_type = image.content_type\n        file_name = image.name\n        image_extension = content_type.split('/')[-1].upper()\n        image_size = image.size\n\n        if content_type.lower() not in MARKDOWNX_SKIP_RESIZE:\n            # Processing the raster graphic image.\n            # Note that some graphics do not require (or enable)\n            # additional processing (such as GIF or SVG) and\n            # may be stored as uploaded.\n            image = self._process_raster(image, image_extension)\n            image_size = image.tell()\n            image.seek(0, SEEK_SET)\n\n        # Processed file (or the actual file in the case of SVG) is now\n        # saved in the memory as a Django object.\n        uploaded_image = InMemoryUploadedFile(\n            file=image,\n            field_name=None,\n            name=file_name,\n            content_type=content_type,\n            size=image_size,\n            charset=None\n        )\n\n        if (content_type.lower() == self._SVG_TYPE\n                and MARKDOWNX_SVG_JAVASCRIPT_PROTECTION\n                and xml_has_javascript(uploaded_image.read())):\n\n            raise MarkdownxImageUploadError(\n                'Failed security monitoring: SVG file contains JavaScript.'\n            )\n\n        return self._save(uploaded_image, file_name, commit)\n\n    def _save(self, image, file_name, commit):\n        \"\"\"\n        Final saving process, called internally after processing tasks are complete.\n\n        :param image: Prepared image\n        :type image: django.core.files.uploadedfile.InMemoryUploadedFile\n        :param file_name: Name of the file using which the image is to be saved.\n        :type file_name: str\n        :param commit: If ``True``, the image is saved onto the disk.\n        :type commit: bool\n        :return: URL of the uploaded image ``commit=True``, otherwise a namedtuple\n                 of ``(path, image)`` where ``path`` is the absolute path generated\n                 for saving the file, and ``image`` is the prepared image.\n        :rtype: str, namedtuple\n        \"\"\"\n        # Defining a universally unique name for the file\n        # to be saved on the disk.\n        unique_file_name = self.get_unique_file_name(file_name)\n        full_path = path.join(MARKDOWNX_MEDIA_PATH, unique_file_name)\n\n        if commit:\n            default_storage.save(full_path, image)\n            return default_storage.url(full_path)\n\n        # If `commit is False`, return the path and in-memory image.\n        image_data = namedtuple('image_data', ['path', 'image'])\n        return image_data(path=full_path, image=image)\n\n    @staticmethod\n    def _process_raster(image, extension):\n        \"\"\"\n        Processing of raster graphic image using Python Imaging Library (PIL).\n\n        This is where raster graphics are processed to the specifications\n        as defined in ``settings.py``.\n\n        *Note*: The file needs to be uploaded and saved temporarily in the\n        memory to enable processing tasks using Python Imaging Library (PIL)\n        to take place and subsequently retained until written onto the disk.\n\n        :param image: Non-SVG image as processed by Django.\n        :type image: django.forms.BaseForm.file\n        :param extension: Image extension (e.g.: png, jpg, gif)\n        :type extension: str\n        :return: The image object ready to be written into a file.\n        :rtype: BytesIO\n        \"\"\"\n        thumb_io = BytesIO()\n        preped_image = scale_and_crop(image, **MARKDOWNX_IMAGE_MAX_SIZE)\n        preped_image.save(thumb_io, extension, **MARKDOWNX_IMAGE_MAX_SIZE)\n        thumb_io.seek(0, SEEK_END)\n        return thumb_io\n\n    @staticmethod\n    def get_unique_file_name(file_name):\n        \"\"\"\n        Generates a universally unique ID using Python ``UUID`` and attaches the\n        extension of file name to it.\n\n        :param file_name: Name of the uploaded file, including the extension.\n        :type file_name: str\n        :return: Universally unique ID, ending with the extension extracted\n                 from ``file_name``.\n        :rtype: str\n        \"\"\"\n        extension = 1\n        extension_dot_index = 1\n\n        file_name = \"{unique_name}.{extension}\".format(\n            unique_name=uuid4(),\n            extension=path.splitext(file_name)[extension][extension_dot_index:]\n        )\n        return file_name\n\n    def clean(self):\n        \"\"\"\n        Checks the upload against allowed extensions and maximum size.\n\n        :return: Upload\n        \"\"\"\n        upload = self.cleaned_data.get('image')\n\n        # -----------------------------------------------\n        # See comments in `self._error_templates` for\n        # additional information on each error.\n        # -----------------------------------------------\n        if not upload:\n            raise MarkdownxImageUploadError.not_uploaded()\n\n        content_type = upload.content_type\n        file_size = upload.size\n\n        if content_type not in MARKDOWNX_UPLOAD_CONTENT_TYPES:\n\n            raise MarkdownxImageUploadError.unsupported_format()\n\n        elif file_size > MARKDOWNX_UPLOAD_MAX_SIZE:\n\n            raise MarkdownxImageUploadError.invalid_size(\n                current=file_size,\n                expected=MARKDOWNX_UPLOAD_MAX_SIZE\n            )\n\n        return upload\n"
  },
  {
    "path": "markdownx/locale/de/LC_MESSAGES/django.po",
    "content": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER\n# This file is distributed under the same license as the PACKAGE package.\n# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n#\n#, fuzzy\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: \\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-03-16 20:51+0000\\n\"\n\"PO-Revision-Date: 2024-05-20 17:04+0200\\n\"\n\"Last-Translator: \\n\"\n\"Language-Team: \\n\"\n\"Language: de\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 3.4.4\\n\"\n\n#: exceptions.py:18\nmsgid \"No files have been uploaded.\"\nmsgstr \"Es wurden keine Dateien hochgeladen.\"\n\n#: exceptions.py:29\nmsgid \"File type is not supported.\"\nmsgstr \"Dateityp wird nicht unterstützt.\"\n\n#: exceptions.py:46\n#, python-format\nmsgid \"Please keep file size under %(max)s. Current file size: %(current)s.\"\nmsgstr \"\"\n\"Bitte halten Sie die Dateigröße unter %(max)s. Die aktuelle Dateigröße ist \"\n\"%(current)s.\"\n\n#: settings.py:86\nmsgid \"English\"\nmsgstr \"Englisch\"\n\n#: settings.py:87\nmsgid \"Polish\"\nmsgstr \"Polieren\"\n\n#: settings.py:88\nmsgid \"German\"\nmsgstr \"Deutsch\"\n\n#: settings.py:89\nmsgid \"French\"\nmsgstr \"Französisch\"\n\n#: settings.py:90\nmsgid \"Persian\"\nmsgstr \"Persisch\"\n\n#: settings.py:91\nmsgid \"Dutch\"\nmsgstr \"Niederländer\"\n"
  },
  {
    "path": "markdownx/locale/du/LC_MESSAGES/django.po",
    "content": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER\n# This file is distributed under the same license as the PACKAGE package.\n# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n#\n#, fuzzy\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: \\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-03-16 20:51+0000\\n\"\n\"PO-Revision-Date: 2024-05-20 17:05+0200\\n\"\n\"Last-Translator: \\n\"\n\"Language-Team: \\n\"\n\"Language: nl\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 3.4.4\\n\"\n\n#: exceptions.py:18\nmsgid \"No files have been uploaded.\"\nmsgstr \"Er zijn geen bestanden zijn geüpload.\"\n\n#: exceptions.py:29\nmsgid \"File type is not supported.\"\nmsgstr \"Bestandstype wordt niet ondersteund.\"\n\n#: exceptions.py:46\n#, python-format\nmsgid \"Please keep file size under %(max)s. Current file size: %(current)s.\"\nmsgstr \"Houd de bestandsgrootte onder %(max)s. Huidige bestandsgrootte: %(current)s.\"\n\n#: settings.py:86\nmsgid \"English\"\nmsgstr \"Engels\"\n\n#: settings.py:87\nmsgid \"Polish\"\nmsgstr \"Pools\"\n\n#: settings.py:88\nmsgid \"German\"\nmsgstr \"Duits\"\n\n#: settings.py:89\nmsgid \"French\"\nmsgstr \"Frans\"\n\n#: settings.py:90\nmsgid \"Persian\"\nmsgstr \"Perzisch\"\n\n#: settings.py:91\nmsgid \"Dutch\"\nmsgstr \"Nederlands\"\n"
  },
  {
    "path": "markdownx/locale/en/LC_MESSAGES/django.po",
    "content": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER\n# This file is distributed under the same license as the PACKAGE package.\n# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n#\n#, fuzzy\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: \\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-03-16 20:51+0000\\n\"\n\"PO-Revision-Date: 2024-05-20 17:05+0200\\n\"\n\"Last-Translator: \\n\"\n\"Language-Team: \\n\"\n\"Language: en\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 3.4.4\\n\"\n\n#: exceptions.py:18\nmsgid \"No files have been uploaded.\"\nmsgstr \"\"\n\n#: exceptions.py:29\nmsgid \"File type is not supported.\"\nmsgstr \"\"\n\n#: exceptions.py:46\n#, python-format\nmsgid \"Please keep file size under %(max)s. Current file size: %(current)s.\"\nmsgstr \"\"\n\n#: settings.py:86\nmsgid \"English\"\nmsgstr \"\"\n\n#: settings.py:87\nmsgid \"Polish\"\nmsgstr \"\"\n\n#: settings.py:88\nmsgid \"German\"\nmsgstr \"\"\n\n#: settings.py:89\nmsgid \"French\"\nmsgstr \"\"\n\n#: settings.py:90\nmsgid \"Persian\"\nmsgstr \"\"\n\n#: settings.py:91\nmsgid \"Dutch\"\nmsgstr \"\"\n"
  },
  {
    "path": "markdownx/locale/fa/LC_MESSAGES/django.po",
    "content": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER\n# This file is distributed under the same license as the PACKAGE package.\n# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n#\n#, fuzzy\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: PACKAGE VERSION\\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-03-16 20:51+0000\\n\"\n\"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n\"\n\"Last-Translator: FULL NAME <EMAIL@ADDRESS>\\n\"\n\"Language-Team: LANGUAGE <LL@li.org>\\n\"\n\"Language: \\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\n#: exceptions.py:18\nmsgid \"No files have been uploaded.\"\nmsgstr \"هیچ فایلی آپلود نشده است.\"\n\n#: exceptions.py:29\nmsgid \"File type is not supported.\"\nmsgstr \"این نوع فایل پشتیبانی نمی‌شود.\"\n\n#: exceptions.py:46\n#, fuzzy, python-format\n#| msgid \"Please keep file size under %(max)s. Current file size: %(current)s\"\nmsgid \"Please keep file size under %(max)s. Current file size: %(current)s.\"\nmsgstr \"لطفا حجم فایل زیر را %(max)s نگه دارید. اندازه فایل جاری: %(current)s.\"\n\n#: settings.py:86\nmsgid \"English\"\nmsgstr \"انگلیسی\"\n\n#: settings.py:87\nmsgid \"Polish\"\nmsgstr \"لهستانی\"\n\n#: settings.py:88\nmsgid \"German\"\nmsgstr \"آلمانی\"\n\n#: settings.py:89\nmsgid \"French\"\nmsgstr \"فرانسوی\"\n\n#: settings.py:90\nmsgid \"Persian\"\nmsgstr \"فارسی\"\n\n#: settings.py:91\nmsgid \"Dutch\"\nmsgstr \"هلندی\"\n"
  },
  {
    "path": "markdownx/locale/fr/LC_MESSAGES/django.po",
    "content": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER\n# This file is distributed under the same license as the PACKAGE package.\n# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n#\n#, fuzzy\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: \\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-03-16 20:51+0000\\n\"\n\"PO-Revision-Date: 2024-05-20 17:04+0200\\n\"\n\"Last-Translator: \\n\"\n\"Language-Team: \\n\"\n\"Language: fr\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 3.4.4\\n\"\n\n#: exceptions.py:18\nmsgid \"No files have been uploaded.\"\nmsgstr \"Aucun fichier n'a été envoyé.\"\n\n#: exceptions.py:29\nmsgid \"File type is not supported.\"\nmsgstr \"Le type de fichier n'est pas pris en charge.\"\n\n#: exceptions.py:46\n#, python-format\nmsgid \"Please keep file size under %(max)s. Current file size: %(current)s.\"\nmsgstr \"\"\n\"Veuillez garder la taille du fichier sous %(max)s. Taille actuelle du \"\n\"fichier: %(current)s.\"\n\n#: settings.py:86\nmsgid \"English\"\nmsgstr \"Anglais\"\n\n#: settings.py:87\nmsgid \"Polish\"\nmsgstr \"Polonais\"\n\n#: settings.py:88\nmsgid \"German\"\nmsgstr \"Allemand\"\n\n#: settings.py:89\nmsgid \"French\"\nmsgstr \"Français\"\n\n#: settings.py:90\nmsgid \"Persian\"\nmsgstr \"Persan\"\n\n#: settings.py:91\nmsgid \"Dutch\"\nmsgstr \"Néerlandais\"\n"
  },
  {
    "path": "markdownx/locale/pl/LC_MESSAGES/django.po",
    "content": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER\n# This file is distributed under the same license as the PACKAGE package.\n# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n#\n#, fuzzy\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: \\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-03-16 20:51+0000\\n\"\n\"PO-Revision-Date: 2024-05-20 17:04+0200\\n\"\n\"Last-Translator: \\n\"\n\"Language-Team: \\n\"\n\"Language: pl\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 \"\n\"|| n%100>14) ? 1 : 2);\\n\"\n\"X-Generator: Poedit 3.4.4\\n\"\n\n#: exceptions.py:18\nmsgid \"No files have been uploaded.\"\nmsgstr \"Żadne z plików nie zostały przesłane.\"\n\n#: exceptions.py:29\nmsgid \"File type is not supported.\"\nmsgstr \"Typ pliku nie jest obsługiwany.\"\n\n#: exceptions.py:46\n#, python-format\nmsgid \"Please keep file size under %(max)s. Current file size: %(current)s.\"\nmsgstr \"\"\n\"Maksymalny rozmiar pliku wynosi %(max)s. Rozmiar obecnie wgrywanego pliku \"\n\"wynosi %(current)s.\"\n\n#: settings.py:86\nmsgid \"English\"\nmsgstr \"Angielski\"\n\n#: settings.py:87\nmsgid \"Polish\"\nmsgstr \"Polski\"\n\n#: settings.py:88\nmsgid \"German\"\nmsgstr \"Niemiecki\"\n\n#: settings.py:89\nmsgid \"French\"\nmsgstr \"Francuski\"\n\n#: settings.py:90\nmsgid \"Persian\"\nmsgstr \"Perski\"\n\n#: settings.py:91\nmsgid \"Dutch\"\nmsgstr \"Holenderski\"\n"
  },
  {
    "path": "markdownx/models.py",
    "content": "from django.db import models\n\nfrom .fields import MarkdownxFormField\n\n\nclass MarkdownxField(models.TextField):\n    \"\"\"\n    Custom Django field for Markdown text.\n    \n    Parameters are identical to those of the ordinary Django **TextField** parameters for the model\n    fields. For consistency therefore, the descriptions have been borrowed from Django's official\n    documentations (with minor modifications).\n    \n    :param verbose_name: A human-readable name for the field. If the verbose name isn't given,\n                         Django will automatically create it using the field's attribute name,\n                         converting underscores to spaces.\n    :type verbose_name: str\n    :param blank: If ``True``, the field is allowed to be blank. Default is ``False``.\n    :type blank: bool\n    :param null: If ``True``, Django will store empty values as **NULL** in the database.\n                 Default is ``False``.\n    :type null: bool\n    :param editable: If ``False``, the field will not be displayed in the admin or any other\n                     ModelForm. They are also skipped during model validation. Default is ``True``.\n    :type editable: bool\n    :param help_text: Extra \"help\" text to be displayed with the form widget. It's useful for\n                      documentation even if your field isn't used on a form. Note that this value\n                      is not HTML-escaped in automatically-generated forms. This lets you include\n                      HTML in ``help_text`` if you so desire.\n    :type help_text: str\n    :param validators: A list of validators to run for this field. See the validators_ documentations\n                       for additional information.\n    :type validators: list, tuple\n    :param error_messages: The error_messages argument lets you override the default messages that the field\n                           will raise. Pass in a dictionary with keys matching the error messages you want\n                           to override. Relevant error message keys include ``null``, ``blank``,\n                           and ``invalid``.\n    :type error_messages: dict\n    :param kwargs: Other ``django.db.models.field`` parameters. See Django documentations_ for additional\n                   information.\n    \n    .. _documentations: https://docs.djangoproject.com/en/1.10/ref/models/fields/#error-messages\n    .. _validators: https://docs.djangoproject.com/en/DEV_CONTENTS_XML/ref/validators/\n    \"\"\"\n\n    def formfield(self, **kwargs):\n        \"\"\"\n        Customising the ``form_class``.\n\n        :return: TextField with a custom ``form_class``.\n        :rtype: django.db.models.TextField\n        \"\"\"\n        defaults = {'form_class': MarkdownxFormField}\n        defaults.update(kwargs)\n        return super(MarkdownxField, self).formfield(**defaults)\n"
  },
  {
    "path": "markdownx/settings.py",
    "content": "# Django library.\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils.translation import gettext_lazy as _\n\n\n# Constants\n# ------------------------------------------------------------------\n\nFIFTY_MEGABYTES = 50 * 1024 * 1024\nVALID_CONTENT_TYPES = 'image/jpeg', 'image/png', 'image/gif', 'image/svg+xml'\nSVG_AND_GIF_TYPES = 'image/svg+xml', 'image/gif'\nNINETY_DPI = 90\nIM_WIDTH = 500\nIM_HEIGHT = 500\nLATENCY = 500\n\n\n# ------------------------------------------------------------------\n\n\ndef _mdx(var, default):\n    \"\"\"\n    Adds \"MARXDOWX_\" to the requested variable and retrieves its value\n    from settings or returns the default.\n\n    :param var: Variable to be retrieved.\n    :type var: str\n    :param default: Default value if the variable is not defined.\n    :return: Value corresponding to 'var'.\n    \"\"\"\n    try:\n        return getattr(settings, 'MARKDOWNX_' + var, default)\n    except ImproperlyConfigured:\n        # To handle the auto-generation of documentations.\n        return default\n\n\n# Markdownify\n# --------------------\nMARKDOWNX_MARKDOWNIFY_FUNCTION = _mdx('MARKDOWNIFY_FUNCTION', 'markdownx.utils.markdownify')\n\nMARKDOWNX_SERVER_CALL_LATENCY = _mdx('SERVER_CALL_LATENCY', LATENCY)\n\n# Markdown extensions\n# --------------------\nMARKDOWNX_MARKDOWN_EXTENSIONS = _mdx('MARKDOWN_EXTENSIONS', list())\n\nMARKDOWNX_MARKDOWN_EXTENSION_CONFIGS = _mdx('MARKDOWN_EXTENSION_CONFIGS', dict())\n\n# Markdown urls\n# --------------------\nMARKDOWNX_URLS_PATH = _mdx('URLS_PATH', '/markdownx/markdownify/')\n\nMARKDOWNX_UPLOAD_URLS_PATH = _mdx('UPLOAD_URLS_PATH', '/markdownx/upload/')\n\n# Media path\n#  --------------------\nMARKDOWNX_MEDIA_PATH = _mdx('MEDIA_PATH', 'markdownx/')\n\n# Image\n# --------------------\nMARKDOWNX_UPLOAD_MAX_SIZE = _mdx('UPLOAD_MAX_SIZE', FIFTY_MEGABYTES)\n\nMARKDOWNX_UPLOAD_CONTENT_TYPES = _mdx('UPLOAD_CONTENT_TYPES', VALID_CONTENT_TYPES)\n\nMARKDOWNX_IMAGE_MAX_SIZE = _mdx('IMAGE_MAX_SIZE', dict(size=(IM_WIDTH, IM_HEIGHT), quality=NINETY_DPI))\n\nMARKDOWNX_SVG_JAVASCRIPT_PROTECTION = True\n\nMARKDOWNX_SKIP_RESIZE = _mdx('SKIP_RESIZE', SVG_AND_GIF_TYPES)\n\n# Editor\n# --------------------\nMARKDOWNX_EDITOR_RESIZABLE = _mdx('EDITOR_RESIZABLE', True)\n\n# ------------------------------------------------\n# Translations\n# ------------------------------------------------\n# This is not called using `_from_settings` as\n# it does not need \"_MARKDOWNX\" prefix.\ntry:\n    LANGUAGES = getattr(\n        settings,\n        'LANGUAGES',\n        (\n            ('en', _('English')),\n            ('pl', _('Polish')),\n            ('de', _('German')),\n            ('fr', _('French')),\n            ('fa', _('Persian')),\n            ('du', _('Dutch'))\n        )\n    )\nexcept ImproperlyConfigured:\n    # To handle the auto-generation of documentations.\n    pass\n"
  },
  {
    "path": "markdownx/static/markdownx/admin/css/markdownx.css",
    "content": ".markdownx {\n  display: inline-block\n}\n.markdownx .markdownx-editor,\n.markdownx .markdownx-preview {\n  margin-left: 0;\n  width: 610px;\n  box-sizing: border-box\n}\n.markdownx .markdownx-preview {\n  overflow-y: scroll\n}\n.markdownx .markdownx-preview a {\n  color: var(--link-fg);\n  text-decoration: underline\n}\n.markdownx .markdownx-preview a:visited {\n  color: var(--link-selected-fg)\n}\n.markdownx .markdownx-preview a:hover {\n  color: var(--link-hover-color)\n}\n.markdownx .markdownx-preview a:active {\n  color: var(--link-selected-fg)\n}\n.markdownx .markdownx-preview a:focus {\n  outline: thin dotted\n}\n.markdownx .markdownx-preview a:active,\n.markdownx .markdownx-preview a:hover {\n  outline: 0\n}\n.markdownx .markdownx-preview p {\n  margin: 1em 0;\n  padding: 0;\n  font-size: 14px\n}\n.markdownx .markdownx-preview h1,\n.markdownx .markdownx-preview h2,\n.markdownx .markdownx-preview h3,\n.markdownx .markdownx-preview h4,\n.markdownx .markdownx-preview h5,\n.markdownx .markdownx-preview h6 {\n  font-weight: 700;\n  color: var(--body-fg);\n  margin-top: 1em;\n  margin-bottom: .75em;\n  padding: 0;\n  background: 0 0\n}\n.markdownx .markdownx-preview h1 {\n  font-size: 2em\n}\n.markdownx .markdownx-preview h2 {\n  font-size: 1.7em\n}\n.markdownx .markdownx-preview h3 {\n  font-size: 1.4em\n}\n.markdownx .markdownx-preview h4 {\n  font-size: 1.2em\n}\n.markdownx .markdownx-preview h5 {\n  font-size: 1em\n}\n.markdownx .markdownx-preview h6 {\n  font-size: .9em\n}\n.markdownx .markdownx-preview blockquote {\n  color: var(--body-quiet-color);\n  margin: 0;\n  padding-left: 1.5em;\n  font-style: italic;\n  border-left: .5em solid var(--hairline-color)\n}\n.markdownx .markdownx-preview hr {\n  margin: 20px 0\n}\n.markdownx .markdownx-preview code,\n.markdownx .markdownx-preview kbd,\n.markdownx .markdownx-preview pre,\n.markdownx .markdownx-preview samp {\n  font-family: monospace,monospace;\n  font-size: 14px\n}\n.markdownx .markdownx-preview code,\n.markdownx .markdownx-preview pre {\n  margin: 0 2px;\n  padding: 0 5px;\n  background-color: var(--hairline-color);\n  border-radius: 4px;\n  color: var(--body-quiet-color)\n}\n.markdownx .markdownx-preview pre {\n  margin: 1.5em 0 1.5em 0;\n  padding: 1em;\n  white-space: pre;\n  white-space: pre-wrap;\n  word-wrap: break-word\n}\n.markdownx .markdownx-preview pre code {\n  margin: 0;\n  padding: 0;\n  background: 0 0;\n  border: none\n}\n.markdownx .markdownx-preview b,\n.markdownx .markdownx-preview strong {\n  font-weight: 700\n}\n.markdownx .markdownx-preview dfn {\n  font-style: italic\n}\n.markdownx .markdownx-preview ins {\n  background: var(--message-success-bg);\n  color: var(--body-fg);\n  text-decoration: none\n}\n.markdownx .markdownx-preview mark {\n  background: var(--message-error-bg);\n  color: var(--body-fg);\n  font-style: italic;\n  font-weight: 700\n}\n.markdownx .markdownx-preview sub,\n.markdownx .markdownx-preview sup {\n  font-size: 75%;\n  line-height: 0;\n  position: relative;\n  vertical-align: baseline\n}\n.markdownx .markdownx-preview sup {\n  top: -.5em\n}\n.markdownx .markdownx-preview sub {\n  bottom: -.25em\n}\n.markdownx .markdownx-preview ol,\n.markdownx .markdownx-preview ul {\n  margin: .5em 0;\n  padding: 0 0 0 2em!important\n}\n.markdownx .markdownx-preview ul,\n.markdownx .markdownx-preview ul li,\n.markdownx .markdownx-preview ul ul li {\n  list-style: disc!important\n}\n.markdownx .markdownx-preview li p:last-child {\n  margin: 0\n}\n.markdownx .markdownx-preview dd {\n  margin: 0 0 0 2em\n}\n.markdownx .markdownx-preview img {\n  border: 0;\n  -ms-interpolation-mode: bicubic;\n  vertical-align: middle;\n  max-width: 100%\n}\n.markdownx .markdownx-preview table {\n  border-collapse: collapse;\n  border-spacing: 0\n}"
  },
  {
    "path": "markdownx/static/markdownx/js/markdownx.js",
    "content": "(function() {\n    function r(e, n, t) {\n        function o(i, f) {\n            if (!n[i]) {\n                if (!e[i]) {\n                    var c = \"function\" == typeof require && require;\n                    if (!f && c) return c(i, !0);\n                    if (u) return u(i, !0);\n                    var a = new Error(\"Cannot find module '\" + i + \"'\");\n                    throw a.code = \"MODULE_NOT_FOUND\", a;\n                }\n                var p = n[i] = {\n                    exports: {}\n                };\n                e[i][0].call(p.exports, function(r) {\n                    var n = e[i][1][r];\n                    return o(n || r);\n                }, p, p.exports, r, e, n, t);\n            }\n            return n[i].exports;\n        }\n        for (var u = \"function\" == typeof require && require, i = 0; i < t.length; i++) o(t[i]);\n        return o;\n    }\n    return r;\n})()({\n    1: [ function(require, module, exports) {\n        \"use strict\";\n        Object.defineProperty(exports, \"__esModule\", {\n            value: true\n        });\n        var utils_1 = require(\"./utils\");\n        var UPLOAD_URL_ATTRIBUTE = \"data-markdownx-upload-urls-path\", PROCESSING_URL_ATTRIBUTE = \"data-markdownx-urls-path\", RESIZABILITY_ATTRIBUTE = \"data-markdownx-editor-resizable\", LATENCY_ATTRIBUTE = \"data-markdownx-latency\", LATENCY_MINIMUM = 500, XHR_RESPONSE_ERROR = \"Invalid response\", UPLOAD_START_OPACITY = \"0.3\", NORMAL_OPACITY = \"1\";\n        var EventHandlers = {\n            inhibitDefault: function(event) {\n                event.preventDefault();\n                event.stopPropagation();\n                return event;\n            },\n            onDragEnter: function(event) {\n                event.dataTransfer.dropEffect = \"copy\";\n                return EventHandlers.inhibitDefault(event);\n            }\n        };\n        var keyboardEvents = {\n            keys: {\n                TAB: \"Tab\",\n                DUPLICATE: \"d\",\n                UNINDENT: \"[\",\n                INDENT: \"]\"\n            },\n            handlers: {\n                applyTab: function(properties) {\n                    return properties.value.substring(0, properties.start) + (properties.value.substring(properties.start, properties.end).match(/\\n/gm) === null ? \"\\t\" + properties.value.substring(properties.start) : properties.value.substring(properties.start, properties.end).replace(/^/gm, \"\\t\") + properties.value.substring(properties.end));\n                },\n                removeTab: function(properties) {\n                    var substitution = null, lineTotal = (properties.value.substring(properties.start, properties.end).match(/\\n/g) || []).length;\n                    if (properties.start === properties.end) {\n                        properties.start = properties.start > 0 && properties.value[properties.start - 1].match(/\\t/) !== null ? properties.start - 1 : properties.start;\n                        substitution = properties.value.substring(properties.start).replace(\"\\t\", \"\");\n                    } else if (!lineTotal) {\n                        substitution = properties.value.substring(properties.start).replace(\"\\t\", \"\");\n                    } else {\n                        substitution = properties.value.substring(properties.start, properties.end).replace(/^\\t/gm, \"\") + properties.value.substring(properties.end);\n                    }\n                    return properties.value.substring(0, properties.start) + substitution;\n                },\n                _multiLineIndentation: function(properties) {\n                    var endLine = new RegExp(\"(?:\\n|.){0,\" + properties.end + \"}(^.*$)\", \"m\").exec(properties.value)[1];\n                    return properties.value.substring(properties.value.indexOf(new RegExp(\"(?:\\n|.){0,\" + properties.start + \"}(^.*$)\", \"m\").exec(properties.value)[1]), properties.value.indexOf(endLine) ? properties.value.indexOf(endLine) + endLine.length : properties.end);\n                },\n                applyIndentation: function(properties) {\n                    if (properties.start === properties.end) {\n                        var line = new RegExp(\"(?:\\n|.){0,\" + properties.start + \"}(^.+$)\", \"m\").exec(properties.value)[1];\n                        return properties.value.replace(line, \"\\t\" + line);\n                    }\n                    var content = keyboardEvents.handlers._multiLineIndentation({\n                        start: properties.start,\n                        end: properties.end,\n                        value: properties.value\n                    });\n                    return properties.value.replace(content, content.replace(/(^.+$)\\n*/gim, \"\\t$&\"));\n                },\n                removeIndentation: function(properties) {\n                    if (properties.start === properties.end) {\n                        var line = new RegExp(\"(?:\\n|.){0,\" + properties.start + \"}(^\\t.+$)\", \"m\").exec(properties.value)[1];\n                        return properties.value.replace(line, line.substring(1));\n                    }\n                    var content = keyboardEvents.handlers._multiLineIndentation({\n                        start: properties.start,\n                        end: properties.end,\n                        value: properties.value\n                    });\n                    return properties.value.replace(content, content.replace(/^\\t(.+)\\n*$/gim, \"$1\"));\n                },\n                applyDuplication: function(properties) {\n                    if (properties.start !== properties.end) return properties.value.substring(0, properties.start) + properties.value.substring(properties.start, properties.end) + (~properties.value.charAt(properties.start - 1).indexOf(\"\\n\") || ~properties.value.charAt(properties.start).indexOf(\"\\n\") ? \"\\n\" : \"\") + properties.value.substring(properties.start, properties.end) + properties.value.substring(properties.end);\n                    var pattern = new RegExp(\"(?:.|\\n){0,160}(^.*$)\", \"m\"), line = \"\";\n                    properties.value.replace(pattern, function(match, p1) {\n                        return line += p1;\n                    });\n                    return properties.value.replace(line, line + \"\\n\" + line);\n                }\n            },\n            hub: function(event) {\n                switch (event.key) {\n                  case this.keys.TAB:\n                    return event.shiftKey ? this.handlers.removeTab : this.handlers.applyTab;\n\n                  case this.keys.DUPLICATE:\n                    return event.ctrlKey || event.metaKey ? this.handlers.applyDuplication : false;\n\n                  case this.keys.INDENT:\n                    return event.ctrlKey || event.metaKey ? this.handlers.applyIndentation : false;\n\n                  case this.keys.UNINDENT:\n                    return event.ctrlKey || event.metaKey ? this.handlers.removeIndentation : false;\n\n                  default:\n                    return false;\n                }\n            }\n        };\n        function getHeight(element) {\n            return Math.max(parseInt(window.getComputedStyle(element).height), parseInt(element.style.height) || 0);\n        }\n        function updateHeight(editor) {\n            editor.style.height = editor.scrollHeight + parseInt(getComputedStyle(editor).borderTop) + parseInt(getComputedStyle(editor).borderBottom) + \"px\";\n            return editor;\n        }\n        var MarkdownX = function(parent, editor, preview) {\n            var _this = this;\n            var properties = {\n                editor: editor,\n                preview: preview,\n                parent: parent,\n                _latency: null,\n                _editorIsResizable: null\n            };\n            var _initialize = function() {\n                _this.timeout = null;\n                var documentListeners = {\n                    object: document,\n                    listeners: [ {\n                        type: \"drop\",\n                        capture: false,\n                        listener: EventHandlers.inhibitDefault\n                    }, {\n                        type: \"dragover\",\n                        capture: false,\n                        listener: EventHandlers.inhibitDefault\n                    }, {\n                        type: \"dragenter\",\n                        capture: false,\n                        listener: EventHandlers.inhibitDefault\n                    }, {\n                        type: \"dragleave\",\n                        capture: false,\n                        listener: EventHandlers.inhibitDefault\n                    } ]\n                }, editorListeners = {\n                    object: properties.editor,\n                    listeners: [ {\n                        type: \"paste\",\n                        capture: false,\n                        listener: onPaste\n                    }, {\n                        type: \"drop\",\n                        capture: false,\n                        listener: onDrop\n                    }, {\n                        type: \"input\",\n                        capture: true,\n                        listener: inputChanged\n                    }, {\n                        type: \"keydown\",\n                        capture: true,\n                        listener: onKeyDown\n                    }, {\n                        type: \"focusin\",\n                        capture: true,\n                        listener: inputChanged\n                    }, {\n                        type: \"dragover\",\n                        capture: false,\n                        listener: EventHandlers.onDragEnter\n                    }, {\n                        type: \"dragenter\",\n                        capture: false,\n                        listener: EventHandlers.onDragEnter\n                    }, {\n                        type: \"dragleave\",\n                        capture: false,\n                        listener: EventHandlers.inhibitDefault\n                    }, {\n                        type: \"compositionstart\",\n                        capture: true,\n                        listener: onKeyDown\n                    } ]\n                };\n                utils_1.mountEvents(editorListeners, documentListeners);\n                properties.editor.setAttribute(\"data-markdownx-init\", \"\");\n                properties.editor.style.transition = \"opacity 1s ease\";\n                properties.editor.style.webkitTransition = \"opacity 1s ease\";\n                properties._latency = Math.max(parseInt(properties.editor.getAttribute(LATENCY_ATTRIBUTE)) || 0, LATENCY_MINIMUM);\n                properties._editorIsResizable = (properties.editor.getAttribute(RESIZABILITY_ATTRIBUTE).match(/true/i) || []).length > 0 && properties.editor.offsetHeight > 0 && properties.editor.offsetWidth > 0;\n                getMarkdown();\n                utils_1.triggerCustomEvent(\"markdownx.init\");\n            };\n            var _markdownify = function() {\n                clearTimeout(_this.timeout);\n                _this.timeout = setTimeout(getMarkdown, properties._latency);\n            };\n            var inputChanged = function() {\n                properties.editor = properties._editorIsResizable ? updateHeight(properties.editor) : properties.editor;\n                return _markdownify();\n            };\n            var onPaste = function(event) {\n                if (event.clipboardData && event.clipboardData.files.length) {\n                    Object.keys(event.clipboardData.files).map(function(fileKey) {\n                        return sendFile(event.clipboardData.files[fileKey]);\n                    });\n                    EventHandlers.inhibitDefault(event);\n                }\n            };\n            var onDrop = function(event) {\n                if (event.dataTransfer && event.dataTransfer.files.length) Object.keys(event.dataTransfer.files).map(function(fileKey) {\n                    return sendFile(event.dataTransfer.files[fileKey]);\n                });\n                EventHandlers.inhibitDefault(event);\n            };\n            var onKeyDown = function(event) {\n                var handlerFunc = keyboardEvents.hub(event);\n                if (typeof handlerFunc != \"function\") return false;\n                EventHandlers.inhibitDefault(event);\n                var SELECTION_START = properties.editor.selectionStart;\n                properties.editor.value = handlerFunc({\n                    start: properties.editor.selectionStart,\n                    end: properties.editor.selectionEnd,\n                    value: properties.editor.value\n                });\n                _markdownify();\n                properties.editor.focus();\n                switch (event.key) {\n                  case keyboardEvents.keys.TAB:\n                    if (event.shiftKey) {\n                        properties.editor.selectionEnd = properties.editor.selectionStart = SELECTION_START - 1;\n                    } else {\n                        properties.editor.selectionEnd = properties.editor.selectionStart = SELECTION_START + 1;\n                    }\n                    break;\n\n                  case keyboardEvents.keys.INDENT:\n                    properties.editor.selectionEnd = properties.editor.selectionStart = SELECTION_START + 1;\n                    break;\n\n                  case keyboardEvents.keys.UNINDENT:\n                    properties.editor.selectionEnd = properties.editor.selectionStart = SELECTION_START - 1;\n                    break;\n\n                  default:\n                    properties.editor.selectionEnd = properties.editor.selectionStart = SELECTION_START;\n                }\n                return false;\n            };\n            var sendFile = function(file) {\n                properties.editor.style.opacity = UPLOAD_START_OPACITY;\n                var xhr = new utils_1.Request(properties.editor.getAttribute(UPLOAD_URL_ATTRIBUTE), utils_1.preparePostData({\n                    image: file\n                }));\n                xhr.success = function(resp) {\n                    var response = JSON.parse(resp);\n                    if (response.image_code) {\n                        insertImage(response.image_code);\n                        utils_1.triggerCustomEvent(\"markdownx.fileUploadEnd\", properties.parent, [ response ]);\n                    } else if (response.image_path) {\n                        insertImage('![](\"' + response.image_path + '\")');\n                        utils_1.triggerCustomEvent(\"markdownx.fileUploadEnd\", properties.parent, [ response ]);\n                    } else {\n                        console.error(XHR_RESPONSE_ERROR, response);\n                        utils_1.triggerCustomEvent(\"markdownx.fileUploadError\", properties.parent, [ response ]);\n                        insertImage(XHR_RESPONSE_ERROR);\n                    }\n                    properties.editor.style.opacity = NORMAL_OPACITY;\n                };\n                xhr.error = function(response) {\n                    console.error(response);\n                    utils_1.triggerCustomEvent(\"fileUploadError\", properties.parent, [ response ]);\n                    insertImage(XHR_RESPONSE_ERROR);\n                    properties.editor.style.opacity = NORMAL_OPACITY;\n                };\n                return xhr.send();\n            };\n            var getMarkdown = function() {\n                var xhr = new utils_1.Request(properties.editor.getAttribute(PROCESSING_URL_ATTRIBUTE), utils_1.preparePostData({\n                    content: properties.editor.value\n                }));\n                xhr.success = function(response) {\n                    properties.preview.innerHTML = response;\n                    properties.editor = properties._editorIsResizable ? updateHeight(properties.editor) : properties.editor;\n                    utils_1.triggerCustomEvent(\"markdownx.update\", properties.parent, [ response ]);\n                };\n                xhr.error = function(response) {\n                    console.error(response);\n                    utils_1.triggerCustomEvent(\"markdownx.updateError\", properties.parent, [ response ]);\n                };\n                return xhr.send();\n            };\n            var insertImage = function(textToInsert) {\n                properties.editor.value = \"\" + properties.editor.value.substring(0, properties.editor.selectionStart) + textToInsert + (\"\" + properties.editor.value.substring(properties.editor.selectionEnd));\n                properties.editor.selectionStart = properties.editor.selectionEnd = properties.editor.selectionStart + textToInsert.length;\n                utils_1.triggerEvent(properties.editor, \"keyup\");\n                inputChanged();\n            };\n            _initialize();\n        };\n        exports.MarkdownX = MarkdownX;\n        (function(funcName, baseObj) {\n            funcName = funcName || \"docReady\";\n            baseObj = baseObj || window;\n            var readyList = [], readyFired = false, readyEventHandlersInstalled = false;\n            var ready = function() {\n                if (!readyFired) {\n                    readyFired = true;\n                    readyList.map(function(ready) {\n                        return ready.fn.call(window, ready.ctx);\n                    });\n                    readyList = [];\n                }\n            };\n            var readyStateChange = function() {\n                return document.readyState === \"complete\" ? ready() : null;\n            };\n            baseObj[funcName] = function(callback, context) {\n                if (readyFired) {\n                    setTimeout(function() {\n                        return callback(context);\n                    }, 1);\n                    return;\n                } else {\n                    readyList.push({\n                        fn: callback,\n                        ctx: context\n                    });\n                }\n                if (document.readyState === \"complete\") {\n                    setTimeout(ready, 1);\n                } else if (!readyEventHandlersInstalled) {\n                    document.addEventListener(\"DOMContentLoaded\", ready, false);\n                    window.addEventListener(\"load\", ready, false);\n                    readyEventHandlersInstalled = true;\n                }\n            };\n        })(\"docReady\", window);\n        docReady(function() {\n            var ELEMENTS = document.getElementsByClassName(\"markdownx\");\n            return Object.keys(ELEMENTS).map(function(key) {\n                var element = ELEMENTS[key], editor = element.querySelector(\".markdownx-editor\"), preview = element.querySelector(\".markdownx-preview\");\n                if (!editor.hasAttribute(\"data-markdownx-init\")) return new MarkdownX(element, editor, preview);\n            });\n        });\n    }, {\n        \"./utils\": 2\n    } ],\n    2: [ function(require, module, exports) {\n        \"use strict\";\n        Object.defineProperty(exports, \"__esModule\", {\n            value: true\n        });\n        function getCookie(name) {\n            if (document.cookie && document.cookie.length) {\n                var value = \"; \" + document.cookie;\n                var parts = value.split(\"; \" + name + \"=\");\n                if (parts.length === 2) {\n                    try {\n                        return decodeURIComponent(parts.pop().split(\";\").shift());\n                    } catch (e) {\n                        if (e instanceof TypeError) {\n                            console.info('No cookie with key \"' + name + '\". Wrong name?');\n                            return null;\n                        }\n                        throw e;\n                    }\n                }\n            }\n            return null;\n        }\n        exports.getCookie = getCookie;\n        function zip() {\n            var rows = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                rows[_i] = arguments[_i];\n            }\n            if (rows[0].constructor == Array) return rows[0].slice().map(function(_, c) {\n                return rows.map(function(row) {\n                    return row[c];\n                });\n            });\n            var asArray = rows.map(function(row) {\n                return Object.keys(row).map(function(key) {\n                    return row[key];\n                });\n            });\n            return asArray[0].slice().map(function(_, c) {\n                return asArray.map(function(row) {\n                    return row[c];\n                });\n            });\n        }\n        exports.zip = zip;\n        function mountEvents() {\n            var collections = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                collections[_i] = arguments[_i];\n            }\n            return collections.map(function(events) {\n                return events.listeners.map(function(series) {\n                    return events.object.addEventListener(series.type, series.listener, series.capture);\n                });\n            });\n        }\n        exports.mountEvents = mountEvents;\n        function preparePostData(data, csrf) {\n            if (csrf === void 0) {\n                csrf = true;\n            }\n            var form = new FormData();\n            if (csrf) {\n                var csrfToken = getCookie(\"csrftoken\");\n                if (!csrfToken) csrfToken = document.querySelector(\"input[name='csrfmiddlewaretoken']\").value;\n                form.append(\"csrfmiddlewaretoken\", csrfToken);\n            }\n            Object.keys(data).map(function(key) {\n                return form.append(key, data[key]);\n            });\n            return form;\n        }\n        exports.preparePostData = preparePostData;\n        function AJAXRequest() {\n            if (\"XMLHttpRequest\" in window) return new XMLHttpRequest();\n            try {\n                return new ActiveXObject(\"Msxml2.XMLHTTP.6.0\");\n            } catch (e) {}\n            try {\n                return new ActiveXObject(\"Msxml2.XMLHTTP.3.0\");\n            } catch (e) {}\n            try {\n                return new ActiveXObject(\"Microsoft.XMLHTTP\");\n            } catch (e) {}\n            alert(\"Your browser belongs to history!\");\n            throw new TypeError(\"This browser does not support AJAX requests.\");\n        }\n        var Request = function() {\n            function Request(url, data) {\n                this.xhr = AJAXRequest();\n                this.url = url;\n                this.data = data;\n            }\n            Request.prototype.progress = function(event) {\n                if (event.lengthComputable) {}\n            };\n            Request.prototype.error = function(response) {\n                console.error(response);\n            };\n            Request.prototype.success = function(response) {\n                console.info(response);\n            };\n            Request.prototype.send = function() {\n                var _this = this;\n                var SUCCESS = this.success, ERROR = this.error, PROGRESS = this.progress;\n                this.xhr.open(\"POST\", this.url, true);\n                this.xhr.setRequestHeader(\"X-Requested-With\", \"XMLHttpRequest\");\n                this.xhr.upload.onprogress = function(event) {\n                    return PROGRESS(event);\n                };\n                this.xhr.onerror = function(event) {\n                    ERROR(_this.xhr.responseText);\n                };\n                this.xhr.onload = function(event) {\n                    var data = null;\n                    if (_this.xhr.readyState == XMLHttpRequest.DONE) {\n                        if (!_this.xhr.responseType || _this.xhr.responseType === \"text\") {\n                            data = _this.xhr.responseText;\n                        } else if (_this.xhr.responseType === \"document\") {\n                            data = _this.xhr.responseXML;\n                        } else {\n                            data = _this.xhr.response;\n                        }\n                    }\n                    SUCCESS(data);\n                };\n                this.xhr.send(this.data);\n            };\n            return Request;\n        }();\n        exports.Request = Request;\n        function triggerEvent(element, type) {\n            var event = document.createEvent(\"HTMLEvents\");\n            event.initEvent(type, false, true);\n            element.dispatchEvent(event);\n        }\n        exports.triggerEvent = triggerEvent;\n        function triggerCustomEvent(type, element, args) {\n            if (element === void 0) {\n                element = document;\n            }\n            if (args === void 0) {\n                args = null;\n            }\n            var event = new CustomEvent(type, {\n                detail: args\n            });\n            element.dispatchEvent(event);\n        }\n        exports.triggerCustomEvent = triggerCustomEvent;\n        function addClass(element) {\n            var className = [];\n            for (var _i = 1; _i < arguments.length; _i++) {\n                className[_i - 1] = arguments[_i];\n            }\n            className.map(function(cname) {\n                if (element.classList) element.classList.add(cname); else {\n                    var classes = element.className.split(\" \");\n                    if (classes.indexOf(cname) < 0) classes.push(cname);\n                    element.className = classes.join(\" \");\n                }\n            });\n        }\n        exports.addClass = addClass;\n        function removeClass(element) {\n            var className = [];\n            for (var _i = 1; _i < arguments.length; _i++) {\n                className[_i - 1] = arguments[_i];\n            }\n            className.map(function(cname) {\n                if (element.classList) element.classList.remove(cname); else {\n                    var classes = element.className.split(\" \"), idx = classes.indexOf(cname);\n                    if (idx > -1) classes.splice(idx, 1);\n                    element.className = classes.join(\" \");\n                }\n            });\n        }\n        exports.removeClass = removeClass;\n    }, {} ]\n}, {}, [ 1 ]);"
  },
  {
    "path": "markdownx/templates/markdownx/widget.html",
    "content": "<div class=\"markdownx\">\n    {% include 'django/forms/widgets/textarea.html' %}\n    <div class=\"markdownx-preview\"></div>\n</div>\n"
  },
  {
    "path": "markdownx/tests/__init__.py",
    "content": ""
  },
  {
    "path": "markdownx/tests/models.py",
    "content": "from django.db import models\n\nfrom markdownx.models import MarkdownxField\n\n\nclass MyModel(models.Model):\n    \"\"\"\n\n    \"\"\"\n    markdownx_field = MarkdownxField()\n\n    class Meta:\n        app_label = 'MyModel'\n"
  },
  {
    "path": "markdownx/tests/templates/test_view.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n    <form role=\"form\" method=\"POST\" action=\"\">{% csrf_token %}\n        {{ form.as_p }}\n    </form>\n    {{ form.media }}\n</body>\n</html>\n"
  },
  {
    "path": "markdownx/tests/tests.py",
    "content": "import os\nimport re\nfrom django.test import TestCase\nfrom django.urls import reverse\n\n\nclass SimpleTest(TestCase):\n\n    def test_upload(self):\n        url = reverse('markdownx_upload')\n        with open('markdownx/tests/static/django-markdownx-preview.png', 'rb') as fp:\n            response = self.client.post(url, {'image': fp}, HTTP_X_REQUESTED_WITH='XMLHttpRequest')\n            json = response.json()\n\n        self.assertEqual(response.status_code, 200)\n        self.assertIn('image_code', json)\n\n        match = re.findall(r'(markdownx/[\\w\\-]+\\.png)', json['image_code'])\n        try:\n            if match:\n                os.remove(match[0])\n        except OSError:\n            pass\n"
  },
  {
    "path": "markdownx/tests/urls.py",
    "content": "from django.conf.urls import include\nfrom django.urls import path\n\nfrom .views import TestView\n\nurlpatterns = [\n    path('testview/', TestView.as_view()),\n    path('markdownx/', include('markdownx.urls')),\n]\n"
  },
  {
    "path": "markdownx/tests/views.py",
    "content": "from django.views.generic.edit import CreateView\n\nfrom .models import MyModel\n\nclass TestView(CreateView):\n    template_name = \"test_view.html\"\n    model = MyModel\n    fields = ['markdownx_field']\n"
  },
  {
    "path": "markdownx/urls.py",
    "content": "\"\"\"\n**MarkdownX** default URLs, to be added to URLs in the main project.\n\nSee URLs in :doc:`../../example` to learn more.\n\"\"\"\n\nfrom django.urls import path\n\nfrom .views import ImageUploadView\nfrom .views import MarkdownifyView\n\n\nurlpatterns = [\n    path('upload/', ImageUploadView.as_view(), name='markdownx_upload'),\n    path('markdownify/', MarkdownifyView.as_view(), name='markdownx_markdownify'),\n]\n"
  },
  {
    "path": "markdownx/utils.py",
    "content": "from PIL import Image\nfrom markdown import markdown\n\nfrom .settings import MARKDOWNX_MARKDOWN_EXTENSIONS\nfrom .settings import MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS\n\n\n# TODO: try catch for file.open when image is corrupted\n\n\ndef markdownify(content):\n    \"\"\"\n    Trans-compiles Markdown text to HTML.\n\n    :param content: Markdown text.\n    :type content: str\n    :return: HTML encoded text.\n    :rtype: str\n    \"\"\"\n    md = markdown(\n        text=content,\n        extensions=MARKDOWNX_MARKDOWN_EXTENSIONS,\n        extension_configs=MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS\n    )\n    return md\n\n\ndef _crop(im, target_x, target_y):\n    \"\"\"\n    Crops the image to the given specifications.\n\n    :param im: Instance of the image.\n    :type im: PIL Image\n    :param target_x: New x-axis.\n    :type target_x: int\n    :param target_y: New y-axis\n    :type target_y: int\n    :return: Cropped image.\n    :rtype: PIL.Image\n    \"\"\"\n    # Use integer values now.\n    source_x, source_y = im.size\n    # Difference between new image size and requested size.\n    diff_x = int(source_x - min(source_x, target_x))\n    diff_y = int(source_y - min(source_y, target_y))\n\n    if diff_x or diff_y:\n        # Center cropping (default).\n        halfdiff_x, halfdiff_y = diff_x // 2, diff_y // 2\n        box = [\n            halfdiff_x,\n            halfdiff_y,\n            min(source_x, int(target_x) + halfdiff_x),\n            min(source_y, int(target_y) + halfdiff_y)\n        ]\n\n        # Finally, crop the image!\n        im = im.crop(box)\n    return im\n\n\ndef _scale(im, x, y):\n    \"\"\"\n    Scales the image to the given specifications.\n\n    :param im: Instance of the image.\n    :type im: PIL Image\n    :param x: x-axis size.\n    :type x: int\n    :param y: y-axis size.\n    :type y: int\n    :return: Scaled image, re-sampled with anti-aliasing filter.\n    :rtype: Image\n    \"\"\"\n    im = im.resize(\n        (int(x), int(y)),\n        resample=Image.Resampling.LANCZOS\n    )\n    return im\n\n\ndef scale_and_crop(image, size, crop=False, upscale=False, quality=None):\n    \"\"\"\n    Modifies raster graphic images to the specifications.\n\n    :param image: Raster graphic image.\n    :type image: BytesIO\n    :param size: New size.\n    :type size: int\n    :param crop: Perform cropping or not.\n    :type crop: bool\n    :param upscale: Whether or not to upscale the image.\n    :type upscale: bool\n    :param quality: Quality of the new image in DPI.\n    :type quality: int\n    :return: Raster graphic image modified to the given specifications.\n    :rtype: BytesIO\n    \"\"\"\n    # Open image and store format/metadata.\n    image.open()\n    im = Image.open(image)\n    im_format, im_info = im.format, im.info\n    if quality:\n        im_info['quality'] = quality\n\n    # Force PIL to load image data.\n    im.load()\n\n    source_x, source_y = map(float, im.size)\n    target_x, target_y = map(float, size)\n\n    if crop or not target_x or not target_y:\n        scale = max(target_x / source_x, target_y / source_y)\n    else:\n        scale = min(target_x / source_x, target_y / source_y)\n\n    # Handle one-dimensional targets.\n    if not target_x:\n        target_x = source_x * scale\n    elif not target_y:\n        target_y = source_y * scale\n\n    if scale < 1.0 or (scale > 1.0 and upscale):\n        im = _scale(im=im, x=source_x * scale, y=source_y * scale)\n\n    if crop:\n        im = _crop(im=im, target_x=target_x, target_y=target_y)\n\n    # Close image and replace format/metadata, as PIL blows this away.\n    im.format, im.info = im_format, im_info\n\n    image.close()\n\n    return im\n\n\ndef xml_has_javascript(data):\n    \"\"\"\n    Checks XML for JavaScript. See \"security\" in :doc:`customization <../../customization>` for\n    additional information.\n\n    :param data: Contents to be monitored for JavaScript injection.\n    :type data: str, bytes\n    :return: ``True`` if **data** contains JavaScript tag(s), otherwise ``False``.\n    :rtype: bool\n    \"\"\"\n    from re import search, IGNORECASE, MULTILINE\n\n    data = str(data, encoding='UTF-8')\n    # ------------------------------------------------\n    # Handles JavaScript nodes and stringified nodes.\n    # ------------------------------------------------\n    # Filters against \"script\" / \"if\" / \"for\" within node attributes.\n    pattern = r'(<\\s*\\bscript\\b.*>.*)|(.*\\bif\\b\\s*\\(.?={2,3}.*\\))|(.*\\bfor\\b\\s*\\(.*\\))'\n\n    found = search(\n        pattern=pattern,\n        string=data,\n        flags=IGNORECASE | MULTILINE\n    )\n\n    if found is not None:\n        return True\n\n    # ------------------------------------------------\n    # Handles JavaScript injection into attributes\n    # for element creation.\n    # ------------------------------------------------\n    from xml.etree.ElementTree import fromstring\n\n    parsed_xml = (\n        (attribute, value)\n        for elm in fromstring(data).iter()\n        for attribute, value in elm.attrib.items()\n    )\n\n    for key, val in parsed_xml:\n        if '\"' in val or \"'\" in val:\n            return True\n\n    # It is (hopefully) safe.\n    return False\n"
  },
  {
    "path": "markdownx/views.py",
    "content": "from django.http import HttpResponse\nfrom django.http import JsonResponse\nfrom django.utils.module_loading import import_string\nfrom django.views.generic.edit import BaseFormView\nfrom django.views.generic.edit import View\n\nfrom .forms import ImageForm\nfrom .settings import MARKDOWNX_MARKDOWNIFY_FUNCTION\n\nmarkdownify_func = import_string(MARKDOWNX_MARKDOWNIFY_FUNCTION)\n\n\nclass MarkdownifyView(View):\n    \"\"\"\n    Conversion of Markdown to HTML.\n    \"\"\"\n\n    def post(self, request, *args, **kwargs):\n        \"\"\"\n        Handling of the conversion from Markdown to HTML using the conversion\n        function in settings under ``MARKDOWNX_MARKDOWNIFY_FUNCTION``.\n\n        :param request: HTTP request.\n        :param args: Default Django POST arguments.\n        :param kwargs: Default Django POST keyword arguments.\n        :return: HTTP response\n        :rtype: django.http.HttpResponse\n        \"\"\"\n\n        return HttpResponse(markdownify_func(request.POST['content']))\n\n\nclass ImageUploadView(BaseFormView):\n    \"\"\"\n    Handling requests for uploading images.\n    \"\"\"\n\n    # template_name = \"dummy.html\"\n    form_class = ImageForm\n    success_url = '/'\n\n    def form_invalid(self, form):\n        \"\"\"\n        Handling of invalid form events.\n\n        :param form: Django form instance.\n        :type form: django.forms.Form\n        :return: JSON response with the HTTP-400 error message for AJAX requests\n                 and the default response for HTTP requests.\n        :rtype: django.http.JsonResponse, django.http.HttpResponse\n        \"\"\"\n        if self.request.headers.get('x-requested-with') == 'XMLHttpRequest':\n            return JsonResponse(form.errors, status=400)\n\n        response = super(ImageUploadView, self).form_invalid(form)\n        return response\n\n    def form_valid(self, form):\n        \"\"\"\n        If the form is valid, the contents are saved.\n\n        If the **POST** request is AJAX (image uploads), a JSON response will be\n        produced containing the Markdown encoded image insertion tag with the URL\n        using which the uploaded image may be accessed.\n\n        JSON response would be as follows:\n\n        .. code-block:: bash\n\n            { image_code: \"![](/media/image_directory/123-4e6-ga3.png)\" }\n\n        :param form: Django form instance.\n        :type form: django.forms.Form\n        :return: JSON encoded Markdown tag for AJAX requests, and an appropriate\n                 response for HTTP requests.\n        :rtype: django.http.JsonResponse, django.http.HttpResponse\n        \"\"\"\n        response = super(ImageUploadView, self).form_valid(form)\n\n        if self.request.headers.get('x-requested-with') == 'XMLHttpRequest':\n            image_path = form.save(commit=True)\n            image_code = '![]({})'.format(image_path)\n            return JsonResponse({'image_code': image_code})\n\n        return response\n"
  },
  {
    "path": "markdownx/widgets.py",
    "content": "from django import forms\nfrom django.conf import settings\nfrom django.contrib.admin import widgets\nfrom django.core.exceptions import ImproperlyConfigured\n\nfrom .settings import MARKDOWNX_EDITOR_RESIZABLE\nfrom .settings import MARKDOWNX_SERVER_CALL_LATENCY\nfrom .settings import MARKDOWNX_UPLOAD_URLS_PATH\nfrom .settings import MARKDOWNX_URLS_PATH\n\n\ntry:\n    DEBUG = getattr(settings, 'DEBUG', False)\nexcept ImproperlyConfigured:\n    # Documentations work around.\n    DEBUG = False\n\nminified = '.min' if not DEBUG else str()\n\n\nclass MarkdownxWidget(forms.Textarea):\n    \"\"\"\n    MarkdownX TextArea widget for forms. Markdown enabled version of\n    Django \"TextArea\" widget.\n    \"\"\"\n\n    template_name = 'markdownx/widget.html'\n\n    def get_context(self, name, value, attrs=None):\n        \"\"\"\n        Context for the template in Django\n        \"\"\"\n        try:\n            attrs.update(self.add_markdownx_attrs(attrs))\n        except AttributeError:\n            attrs = self.add_markdownx_attrs(attrs)\n\n        return super(MarkdownxWidget, self).get_context(name, value, attrs)\n\n    def render(self, name, value, attrs=None, renderer=None):\n        \"\"\"\n        Rendering the template and attributes\n        \"\"\"\n        attrs.update(self.attrs)\n        attrs.update(self.add_markdownx_attrs(attrs))\n\n        return super(MarkdownxWidget, self).render(name, value, attrs, renderer)\n\n    @staticmethod\n    def add_markdownx_attrs(attrs):\n        \"\"\"\n        Setting (X)HTML node attributes.\n\n        :param attrs: Attributes to be set.\n        :type attrs: dict\n        :return: Dictionary of attributes, including the default attributes.\n        :rtype: dict\n        \"\"\"\n        if 'class' in attrs.keys():\n            if 'markdownx-editor' not in attrs['class']:\n                attrs['class'] += ' markdownx-editor'\n        else:\n            attrs.update({\n                'class': 'markdownx-editor'\n            })\n\n        attrs.update({\n            'data-markdownx-editor-resizable': '%s' % MARKDOWNX_EDITOR_RESIZABLE,\n            'data-markdownx-urls-path': MARKDOWNX_URLS_PATH,\n            'data-markdownx-upload-urls-path': MARKDOWNX_UPLOAD_URLS_PATH,\n            'data-markdownx-latency': MARKDOWNX_SERVER_CALL_LATENCY\n        })\n\n        return attrs\n\n    class Media:\n        js = [\n            'markdownx/js/markdownx{}.js'.format(minified),\n        ]\n\n\nclass AdminMarkdownxWidget(MarkdownxWidget, widgets.AdminTextareaWidget):\n    \"\"\"\n    MarkdownX TextArea widget for admin. Markdown enabled version of\n    Django \"TextArea\" widget.\n    \"\"\"\n\n    class Media:\n        css = {\n            'all': ['markdownx/admin/css/markdownx{}.css'.format(minified)]\n        }\n\n        js = [\n            'markdownx/js/markdownx{}.js'.format(minified),\n        ]\n"
  },
  {
    "path": "mkdocs.yml",
    "content": "site_name: Django Markdownx\nsite_url: https://neutronx.github.io/django-markdownx/\nrepo_url: https://github.com/neutronX/django-markdownx/\nedit_uri: ''\nnav:\n    - Django MarkdownX: index.md\n    - Installation: installation.md\n    - Getting Started: getting_started.md\n    - Example: example.md\n    - Customization: customization.md\n    - JavaScript: javascript.md\n    - Translations: translations.md\n    - Contributions: contributions.md\n    - License: license.md\ntheme:\n    name: readthedocs\n    hljs_languages:\n        - bash\n        - django\ndocs_dir: docs-src\nsite_dir: docs\nuse_directory_urls: true\ndev_addr: 0.0.0.0:8001\nexclude_docs: requirements.txt\nmarkdown_extensions:\n    - toc:\n        permalink: True\n    - admonition\n    - pymdownx.superfences\n"
  },
  {
    "path": "requirements.txt",
    "content": "Django\nPillow\nMarkdown\n"
  },
  {
    "path": "setup.cfg",
    "content": "[bdist_wheel]\nuniversal = 1\n"
  },
  {
    "path": "setup.py",
    "content": "\"\"\"\nInstallation\n============\nUsing PIP\n---------\nDjango MarkdownX may be installed directly using Python Package Index (PyPi):\n\n.. code-block:: bash\n\n    python3 -m pip install django-markdownx\n\n\nFrom the source\n---------------\nShould you wish to download and install it using the source code, you can do as follows:\n\nNote\n    Make sure you have activated your virtual environment if you're using one.\n\nWe start off by downloading the source code from GitHub and navigate to the downloaded directory:\n\n.. code-block:: bash\n\n     git clone https://github.com/adi-/django-markdownx.git\n     cd django-markdownx/\n\n\nInstall the package. You can replace ``python3`` with ``python`` or any of |Supported_versions_of_Python| if\nyou have multiple versions installed on your machine:\n\n.. code-block:: bash\n\n   python3 setup.py install\n\n\n.. |Supported_versions_of_Python| image:: https://img.shields.io/pypi/pyversions/django-markdownx.svg\n\n\"\"\"\n\nfrom setuptools import setup\nfrom os import environ, link\nfrom os.path import join, dirname\n\n\nif 'vagrant' in str(environ):\n    del link\n\n\ndef get_meta():\n    from sys import version_info\n\n    keys = {\n        '__description__',\n        '__credits__',\n        '__copyright__',\n        '__license__',\n        '__maintainer__',\n        '__url__',\n        '__version__'\n    }\n\n    path = join(dirname(__file__), 'markdownx', '__init__.py')\n\n    from importlib.util import spec_from_file_location, module_from_spec\n    spec = spec_from_file_location('.', path)\n    mod = module_from_spec(spec)\n    spec.loader.exec_module(mod)\n\n    meta = {key.replace('__', ''): getattr(mod, key) for key in keys}\n\n    return meta\n\n\ndef get_requirements():\n    with open('requirements.txt') as requirements:\n        req = requirements.read().splitlines()\n    return req\n\ndef readme():\n    with open('README.md') as f:\n        return f.read()\n\n\nmetadata = get_meta()\n\nsetup(\n    name='django-markdownx',\n    version=metadata.get('version'),\n    packages=['markdownx', 'markdownx.tests'],\n    maintainer=metadata.get('maintainer'),\n    include_package_data=True,\n    description=metadata.get('description'),\n    long_description=readme(),\n    long_description_content_type='text/markdown',\n    url=metadata.get('url'),\n    license=metadata.get('license'),\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Environment :: Web Environment',\n        'Environment :: Plugins',\n        'Framework :: Django :: 4.2',\n        'Framework :: Django :: 5.0',\n        'Framework :: Django :: 5.1',\n        'Framework :: Django :: 5.2',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: BSD License',\n        'Operating System :: OS Independent',\n        'Programming Language :: JavaScript',\n        \"Programming Language :: Python\",\n        'Programming Language :: Python :: 3.10',\n        'Programming Language :: Python :: 3.11',\n        'Programming Language :: Python :: 3.12',\n        'Programming Language :: Python :: 3.13',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n        'Topic :: Multimedia :: Graphics',\n        'Topic :: Text Processing :: Markup',\n        'Topic :: Text Editors :: Text Processing',\n        'Topic :: Text Editors :: Word Processors',\n        'Topic :: Text Processing :: Markup :: HTML',\n        'Topic :: Multimedia :: Graphics :: Presentation',\n        'Topic :: Internet :: WWW/HTTP',\n        'Topic :: Internet :: WWW/HTTP :: Site Management'\n    ],\n    keywords='django markdown markdownx django-markdownx editor image upload drag&drop ajax',\n    tests_require=get_requirements(),\n    test_suite='runtests',\n    install_requires=get_requirements(),\n)\n"
  },
  {
    "path": "static-src/markdownx/admin/css/markdownx.css",
    "content": "/**\ndjango-markdownx styles for Django Admin\n**/\n.markdownx {\n    display: inline-block;\n}\n.markdownx .markdownx-editor,\n.markdownx .markdownx-preview {\n    margin-left: 0;\n    width: 610px;\n    box-sizing: border-box;\n}\n.markdownx .markdownx-preview {\n    overflow-y: scroll;\n}\n\n\n/* Django admin overrides */\n\n.markdownx .markdownx-preview a { color: var(--link-fg); text-decoration:underline; }\n.markdownx .markdownx-preview a:visited { color: var(--link-selected-fg); }\n.markdownx .markdownx-preview a:hover { color: var(--link-hover-color); }\n.markdownx .markdownx-preview a:active { color: var(--link-selected-fg); }\n.markdownx .markdownx-preview a:focus { outline: thin dotted; }\n.markdownx .markdownx-preview a:hover, .markdownx .markdownx-preview a:active { outline: 0; }\n.markdownx .markdownx-preview p {\n    margin: 1em 0;\n    padding: 0;\n    font-size: 14px;\n}\n.markdownx .markdownx-preview h1,\n.markdownx .markdownx-preview h2,\n.markdownx .markdownx-preview h3,\n.markdownx .markdownx-preview h4,\n.markdownx .markdownx-preview h5,\n.markdownx .markdownx-preview h6 {\n    font-weight: bold;\n    color: var(--body-fg);\n    margin-top: 1em;\n    margin-bottom: 0.75em;\n    padding: 0;\n    background: none;\n}\n.markdownx .markdownx-preview h1 { font-size: 2em; }\n.markdownx .markdownx-preview h2 { font-size: 1.7em; }\n.markdownx .markdownx-preview h3 { font-size: 1.4em; }\n.markdownx .markdownx-preview h4 { font-size: 1.2em; }\n.markdownx .markdownx-preview h5 { font-size: 1em; }\n.markdownx .markdownx-preview h6 { font-size: 0.9em; }\n\n.markdownx .markdownx-preview blockquote {\n    color: var(--body-quiet-color);\n    margin: 0;\n    padding-left: 1.5em;\n    font-style: italic;\n    border-left: 0.5em solid var(--hairline-color);\n}\n.markdownx .markdownx-preview hr { margin: 20px 0; }\n.markdownx .markdownx-preview pre,\n.markdownx .markdownx-preview code,\n.markdownx .markdownx-preview kbd,\n.markdownx .markdownx-preview samp {\n    font-family: monospace, monospace;\n    font-size: 14px;\n}\n.markdownx .markdownx-preview code,\n.markdownx .markdownx-preview pre  {\n    margin: 0 2px;\n    padding: 0 5px;\n    background-color: var(--hairline-color);\n    border-radius: 4px;\n    color: var(--body-quiet-color);\n}\n.markdownx .markdownx-preview pre {\n    margin: 1.5em 0 1.5em 0;\n    padding: 1em;\n    white-space: pre;\n    white-space: pre-wrap;\n    word-wrap: break-word;\n}\n.markdownx .markdownx-preview pre code {\n    margin: 0;\n    padding: 0;\n    background: transparent;\n    border: none;\n}\n.markdownx .markdownx-preview b,\n.markdownx .markdownx-preview strong { font-weight: bold; }\n.markdownx .markdownx-preview dfn { font-style: italic; }\n.markdownx .markdownx-preview ins { background: var(--message-success-bg); color: var(--body-fg); text-decoration: none; }\n.markdownx .markdownx-preview mark { background: var(--message-error-bg); color: var(--body-fg); font-style: italic; font-weight: bold; }\n.markdownx .markdownx-preview sub,\n.markdownx .markdownx-preview sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }\n.markdownx .markdownx-preview sup { top: -0.5em; }\n.markdownx .markdownx-preview sub { bottom: -0.25em; }\n.markdownx .markdownx-preview ul,\n.markdownx .markdownx-preview ol { margin: .5em 0; padding: 0 0 0 2em !important; }\n.markdownx .markdownx-preview ul,\n.markdownx .markdownx-preview ul li,\n.markdownx .markdownx-preview ul ul li { list-style: disc !important; }\n.markdownx .markdownx-preview li p:last-child { margin:0; }\n.markdownx .markdownx-preview dd { margin: 0 0 0 2em; }\n.markdownx .markdownx-preview img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; max-width:100%; }\n.markdownx .markdownx-preview table { border-collapse: collapse; border-spacing: 0; }\n"
  },
  {
    "path": "static-src/markdownx/js/markdownx.ts",
    "content": "/**\n * **Markdownx**\n *\n * Frontend (JavaScript) management of Django-MarkdownX package.\n *\n * Written in JavaScript ECMA 2016, trans-compiled to ECMA 5 (2011).\n *\n * Requirements:\n * - Modern browser with support for HTML5 and ECMA 2011+ (IE 10+). Older browsers would work but some\n *   features may be missing\n * - TypeScript 2 +\n *\n * JavaScript ECMA 5 files formatted as `.js` are trans-compiled files. Please do not edit such files as all\n * changes will be lost. Please modify `.ts` stored in `django-markdownx/static-src/markdownx/js/` directory.\n *\n * @Copyright 2017 - Adi, Pouria Hadjibagheri.\n */\n\n// Import, definitions and constant ------------------------------------------------------------------------------------\n\n\"use strict\";\n\ndeclare function docReady(args: any): any;\n\ninterface ImageUploadResponse {\n    image_code?: string,\n    image_path?: string,\n    [propName: string]: any;\n}\n\ninterface HandlerFunction {\n    (properties: {\n        start: number,\n        end:   number,\n        value: string\n    }): string\n}\n\ninterface KeyboardEvents {\n    keys: {\n        TAB:       string,\n        DUPLICATE: string,\n        UNINDENT:  string,\n        INDENT:    string\n    },\n    handlers: {\n        _multiLineIndentation: HandlerFunction,\n        applyTab:              HandlerFunction,\n        applyIndentation:      HandlerFunction,\n        removeIndentation:     HandlerFunction,\n        removeTab:             HandlerFunction,\n        applyDuplication:      HandlerFunction\n    },\n    hub: Function\n}\n\ninterface EventHandlers {\n    inhibitDefault: Function,\n    onDragEnter:    Function\n}\n\ninterface MarkdownxProperties {\n    parent:             HTMLElement,\n    editor:             HTMLTextAreaElement,\n    preview:            HTMLElement,\n    _latency:           number | null,\n    _editorIsResizable: Boolean | null\n}\n\nimport {\n    Request,\n    mountEvents,\n    triggerEvent,\n    preparePostData,\n    triggerCustomEvent\n} from \"./utils\";\n\nconst UPLOAD_URL_ATTRIBUTE:     string = \"data-markdownx-upload-urls-path\",\n      PROCESSING_URL_ATTRIBUTE: string = \"data-markdownx-urls-path\",\n      RESIZABILITY_ATTRIBUTE:   string = \"data-markdownx-editor-resizable\",\n      LATENCY_ATTRIBUTE:        string = \"data-markdownx-latency\",\n      LATENCY_MINIMUM:          number = 500,  // microseconds.\n      XHR_RESPONSE_ERROR:       string = \"Invalid response\",\n      UPLOAD_START_OPACITY:     string = \"0.3\",\n      NORMAL_OPACITY:           string = \"1\";\n\n// ---------------------------------------------------------------------------------------------------------------------\n\n\n/**\n *\n */\nconst EventHandlers: EventHandlers = {\n\n    /**\n     * Routine tasks for event handlers (e.g. default preventions).\n     *\n     * @param {Event} event\n     * @returns {Event}\n     */\n    inhibitDefault: function (event: Event | KeyboardEvent): any {\n\n        event.preventDefault();\n        event.stopPropagation();\n\n        return event\n\n    },\n\n    /**\n     *\n     * @param {DragEvent} event\n     * returns {Event}\n     */\n    onDragEnter: function (event: DragEvent): Event {\n\n        event.dataTransfer.dropEffect = 'copy';\n\n        return EventHandlers.inhibitDefault(event)\n\n    }\n\n};\n\n\n/**\n *\n */\nconst keyboardEvents: KeyboardEvents = {\n\n    /**\n     * Custom hotkeys.\n     */\n    keys: {\n        TAB:       \"Tab\",\n        DUPLICATE: \"d\",\n        UNINDENT:  \"[\",\n        INDENT:    \"]\"\n    },\n\n    /**\n     * Hotkey response functions.\n     */\n    handlers: {\n\n        /**\n         * Smart application of tab indentations under various conditions.\n         *\n         * @param {JSON} properties\n         * @returns {string}\n         */\n        applyTab: function (properties) {\n\n            // Do not replace with variables; this\n            // feature is optimised for swift response.\n            return properties.value\n                        .substring(0, properties.start) +                      // Preceding text.\n                        (\n                            properties.value\n                                .substring(properties.start, properties.end)   // Selected text\n                                .match(/\\n/gm) === null ?                      // Not multi line?\n                                    `\\t${properties.value.substring(properties.start)}` : // Add `\\t`.\n                                    properties.value    // Otherwise:\n                                          .substring(properties.start, properties.end)\n                                          .replace(/^/gm, '\\t') +              // Add `\\t` to be beginning of each line.\n                                    properties.value.substring(properties.end) // Succeeding text.\n                        )\n\n        },\n\n        /**\n         * Smart removal of tab indentations.\n         *\n         * @param {JSON} properties\n         * @returns {string}\n         */\n        removeTab: function (properties) {\n\n            let substitution: string    = null,\n                lineTotal:  number    = (\n                      properties.value\n                            .substring(\n                                  properties.start,\n                                  properties.end\n                            ).match(/\\n/g) || []  // Number of lines (\\n) or empty array (zero).\n                ).length;                         // Length of the array is equal to the number of lines.\n\n            if (properties.start === properties.end) {\n\n                // Replacing `\\t` at a specific location\n                // (+/- 1 chars) where there is no selection.\n                properties.start =\n                      properties.start > 0 &&\n                      properties.value[properties.start - 1]  // -1 is to account any tabs just before the cursor.\n                            .match(/\\t/) !== null ?           // if there's no `\\t`, check the preceding character.\n                                    properties.start - 1 : properties.start;\n\n                substitution = properties.value\n                                    .substring(properties.start)\n                                    .replace(\"\\t\", '');       // Remove only a single `\\t`.\n\n            } else if (!lineTotal) {\n\n                // Replacing `\\t` within a single line selection.\n                substitution =\n                      properties.value\n                            .substring(properties.start)\n                            .replace(\"\\t\", '')\n\n            } else {\n\n                // Replacing `\\t` in the beginning of each line\n                // in a multi-line selection.\n                substitution =\n                      properties.value.substring(\n                            properties.start,\n                            properties.end\n                      ).replace(/^\\t/gm, '') +                    // Selection.\n                      properties.value.substring(properties.end); // After the selection\n\n            }\n\n            return properties.value\n                        .substring(0, properties.start) +         // Text preceding to selection / cursor.\n                        substitution\n\n        },\n\n        /**\n         * Handles multi line indentations.\n         *\n         * @param {JSON} properties\n         * @returns {string}\n         * @private\n         */\n        _multiLineIndentation: function (properties) {\n\n            // Last line in the selection; regardless of\n            // where of not the entire line is selected.\n            const endLine: string =\n                  new RegExp(`(?:\\n|.){0,${properties.end}}(^.*$)`, \"m\")\n                        .exec(properties.value)[1];\n\n            // Do not replace with variables; this\n            // feature is optimised for swift response.\n            return properties.value.substring(\n                  // First line of the selection, regardless of\n                  // whether or not the entire line is selected.\n                  properties.value.indexOf(\n                        new RegExp(`(?:\\n|.){0,${properties.start}}(^.*$)`, \"m\")\n                              .exec(properties.value)[1]  // Start line.\n                  ), (\n                        // If there is a last line in a multi line selected\n                        // value where the last line is not empty or `\\n`:\n                        properties.value.indexOf(endLine) ?\n                              // Location where the last line finishes with\n                              // respect to the entire value.\n                              properties.value.indexOf(endLine) + endLine.length :\n                              // Otherwise, where the selection ends.\n                              properties.end\n                  )\n            );\n\n        },\n\n        /**\n         * Smart application of indentation at the beginning of the line.\n         *\n         * @param {JSON} properties\n         * @returns {string}\n         */\n        applyIndentation: function (properties) {\n\n            // Single line?\n            if (properties.start === properties.end) {\n                // Current line, from the beginning to the end, regardless of any selections.\n                const line: string =\n                      new RegExp(`(?:\\n|.){0,${properties.start}}(^.+$)`, \"m\")\n                            .exec(properties.value)[1];\n\n                return properties.value.replace(line, `\\t${line}`)\n            }\n\n            // Multi line\n            const content: string = keyboardEvents.handlers._multiLineIndentation({\n                start: properties.start,\n                end:   properties.end,\n                value: properties.value\n            });\n\n            return properties.value\n                        .replace(\n                              content,                                 // Existing contents.\n                              content.replace(/(^.+$)\\n*/gmi, \"\\t$&\")  // Indented contents.\n                        )\n\n        },\n\n        /**\n         * Smart removal of indentation from the beginning of the line.\n         *\n         * @param {JSON} properties\n         * @returns {string}\n         */\n        removeIndentation: function (properties) {\n\n            // Single Line\n            if (properties.start === properties.end) {\n                // Entire line where the line immediately begins\n                // with a one or more `\\t`, regardless of any\n                // selections.\n                const line: string =\n                      new RegExp(`(?:\\n|.){0,${properties.start}}(^\\t.+$)`, \"m\")\n                            .exec(properties.value)[1];\n\n                return properties.value\n                            .replace(\n                                  line,              // Existing content.\n                                  line.substring(1)  // First character (necessarily a `\\t`) removed.\n                            )\n            }\n\n            // Multi line\n            const content: string = keyboardEvents.handlers._multiLineIndentation({\n                start: properties.start,\n                end:   properties.end,\n                value: properties.value\n            });\n\n            return properties.value\n                        .replace(\n                              content,                                  // Existing content.\n                              content.replace(/^\\t(.+)\\n*$/gmi, \"$1\")   // A single `\\t` removed from the beginning.\n                        )\n\n        },\n\n        /**\n         * Duplication of the current or selected lines.\n         *\n         * @param {JSON} properties\n         * @returns {string}\n         */\n        applyDuplication: function (properties) {\n\n            // With selection.\n            // Do not replace with variables. This\n            // feature is optimised for swift response.\n            if (properties.start !== properties.end)\n                return (\n                    properties.value.substring(                 // Text preceding the selected area.\n                          0,\n                          properties.start\n                    ) +\n                    properties.value.substring(                 // Selected area\n                          properties.start,\n                          properties.end\n                    ) +\n                    (\n                          ~properties.value                     // First character before the cursor is linebreak?\n                                .charAt(properties.start - 1)\n                                .indexOf('\\n') ||               // --> or\n                          ~properties.value                     // Character on the cursor is linebreak?\n                                .charAt(properties.start)\n                                .indexOf('\\n') ? '\\n' : ''      // If either, add linebreak, otherwise add nothing.\n                    ) +\n                    properties.value.substring(                 // Selected area (again for duplication).\n                          properties.start,\n                          properties.end\n                    ) +\n                    properties.value.substring(properties.end)  // Text succeeding the selected area.\n                );\n\n            // Without selection.\n            let pattern: RegExp = // Separate lines up to the end of the current line.\n                        new RegExp(`(?:.|\\n){0,160}(^.*$)`, 'm'),\n                line: string = '';\n\n            // Add anything found to the `line`. Note that\n            // `replace` is used a simple hack; it functions\n            // in a similar way to `regex.search` in Python.\n            properties.value\n                  .replace(pattern, (match, p1) => line += p1);\n\n            return properties.value\n                        .replace(\n                              line,                 // Existing line.\n                              `${line}\\n${line}`    // Doubled ... magic!\n                        )\n\n        },\n\n    },\n\n    /**\n     * Mapping of hotkeys from keyboard events to their corresponding functions.\n     *\n     * @param {KeyboardEvent} event\n     * @returns {Function | Boolean}\n     */\n    hub: function (event: KeyboardEvent): Function | false {\n\n        switch (event.key) {\n            case this.keys.TAB:  // Tab.\n                // Shift pressed: un-indent, otherwise indent.\n                return event.shiftKey ? this.handlers.removeTab : this.handlers.applyTab;\n\n            case this.keys.DUPLICATE:  // Line duplication.\n                // Is CTRL or CMD (on Mac) pressed?\n                return (event.ctrlKey || event.metaKey) ? this.handlers.applyDuplication : false;\n\n            case this.keys.INDENT:  // Indentation.\n                // Is CTRL or CMD (on Mac) pressed?\n                return (event.ctrlKey || event.metaKey) ? this.handlers.applyIndentation : false;\n\n            case this.keys.UNINDENT:  // Unindentation.\n                // Is CTRL or CMD (on Mac) pressed?\n                return (event.ctrlKey || event.metaKey) ? this.handlers.removeIndentation : false;\n\n            default:\n                // default would prevent the\n                // inhibition of default settings.\n                return false\n        }\n\n    }\n\n};\n\n\n/**\n * Get either the height of an element as defined in style/CSS or its browser-computed height.\n *\n * @param {HTMLElement} element\n * @returns {number}\n */\nfunction getHeight (element: HTMLElement): number {\n\n    return Math.max(  // Maximum of computed or set heights.\n          parseInt(window.getComputedStyle(element).height), // Height is not set in styles.\n          (parseInt(element.style.height) || 0)  // Property's own height if set, otherwise 0.\n    )\n\n}\n\n\n/**\n * Update the height of an element based on its scroll height.\n *\n * @param {HTMLTextAreaElement} editor\n * @returns {HTMLTextAreaElement}\n */\nfunction updateHeight(editor: HTMLTextAreaElement): HTMLTextAreaElement {\n\n    // Ensure that the editor is resizable before anything else.\n    // Change size if scroll is larger that height, otherwise do nothing.\n\n    editor.style.height = `${editor.scrollHeight + parseInt(getComputedStyle(editor).borderTop) + parseInt(getComputedStyle(editor).borderBottom)}px`;\n\n    return editor\n\n}\n\n\n/**\n * @example\n *\n *     let element = document.getElementsByClassName('markdownx');\n *\n *     new MarkdownX(\n *         element,\n *         element.querySelector('.markdownx-editor'),\n *         element.querySelector('.markdownx-preview')\n *     )\n *\n * @param {HTMLElement} parent - Markdown editor element.\n * @param {HTMLTextAreaElement} editor - Markdown editor element.\n * @param {HTMLElement} preview - Markdown preview element.\n */\nconst MarkdownX = function (parent: HTMLElement, editor: HTMLTextAreaElement, preview: HTMLElement): void {\n\n    /**\n     * MarkdownX properties.\n     */\n    const properties: MarkdownxProperties = {\n\n        editor:             editor,\n        preview:            preview,\n        parent:             parent,\n        _latency:           null,\n        _editorIsResizable: null\n\n    };\n\n    /**\n     * Initialisation settings (mounting events, retrieval of initial data,\n     * setting animation properties, latency, timeout, and resizability).\n     *\n     * @private\n     */\n    const _initialize = () => {\n\n        this.timeout = null;\n\n        // Events\n        // ----------------------------------------------------------------------------------------------\n        let documentListeners = {\n                object: document,\n                listeners: [\n                    { type: \"drop\"     , capture: false, listener: EventHandlers.inhibitDefault },\n                    { type: \"dragover\" , capture: false, listener: EventHandlers.inhibitDefault },\n                    { type: \"dragenter\", capture: false, listener: EventHandlers.inhibitDefault },\n                    { type: \"dragleave\", capture: false, listener: EventHandlers.inhibitDefault }\n                ]\n            },\n            editorListeners = {\n                object: properties.editor,\n                listeners: [\n                    { type: \"paste\",            capture: false, listener: onPaste                      },\n                    { type: \"drop\",             capture: false, listener: onDrop                       },\n                    { type: \"input\",            capture: true , listener: inputChanged                 },\n                    { type: \"keydown\",          capture: true , listener: onKeyDown                    },\n                    { type: \"focusin\",          capture: true , listener: inputChanged                 },\n                    { type: \"dragover\",         capture: false, listener: EventHandlers.onDragEnter    },\n                    { type: \"dragenter\",        capture: false, listener: EventHandlers.onDragEnter    },\n                    { type: \"dragleave\",        capture: false, listener: EventHandlers.inhibitDefault },\n                    { type: \"compositionstart\", capture: true , listener: onKeyDown                    }\n                ]\n            };\n\n        // Initialise\n        // --------------------------------------------------------\n\n        // Mounting the defined events.\n        mountEvents(editorListeners, documentListeners);\n\n        properties.editor.setAttribute('data-markdownx-init', '');\n\n        // Set animation for image uploads lock down.\n        properties.editor.style.transition       = \"opacity 1s ease\";\n        properties.editor.style.webkitTransition = \"opacity 1s ease\";\n\n        // Upload latency - must be a value >= 500 microseconds.\n        properties._latency =\n              Math.max(parseInt(properties.editor.getAttribute(LATENCY_ATTRIBUTE)) || 0, LATENCY_MINIMUM);\n\n        // If `true`, the editor will expand to scrollHeight when needed.\n        properties._editorIsResizable = (\n              (properties.editor.getAttribute(RESIZABILITY_ATTRIBUTE).match(/true/i) || []).length > 0 &&\n              properties.editor.offsetHeight > 0 &&\n              properties.editor.offsetWidth > 0\n        );\n\n        getMarkdown();\n\n        triggerCustomEvent(\"markdownx.init\");\n\n    };\n\n    /**\n     * settings for `timeout`.\n     *\n     * @private\n     */\n    const _markdownify = (): void => {\n\n        clearTimeout(this.timeout);\n        this.timeout = setTimeout(getMarkdown, properties._latency)\n\n    };\n\n    /**\n     * Handling changes in the editor.\n     */\n    const inputChanged = (): void => {\n\n        properties.editor = properties._editorIsResizable ?\n              updateHeight(properties.editor) : properties.editor;\n\n        return _markdownify()\n\n    };\n\n    /**\n     * Handling of paste event.\n     *\n     * @param {ClipboardEvent} event\n     */\n     const onPaste = (event: ClipboardEvent): void => {\n\n        if (event.clipboardData && event.clipboardData.files.length) {\n            Object.keys(event.clipboardData.files).map(fileKey =>\n\n                sendFile(event.clipboardData.files[fileKey])\n\n            );\n            EventHandlers.inhibitDefault(event);\n        }\n\n    };\n\n    /**\n     * Handling of drop events (when a file is dropped into `properties.editor`).\n     *\n     * @param {DragEvent} event\n     */\n    const onDrop = (event: DragEvent): void => {\n\n        if (event.dataTransfer && event.dataTransfer.files.length)\n            Object.keys(event.dataTransfer.files).map(fileKey =>\n\n                  sendFile(event.dataTransfer.files[fileKey])\n\n            );\n\n        EventHandlers.inhibitDefault(event);\n\n    };\n\n    /**\n     * Handling of keyboard events (i.e. primarily hotkeys).\n     *\n     * @param {KeyboardEvent} event\n     * @returns {Boolean | null}\n     */\n    const onKeyDown = (event: KeyboardEvent): Boolean | null => {\n\n        const handlerFunc: Function | Boolean = keyboardEvents.hub(event);\n\n        if (typeof handlerFunc != 'function') return false;\n\n        EventHandlers.inhibitDefault(event);\n\n        // Holding the start location before anything changes.\n        const SELECTION_START: number = properties.editor.selectionStart;\n\n        properties.editor.value = handlerFunc({\n              start: properties.editor.selectionStart,\n              end:   properties.editor.selectionEnd,\n              value: properties.editor.value\n        });\n\n        _markdownify();\n\n        properties.editor.focus();\n\n        // Set the cursor location.\n        switch (event.key) {\n            case keyboardEvents.keys.TAB:  // Tab.\n                if (event.shiftKey) {\n                    properties.editor.selectionEnd = properties.editor.selectionStart = SELECTION_START - 1\n                }\n                else {\n                    properties.editor.selectionEnd = properties.editor.selectionStart = SELECTION_START + 1\n                }\n                break\n\n            case keyboardEvents.keys.INDENT:  // Indentation.\n                properties.editor.selectionEnd = properties.editor.selectionStart = SELECTION_START + 1\n                break\n\n            case keyboardEvents.keys.UNINDENT:  // Unindentation.\n                properties.editor.selectionEnd = properties.editor.selectionStart = SELECTION_START - 1\n                break\n\n            default:\n                properties.editor.selectionEnd = properties.editor.selectionStart = SELECTION_START\n        }\n\n        return false\n\n    };\n\n    /**\n     * Uploading the `file` onto the server through an AJAX request.\n     *\n     * @param {File} file\n     */\n    const sendFile = (file: File) => {\n\n        properties.editor.style.opacity = UPLOAD_START_OPACITY;\n\n        const xhr = new Request(\n              properties.editor.getAttribute(UPLOAD_URL_ATTRIBUTE),  // URL\n              preparePostData({image: file})  // Data\n        );\n\n        xhr.success = (resp: string): void | null => {\n\n            const response: ImageUploadResponse = JSON.parse(resp);\n\n            if (response.image_code) {\n\n                insertImage(response.image_code);\n                triggerCustomEvent('markdownx.fileUploadEnd', properties.parent, [response])\n\n            } else if (response.image_path) {\n\n                // ToDo: Deprecate.\n                insertImage(`![](\"${response.image_path}\")`);\n                triggerCustomEvent('markdownx.fileUploadEnd', properties.parent, [response])\n\n            } else {\n\n                console.error(XHR_RESPONSE_ERROR, response);\n                triggerCustomEvent('markdownx.fileUploadError', properties.parent, [response]);\n                insertImage(XHR_RESPONSE_ERROR);\n\n            }\n\n            properties.editor.style.opacity = NORMAL_OPACITY;\n\n        };\n\n        xhr.error = (response: any): void => {\n\n            console.error(response);\n            triggerCustomEvent('fileUploadError', properties.parent, [response]);\n            insertImage(XHR_RESPONSE_ERROR);\n            properties.editor.style.opacity = NORMAL_OPACITY;\n\n        };\n\n        return xhr.send()\n\n    };\n\n    /**\n     * Uploading the markdown text from `properties.editor` onto the server\n     * through an AJAX request, and upon receiving the HTML encoded text\n     * in response, the response will be display in `properties.preview`.\n     */\n    const getMarkdown = () => {\n\n        const xhr = new Request(\n              properties.editor.getAttribute(PROCESSING_URL_ATTRIBUTE),  // URL\n              preparePostData({content: properties.editor.value})  // Data\n        );\n\n        xhr.success = (response: string): void => {\n\n            properties.preview.innerHTML = response;\n            properties.editor = properties._editorIsResizable ?\n              updateHeight(properties.editor) : properties.editor;\n\n            triggerCustomEvent('markdownx.update', properties.parent, [response])\n\n        };\n\n        xhr.error = (response: any): void => {\n\n            console.error(response);\n\n            triggerCustomEvent('markdownx.updateError', properties.parent, [response])\n\n        };\n\n        return xhr.send()\n\n    };\n\n    /**\n     * Inserts markdown encoded image URL into `properties.editor` where\n     * the cursor is located.\n     *\n     * @param textToInsert\n     */\n    const insertImage = (textToInsert: string): void => {\n\n        properties.editor.value =\n              `${properties.editor.value.substring(0, properties.editor.selectionStart)}` + // Preceding text.\n              textToInsert +\n              `${properties.editor.value.substring(properties.editor.selectionEnd)}`;  // Succeeding text.\n\n        properties.editor.selectionStart =\n              properties.editor.selectionEnd =\n                    properties.editor.selectionStart + textToInsert.length;\n\n        triggerEvent(properties.editor, 'keyup');\n        inputChanged();\n\n    };\n\n\n    _initialize();\n\n};\n\n\n(function(funcName: any, baseObj: any) {\n    // The public function name defaults to window.docReady\n    // but you can pass in your own object and own function\n    // name and those will be used.\n    // if you want to put them in a different namespace\n    funcName = funcName || \"docReady\";\n    baseObj  = baseObj  || window;\n\n    let readyList                     = [],\n          readyFired                  = false,\n          readyEventHandlersInstalled = false;\n\n    /**\n     * Called when the document is ready. This function protects itself\n     * against being called more than once.\n     */\n    const ready = () => {\n        if (!readyFired) {\n            // Must be `true` before the callbacks are called.\n            readyFired = true;\n\n            // if a callback here happens to add new ready handlers,\n            // the docReady() function will see that it already fired\n            // and will schedule the callback to run right after\n            // this event loop finishes so all handlers will still execute\n            // in order and no new ones will be added to the readyList\n            // while we are processing the list\n            readyList.map(ready => ready.fn.call(window, ready.ctx));\n\n            // allow any closures held by these functions to free\n            readyList = [];\n        }\n    };\n\n    const readyStateChange = () => document.readyState === \"complete\" ? ready() : null;\n\n    // This is the one public interface\n    // docReady(fn, context);\n    // the context argument is optional - if present, it will be passed\n    // as an argument to the callback\n    baseObj[funcName] = (callback, context) => {\n\n        // if ready has already fired, then just schedule the callback\n        // to fire asynchronously, but right away\n        if (readyFired) {\n\n            setTimeout(() => callback(context), 1);\n            return;\n\n        } else {\n\n            // add the function and context to the list\n            readyList.push({fn: callback, ctx: context});\n\n        }\n\n        // If the document is already ready, schedule the ready\n        // function to run.\n        if (document.readyState === \"complete\") {\n\n            setTimeout(ready, 1);\n\n        } else if (!readyEventHandlersInstalled) {\n\n            // otherwise if we don't have event handlers installed,\n            // install them first choice is DOMContentLoaded event.\n            document.addEventListener(\"DOMContentLoaded\", ready, false);\n\n            // backup is window load event\n            window.addEventListener(\"load\", ready, false);\n\n            readyEventHandlersInstalled = true;\n\n        }\n    }\n\n})(\"docReady\", window);\n\n\ndocReady(() => {\n\n    const ELEMENTS = document.getElementsByClassName('markdownx');\n\n    return Object.keys(ELEMENTS).map(key => {\n\n        let element = ELEMENTS[key],\n            editor  = element.querySelector('.markdownx-editor'),\n            preview = element.querySelector('.markdownx-preview');\n\n        // Only add the new MarkdownX instance to fields that have no MarkdownX instance yet.\n        if (!editor.hasAttribute('data-markdownx-init'))\n            return new MarkdownX(element, editor, preview)\n\n    });\n\n});\n\n\nexport {\n\n    MarkdownX\n\n};\n"
  },
  {
    "path": "static-src/markdownx/js/tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"moduleResolution\": \"node\",\n    \"inlineSourceMap\": false,\n    \"inlineSources\": false,\n    \"emitDecoratorMetadata\": true,\n    \"experimentalDecorators\": true,\n    \"removeComments\": false,\n    \"preserveConstEnums\": true,\n    \"sourceMap\": true,\n    \"module\": \"commonjs\",\n    \"target\": \"es5\",\n    \"pretty\": true,\n    \"noLib\": false,\n    \"emitBOM\": true,\n    \"allowJs\": true\n  },\n  \"declaration\": true,\n  \"files\": [\n    \"markdownx.ts\"\n  ]\n}\n"
  },
  {
    "path": "static-src/markdownx/js/utils.ts",
    "content": "\"use strict\";\n\ninterface EventListener {\n\n    object: Element | Document,\n    listeners: {\n        type:     string,\n        listener: any,\n        capture:  boolean,\n    } []\n\n}\n\n\nexport interface RequestBase {\n\n    url:                       string;\n    data:                      FormData;\n    progress(event:      any): any;\n    error(response:   string): any;\n    success(response: string): any;\n    send():                    void;\n\n}\n\n\n/**\n * Looks for a cookie, and if found, returns the values.\n *\n * @param {string} name - The name of the cookie.\n * @returns {string | null}\n */\nexport function getCookie (name: string): string | null {\n\n    if (document.cookie && document.cookie.length) {\n\n        const value = `; ${document.cookie}`;\n        const parts = value.split(`; ${name}=`);\n\n        if (parts.length === 2) {\n\n            try {\n                return decodeURIComponent(parts.pop().split(';').shift());\n            }\n            catch (e) {\n                if (e instanceof TypeError) {\n                    console.info(\"No cookie with key \\\"\" + name + \"\\\". Wrong name?\");\n                    return null;\n                }\n                throw e;\n            }\n        }\n    }\n\n    return null;\n\n}\n\n\n/**\n * @example\n *\n *\n * @param rows\n * @returns\n */\nexport function zip (...rows: any[]) {\n\n    if (rows[0].constructor == Array)\n        return [...rows[0]].map((_, c) => rows.map(row => row[c]));\n\n    // ToDo: To be updated to Objects.values in ECMA2017 after the method is fully ratified.\n    const asArray = rows.map(row => Object.keys(row).map(key => row[key]));\n\n    return [...asArray[0]].map((_, c) => asArray.map(row => row[c]));\n\n}\n\n\n\n/**\n *\n * @param collections\n * @returns\n */\nexport function mountEvents (...collections: EventListener[]): any[] {\n\n    return collections.map(events =>\n          events.listeners\n                .map(series =>\n                      events.object\n                            .addEventListener(\n                                  series.type,\n                                  series.listener,\n                                  series.capture\n                            )\n          )\n    )\n\n}\n\n\n/**\n *\n * @param {JSON} data\n * @param {Boolean} csrf\n * @returns {FormData}\n */\nexport function preparePostData(data: Object, csrf: Boolean=true) {\n\n    let form: FormData = new FormData();\n\n    if (csrf) {\n        let csrfToken = getCookie('csrftoken');\n        if (!csrfToken) csrfToken = (<HTMLInputElement>document.querySelector(\"input[name='csrfmiddlewaretoken']\")).value;\n        form.append(\"csrfmiddlewaretoken\", csrfToken);\n    }\n\n    Object.keys(data).map(key => form.append(key, data[key]));\n\n    return form\n\n}\n\n\n/**\n *\n * @returns {XMLHttpRequest}\n * @throws TypeError - AJAX request is not supported.\n */\nfunction AJAXRequest () : XMLHttpRequest {\n\n    // Chrome, Firefox, IE7+, Opera, Safari\n    // and everything else that has come post 2010.\n    if (\"XMLHttpRequest\" in window) return new XMLHttpRequest();\n\n\n    // ToDo: Deprecate.\n    // Other IE versions (with all their glories).\n    // Microsoft.XMLHTTP points to Msxml2.XMLHTTP and is\n    // redundant - but you never know with Microsoft.\n    try {\n        return new ActiveXObject(\"Msxml2.XMLHTTP.6.0\")\n    } catch (e) {}\n\n    try {\n        return new ActiveXObject(\"Msxml2.XMLHTTP.3.0\")\n    } catch (e) {}\n\n    try {\n        return new ActiveXObject(\"Microsoft.XMLHTTP\")\n    }  catch (e) {}\n\n    // Just throw the computer outta the window!\n    alert(\"Your browser belongs to history!\");\n    throw new TypeError(\"This browser does not support AJAX requests.\")\n\n}\n\n\n/**\n * Handles AJAX POST requests.\n */\nexport class Request implements RequestBase {\n\n    public  url;\n    public  data;\n    private xhr: any = AJAXRequest();\n\n    /**\n     *\n     * @param url\n     * @param data\n     */\n    constructor(url: string, data: FormData) {\n\n        this.url  = url;\n        this.data = data;\n\n    }\n\n    /**\n     *\n     * @param event\n     */\n    progress(event: any): void {\n\n        if (event.lengthComputable) {\n            // TODO: Show only when debug is on\n            // console.log((event.loaded / event.total) * 100 + '% uploaded');\n        }\n\n    }\n\n    /**\n     *\n     * @param response\n     */\n    error(response: any): void {\n\n        console.error(response)\n\n    }\n\n    /**\n     *\n     * @param response\n     */\n    success(response: any): void {\n\n        console.info(response)\n\n    }\n\n    /**\n     *\n     */\n    send (): void {\n\n        const SUCCESS:  any  = this.success,\n              ERROR:    any  = this.error,\n              PROGRESS: any  = this.progress;\n\n        this.xhr.open('POST', this.url, true);\n        this.xhr.setRequestHeader(\"X-Requested-With\", \"XMLHttpRequest\");\n\n        this.xhr.upload.onprogress = (event: any) => PROGRESS(event);\n\n        this.xhr.onerror = (event: any): void => {\n\n            ERROR(this.xhr.responseText)\n\n        };\n\n        this.xhr.onload = (event: any): void => {\n\n            let data: any = null;\n\n            if (this.xhr.readyState == XMLHttpRequest.DONE) {\n\n                if (!this.xhr.responseType || this.xhr.responseType === \"text\") {\n\n                    data = this.xhr.responseText\n\n                } else if (this.xhr.responseType === \"document\") {\n\n                    data = this.xhr.responseXML\n\n                } else {\n\n                    data = this.xhr.response\n\n                }\n\n            }\n\n            SUCCESS(data)\n\n        };\n\n        this.xhr.send(this.data);\n\n    }\n\n}\n\n\n/**\n *\n * @param {Element} element\n * @param {string} type\n */\nexport function triggerEvent(element: Element, type: string): void {\n\n    // modern browsers, IE9+\n    let event = document.createEvent('HTMLEvents');\n    event.initEvent(type, false, true);\n    element.dispatchEvent(event);\n\n}\n\n\n/**\n *\n * @param {string} type\n * @param {Element | Document} element\n * @param {any} args\n */\nexport function triggerCustomEvent(type:string, element: Element | Document=document, args: any=null){\n\n    // modern browsers, IE9+\n    const event = new CustomEvent(type, {'detail': args});\n    element.dispatchEvent(event);\n\n}\n\n\n/**\n *\n * @param {Element} element\n * @param {string[]} className\n */\nexport function addClass (element: Element, ...className: string[]): void {\n\n    className.map(cname => {\n\n        if (element.classList)\n            element.classList.add(cname);\n\n        else {\n            let classes: string[] = element.className.split(' ');\n\n            if (classes.indexOf(cname) < 0) classes.push(cname);\n\n            element.className = classes.join(' ')\n        }\n\n    })\n\n}\n\n\n/**\n *\n * @param {Element} element\n * @param {string[]} className\n */\nexport function removeClass (element: Element, ...className: string[]): void {\n\n    className.map(cname => {\n\n        if (element.classList)\n            element.classList.remove(cname);\n\n        else {\n            let classes: string[] = element.className.split(' '),\n                    idx: number   = classes.indexOf(cname);\n\n            if (idx > -1) classes.splice(idx, 1);\n\n            element.className = classes.join(' ')\n        }\n\n    })\n\n}\n"
  }
]