diff --git a/.codeclimate.yml b/.codeclimate.yml
index 0ad1cde3..0e14468e 100644
--- a/.codeclimate.yml
+++ b/.codeclimate.yml
@@ -27,4 +27,4 @@ ratings:
paths:
- "**.py"
exclude_paths:
-- "kordac/tests/*"
+- "verto/tests/*"
diff --git a/.flake8 b/.flake8
index 1cdb0993..29221de8 100644
--- a/.flake8
+++ b/.flake8
@@ -14,7 +14,7 @@ exclude =
docs,
# This contains tests that we don't want to check
- kordac/tests,
+ verto/tests,
show-source = True
statistics = True
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index 05c3ea76..7eac8f3c 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -12,7 +12,7 @@ Clearly and concisely describe the issue or suggestion here:
*Change the space in the box to an `x` for those that apply. You can also fill these out after creating the issue.*
-- [ ] I have linked any relevant [existing issues/suggestions](https://github.com/uccser/kordac/issues) in the description above (include `#???` in your description to reference an issue, where `???` is the issue number)
+- [ ] I have linked any relevant [existing issues/suggestions](https://github.com/uccser/verto/issues) in the description above (include `#???` in your description to reference an issue, where `???` is the issue number)
If this is a code related issue, please include the following in your description:
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index aa44dc8b..3ca58488 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -13,7 +13,7 @@ Describe the big picture of your changes here to communicate to the maintainers
*Change the space in the box to an `x` for those that apply. You can also fill these out after creating the pull request. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your change.*
- [ ] I have read the [contribution guidelines](.github/CONTRIBUTING.md)
-- [ ] I have linked any relevant [existing issues/suggestions](https://github.com/uccser/kordac/issues) in the description above (include `#???` in your description to reference an issue, where `???` is the issue number)
+- [ ] I have linked any relevant [existing issues/suggestions](https://github.com/uccser/verto/issues) in the description above (include `#???` in your description to reference an issue, where `???` is the issue number)
- [ ] I have run the test suite and all tests passed
- [ ] I have added necessary documentation (if appropriate)
diff --git a/.travis.yml b/.travis.yml
index d49463fe..e4afa667 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,7 +15,7 @@ install:
# Runs test suite
script:
- flake8
- - python -m kordac.tests.start_tests --travis
+ - python -m verto.tests.start_tests --travis
# Stop email notifications but post to organisation Slack channel
notifications:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9edb8f8d..612b6dad 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,10 +1,10 @@
# Contributing Guide
-Welcome to the Kordac developer community! We have spent many months developing this project, and we would love for you to get involved!
+Welcome to the Verto developer community! We have spent many months developing this project, and we would love for you to get involved!
-We've written a technical guide about how Kordac works and how to contribute [here](kordac.readthedocs.io/en/develop/contributing.html). These docs should give you a good overview of how Kordac is pieced together.
+We've written a technical guide about how Verto works and how to contribute [here](verto.readthedocs.io/en/develop/contributing.html). These docs should give you a good overview of how Verto is pieced together.
-Below are a few more general notes to remember while you are working on Kordac.
+Below are a few more general notes to remember while you are working on Verto.
### Code of Conduct
@@ -14,14 +14,14 @@ Please report unacceptable behavior to [csse-education-research@canterbury.ac.nz
### Reporting issues
-This section guides you through submitting an issue for Kordac.
+This section guides you through submitting an issue for Verto.
Following these guidelines helps maintainers and the community understand your findings.
-Before submitting an issue, please take a look at the [issues](https://github.com/uccser/kordac/issues) on the repository to check it hasn't already been reported.
+Before submitting an issue, please take a look at the [issues](https://github.com/uccser/verto/issues) on the repository to check it hasn't already been reported.
### Your first code contribution
-Unsure where to begin contributing to Kordac? Take a look at the [issues](https://github.com/uccser/kordac/issues) on the repository.
+Unsure where to begin contributing to Verto? Take a look at the [issues](https://github.com/uccser/verto/issues) on the repository.
### Pull requests
@@ -30,7 +30,7 @@ Unsure where to begin contributing to Kordac? Take a look at the [issues](https:
- Your pull request should be on a new branch from our `develop` branch (unless it's something tiny like a typo). The naming conventions of branches should be descriptive of the new addition/modification. Ideally they would specify their namespace as well, for example:
- `processor/image`
- `issue/234`
-- Linked any relevant [existing issues](https://github.com/uccser/kordac/issues).
+- Linked any relevant [existing issues](https://github.com/uccser/verto/issues).
- Run the test suite and all tests passed
- Added necessary documentation (if appropriate).
diff --git a/MANIFEST.in b/MANIFEST.in
index a001eff5..2f4ad2a1 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,3 +1,3 @@
include *.txt
include *.md
-recursive-include kordac *.html *.py *.png *.conf *.md *.json
+recursive-include verto *.html *.py *.png *.conf *.md *.json
diff --git a/README.rst b/README.rst
index fcc8e2a0..72e86eec 100644
--- a/README.rst
+++ b/README.rst
@@ -1,23 +1,23 @@
-.. figure:: kordac/images/kordac-logo.png
- :alt: Kordac Logo
+.. figure:: verto/images/verto-logo.png
+ :alt: Verto Logo
|Build Status| |Code Climate Status|
-Kordac is an extension of the Python Markdown package, which allows
+Verto is an extension of the Python Markdown package, which allows
authors to include complex HTML elements with simple text tags in their
Markdown files.
Documentation
-------------
-Installation and usage documentation for Kordac can be found on
+Installation and usage documentation for Verto can be found on
`ReadTheDocs`_, and can also be built from the documentation source
within the ``docs/`` directory of the development distribution.
License
-------
-Kordac is licensed under the MIT License. Read the `license file`_ for
+Verto is licensed under the MIT License. Read the `license file`_ for
more details.
Bugs and feature requests
@@ -36,19 +36,19 @@ The changelog is available within the `documentation`_.
**How do I install the development version as local package?**
-1. ``$ git clone https://github.com/uccser/kordac.git``
-2. ``$ cd kordac``
+1. ``$ git clone https://github.com/uccser/verto.git``
+2. ``$ cd verto``
3. ``$ pip3 install .``
-.. _ReadTheDocs: http://kordac.readthedocs.io/en/latest/
-.. _documentation: http://kordac.readthedocs.io/en/latest/changelog.html
+.. _ReadTheDocs: http://verto.readthedocs.io/en/latest/
+.. _documentation: http://verto.readthedocs.io/en/latest/changelog.html
.. _license file: LICENSE.md
-.. _existing and closed issues: https://github.com/uccser/kordac/issues
-.. _open a new issue: https://github.com/uccser/kordac/issues/new
+.. _existing and closed issues: https://github.com/uccser/verto/issues
+.. _open a new issue: https://github.com/uccser/verto/issues/new
-.. |Build Status| image:: https://travis-ci.org/uccser/kordac.svg?branch=master
- :target: https://travis-ci.org/uccser/kordac
+.. |Build Status| image:: https://travis-ci.org/uccser/verto.svg?branch=master
+ :target: https://travis-ci.org/uccser/verto
-.. |Code Climate Status| image:: https://codeclimate.com/github/uccser/kordac/badges/gpa.svg
- :target: https://codeclimate.com/github/uccser/kordac
+.. |Code Climate Status| image:: https://codeclimate.com/github/uccser/verto/badges/gpa.svg
+ :target: https://codeclimate.com/github/uccser/verto
:alt: Code Climate
diff --git a/docs/Makefile b/docs/Makefile
index f2b92518..cd8ae93d 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -4,7 +4,7 @@
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
-SPHINXPROJ = Kordac
+SPHINXPROJ = Verto
SOURCEDIR = source
BUILDDIR = build
diff --git a/docs/make.bat b/docs/make.bat
index 732568aa..2334b0ac 100644
--- a/docs/make.bat
+++ b/docs/make.bat
@@ -20,7 +20,7 @@ shift /1
set SOURCEDIR=source
set BUILDDIR=build
-set SPHINXPROJ=Kordac
+set SPHINXPROJ=Verto
if "%1" == "" goto help
diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst
index 67694181..8680c515 100644
--- a/docs/source/changelog.rst
+++ b/docs/source/changelog.rst
@@ -10,7 +10,7 @@ Fixes:
0.3.0
=======================================
-Third prerelease of the Kordac converter.
+Third prerelease of the Verto converter.
Adds support for the following processors:
@@ -22,14 +22,14 @@ Adds support for the following processors:
Fixes:
- - Kordac now orders tags correctly in the markdown pipeline.
- - System tests for multiple calls to Kordac and for multi-line templates.
- - Glossary tags now correctly store slugs for the Kordac result as per documentation.
+ - Verto now orders tags correctly in the markdown pipeline.
+ - System tests for multiple calls to Verto and for multi-line templates.
+ - Glossary tags now correctly store slugs for the Verto result as per documentation.
0.2.0
=======================================
-Second prerelease of the Kordac converter.
+Second prerelease of the Verto converter.
Adds support for the following processors:
@@ -42,7 +42,7 @@ Adds basic support for Code Climate.
Fixes:
-- Kordac default processors can be accessed via a static method.
+- Verto default processors can be accessed via a static method.
- Required and optional arguments are now explicitly matched against input.
- Made tag parameters consistently use dashes as separators.
- Tests for previous processors now explicitly test matches.
@@ -52,7 +52,7 @@ Fixes:
0.1.0
=======================================
-Initial prerelease of Kordac converter.
+Initial prerelease of Verto converter.
Includes the following processors:
diff --git a/docs/source/conf.py b/docs/source/conf.py
index d285517e..c5779ff5 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
-# Kordac documentation build configuration file, created by
+# Verto documentation build configuration file, created by
# sphinx-quickstart on Mon Jan 30 17:06:19 2017.
#
# This file is execfile()d with the current directory set to its
@@ -20,7 +20,7 @@
import os
import sys
sys.path.insert(0, os.path.abspath('../../'))
-from kordac import __version__
+from verto import __version__
# -- General configuration ------------------------------------------------
@@ -47,7 +47,7 @@
master_doc = 'index'
# General information about the project.
-project = 'Kordac'
+project = 'Verto'
copyright = '2017 University of Canterbury Computer Science Education Research Group'
author = 'Hayley vas Waas, Jack Morgan, Hayden Jackson, Jordan Griffiths'
@@ -103,7 +103,7 @@
# -- Options for HTMLHelp output ------------------------------------------
# Output file base name for HTML help builder.
-htmlhelp_basename = 'Kordacdoc'
+htmlhelp_basename = 'Vertodoc'
# -- Options for LaTeX output ---------------------------------------------
@@ -130,7 +130,7 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
- (master_doc, 'Kordac.tex', 'Kordac Documentation',
+ (master_doc, 'Verto.tex', 'Verto Documentation',
'Hayley vas Waas, Jack Morgan', 'manual'),
]
@@ -140,7 +140,7 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
- (master_doc, 'kordac', 'Kordac Documentation',
+ (master_doc, 'verto', 'Verto Documentation',
[author], 1)
]
@@ -151,7 +151,7 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
- (master_doc, 'Kordac', 'Kordac Documentation',
- author, 'Kordac', 'One line description of project.',
+ (master_doc, 'Verto', 'Verto Documentation',
+ author, 'Verto', 'One line description of project.',
'Miscellaneous'),
]
diff --git a/docs/source/contributing.rst b/docs/source/contributing.rst
index b07d7c78..d7fb63a3 100644
--- a/docs/source/contributing.rst
+++ b/docs/source/contributing.rst
@@ -1,15 +1,15 @@
-Contributing to Kordac
+Contributing to Verto
#######################################
-Welcome to the Kordac developer community! We have spent many months developing this project, and we would love for you to get involved! The following documentation has been written to help you get a grasp on how Kordac is pieced together to make contributing as simple and straight forward as possible. Please feel free to fix bugs and/or suggest new features and improvements to the system (or the docs) by making a pull request.
+Welcome to the Verto developer community! We have spent many months developing this project, and we would love for you to get involved! The following documentation has been written to help you get a grasp on how Verto is pieced together to make contributing as simple and straight forward as possible. Please feel free to fix bugs and/or suggest new features and improvements to the system (or the docs) by making a pull request.
-Kordac was created to be used by two much larger projects (the `CS Unplugged`_ and `CS Field Guide`_ websites) as the markdown-to-html converter. The tags we chose are designed to allow authors of these two projects to easily write material without technical elements getting in the way. It is therefore important to us that Kordac remains as simple and robust as possible, please keep this in mind if you decide to work on Kordac with us.
+Verto was created to be used by two much larger projects (the `CS Unplugged`_ and `CS Field Guide`_ websites) as the markdown-to-html converter. The tags we chose are designed to allow authors of these two projects to easily write material without technical elements getting in the way. It is therefore important to us that Verto remains as simple and robust as possible, please keep this in mind if you decide to work on Verto with us.
-The git repository for Kordac can be found `here`_, jump in and take a look around!
+The git repository for Verto can be found `here`_, jump in and take a look around!
.. note::
- The two projects that Kordac was developed for are Django projects, so you may come across HTML (in templates, test cases etc) that contains Django syntax.
+ The two projects that Verto was developed for are Django projects, so you may come across HTML (in templates, test cases etc) that contains Django syntax.
For example, below is the expected output for a for a image tag test:
@@ -19,13 +19,13 @@ The git repository for Kordac can be found `here`_, jump in and take a look arou
- This does not mean that Kordac is only suitable for Django projects, as it's just a matter of customising the relevant HTMl templates.
+ This does not mean that Verto is only suitable for Django projects, as it's just a matter of customising the relevant HTMl templates.
Issue Reporting and Bug Fixes
=======================================
-If you come across a bug in Kordac, please `report it on the repo issue tracker`_.
+If you come across a bug in Verto, please `report it on the repo issue tracker`_.
If you choose to fix the bug for us, consider adding the relevant tests to the Test Suite (detailed further down this page) to help us catch any future bugs.
@@ -33,23 +33,23 @@ If you choose to fix the bug for us, consider adding the relevant tests to the T
The Code Base
=======================================
-If you would like to contribute to Kordac, `create a fork of the repository`_.
+If you would like to contribute to Verto, `create a fork of the repository`_.
Overview
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-Before reading this section, make sure you have read :doc:`how to use ` (or even better, have already used Kordac!).
+Before reading this section, make sure you have read :doc:`how to use ` (or even better, have already used Verto!).
Terminology
***************************************
-There are a couple of terms we use when describing Kordac to become familiar with:
+There are a couple of terms we use when describing Verto to become familiar with:
- **Tag**
- This refers to the custom markdown syntax that Kordac processes.
+ This refers to the custom markdown syntax that Verto processes.
For example:
@@ -59,7 +59,7 @@ There are a couple of terms we use when describing Kordac to become familiar wit
{image file-path="img/totally-real-image.png" alt="process me"}
- are examples of the ``comment`` and ``image`` tags in Kordac.
+ are examples of the ``comment`` and ``image`` tags in Verto.
- **Processor**
@@ -74,10 +74,10 @@ Below is a basic overview of the project structure:
.. code-block:: none
├── docs/
- ├── kordac/
+ ├── verto/
│ ├── html-templates/
- │ ├── KordacExtension.py
- │ ├── Kordac.py
+ │ ├── VertoExtension.py
+ │ ├── Verto.py
│ ├── processor-info.json
│ ├── processors/
│ │ └── errors/
@@ -88,10 +88,10 @@ Below is a basic overview of the project structure:
The items of interest are:
-- ``Kordac()`` - The convertor object itself. This is what a user will use to create a Kordac converter, and what is used to define a custom processor list, custom html templates and custom Markdown Extensions to use.
+- ``Verto()`` - The convertor object itself. This is what a user will use to create a Verto converter, and what is used to define a custom processor list, custom html templates and custom Markdown Extensions to use.
-- ``KordacResult()`` (found in ``Kordac.py``) - The object returned by ``Kordac()`` containing:
+- ``VertoResult()`` (found in ``Verto.py``) - The object returned by ``Verto()`` containing:
- Converted html string
- Title
@@ -100,7 +100,7 @@ The items of interest are:
- Required glossary terms
-- ``KordacExtension()`` - This is the main class of the project, and inherits the ``Extension`` class from Markdown. It loads all of the processor information, loads the template files and clears and populates the attributes to be returned by the ``KordacResult`` object.
+- ``VertoExtension()`` - This is the main class of the project, and inherits the ``Extension`` class from Markdown. It loads all of the processor information, loads the template files and clears and populates the attributes to be returned by the ``VertoResult`` object.
- ``Processors/`` - There is a different processor for each tag. A processor uses it's corresponding description loaded from ``processor-info.json`` to find matches in the text, and uses the given arguments in the matched tag to populate and output it's html template.
@@ -111,7 +111,7 @@ The items of interest are:
- ``tests/`` - explained in the Test Suite section further down the page.
-It is important to note that Kordac is not just a Markdown Extension, it is a wrapper for Python Markdown. ``KordacExtension`` **is** an extension for Python Markdown. We have created a wrapper because we wanted to not only convert text, but also extract information from the text as it was being converted (recall ``KordacResult()`` listed above).
+It is important to note that Verto is not just a Markdown Extension, it is a wrapper for Python Markdown. ``VertoExtension`` **is** an extension for Python Markdown. We have created a wrapper because we wanted to not only convert text, but also extract information from the text as it was being converted (recall ``VertoResult()`` listed above).
Creating a New Processor
@@ -130,7 +130,7 @@ In all cases new processors should:
- Examples
- Examples of overriding the html
-We recommend writing documentation and test cases before you even write the processor itself as this will give you a clear idea of how a processor in Kordac should behave.
+We recommend writing documentation and test cases before you even write the processor itself as this will give you a clear idea of how a processor in Verto should behave.
Generic Processors
**************************************
@@ -216,17 +216,17 @@ A generic tag processor, is a simple single line tag that uses the given argumen
And has the following html-template:
-.. literalinclude:: ../../kordac/html-templates/button-link.html
+.. literalinclude:: ../../verto/html-templates/button-link.html
:language: css+jinja
This enables the following markdown:
-.. literalinclude:: ../../kordac/tests/assets/button-link/doc_example_basic_usage.md
+.. literalinclude:: ../../verto/tests/assets/button-link/doc_example_basic_usage.md
:language: none
To generate the output:
-.. literalinclude:: ../../kordac/tests/assets/button-link/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../verto/tests/assets/button-link/doc_example_basic_usage_expected.html
:language: html
A generic container processor, a pair of matching tags where one opens the container and one closes the container. The start tag gives the arguments as parameters to an html template. The end tag is used to capture the content between the tags to be used as an additional parameter to the html template. An example of a processor that uses the generic container processor is the :ref:`boxed-text ` processor which is described in the json as:
@@ -256,17 +256,17 @@ A generic container processor, a pair of matching tags where one opens the conta
And has the following html-template:
-.. literalinclude:: ../../kordac/html-templates/boxed-text.html
+.. literalinclude:: ../../verto/html-templates/boxed-text.html
:language: css+jinja
This enables the following markdown:
-.. literalinclude:: ../../kordac/tests/assets/boxed-text/doc_example_basic_usage.md
+.. literalinclude:: ../../verto/tests/assets/boxed-text/doc_example_basic_usage.md
:language: none
To generate the output:
-.. literalinclude:: ../../kordac/tests/assets/boxed-text/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../verto/tests/assets/boxed-text/doc_example_basic_usage_expected.html
:language: html
Custom Processors
@@ -274,17 +274,17 @@ Custom Processors
To create a custom processor, the ``class`` attribute of the processor in the ``processor-info.json`` file must be ``"custom"``. A good place to start when programming a new processor is the `Extension API`_ page of the Python Markdown docs, and you can also read the `source code`_ itself.
-There are several different kinds of processors in Python Markdown, each serving a slightly different purpose. We recommend reading the API docs to determine which processor best suits your purpose. Kordac currently makes use of ``preprocessor``, ``blockprocessor``, ``inlinepattern``, ``treeprocessor`` and ``postprocessor``, but you are welcome to use another type of processor if it better suits the task.
+There are several different kinds of processors in Python Markdown, each serving a slightly different purpose. We recommend reading the API docs to determine which processor best suits your purpose. Verto currently makes use of ``preprocessor``, ``blockprocessor``, ``inlinepattern``, ``treeprocessor`` and ``postprocessor``, but you are welcome to use another type of processor if it better suits the task.
-The order of the processors matters and is defined when each processor is added to the ``OrderedDict`` in ``KordacExtension.py``.
+The order of the processors matters and is defined when each processor is added to the ``OrderedDict`` in ``VertoExtension.py``.
Each processor should try to be as independent of every other processor as possible. Sometimes this is not possible, and in this case compatibility should occur in the processor that happens last (i.e. the downstream processor). That is output should be consistent based on input, not the other way round (e.g. ``codehilite`` and ``fenced_code``).
The logic for each processor belongs in the ``processors/`` directory, and there are several other places where processors details need to be listed. These are:
- The processor's relevant information (regex pattern, required parameters etc) should be included in ``processor-info.json``
-- If it should be a default processor, it should be added to the frozenset of ``DEFAULT_PROCESSORS`` in ``Kordac.py``
-- The relevant list in ``extendMarkdown()`` in ``KordacExtension.py`` (see `OrderedDict in the Markdown API docs`_ for manipulating processor order)
+- If it should be a default processor, it should be added to the frozenset of ``DEFAULT_PROCESSORS`` in ``Verto.py``
+- The relevant list in ``extendMarkdown()`` in ``VertoExtension.py`` (see `OrderedDict in the Markdown API docs`_ for manipulating processor order)
- The processor's template should be added to ``html-templates`` using the Jinja2 template engine syntax for variable parameters
.. _the-test-suite:
@@ -296,7 +296,7 @@ To start the test suite:
.. code-block:: bash
- $ python3 -m kordac.tests.start_tests
+ $ python3 -m verto.tests.start_tests
This will execute the Smoke, System and then Unit tests.
@@ -309,7 +309,7 @@ We are now focusing on our project structure diagram from earlier:
.. code-block:: none
- └── kordac/
+ └── verto/
└── tests/
├── assets/
├── BaseTest.py
@@ -322,7 +322,7 @@ The items of interest are:
- ``BaseTest())`` - This class is inherited by nearly every other test file, and contains a method to read a given test asset file.
-- ``ConfigurationTest()`` - This is the test class for testing different configurations of ``Kordac()`` (e.g. using a custom list of processors and/or custom html templates). This class inherits the ``BaseTest`` class.
+- ``ConfigurationTest()`` - This is the test class for testing different configurations of ``Verto()`` (e.g. using a custom list of processors and/or custom html templates). This class inherits the ``BaseTest`` class.
- ``ProcessorTest.py`` - This is the class inherited by all processor test classes. It contains several useful methods for testing processors, including those for loading templates and processor info.
@@ -338,7 +338,7 @@ Adding Tests
When writing a new test function, it is important that the method name is as descriptive as possible. The method name should also be prefixed with ``test_`` as the test suite will only execute methods with this prefix.
-If you have added a new processor to ``Kordac``, then a corresponding test suite also needs to be added. This test suite should be added to the ``unit_suite()`` function in ``start_tests.py``. The section below has details on how to write a processor test.
+If you have added a new processor to ``Verto``, then a corresponding test suite also needs to be added. This test suite should be added to the ``unit_suite()`` function in ``start_tests.py``. The section below has details on how to write a processor test.
Processor Tests
@@ -350,7 +350,7 @@ A test method will typically follow the same sequence of steps:
1. Retrieve the test string (there is a ``read_test_file()`` method provided by the ``ProcessorTest`` class)
2. Confirm there are (not) matches to the regex in the test string
-3. Convert the test string using the ``kordac_extension`` (provided by the ``SetUp()`` method in ``ProcessorTest``)
+3. Convert the test string using the ``verto_extension`` (provided by the ``SetUp()`` method in ``ProcessorTest``)
4. Load the expected converted result
5. Check the converted result is the same as the expected result
@@ -360,14 +360,14 @@ Testing Assets
Most tests will load an asset file. This file contains example Markdown text (and therefore has a ``.md`` extension). For comparing the converted result of this Markdown file with it's expected output, a corresponding "expected" file should be created. The expected file should have the same name as the corresponding test file, with ``expected`` appended to the file name (and has a ``.html`` extension).
-These asset files should be placed in ``kordac/tests/assets//``.
+These asset files should be placed in ``verto/tests/assets//``.
For example:
.. code-block:: none
- kordac/tests/assets/boxed-text/no_boxed_text.md
- kordac/tests/assets/boxed-text/no_boxed_text_expected.html
+ verto/tests/assets/boxed-text/no_boxed_text.md
+ verto/tests/assets/boxed-text/no_boxed_text_expected.html
.. note::
- Asset files should have discriptive names, and in many cases will have the same name as the method they are used in.
@@ -375,24 +375,24 @@ For example:
Creating a release
=======================================
-This is our current process for creating and publishing a Kordac release. This
+This is our current process for creating and publishing a Verto release. This
can only be performed by repository administrators
1. `Create a release branch`_. Checkout to this branch.
-2. Update the version number [1]_ within ``kordac/__init__.py``.
+2. Update the version number [1]_ within ``verto/__init__.py``.
3. Check test suite for errors, and fix any issues that arise, or `log an issue`_.
4. Detail the changes in ``docs/source/changelog.rst``.
5. `Complete the release branch`_. Be sure to tag the release with the version number for creating the release on GitHub.
6. Create the release on `GitHub`_ on the tagged commit.
-7. Upload a new version of Kordac to PyPI.
+7. Upload a new version of Verto to PyPI.
-.. [1] We follow `Semantic Versioning `_ for our numbering system. The number is used by ``setup.py`` to tell PyPI which version is being uploaded or ``pip`` which version is installed, and also used during the documentation build to number the version of Kordac it was built from.
+.. [1] We follow `Semantic Versioning `_ for our numbering system. The number is used by ``setup.py`` to tell PyPI which version is being uploaded or ``pip`` which version is installed, and also used during the documentation build to number the version of Verto it was built from.
.. _CS Unplugged: https://github.com/uccser/cs-unplugged/
.. _CS Field Guide: https://github.com/uccser/cs-field-guide/
-.. _here: https://github.com/uccser/kordac
-.. _report it on the repo issue tracker: https://github.com/uccser/kordac/issues
+.. _here: https://github.com/uccser/verto
+.. _report it on the repo issue tracker: https://github.com/uccser/verto/issues
.. _create a fork of the repository: https://help.github.com/articles/fork-a-repo/
.. _Extension API: https://pythonhosted.org/Markdown/extensions/api.html
.. _source code: https://github.com/waylan/Python-Markdown
@@ -400,4 +400,4 @@ can only be performed by repository administrators
.. _Create a release branch: http://nvie.com/posts/a-successful-git-branching-model/#creating-a-release-branch
.. _log an issue: https://github.com/uccser/cs-field-guide/issues/new
.. _Complete the release branch: http://nvie.com/posts/a-successful-git-branching-model/#finishing-a-release-branch
-.. _GitHub: https://github.com/uccser/kordac/releases/
+.. _GitHub: https://github.com/uccser/verto/releases/
diff --git a/docs/source/extensions.rst b/docs/source/extensions.rst
index 08cbe8ae..a2ae7c9a 100644
--- a/docs/source/extensions.rst
+++ b/docs/source/extensions.rst
@@ -1,10 +1,10 @@
Extensions
#######################################
-As Kordac is an extension of the Python Markdown package, you should be able to include any extension for the original package.
-This page details using extensions with Kordac, plus listing a few useful extensions that we recommend.
+As Verto is an extension of the Python Markdown package, you should be able to include any extension for the original package.
+This page details using extensions with Verto, plus listing a few useful extensions that we recommend.
-To include a package, pass a list of extensions to the ``extensions`` keyword when creating the Kordac object. For example:
+To include a package, pass a list of extensions to the ``extensions`` keyword when creating the Verto object. For example:
.. code-block:: python
@@ -14,14 +14,14 @@ To include a package, pass a list of extensions to the ``extensions`` keyword wh
'markdown.extensions.sane_lists',
mdx_math.MathExtension(enable_dollar_delimiter=True)
]
- converter = Kordac(extensions=extra_extensions)
+ converter = Verto(extensions=extra_extensions)
A list of extensions for the Markdown package can be found `in their official documentation `_.
Math
=======================================
-Math can be rendered by including the `Python Markdown Math `_ package, and passing it through to Kordac as an extension to use.
+Math can be rendered by including the `Python Markdown Math `_ package, and passing it through to Verto as an extension to use.
A guide on how to install and use the extension can be found in the package's `README file `_.
Fenced Code
diff --git a/docs/source/index.rst b/docs/source/index.rst
index f3d5904b..85c0536a 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -1,14 +1,14 @@
-Welcome to Kordac
+Welcome to Verto
#################
-Kordac is an extension of the Python `Markdown `_ package, which allows authors to include complex HTML elements with simple text tags in their Markdown files.
+Verto is an extension of the Python `Markdown `_ package, which allows authors to include complex HTML elements with simple text tags in their Markdown files.
For example:
.. code-block:: python
- >>> import kordac
- >>> converter = kordac.Kordac()
+ >>> import verto
+ >>> converter = verto.Verto()
>>> result = converter.convert('{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"}')
>>> result.html_string
""
diff --git a/docs/source/install.rst b/docs/source/install.rst
index 3dcd8bfd..65e05b95 100644
--- a/docs/source/install.rst
+++ b/docs/source/install.rst
@@ -1,12 +1,12 @@
-Installing Kordac
+Installing Verto
#######################################
-Currently Kordac is only able to be installed locally.
+Currently Verto is only able to be installed locally.
-The following commands in Terminal will download and install Kordac ready for use:
+The following commands in Terminal will download and install Verto ready for use:
.. code-block:: none
- $ git clone https://github.com/uccser/kordac.git
- $ cd kordac
+ $ git clone https://github.com/uccser/verto.git
+ $ cd verto
$ pip3 install .
diff --git a/docs/source/processors/boxed-text.rst b/docs/source/processors/boxed-text.rst
index 1730b207..ec0620c4 100644
--- a/docs/source/processors/boxed-text.rst
+++ b/docs/source/processors/boxed-text.rst
@@ -7,7 +7,7 @@ Boxed Text
You can enclose text inside of a box using the following text tag:
-.. literalinclude:: ../../../kordac/tests/assets/boxed-text/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/boxed-text/doc_example_basic_usage.md
:language: none
Optional Tag Parameters
@@ -17,12 +17,12 @@ Optional Tag Parameters
The default HTML for button links is:
-.. literalinclude:: ../../../kordac/html-templates/boxed-text.html
+.. literalinclude:: ../../../verto/html-templates/boxed-text.html
:language: css+jinja
Using the example tag above, the resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/boxed-text/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/boxed-text/doc_example_basic_usage_expected.html
:language: html
Overriding HTML for Boxed Text
@@ -37,15 +37,15 @@ When overriding the HTML for boxed text, the following Jinja2 placeholders are a
For example, providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/boxed-text/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/boxed-text/doc_example_override_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/boxed-text/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/boxed-text/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/boxed-text/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/boxed-text/doc_example_override_html_expected.html
:language: html
diff --git a/docs/source/processors/button-link.rst b/docs/source/processors/button-link.rst
index 6365858b..7243b517 100644
--- a/docs/source/processors/button-link.rst
+++ b/docs/source/processors/button-link.rst
@@ -7,7 +7,7 @@ Button Link
You can create a link on a button using the following text tag:
-.. literalinclude:: ../../../kordac/tests/assets/button-link/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/button-link/doc_example_basic_usage.md
:language: none
Required Tag Parameters
@@ -28,31 +28,31 @@ Optional Tag Parameters
The default HTML for button links is:
-.. literalinclude:: ../../../kordac/html-templates/button-link.html
+.. literalinclude:: ../../../verto/html-templates/button-link.html
:language: css+jinja
**Example 1**
Using the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/button-link/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/button-link/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/button-link/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/button-link/doc_example_basic_usage_expected.html
:language: html
**Example 2**
Using the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/button-link/doc_example_file_usage.md
+.. literalinclude:: ../../../verto/tests/assets/button-link/doc_example_file_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/button-link/doc_example_file_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/button-link/doc_example_file_usage_expected.html
:language: css+jinja
Overriding HTML for Button Link
@@ -65,22 +65,22 @@ When overriding the HTML for button links, the following Jinja2 placeholders are
If the ``file`` parameter is set to ``yes``, the link is passed through the ``relative-image-link.html`` template. The default HTML for relative images is:
-.. literalinclude:: ../../../kordac/html-templates/relative-file-link.html
+.. literalinclude:: ../../../verto/html-templates/relative-file-link.html
:language: css+jinja
**Example**
For example, providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/button-link/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/button-link/doc_example_override_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/button-link/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/button-link/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/button-link/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/button-link/doc_example_override_html_expected.html
:language: html
diff --git a/docs/source/processors/comment.rst b/docs/source/processors/comment.rst
index 4bc2a94a..b3bc9290 100644
--- a/docs/source/processors/comment.rst
+++ b/docs/source/processors/comment.rst
@@ -5,7 +5,7 @@ Comment
You can include comments in the source text that are deleted before conversion:
-.. literalinclude:: ../../../kordac/tests/assets/comment/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/comment/doc_example_basic_usage.md
:language: none
Comment tags have no parameters or HTML templates associated with them.
@@ -14,10 +14,10 @@ Comment tags have no parameters or HTML templates associated with them.
The following text:
-.. literalinclude:: ../../../kordac/tests/assets/comment/doc_example_multiple_usage.md
+.. literalinclude:: ../../../verto/tests/assets/comment/doc_example_multiple_usage.md
:language: none
-would result in (after Kordac has finished conversion):
+would result in (after Verto has finished conversion):
-.. literalinclude:: ../../../kordac/tests/assets/comment/doc_example_multiple_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/comment/doc_example_multiple_usage_expected.html
:language: html
diff --git a/docs/source/processors/conditional.rst b/docs/source/processors/conditional.rst
index 49a6218e..d7ac94d1 100644
--- a/docs/source/processors/conditional.rst
+++ b/docs/source/processors/conditional.rst
@@ -5,7 +5,7 @@ Conditional
You can include an conditional using the following text tag:
-.. literalinclude:: ../../../kordac/tests/assets/conditional/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/conditional/doc_example_basic_usage.md
:language: none
.. note::
@@ -48,24 +48,24 @@ To create a set of conditional text tags, follow the following steps:
Here is a more complicated example:
-.. literalinclude:: ../../../kordac/tests/assets/conditional/doc_example_complex_usage.md
+.. literalinclude:: ../../../verto/tests/assets/conditional/doc_example_complex_usage.md
:language: none
**Example**
The default HTML for a conditional is:
-.. literalinclude:: ../../../kordac/html-templates/conditional.html
+.. literalinclude:: ../../../verto/html-templates/conditional.html
:language: css+jinja
Using the following example tag:
-.. literalinclude:: ../../../kordac/tests/assets/conditional/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/conditional/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/conditional/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/conditional/doc_example_basic_usage_expected.html
:language: html
Overriding HTML for Conditional
@@ -83,15 +83,15 @@ When overriding the HTML for conditionals, the following Jinja2 placeholders are
For example, if you wanted to output a mako template you would providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/conditional/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/conditional/doc_example_override_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/conditional/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/conditional/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/conditional/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/conditional/doc_example_override_html_expected.html
:language: html
diff --git a/docs/source/processors/glossary-link.rst b/docs/source/processors/glossary-link.rst
index a3486816..654c210f 100644
--- a/docs/source/processors/glossary-link.rst
+++ b/docs/source/processors/glossary-link.rst
@@ -5,7 +5,7 @@ Glossary Link
You can include a link to a glossary term using the following text tag:
-.. literalinclude:: ../../../kordac/tests/assets/glossary-link/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/glossary-link/doc_example_basic_usage.md
:language: none
.. note::
@@ -17,7 +17,7 @@ Required Tag Parameters
- ``term`` - The slug of the term to link to in the glossary (for example ``binary-search``).
- - Each term encountered is added to the required glossary terms stored by Kordac. The set of terms can be accessed after conversion, see :ref:`accessing_kordac_data`.
+ - Each term encountered is added to the required glossary terms stored by Verto. The set of terms can be accessed after conversion, see :ref:`accessing_verto_data`.
- When using the default HTML template, the term is stored in a `data attribute`_ named ``data-glossary-term``.
Optional Tag Parameters
@@ -27,11 +27,11 @@ Optional Tag Parameters
- If back reference text is included, then an ID should be generated for the link. Currently the ID is generated as ``glossary-`` + the term slug. If successive back links for the same term are found then an incrementing number is appended to the generated ID.
- The back reference text and ID are stored in the required glossary terms, and can be accessed after conversion, see :ref:`accessing_kordac_data`.
+ The back reference text and ID are stored in the required glossary terms, and can be accessed after conversion, see :ref:`accessing_verto_data`.
.. warning::
- The IDs generated assume no other Kordac generated HTML is included on the same page. If two (or more) separate conversions of Markdown by Kordac are displayed on the same page, there may be ID conflicts.
+ The IDs generated assume no other Verto generated HTML is included on the same page. If two (or more) separate conversions of Markdown by Verto are displayed on the same page, there may be ID conflicts.
.. note::
@@ -39,29 +39,29 @@ Optional Tag Parameters
The default HTML for glossary links is:
-.. literalinclude:: ../../../kordac/html-templates/glossary-link.html
+.. literalinclude:: ../../../verto/html-templates/glossary-link.html
:language: css+jinja
Using the following example tag:
-.. literalinclude:: ../../../kordac/tests/assets/glossary-link/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/glossary-link/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/glossary-link/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/glossary-link/doc_example_basic_usage_expected.html
:language: html
Possible Glossary Usage with Django
***************************************
-While Kordac will generate links for glossary terms from the HTML template, these links will not work by themselves.
+While Verto will generate links for glossary terms from the HTML template, these links will not work by themselves.
The expected usage is to display the links on a webpage and when a user clicks a link, a JavaScript handler will catch the click.
The handler can view the term in the ``data-glossary-term`` attribute and send a request to a database to retrieve the term's definition and associated data.
The handler can then display this information via popup/modal/etc once it recieves the data.
-Kordac also provides the back reference text and ID for terms in the required glossary terms which can be accessed after conversion (see :ref:`accessing_kordac_data`).
+Verto also provides the back reference text and ID for terms in the required glossary terms which can be accessed after conversion (see :ref:`accessing_verto_data`).
This data can be added to the database before the web server is run for displaying to users.
Overriding HTML for Glossary Links
@@ -79,17 +79,17 @@ For example, we wish to create glossary links that link to a static glossary pag
By providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/glossary-link/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/glossary-link/doc_example_override_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/glossary-link/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/glossary-link/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/glossary-link/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/glossary-link/doc_example_override_html_expected.html
:language: html
.. _data attribute: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/data-*
diff --git a/docs/source/processors/heading.rst b/docs/source/processors/heading.rst
index 6389d254..d2ec5301 100644
--- a/docs/source/processors/heading.rst
+++ b/docs/source/processors/heading.rst
@@ -12,24 +12,24 @@ This processor an ID to each heading which allows for linking to a heading, and
You may create a heading by using the following format:
-.. literalinclude:: ../../../kordac/tests/assets/heading/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/heading/doc_example_basic_usage.md
:language: none
The default HTML for headings is:
-.. literalinclude:: ../../../kordac/html-templates/heading.html
+.. literalinclude:: ../../../verto/html-templates/heading.html
:language: css+jinja
**Example**
Using the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/heading/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/heading/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/heading/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/heading/doc_example_basic_usage_expected.html
:language: html
@@ -55,15 +55,15 @@ The ``level`` parameters are useful for generating levels trails so that users k
For example, providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/heading/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/heading/doc_example_override_html_template.html
:language: css+jinja
with the following markdown:
-.. literalinclude:: ../../../kordac/tests/assets/heading/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/heading/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/heading/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/heading/doc_example_override_html_expected.html
:language: html
diff --git a/docs/source/processors/iframe.rst b/docs/source/processors/iframe.rst
index f781225e..96a1ab22 100644
--- a/docs/source/processors/iframe.rst
+++ b/docs/source/processors/iframe.rst
@@ -5,7 +5,7 @@ Embed iframe
You can embed a link within an ``iframe`` using the following text tag:
-.. literalinclude:: ../../../kordac/tests/assets/iframe/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/iframe/doc_example_basic_usage.md
:language: none
Required Tag Parameters
@@ -15,19 +15,19 @@ Required Tag Parameters
The default HTML for iframe is:
-.. literalinclude:: ../../../kordac/html-templates/iframe.html
+.. literalinclude:: ../../../verto/html-templates/iframe.html
:language: css+jinja
**Example**
Using the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/iframe/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/iframe/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/iframe/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/iframe/doc_example_basic_usage_expected.html
:language: html
Overriding HTML for Emedding iframes
@@ -41,15 +41,15 @@ When overriding the HTML for iframes, the following Jinja2 placeholders are avai
For example, providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/iframe/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/iframe/doc_example_override_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/iframe/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/iframe/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/iframe/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/iframe/doc_example_override_html_expected.html
:language: html
diff --git a/docs/source/processors/image.rst b/docs/source/processors/image.rst
index ade5046f..560de5a5 100644
--- a/docs/source/processors/image.rst
+++ b/docs/source/processors/image.rst
@@ -14,7 +14,7 @@ Required Tag Parameters
- ``file-path`` - The path to the image.
- - Each file-path provided is added to the ``images`` set in required files stored by Kordac. The set of filepaths can be accessed after conversion, see :ref:`accessing_kordac_data`.
+ - Each file-path provided is added to the ``images`` set in required files stored by Verto. The set of filepaths can be accessed after conversion, see :ref:`accessing_verto_data`.
- **Note:** If the given link is a relative (a link that doesn't start with ``http:``), the link will be rendered with a Django static command. For example, the link ``images/example.png`` would be rendered as ``{% static 'images/example.png' %}`` This can be overriden, see the override section below.
Optional Tag Parameters
@@ -29,17 +29,17 @@ Optional Tag Parameters
The default HTML for image is:
-.. literalinclude:: ../../../kordac/html-templates/image.html
+.. literalinclude:: ../../../verto/html-templates/image.html
:language: css+jinja
Using the following example tag:
-.. literalinclude:: ../../../kordac/tests/assets/image/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/image/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/image/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/image/doc_example_basic_usage_expected.html
:language: html
Overriding HTML for Images
@@ -58,24 +58,24 @@ When overriding the HTML for images, the following Jinja2 placeholders are avail
If the ``file_path`` provided is an relative link, the link is passed through the ``relative-image-link.html`` template.
The default HTML for relative images is:
-.. literalinclude:: ../../../kordac/html-templates/relative-file-link.html
+.. literalinclude:: ../../../verto/html-templates/relative-file-link.html
:language: css+jinja
**Example 1**
For example, providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/image/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/image/doc_example_override_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/image/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/image/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/image/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/image/doc_example_override_html_expected.html
:language: html
**Example 2**
@@ -84,20 +84,20 @@ If you know all relative images are located within a specific folder, you could
For example, providing the following HTML for ``image.html``:
-.. literalinclude:: ../../../kordac/tests/assets/image/doc_example_2_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/image/doc_example_2_override_html_template.html
:language: css+jinja
and providing the following HTML for ``relative-file-link.html``:
-.. literalinclude:: ../../../kordac/tests/assets/image/doc_example_2_override_link_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/image/doc_example_2_override_link_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/image/doc_example_2_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/image/doc_example_2_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/image/doc_example_2_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/image/doc_example_2_override_html_expected.html
:language: html
diff --git a/docs/source/processors/interactive.rst b/docs/source/processors/interactive.rst
index 898eaffa..7382d7e3 100644
--- a/docs/source/processors/interactive.rst
+++ b/docs/source/processors/interactive.rst
@@ -11,14 +11,14 @@ Interactives can be small examples to display within the text (for example:
`animations comparing sorting algorithms`_) to larger interactives that require
a whole page to view (for example: `viewing pixels of an image`_.).
-By using the interactive tag, Kordac can include or link to an interactive
-within a page. Kordac does not directly include the interactive, but creates
+By using the interactive tag, Verto can include or link to an interactive
+within a page. Verto does not directly include the interactive, but creates
Django commands for a Django system to render the interactive or link to
interactive as requested.
You can include an interactive using the following text tag:
-.. literalinclude:: ../../../kordac/tests/assets/interactive/doc_example_in_page_usage.md
+.. literalinclude:: ../../../verto/tests/assets/interactive/doc_example_in_page_usage.md
:language: none
Required Tag Parameters
@@ -70,13 +70,13 @@ Optional Tag Parameters
This can be overriden, see the override section below.
- Each ``thumbnail`` provided is added to the ``images`` set in required
- files stored by Kordac.
+ files stored by Verto.
The set of filepaths can be accessed after conversion,
- see :ref:`accessing_kordac_data`.
+ see :ref:`accessing_verto_data`.
The default HTML for button links is:
-.. literalinclude:: ../../../kordac/html-templates/interactive.html
+.. literalinclude:: ../../../verto/html-templates/interactive.html
:language: css+jinja
Examples
@@ -86,36 +86,36 @@ Examples
Using the following example tag:
-.. literalinclude:: ../../../kordac/tests/assets/interactive/doc_example_in_page_usage.md
+.. literalinclude:: ../../../verto/tests/assets/interactive/doc_example_in_page_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/interactive/doc_example_in_page_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/interactive/doc_example_in_page_usage_expected.html
:language: html
**whole-page example**
Using the following example tag:
-.. literalinclude:: ../../../kordac/tests/assets/interactive/doc_example_whole_page_usage.md
+.. literalinclude:: ../../../verto/tests/assets/interactive/doc_example_whole_page_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/interactive/doc_example_whole_page_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/interactive/doc_example_whole_page_usage_expected.html
:language: html
**iframe example**
Using the following example tag:
-.. literalinclude:: ../../../kordac/tests/assets/interactive/doc_example_iframe_usage.md
+.. literalinclude:: ../../../verto/tests/assets/interactive/doc_example_iframe_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/interactive/doc_example_iframe_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/interactive/doc_example_iframe_usage_expected.html
:language: html
Overriding HTML for Interactives
@@ -133,7 +133,7 @@ When overriding the HTML for interactives, the following Jinja2 placeholders are
If the ``file_path`` provided is an relative link, the link is passed through the ``relative-image-link.html`` template.
The default HTML for relative images is:
-.. literalinclude:: ../../../kordac/html-templates/relative-file-link.html
+.. literalinclude:: ../../../verto/html-templates/relative-file-link.html
:language: css+jinja
**Example**
@@ -143,17 +143,17 @@ thumbnail.
For example, providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/interactive/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/interactive/doc_example_override_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/interactive/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/interactive/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/interactive/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/interactive/doc_example_override_html_expected.html
:language: html
.. _Computer Science Field Guide: https://github.com/uccser/cs-field-guide
diff --git a/docs/source/processors/panel.rst b/docs/source/processors/panel.rst
index 7cb8593e..b7efc6ac 100644
--- a/docs/source/processors/panel.rst
+++ b/docs/source/processors/panel.rst
@@ -5,7 +5,7 @@ Panel
You can include an panel using the following text tag:
-.. literalinclude:: ../../../kordac/tests/assets/panel/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/panel/doc_example_basic_usage.md
:language: none
Required Tag Parameters
@@ -29,17 +29,17 @@ Optional Tag Parameters
The default HTML for a panel is:
-.. literalinclude:: ../../../kordac/html-templates/panel.html
+.. literalinclude:: ../../../verto/html-templates/panel.html
:language: css+jinja
Using the following example tag:
-.. literalinclude:: ../../../kordac/tests/assets/panel/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/panel/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/panel/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/panel/doc_example_basic_usage_expected.html
:language: html
Overriding HTML for Panels
@@ -57,15 +57,15 @@ When overriding the HTML for images, the following Jinja2 placeholders are avail
For example, providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/panel/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/panel/doc_example_override_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/panel/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/panel/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/panel/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/panel/doc_example_override_html_expected.html
:language: html
diff --git a/docs/source/processors/relative-link.rst b/docs/source/processors/relative-link.rst
index 0de78460..91b265ab 100644
--- a/docs/source/processors/relative-link.rst
+++ b/docs/source/processors/relative-link.rst
@@ -8,17 +8,17 @@ When the resulting HTML is rendered with Django, the Django system can insert th
The default HTML for relative links is:
-.. literalinclude:: ../../../kordac/html-templates/relative-link.html
+.. literalinclude:: ../../../verto/html-templates/relative-link.html
:language: css+jinja
Using the following example tag:
-.. literalinclude:: ../../../kordac/tests/assets/relative-link/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/relative-link/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/relative-link/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/relative-link/doc_example_basic_usage_expected.html
:language: html
Overriding HTML for Relative Links
@@ -34,15 +34,15 @@ For this example, we wish to create HTML to be used in a static site system (not
For example, providing the following HTML template:
-.. literalinclude:: ../../../kordac/tests/assets/relative-link/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/relative-link/doc_example_override_html_template.html
:language: css+jinja
with the following Markdown:
-.. literalinclude:: ../../../kordac/tests/assets/relative-link/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/relative-link/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/relative-link/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/relative-link/doc_example_override_html_expected.html
:language: html
diff --git a/docs/source/processors/remove-title.rst b/docs/source/processors/remove-title.rst
index 895f6625..ee4c3d36 100644
--- a/docs/source/processors/remove-title.rst
+++ b/docs/source/processors/remove-title.rst
@@ -8,25 +8,25 @@ This preprocessor runs after the ``save-title`` preprocessor if present.
Once it finds a heading on a line, it deletes that line of text.
This preprocessor is **not** turned on by default.
-To use ``remove-title``, it needs to be explicity provided in the ``processors`` parameter when creating the Kordac converter, or given in the ``update_processors`` method (see example below).
+To use ``remove-title``, it needs to be explicity provided in the ``processors`` parameter when creating the Verto converter, or given in the ``update_processors`` method (see example below).
**Example**
With the following text saved in ``example_string``:
-.. literalinclude:: ../../../kordac/tests/assets/remove-title/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/remove-title/doc_example_basic_usage.md
:language: none
.. code-block:: python
- import kordac
- converter = kordac.Kordac()
- tags = kordac.tag_defaults()
+ import verto
+ converter = verto.Verto()
+ tags = verto.tag_defaults()
tags.add('remove-title')
converter.update_tags(tags)
result = converter.convert(example_string)
The ``html_string`` value in ``result`` would be:
-.. literalinclude:: ../../../kordac/tests/assets/remove-title/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/remove-title/doc_example_basic_usage_expected.html
:language: none
diff --git a/docs/source/processors/save-title.rst b/docs/source/processors/save-title.rst
index 4a7b8c22..f107e8a6 100644
--- a/docs/source/processors/save-title.rst
+++ b/docs/source/processors/save-title.rst
@@ -4,23 +4,23 @@ Save Title
**Tag name:** ``save-title``
This preprocessor runs before any conversion of Markdown and searches for the first heading in the provided Markdown text.
-Once it finds a heading, it saves the text for that heading in the ``title`` attribute of the ``KordacResult`` object.
+Once it finds a heading, it saves the text for that heading in the ``title`` attribute of the ``VertoResult`` object.
**Example**
With the following text saved in ``example_string``:
-.. literalinclude:: ../../../kordac/tests/assets/save-title/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/save-title/doc_example_basic_usage.md
:language: none
.. code-block:: python
- import kordac
- converter = kordac.Kordac()
+ import verto
+ converter = verto.Verto()
result = converter.convert(example_string)
print(result.title)
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/save-title/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/save-title/doc_example_basic_usage_expected.html
:language: none
diff --git a/docs/source/processors/scratch.rst b/docs/source/processors/scratch.rst
index 5873c718..687b205c 100644
--- a/docs/source/processors/scratch.rst
+++ b/docs/source/processors/scratch.rst
@@ -4,14 +4,14 @@ Scratch
.. note::
The following examples assume usage of the fenced code extension, by having
- ``markdown.extensions.fenced_code`` in the list of extensions given to Kordac.
+ ``markdown.extensions.fenced_code`` in the list of extensions given to Verto.
**Processor name:** ``scratch``
You can include an image of Scratch blocks using
`Scratch Block Plugin notation`_ using the following notation:
-.. literalinclude:: ../../../kordac/tests/assets/scratch/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/scratch/doc_example_basic_usage.md
:language: none
to produce the following image:
@@ -19,7 +19,7 @@ to produce the following image:
.. image:: ../images/scratch_blocks_example.png
The syntax is the same for default Markdown code blocks. The only difference
-is that Kordac handles the content differently due to the ``scratch`` language
+is that Verto handles the content differently due to the ``scratch`` language
set at the start.
.. note::
@@ -34,24 +34,24 @@ You can also generate Scratch block text from a published Scratch project at
.. warning::
- Kordac doesn't create the Scratch images, but saves data for another system
+ Verto doesn't create the Scratch images, but saves data for another system
(for example: Django) to create the images.
See :ref:`accessing-scratch-image-data` section below.
The default HTML for button links is:
-.. literalinclude:: ../../../kordac/html-templates/scratch.html
+.. literalinclude:: ../../../verto/html-templates/scratch.html
:language: css+jinja
Using the following example tag:
-.. literalinclude:: ../../../kordac/tests/assets/scratch/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/scratch/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/scratch/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/scratch/doc_example_basic_usage_expected.html
:language: html
.. _scratch_options:
@@ -66,12 +66,12 @@ Options that change the output behaviour can be specified by appending them afte
For example options can be used like:
-.. literalinclude:: ../../../kordac/tests/assets/scratch/example_split_codeblocks.md
+.. literalinclude:: ../../../verto/tests/assets/scratch/example_split_codeblocks.md
:language: none
Or for more than one option:
-.. literalinclude:: ../../../kordac/tests/assets/scratch/example_random_split_codeblocks.md
+.. literalinclude:: ../../../verto/tests/assets/scratch/example_random_split_codeblocks.md
:language: none
.. _accessing-scratch-image-data:
@@ -79,7 +79,7 @@ Or for more than one option:
Accessing Scratch image data
***************************************
-When Kordac encounters a code block with the Scratch language (see example
+When Verto encounters a code block with the Scratch language (see example
above), it doesn't not generate the image but saves the enclosed text and hash
of the text in the ``required_files`` attribute under the key
``scratch_images``.
@@ -106,7 +106,7 @@ two Scratch blocks, where the ``scratch_images`` key points to a set of
The processor replaces the text with an image linked to the expected location
of the image.
-After Kordac has completed a conversion, you will need to retrieve this data
+After Verto has completed a conversion, you will need to retrieve this data
from ``required_files`` and render it to an image in the expected location.
The `scratchblocks`_ renderer on GitHub allows of rendering to an SVG or PNG.
@@ -121,17 +121,17 @@ When overriding the HTML for Scratch code, the following Jinja2 placeholders are
For example, providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/scratch/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/scratch/doc_example_override_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/scratch/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/scratch/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/scratch/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/scratch/doc_example_override_html_expected.html
:language: html
.. _Scratch Block Plugin notation: https://wiki.scratch.mit.edu/wiki/Block_Plugin
diff --git a/docs/source/processors/table-of-contents.rst b/docs/source/processors/table-of-contents.rst
index ee379a83..64597c5e 100644
--- a/docs/source/processors/table-of-contents.rst
+++ b/docs/source/processors/table-of-contents.rst
@@ -6,7 +6,7 @@ Table of Contents
You can create a placeholder for a web framework (for example: Django) to
insert a table of contents by using the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/table-of-contents/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/table-of-contents/doc_example_basic_usage.md
:language: none
Tag Parameters
@@ -18,12 +18,12 @@ There are no required or optional tag parameters for table of contents.
Using the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/table-of-contents/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/table-of-contents/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/table-of-contents/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/table-of-contents/doc_example_basic_usage_expected.html
:language: html
Overriding HTML for Table of Contents
@@ -34,22 +34,22 @@ of contents.
The default HTML for table of contents is:
-.. literalinclude:: ../../../kordac/html-templates/table-of-contents.html
+.. literalinclude:: ../../../verto/html-templates/table-of-contents.html
:language: css+jinja
**Example**
For example, providing the following HTML:
-.. literalinclude:: ../../../kordac/tests/assets/table-of-contents/doc_example_override_html_template.html
+.. literalinclude:: ../../../verto/tests/assets/table-of-contents/doc_example_override_html_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/table-of-contents/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/table-of-contents/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/table-of-contents/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/table-of-contents/doc_example_override_html_expected.html
:language: html
diff --git a/docs/source/processors/video.rst b/docs/source/processors/video.rst
index 97ac037e..940674cf 100644
--- a/docs/source/processors/video.rst
+++ b/docs/source/processors/video.rst
@@ -5,7 +5,7 @@ Video
You can include an video using the following text tag:
-.. literalinclude:: ../../../kordac/tests/assets/video/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/video/doc_example_basic_usage.md
:language: none
Required Tag Parameters
@@ -13,42 +13,42 @@ Required Tag Parameters
- ``url`` - The video embed URL for the video. Currently only YouTube and Vimeo videos are supported.
- - **For YouTube videos:** Provide the URL in any of the following formats and Kordac will automatically create the embed link. YouTube videos have related videos hidden at video end by default.
+ - **For YouTube videos:** Provide the URL in any of the following formats and Verto will automatically create the embed link. YouTube videos have related videos hidden at video end by default.
- ``https://www.youtube.com/watch?v=dQw4w9WgXcQ`` - Standard URL
- ``https://youtu.be/dQw4w9WgXcQ`` - Shortened URL
- ``https://www.youtube.com/embed/dQw4w9WgXcQ`` - Embed URL
- - **For Vimeo videos:** Provide the URL in any of the following formats and Kordac will automatically create the embed link.
+ - **For Vimeo videos:** Provide the URL in any of the following formats and Verto will automatically create the embed link.
- ``https://vimeo.com/94502406`` - Standard URL
- ``https://player.vimeo.com/video/94502406``- Embed URL
The default HTML for a video is:
-.. literalinclude:: ../../../kordac/html-templates/video.html
+.. literalinclude:: ../../../verto/html-templates/video.html
:language: css+jinja
If the URL provided is YouTube video, the video identifier is extracted and is passed through the ``video-youtube.html`` template:
-.. literalinclude:: ../../../kordac/html-templates/video-youtube.html
+.. literalinclude:: ../../../verto/html-templates/video-youtube.html
:language: css+jinja
If the URL provided is YouTube video, the video identifier is extracted and is passed through the ``video-vimeo.html`` template:
-.. literalinclude:: ../../../kordac/html-templates/video-vimeo.html
+.. literalinclude:: ../../../verto/html-templates/video-vimeo.html
:language: css+jinja
**Example**
Using the following example tag:
-.. literalinclude:: ../../../kordac/tests/assets/video/doc_example_basic_usage.md
+.. literalinclude:: ../../../verto/tests/assets/video/doc_example_basic_usage.md
:language: none
The resulting HTML would be:
-.. literalinclude:: ../../../kordac/tests/assets/video/doc_example_basic_usage_expected.html
+.. literalinclude:: ../../../verto/tests/assets/video/doc_example_basic_usage_expected.html
:language: html
Overriding HTML for Videos
@@ -70,15 +70,15 @@ In the ``video-vimeo.html``, the following Jinja2 placeholders are available:
For example, providing the following HTML for ``video-youtube.html``:
-.. literalinclude:: ../../../kordac/tests/assets/video/doc_example_override_html_youtube_template.html
+.. literalinclude:: ../../../verto/tests/assets/video/doc_example_override_html_youtube_template.html
:language: css+jinja
with the following tag:
-.. literalinclude:: ../../../kordac/tests/assets/video/doc_example_override_html.md
+.. literalinclude:: ../../../verto/tests/assets/video/doc_example_override_html.md
:language: none
would result in:
-.. literalinclude:: ../../../kordac/tests/assets/video/doc_example_override_html_expected.html
+.. literalinclude:: ../../../verto/tests/assets/video/doc_example_override_html_expected.html
:language: html
diff --git a/docs/source/usage.rst b/docs/source/usage.rst
index 61276199..a6fdcbda 100644
--- a/docs/source/usage.rst
+++ b/docs/source/usage.rst
@@ -1,78 +1,78 @@
-Using Kordac
+Using Verto
#######################################
-.. currentmodule:: Kordac
+.. currentmodule:: Verto
-Using Kordac to convert Markdown is a process of:
+Using Verto to convert Markdown is a process of:
-1. Importing the installed Kordac package.
-2. Creating a Kordac converter.
-3. Passing Markdown text through the Kordac ``convert`` method and saving the result object.
+1. Importing the installed Verto package.
+2. Creating a Verto converter.
+3. Passing Markdown text through the Verto ``convert`` method and saving the result object.
4. Accessing data from the result object.
-Step 1: Importing Kordac
+Step 1: Importing Verto
=======================================
-If Kordac has been installed correctly, importing the package can be completed by:
+If Verto has been installed correctly, importing the package can be completed by:
.. code-block:: python
- import kordac
+ import verto
-Step 2: Creating Kordac converter
+Step 2: Creating Verto converter
=======================================
-Once the module is imported, you can create a Kordac converter creating an Kordac object:
+Once the module is imported, you can create a Verto converter creating an Verto object:
.. code-block:: python
- converter = kordac.Kordac()
+ converter = verto.Verto()
-``Kordac()`` has optional parameters to customise the converter. These are:
+``Verto()`` has optional parameters to customise the converter. These are:
- ``processors`` - A set of processor names given as strings for the converter to use. If this parameter is not given, the default processors are used. If ``processors`` is provided, all processors not listed are skipped.
- - *For example:* Creating a Kordac converter that only deletes comment tags would be done by the following command:
+ - *For example:* Creating a Verto converter that only deletes comment tags would be done by the following command:
.. code-block:: python
- converter = kordac.Kordac(processors={"comment"})
+ converter = verto.Verto(processors={"comment"})
- ``html_templates`` - A dictionary of HTML templates to override existing HTML templates for processors. The dictionary contains processor names given as a string as keys mapping HTML strings as values.
The documentation page for each processor specificies how to create custom HTML for that processor.
- - *For example:* Creating a Kordac converter that uses ```` as custom HTML for ``image`` tags would be done by the following command:
+ - *For example:* Creating a Verto converter that uses ```` as custom HTML for ``image`` tags would be done by the following command:
.. code-block:: python
- converter = kordac.Kordac(html_templates={'image': ''})
+ converter = verto.Verto(html_templates={'image': ''})
- ``extensions`` - A list of extra Markdown extensions to run in the converter. Details on how to use this parameter can be found on the :doc:`extensions` page.
Step 3: Convert Markdown with converter
=======================================
-To convert Markdown to HTML with a Kordac converter, we call the ``convert()`` method. The method returns a ``KordacResult`` object.
+To convert Markdown to HTML with a Verto converter, we call the ``convert()`` method. The method returns a ``VertoResult`` object.
.. code-block:: python
text = """
This **is** a line of Markdown.
- {comment This is a comment using a Kordac tag}
+ {comment This is a comment using a Verto tag}
This is a *different* line of Markdown.
"""
result = converter.convert(text)
-.. _accessing_kordac_data:
+.. _accessing_verto_data:
-Step 4: Accessing KordacResult data
+Step 4: Accessing VertoResult data
=======================================
-The ``KordacResult`` object contains several attributes which can be accessed using the dot notation. Continuing from our previous example, the following command would print the converted HTML.
+The ``VertoResult`` object contains several attributes which can be accessed using the dot notation. Continuing from our previous example, the following command would print the converted HTML.
.. code-block:: python
@@ -80,9 +80,9 @@ The ``KordacResult`` object contains several attributes which can be accessed us
The following attributes are available:
-- ``html_string`` - A resulting string of HTML after conversion by Kordac.
+- ``html_string`` - A resulting string of HTML after conversion by Verto.
- ``title`` - The text of the first heading saved by the ``save-title`` processor.
-- ``required_files`` - A dictionary of files encountered in a Kordac conversion. The dictionary has a string for the file type as the key (for example: ``image``) and a set of all file paths encountered as the value (for example: ``{'image/face.png', 'image/logo.png`}``).
+- ``required_files`` - A dictionary of files encountered in a Verto conversion. The dictionary has a string for the file type as the key (for example: ``image``) and a set of all file paths encountered as the value (for example: ``{'image/face.png', 'image/logo.png`}``).
- See :ref:`accessing-scratch-image-data` for data from Scratch processor.
@@ -116,48 +116,48 @@ The following attributes are available:
[]
}
-Configuring Kordac converter after creation
+Configuring Verto converter after creation
===============================================
-The following functions allow you to change the processors or HTML templates used in conversion by the Kordac converter after its creation.
+The following functions allow you to change the processors or HTML templates used in conversion by the Verto converter after its creation.
Changing processors
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-.. automethod:: kordac.Kordac.update_processors(processors)
+.. automethod:: verto.Verto.update_processors(processors)
-.. automethod:: kordac.Kordac.processor_defaults(processors)
+.. automethod:: verto.Verto.processor_defaults(processors)
This function is useful if you want to make minor changes to the default used processors. For example: You wish to still use all default processors but skip video tags:
.. code-block:: python
- processors = Kordac.processor_defaults()
+ processors = Verto.processor_defaults()
processors.remove('video')
- converter = Kordac(processors=processors)
+ converter = Verto(processors=processors)
- Or with an existing Kordac instance ``converter``:
+ Or with an existing Verto instance ``converter``:
.. code-block:: python
- processors = Kordac.processor_defaults()
+ processors = Verto.processor_defaults()
processors.remove('video')
converter.update_processors(processors)
Changing HTML templates
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-.. automethod:: kordac.Kordac.update_templates(html_templates)
+.. automethod:: verto.Verto.update_templates(html_templates)
-.. automethod:: kordac.Kordac.clear_templates()
+.. automethod:: verto.Verto.clear_templates()
Full list of package methods
=======================================
-.. autoclass:: kordac.Kordac()
+.. autoclass:: verto.Verto()
:members: __init__, convert, update_processors, processor_defaults, update_templates, clear_templates
-.. autoclass:: kordac.Kordac.KordacResult()
+.. autoclass:: verto.Verto.VertoResult()
.. attribute:: html_string
@@ -169,4 +169,4 @@ Full list of package methods
.. attribute:: required_files
- A dictionary of files encountered in a Kordac conversion. The dictionary has a string for the file type as the key (for example: ``image``) and a set of all file paths encountered as the value (for example: ``{'image/face.png', 'image/logo.png`}``).
+ A dictionary of files encountered in a Verto conversion. The dictionary has a string for the file type as the key (for example: ``image``) and a set of all file paths encountered as the value (for example: ``{'image/face.png', 'image/logo.png`}``).
diff --git a/kordac/images/kordac-logo.png b/kordac/images/kordac-logo.png
deleted file mode 100644
index 8c19916d..00000000
Binary files a/kordac/images/kordac-logo.png and /dev/null differ
diff --git a/kordac/tests/assets/button-link/doc_example_override_html.md b/kordac/tests/assets/button-link/doc_example_override_html.md
deleted file mode 100644
index de8a5a18..00000000
--- a/kordac/tests/assets/button-link/doc_example_override_html.md
+++ /dev/null
@@ -1 +0,0 @@
-{button-link link="https://github.com/uccser/kordac" text="Kordac on GitHub"}
diff --git a/kordac/tests/assets/button-link/doc_example_override_html_expected.html b/kordac/tests/assets/button-link/doc_example_override_html_expected.html
deleted file mode 100644
index e796187d..00000000
--- a/kordac/tests/assets/button-link/doc_example_override_html_expected.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
- Kordac on GitHub
-
diff --git a/requirements.txt b/requirements.txt
index dc3c560a..2c105801 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
-# Required dependencies for Kordac (installed automatically in setup.py)
+# Required dependencies for Verto (installed automatically in setup.py)
markdown==2.6.8
beautifulsoup4==4.5.3
Jinja2==2.9.5
diff --git a/setup.py b/setup.py
index 0a369d02..9b15aa3e 100644
--- a/setup.py
+++ b/setup.py
@@ -1,16 +1,16 @@
from setuptools import setup, find_packages
import sys
-from kordac import __version__
+from verto import __version__
if not sys.version_info[0] == 3:
sys.exit('Sorry, currently only Python 3 is supported.')
setup(
- name='kordac',
+ name='verto',
version=__version__,
- description='Kordac is an extension of the Python Markdown package, which allows authors to include complex HTML elements with simple text tags in their Markdown.',
+ description='Verto is an extension of the Python Markdown package, which allows authors to include complex HTML elements with simple text tags in their Markdown.',
long_description=open('README.rst').read(),
- url='https://github.com/uccser/kordac',
+ url='https://github.com/uccser/verto',
author='University of Canterbury Computer Science Education Research Group',
license='MIT',
classifiers=[
diff --git a/kordac/Kordac.py b/verto/Verto.py
similarity index 83%
rename from kordac/Kordac.py
rename to verto/Verto.py
index 345a3cb2..35be2f0d 100644
--- a/kordac/Kordac.py
+++ b/verto/Verto.py
@@ -1,5 +1,5 @@
import markdown
-from kordac.KordacExtension import KordacExtension
+from verto.VertoExtension import VertoExtension
DEFAULT_PROCESSORS = frozenset({
'boxed-text',
@@ -21,13 +21,13 @@
})
-class Kordac(object):
+class Verto(object):
'''A converter object for converting markdown with complex elements
to HTML.
'''
def __init__(self, processors=DEFAULT_PROCESSORS, html_templates={}, extensions=[]):
- '''Creates a Kordac object.
+ '''Creates a Verto object.
Args:
processors: A set of processor names given as strings for which
@@ -47,33 +47,33 @@ def __init__(self, processors=DEFAULT_PROCESSORS, html_templates={}, extensions=
self.create_converter()
def create_converter(self):
- '''Create the Kordac extension and converter for future use.'''
- self.kordac_extension = KordacExtension(
+ '''Create the Verto extension and converter for future use.'''
+ self.verto_extension = VertoExtension(
processors=self.processors,
html_templates=self.html_templates,
extensions=self.extensions
)
- all_extensions = self.extensions + [self.kordac_extension]
+ all_extensions = self.extensions + [self.verto_extension]
self.converter = markdown.Markdown(extensions=all_extensions)
def convert(self, text):
- '''Return a KordacResult object after converting
+ '''Return a VertoResult object after converting
the given markdown string.
Args:
text: A string of Markdown text to be converted.
Returns:
- A KordacResult object.
+ A VertoResult object.
'''
- self.kordac_extension.clear_saved_data()
+ self.verto_extension.clear_saved_data()
html_string = self.converter.convert(text)
- result = KordacResult(
+ result = VertoResult(
html_string=html_string,
- title=self.kordac_extension.title,
- required_files=self.kordac_extension.required_files,
- heading_tree=self.kordac_extension.get_heading_tree(),
- required_glossary_terms=self.kordac_extension.glossary_terms
+ title=self.verto_extension.title,
+ required_files=self.verto_extension.required_files,
+ heading_tree=self.verto_extension.get_heading_tree(),
+ required_glossary_terms=self.verto_extension.glossary_terms
)
return result
@@ -123,13 +123,13 @@ def update_processors(self, processors=DEFAULT_PROCESSORS):
self.create_converter()
-class KordacResult(object):
- '''Object created by Kordac containing the result data
+class VertoResult(object):
+ '''Object created by Verto containing the result data
after a conversion by run.
'''
def __init__(self, html_string, title, required_files, heading_tree, required_glossary_terms):
- '''Create a KordacResult object.
+ '''Create a VertoResult object.
Args:
html_string: A string of HTML text.
diff --git a/kordac/KordacExtension.py b/verto/VertoExtension.py
similarity index 82%
rename from kordac/KordacExtension.py
rename to verto/VertoExtension.py
index b1b61401..f88f6017 100644
--- a/kordac/KordacExtension.py
+++ b/verto/VertoExtension.py
@@ -1,29 +1,29 @@
from markdown.extensions import Extension
import markdown.util as utils
-from kordac.processors.CommentPreprocessor import CommentPreprocessor
-from kordac.processors.VideoBlockProcessor import VideoBlockProcessor
-from kordac.processors.ImageBlockProcessor import ImageBlockProcessor
-from kordac.processors.InteractiveBlockProcessor import InteractiveBlockProcessor
-from kordac.processors.RelativeLinkPattern import RelativeLinkPattern
-from kordac.processors.RemoveTitlePreprocessor import RemoveTitlePreprocessor
-from kordac.processors.SaveTitlePreprocessor import SaveTitlePreprocessor
-from kordac.processors.GlossaryLinkPattern import GlossaryLinkPattern
-from kordac.processors.BeautifyPostprocessor import BeautifyPostprocessor
-from kordac.processors.StylePreprocessor import StylePreprocessor
-from kordac.processors.ConditionalProcessor import ConditionalProcessor
-from kordac.processors.RemovePostprocessor import RemovePostprocessor
-from kordac.processors.JinjaPostprocessor import JinjaPostprocessor
-from kordac.processors.HeadingBlockProcessor import HeadingBlockProcessor
-from kordac.processors.ScratchTreeprocessor import ScratchTreeprocessor
-from kordac.processors.ScratchCompatibilityPreprocessor import ScratchCompatibilityPreprocessor
-from kordac.processors.ScratchCompatibilityPreprocessor import FENCED_BLOCK_RE_OVERRIDE
-from kordac.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
-from kordac.processors.GenericContainerBlockProcessor import GenericContainerBlockProcessor
-
-from kordac.utils.UniqueSlugify import UniqueSlugify
-from kordac.utils.HeadingNode import HeadingNode
-from kordac.utils.overrides import is_block_level, BLOCK_LEVEL_ELEMENTS
+from verto.processors.CommentPreprocessor import CommentPreprocessor
+from verto.processors.VideoBlockProcessor import VideoBlockProcessor
+from verto.processors.ImageBlockProcessor import ImageBlockProcessor
+from verto.processors.InteractiveBlockProcessor import InteractiveBlockProcessor
+from verto.processors.RelativeLinkPattern import RelativeLinkPattern
+from verto.processors.RemoveTitlePreprocessor import RemoveTitlePreprocessor
+from verto.processors.SaveTitlePreprocessor import SaveTitlePreprocessor
+from verto.processors.GlossaryLinkPattern import GlossaryLinkPattern
+from verto.processors.BeautifyPostprocessor import BeautifyPostprocessor
+from verto.processors.ConditionalProcessor import ConditionalProcessor
+from verto.processors.StylePreprocessor import StylePreprocessor
+from verto.processors.RemovePostprocessor import RemovePostprocessor
+from verto.processors.JinjaPostprocessor import JinjaPostprocessor
+from verto.processors.HeadingBlockProcessor import HeadingBlockProcessor
+from verto.processors.ScratchTreeprocessor import ScratchTreeprocessor
+from verto.processors.ScratchCompatibilityPreprocessor import ScratchCompatibilityPreprocessor
+from verto.processors.ScratchCompatibilityPreprocessor import FENCED_BLOCK_RE_OVERRIDE
+from verto.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
+from verto.processors.GenericContainerBlockProcessor import GenericContainerBlockProcessor
+
+from verto.utils.UniqueSlugify import UniqueSlugify
+from verto.utils.HeadingNode import HeadingNode
+from verto.utils.overrides import is_block_level, BLOCK_LEVEL_ELEMENTS
from collections import defaultdict, OrderedDict
from os import listdir
@@ -34,10 +34,10 @@
from jinja2 import Environment, PackageLoader, select_autoescape
-class KordacExtension(Extension):
- '''The Kordac markdown extension which enables all the processors,
+class VertoExtension(Extension):
+ '''The Verto markdown extension which enables all the processors,
and extracts all the important information to expose externally to
- the Kordac converter.
+ the Verto converter.
'''
def __init__(self, processors=[], html_templates={}, extensions=[], *args, **kwargs):
@@ -135,7 +135,7 @@ def loadJinjaTemplates(self, custom_templates):
'''
templates = {}
env = Environment(
- loader=PackageLoader('kordac', 'html-templates'),
+ loader=PackageLoader('verto', 'html-templates'),
autoescape=select_autoescape(['html'])
)
for file in listdir(os.path.join(os.path.dirname(__file__), 'html-templates')):
diff --git a/kordac/__init__.py b/verto/__init__.py
similarity index 58%
rename from kordac/__init__.py
rename to verto/__init__.py
index 341e6af7..9adcccd2 100644
--- a/kordac/__init__.py
+++ b/verto/__init__.py
@@ -1,4 +1,4 @@
# flake8: noqa
-from .Kordac import Kordac
+from .Verto import Verto
__version__ = '0.3.1'
diff --git a/kordac/html-templates/boxed-text.html b/verto/html-templates/boxed-text.html
similarity index 100%
rename from kordac/html-templates/boxed-text.html
rename to verto/html-templates/boxed-text.html
diff --git a/kordac/html-templates/button-link.html b/verto/html-templates/button-link.html
similarity index 100%
rename from kordac/html-templates/button-link.html
rename to verto/html-templates/button-link.html
diff --git a/kordac/html-templates/conditional.html b/verto/html-templates/conditional.html
similarity index 100%
rename from kordac/html-templates/conditional.html
rename to verto/html-templates/conditional.html
diff --git a/kordac/html-templates/glossary-link.html b/verto/html-templates/glossary-link.html
similarity index 100%
rename from kordac/html-templates/glossary-link.html
rename to verto/html-templates/glossary-link.html
diff --git a/kordac/html-templates/heading.html b/verto/html-templates/heading.html
similarity index 100%
rename from kordac/html-templates/heading.html
rename to verto/html-templates/heading.html
diff --git a/kordac/html-templates/iframe.html b/verto/html-templates/iframe.html
similarity index 100%
rename from kordac/html-templates/iframe.html
rename to verto/html-templates/iframe.html
diff --git a/kordac/html-templates/image.html b/verto/html-templates/image.html
similarity index 100%
rename from kordac/html-templates/image.html
rename to verto/html-templates/image.html
diff --git a/kordac/html-templates/interactive.html b/verto/html-templates/interactive.html
similarity index 100%
rename from kordac/html-templates/interactive.html
rename to verto/html-templates/interactive.html
diff --git a/kordac/html-templates/panel.html b/verto/html-templates/panel.html
similarity index 100%
rename from kordac/html-templates/panel.html
rename to verto/html-templates/panel.html
diff --git a/kordac/html-templates/relative-file-link.html b/verto/html-templates/relative-file-link.html
similarity index 100%
rename from kordac/html-templates/relative-file-link.html
rename to verto/html-templates/relative-file-link.html
diff --git a/kordac/html-templates/relative-link.html b/verto/html-templates/relative-link.html
similarity index 100%
rename from kordac/html-templates/relative-link.html
rename to verto/html-templates/relative-link.html
diff --git a/kordac/html-templates/scratch.html b/verto/html-templates/scratch.html
similarity index 100%
rename from kordac/html-templates/scratch.html
rename to verto/html-templates/scratch.html
diff --git a/kordac/html-templates/table-of-contents.html b/verto/html-templates/table-of-contents.html
similarity index 100%
rename from kordac/html-templates/table-of-contents.html
rename to verto/html-templates/table-of-contents.html
diff --git a/kordac/html-templates/video-vimeo.html b/verto/html-templates/video-vimeo.html
similarity index 100%
rename from kordac/html-templates/video-vimeo.html
rename to verto/html-templates/video-vimeo.html
diff --git a/kordac/html-templates/video-youtube.html b/verto/html-templates/video-youtube.html
similarity index 100%
rename from kordac/html-templates/video-youtube.html
rename to verto/html-templates/video-youtube.html
diff --git a/kordac/html-templates/video.html b/verto/html-templates/video.html
similarity index 100%
rename from kordac/html-templates/video.html
rename to verto/html-templates/video.html
diff --git a/verto/images/verto-logo.png b/verto/images/verto-logo.png
new file mode 100644
index 00000000..a3eb2047
Binary files /dev/null and b/verto/images/verto-logo.png differ
diff --git a/kordac/processor-info.json b/verto/processor-info.json
similarity index 100%
rename from kordac/processor-info.json
rename to verto/processor-info.json
diff --git a/kordac/processors/BeautifyPostprocessor.py b/verto/processors/BeautifyPostprocessor.py
similarity index 100%
rename from kordac/processors/BeautifyPostprocessor.py
rename to verto/processors/BeautifyPostprocessor.py
diff --git a/kordac/processors/CommentPreprocessor.py b/verto/processors/CommentPreprocessor.py
similarity index 100%
rename from kordac/processors/CommentPreprocessor.py
rename to verto/processors/CommentPreprocessor.py
diff --git a/kordac/processors/ConditionalProcessor.py b/verto/processors/ConditionalProcessor.py
similarity index 97%
rename from kordac/processors/ConditionalProcessor.py
rename to verto/processors/ConditionalProcessor.py
index caef9c46..de966efb 100644
--- a/kordac/processors/ConditionalProcessor.py
+++ b/verto/processors/ConditionalProcessor.py
@@ -1,6 +1,6 @@
from markdown.blockprocessors import BlockProcessor
-from kordac.processors.errors.TagNotMatchedError import TagNotMatchedError
-from kordac.processors.utils import etree, parse_arguments, parse_flag, blocks_to_string
+from verto.processors.errors.TagNotMatchedError import TagNotMatchedError
+from verto.processors.utils import etree, parse_arguments, parse_flag, blocks_to_string
from collections import OrderedDict
import re
@@ -15,7 +15,7 @@ class ConditionalProcessor(BlockProcessor):
def __init__(self, ext, *args, **kwargs):
'''
Args:
- ext: An instance of the KordacExtension.
+ ext: An instance of the VertoExtension.
'''
super().__init__(*args, **kwargs)
self.processor = 'conditional'
diff --git a/kordac/processors/GenericContainerBlockProcessor.py b/verto/processors/GenericContainerBlockProcessor.py
similarity index 93%
rename from kordac/processors/GenericContainerBlockProcessor.py
rename to verto/processors/GenericContainerBlockProcessor.py
index 026bf772..8c718b25 100644
--- a/kordac/processors/GenericContainerBlockProcessor.py
+++ b/verto/processors/GenericContainerBlockProcessor.py
@@ -1,7 +1,7 @@
from markdown.blockprocessors import BlockProcessor
-from kordac.processors.errors.TagNotMatchedError import TagNotMatchedError
-from kordac.processors.errors.ArgumentValueError import ArgumentValueError
-from kordac.processors.utils import etree, parse_arguments, process_parameters, blocks_to_string
+from verto.processors.errors.TagNotMatchedError import TagNotMatchedError
+from verto.processors.errors.ArgumentValueError import ArgumentValueError
+from verto.processors.utils import etree, parse_arguments, process_parameters, blocks_to_string
import re
@@ -9,7 +9,7 @@ class GenericContainerBlockProcessor(BlockProcessor):
def __init__(self, processor, ext, *args, **kwargs):
'''
Args:
- ext: An instance of the Kordac Extension.
+ ext: An instance of the Verto Extension.
'''
super().__init__(*args, **kwargs)
self.processor = processor
diff --git a/kordac/processors/GenericTagBlockProcessor.py b/verto/processors/GenericTagBlockProcessor.py
similarity index 94%
rename from kordac/processors/GenericTagBlockProcessor.py
rename to verto/processors/GenericTagBlockProcessor.py
index 1414be08..c8a9aeb1 100644
--- a/kordac/processors/GenericTagBlockProcessor.py
+++ b/verto/processors/GenericTagBlockProcessor.py
@@ -1,5 +1,5 @@
from markdown.blockprocessors import BlockProcessor
-from kordac.processors.utils import etree, parse_arguments, process_parameters
+from verto.processors.utils import etree, parse_arguments, process_parameters
import re
@@ -10,7 +10,7 @@ class GenericTagBlockProcessor(BlockProcessor):
def __init__(self, processor, ext, *args, **kwargs):
'''
Args:
- ext: An instance of the Kordac Extension.
+ ext: An instance of the Verto Extension.
'''
super().__init__(*args, **kwargs)
self.processor = processor
diff --git a/kordac/processors/GlossaryLinkPattern.py b/verto/processors/GlossaryLinkPattern.py
similarity index 97%
rename from kordac/processors/GlossaryLinkPattern.py
rename to verto/processors/GlossaryLinkPattern.py
index d3677ee6..0c94dff7 100644
--- a/kordac/processors/GlossaryLinkPattern.py
+++ b/verto/processors/GlossaryLinkPattern.py
@@ -1,5 +1,5 @@
from markdown.inlinepatterns import Pattern
-from kordac.processors.utils import etree, parse_arguments
+from verto.processors.utils import etree, parse_arguments
import re
diff --git a/kordac/processors/HeadingBlockProcessor.py b/verto/processors/HeadingBlockProcessor.py
similarity index 97%
rename from kordac/processors/HeadingBlockProcessor.py
rename to verto/processors/HeadingBlockProcessor.py
index fa09f8a3..9be1fad4 100644
--- a/kordac/processors/HeadingBlockProcessor.py
+++ b/verto/processors/HeadingBlockProcessor.py
@@ -1,6 +1,6 @@
from markdown.blockprocessors import BlockProcessor
from markdown.util import etree
-from kordac.utils.HeadingNode import DynamicHeadingNode
+from verto.utils.HeadingNode import DynamicHeadingNode
import re
@@ -13,7 +13,7 @@ class HeadingBlockProcessor(BlockProcessor):
def __init__(self, ext, *args, **kwargs):
'''
Args:
- ext: The KordacExtension object.
+ ext: The VertoExtension object.
'''
super().__init__(*args, **kwargs)
self.processor = 'heading'
@@ -42,7 +42,7 @@ def test(self, parent, block):
def run(self, parent, blocks):
''' Processes the block matching the heading and adding to the
- html tree and the kordac heading tree.
+ html tree and the verto heading tree.
Args:
parent: The parent node of the element tree that children
diff --git a/kordac/processors/ImageBlockProcessor.py b/verto/processors/ImageBlockProcessor.py
similarity index 91%
rename from kordac/processors/ImageBlockProcessor.py
rename to verto/processors/ImageBlockProcessor.py
index 5d5237ca..e4a3fef4 100644
--- a/kordac/processors/ImageBlockProcessor.py
+++ b/verto/processors/ImageBlockProcessor.py
@@ -1,11 +1,11 @@
-from kordac.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
-from kordac.processors.utils import etree, parse_arguments
+from verto.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
+from verto.processors.utils import etree, parse_arguments
import re
class ImageBlockProcessor(GenericTagBlockProcessor):
''' Searches a Document for image tags e.g. {image file-path=""}
- adding any internal images to the kordac extension final result.
+ adding any internal images to the verto extension final result.
'''
def __init__(self, ext, *args, **kwargs):
@@ -33,7 +33,7 @@ def test(self, parent, block):
def run(self, parent, blocks):
''' Processes the block matching the image pattern, adding
- any internal images to the KordacExtension result.
+ any internal images to the VertoExtension result.
Args:
parent: The parent node of the element tree that children
diff --git a/kordac/processors/InteractiveBlockProcessor.py b/verto/processors/InteractiveBlockProcessor.py
similarity index 92%
rename from kordac/processors/InteractiveBlockProcessor.py
rename to verto/processors/InteractiveBlockProcessor.py
index 6cc4d682..fb0fd5c5 100644
--- a/kordac/processors/InteractiveBlockProcessor.py
+++ b/verto/processors/InteractiveBlockProcessor.py
@@ -1,5 +1,5 @@
-from kordac.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
-from kordac.processors.utils import etree, parse_arguments
+from verto.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
+from verto.processors.utils import etree, parse_arguments
import re
@@ -12,7 +12,7 @@ class InteractiveBlockProcessor(GenericTagBlockProcessor):
def __init__(self, ext, *args, **kwargs):
'''
Args:
- ext: An instance of the Kordac Extension.
+ ext: An instance of the Verto Extension.
'''
super().__init__('interactive', ext, *args, **kwargs)
self.relative_file_template = ext.jinja_templates['relative-file-link']
@@ -34,7 +34,7 @@ def test(self, parent, block):
def run(self, parent, blocks):
''' Processes the block matching the heading and adding to the
- html tree and the kordac heading tree.
+ html tree and the verto heading tree.
Args:
parent: The parent node of the element tree that children
diff --git a/kordac/processors/JinjaPostprocessor.py b/verto/processors/JinjaPostprocessor.py
similarity index 100%
rename from kordac/processors/JinjaPostprocessor.py
rename to verto/processors/JinjaPostprocessor.py
diff --git a/kordac/processors/RelativeLinkPattern.py b/verto/processors/RelativeLinkPattern.py
similarity index 100%
rename from kordac/processors/RelativeLinkPattern.py
rename to verto/processors/RelativeLinkPattern.py
diff --git a/kordac/processors/RemovePostprocessor.py b/verto/processors/RemovePostprocessor.py
similarity index 100%
rename from kordac/processors/RemovePostprocessor.py
rename to verto/processors/RemovePostprocessor.py
diff --git a/kordac/processors/RemoveTitlePreprocessor.py b/verto/processors/RemoveTitlePreprocessor.py
similarity index 95%
rename from kordac/processors/RemoveTitlePreprocessor.py
rename to verto/processors/RemoveTitlePreprocessor.py
index 8f7ac9e0..1cb3e0d8 100644
--- a/kordac/processors/RemoveTitlePreprocessor.py
+++ b/verto/processors/RemoveTitlePreprocessor.py
@@ -9,7 +9,7 @@ class RemoveTitlePreprocessor(Preprocessor):
def __init__(self, ext, *args, **kwargs):
'''
Args:
- ext: An instance of the KordacExtension.
+ ext: An instance of the VertoExtension.
'''
super().__init__(*args, **kwargs)
self.ext = ext
diff --git a/kordac/processors/SaveTitlePreprocessor.py b/verto/processors/SaveTitlePreprocessor.py
similarity index 87%
rename from kordac/processors/SaveTitlePreprocessor.py
rename to verto/processors/SaveTitlePreprocessor.py
index 789e8db2..2f52fd0d 100644
--- a/kordac/processors/SaveTitlePreprocessor.py
+++ b/verto/processors/SaveTitlePreprocessor.py
@@ -4,13 +4,13 @@
class SaveTitlePreprocessor(Preprocessor):
''' Saves the first title found in the document to
- the KordacExtension as part of the final result.
+ the VertoExtension as part of the final result.
'''
def __init__(self, ext, *args, **kwargs):
'''
Args:
- ext: An instance of the KordacExtension.
+ ext: An instance of the VertoExtension.
'''
super().__init__(*args, **kwargs)
self.ext = ext
@@ -29,7 +29,7 @@ def test(self, lines):
def run(self, lines):
''' Finds the first title and saves it to the
- KordacExtension for the final result.
+ VertoExtension for the final result.
Args:
lines: A list of strings that form the document.
diff --git a/kordac/processors/ScratchCompatibilityPreprocessor.py b/verto/processors/ScratchCompatibilityPreprocessor.py
similarity index 97%
rename from kordac/processors/ScratchCompatibilityPreprocessor.py
rename to verto/processors/ScratchCompatibilityPreprocessor.py
index 597946f2..5c4de230 100644
--- a/kordac/processors/ScratchCompatibilityPreprocessor.py
+++ b/verto/processors/ScratchCompatibilityPreprocessor.py
@@ -23,7 +23,7 @@ class ScratchCompatibilityPreprocessor(Preprocessor):
def __init__(self, ext, *args, **kwargs):
'''
Args:
- ext: An instance of the Kordac Extension.
+ ext: An instance of the Verto Extension.
'''
super().__init__(*args, **kwargs)
self.processor = 'scratch-compatibility'
diff --git a/kordac/processors/ScratchTreeprocessor.py b/verto/processors/ScratchTreeprocessor.py
similarity index 96%
rename from kordac/processors/ScratchTreeprocessor.py
rename to verto/processors/ScratchTreeprocessor.py
index 63a98c2c..f5024342 100644
--- a/kordac/processors/ScratchTreeprocessor.py
+++ b/verto/processors/ScratchTreeprocessor.py
@@ -1,5 +1,5 @@
from markdown.treeprocessors import Treeprocessor
-from kordac.processors.utils import etree
+from verto.processors.utils import etree
from collections import namedtuple
from functools import reduce
from hashlib import sha256
@@ -18,7 +18,7 @@ class ScratchImageMetaData(namedtuple('ScratchImageMetaData', 'hash, text')):
class ScratchTreeprocessor(Treeprocessor):
''' Searches a Document for codeblocks with the scratch language.
- These are then processed into the kordac result and hashed for
+ These are then processed into the verto result and hashed for
another program in the pipeline to retrieve or create into images.
'''
@@ -111,7 +111,7 @@ def hash_content(text):
return sha256(text.encode('utf8')).hexdigest()
def update_required_images(self, content_hash, text):
- '''Adds the scratch code and hash to the kordac result.
+ '''Adds the scratch code and hash to the verto result.
Args:
content_hash: The image hash.
diff --git a/kordac/processors/StylePreprocessor.py b/verto/processors/StylePreprocessor.py
similarity index 95%
rename from kordac/processors/StylePreprocessor.py
rename to verto/processors/StylePreprocessor.py
index ed9c505d..29899227 100644
--- a/kordac/processors/StylePreprocessor.py
+++ b/verto/processors/StylePreprocessor.py
@@ -1,4 +1,4 @@
-from kordac.processors.errors.StyleError import StyleError
+from verto.processors.errors.StyleError import StyleError
from markdown.preprocessors import Preprocessor
import re
@@ -15,7 +15,7 @@ class StylePreprocessor(Preprocessor):
def __init__(self, ext, *args, **kwargs):
'''
Args:
- ext: An instance of the Kordac Extension
+ ext: An instance of the Verto Extension
'''
super().__init__(*args, **kwargs)
self.processor = 'style'
diff --git a/kordac/processors/VideoBlockProcessor.py b/verto/processors/VideoBlockProcessor.py
similarity index 90%
rename from kordac/processors/VideoBlockProcessor.py
rename to verto/processors/VideoBlockProcessor.py
index 151e39a9..2cabe09c 100644
--- a/kordac/processors/VideoBlockProcessor.py
+++ b/verto/processors/VideoBlockProcessor.py
@@ -1,7 +1,7 @@
-from kordac.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
-from kordac.processors.errors.NoVideoIdentifierError import NoVideoIdentifierError
-from kordac.processors.errors.UnsupportedVideoPlayerError import UnsupportedVideoPlayerError
-from kordac.processors.utils import etree, parse_arguments
+from verto.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
+from verto.processors.errors.NoVideoIdentifierError import NoVideoIdentifierError
+from verto.processors.errors.UnsupportedVideoPlayerError import UnsupportedVideoPlayerError
+from verto.processors.utils import etree, parse_arguments
import re
@@ -13,7 +13,7 @@ class VideoBlockProcessor(GenericTagBlockProcessor):
def __init__(self, ext, *args, **kwargs):
'''
Args:
- ext: An instance of the Kordac Extension.
+ ext: An instance of the Verto Extension.
'''
super().__init__('video', ext, *args, **kwargs)
self.pattern = re.compile(ext.processor_info[self.processor]['pattern'])
diff --git a/kordac/processors/__init__.py b/verto/processors/__init__.py
similarity index 100%
rename from kordac/processors/__init__.py
rename to verto/processors/__init__.py
diff --git a/kordac/processors/errors/ArgumentMissingError.py b/verto/processors/errors/ArgumentMissingError.py
similarity index 90%
rename from kordac/processors/errors/ArgumentMissingError.py
rename to verto/processors/errors/ArgumentMissingError.py
index 11c62c04..26b57d73 100644
--- a/kordac/processors/errors/ArgumentMissingError.py
+++ b/verto/processors/errors/ArgumentMissingError.py
@@ -1,4 +1,4 @@
-from kordac.processors.errors.Error import Error
+from verto.processors.errors.Error import Error
class ArgumentMissingError(Error):
diff --git a/kordac/processors/errors/ArgumentValueError.py b/verto/processors/errors/ArgumentValueError.py
similarity index 91%
rename from kordac/processors/errors/ArgumentValueError.py
rename to verto/processors/errors/ArgumentValueError.py
index 0eee6994..e976eb60 100644
--- a/kordac/processors/errors/ArgumentValueError.py
+++ b/verto/processors/errors/ArgumentValueError.py
@@ -1,4 +1,4 @@
-from kordac.processors.errors.Error import Error
+from verto.processors.errors.Error import Error
class ArgumentValueError(Error):
diff --git a/kordac/processors/errors/Error.py b/verto/processors/errors/Error.py
similarity index 100%
rename from kordac/processors/errors/Error.py
rename to verto/processors/errors/Error.py
diff --git a/kordac/processors/errors/NoSourceLinkError.py b/verto/processors/errors/NoSourceLinkError.py
similarity index 89%
rename from kordac/processors/errors/NoSourceLinkError.py
rename to verto/processors/errors/NoSourceLinkError.py
index a74021d9..e2c1106f 100644
--- a/kordac/processors/errors/NoSourceLinkError.py
+++ b/verto/processors/errors/NoSourceLinkError.py
@@ -1,4 +1,4 @@
-from kordac.processors.errors.Error import Error
+from verto.processors.errors.Error import Error
class NoSourceLinkError(Error):
diff --git a/kordac/processors/errors/NoVideoIdentifierError.py b/verto/processors/errors/NoVideoIdentifierError.py
similarity index 89%
rename from kordac/processors/errors/NoVideoIdentifierError.py
rename to verto/processors/errors/NoVideoIdentifierError.py
index 2b1d0fc0..7fd73a65 100644
--- a/kordac/processors/errors/NoVideoIdentifierError.py
+++ b/verto/processors/errors/NoVideoIdentifierError.py
@@ -1,4 +1,4 @@
-from kordac.processors.errors.Error import Error
+from verto.processors.errors.Error import Error
class NoVideoIdentifierError(Error):
diff --git a/kordac/processors/errors/StyleError.py b/verto/processors/errors/StyleError.py
similarity index 89%
rename from kordac/processors/errors/StyleError.py
rename to verto/processors/errors/StyleError.py
index ca0443ed..75f1e48a 100644
--- a/kordac/processors/errors/StyleError.py
+++ b/verto/processors/errors/StyleError.py
@@ -1,4 +1,4 @@
-from kordac.processors.errors.Error import Error
+from verto.processors.errors.Error import Error
class StyleError(Error):
diff --git a/kordac/processors/errors/TagNotMatchedError.py b/verto/processors/errors/TagNotMatchedError.py
similarity index 89%
rename from kordac/processors/errors/TagNotMatchedError.py
rename to verto/processors/errors/TagNotMatchedError.py
index 86d5f8fd..b3b44f54 100644
--- a/kordac/processors/errors/TagNotMatchedError.py
+++ b/verto/processors/errors/TagNotMatchedError.py
@@ -1,4 +1,4 @@
-from kordac.processors.errors.Error import Error
+from verto.processors.errors.Error import Error
class TagNotMatchedError(Error):
diff --git a/kordac/processors/errors/UnsupportedVideoPlayerError.py b/verto/processors/errors/UnsupportedVideoPlayerError.py
similarity index 89%
rename from kordac/processors/errors/UnsupportedVideoPlayerError.py
rename to verto/processors/errors/UnsupportedVideoPlayerError.py
index dd3bc4b3..bd6982e7 100644
--- a/kordac/processors/errors/UnsupportedVideoPlayerError.py
+++ b/verto/processors/errors/UnsupportedVideoPlayerError.py
@@ -1,4 +1,4 @@
-from kordac.processors.errors.Error import Error
+from verto.processors.errors.Error import Error
class UnsupportedVideoPlayerError(Error):
diff --git a/kordac/processors/errors/__init__.py b/verto/processors/errors/__init__.py
similarity index 100%
rename from kordac/processors/errors/__init__.py
rename to verto/processors/errors/__init__.py
diff --git a/kordac/processors/utils.py b/verto/processors/utils.py
similarity index 97%
rename from kordac/processors/utils.py
rename to verto/processors/utils.py
index 623957fd..77b4a787 100644
--- a/kordac/processors/utils.py
+++ b/verto/processors/utils.py
@@ -1,8 +1,8 @@
import re
from markdown.util import etree # noqa: F401
from collections import OrderedDict, defaultdict
-from kordac.processors.errors.ArgumentMissingError import ArgumentMissingError
-from kordac.processors.errors.ArgumentValueError import ArgumentValueError
+from verto.processors.errors.ArgumentMissingError import ArgumentMissingError
+from verto.processors.errors.ArgumentValueError import ArgumentValueError
def parse_argument(argument_key, arguments, default=None):
diff --git a/kordac/tests/BaseTest.py b/verto/tests/BaseTest.py
similarity index 92%
rename from kordac/tests/BaseTest.py
rename to verto/tests/BaseTest.py
index 3b86c599..94faa13c 100644
--- a/kordac/tests/BaseTest.py
+++ b/verto/tests/BaseTest.py
@@ -11,7 +11,7 @@ def __init__(self, *args, **kwargs):
test failures.
'''
unittest.TestCase.__init__(self, *args, **kwargs)
- self.test_file_path = 'kordac/tests/assets/{test_type}/{filename}'
+ self.test_file_path = 'verto/tests/assets/{test_type}/{filename}'
self.maxDiff = None
def read_test_file(self, test_type, filename, strip=False):
diff --git a/kordac/tests/BeautifyTest.py b/verto/tests/BeautifyTest.py
similarity index 84%
rename from kordac/tests/BeautifyTest.py
rename to verto/tests/BeautifyTest.py
index 699a1d59..39bb579c 100644
--- a/kordac/tests/BeautifyTest.py
+++ b/verto/tests/BeautifyTest.py
@@ -1,9 +1,9 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.CommentPreprocessor import CommentPreprocessor
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.CommentPreprocessor import CommentPreprocessor
+from verto.tests.ProcessorTest import ProcessorTest
class BeautifyTest(ProcessorTest):
'''The major concern with beautifying is that preformatted tags and
@@ -21,7 +21,7 @@ def test_example_inline_code(self):
'''
test_string = self.read_test_file(self.processor_name, 'example_inline_code.md')
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_inline_code_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -30,7 +30,7 @@ def test_example_preformatted_code(self):
'''
test_string = self.read_test_file(self.processor_name, 'example_preformatted_code.md')
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_preformatted_code_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -38,10 +38,10 @@ def test_example_preformatted_code_with_extension(self):
'''Tests to ensure that the fenced_code extension does not
change output to retain compatibility.
'''
- kordac_extension = KordacExtension([self.processor_name], {}, ['markdown.extensions.fenced_code'])
+ verto_extension = VertoExtension([self.processor_name], {}, ['markdown.extensions.fenced_code'])
test_string = self.read_test_file(self.processor_name, 'example_preformatted_code_with_extension.md')
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension, 'markdown.extensions.fenced_code'])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension, 'markdown.extensions.fenced_code'])
expected_string = self.read_test_file(self.processor_name, 'example_preformatted_code_with_extension_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -51,6 +51,6 @@ def text_example_mixed_code_types(self):
'''
test_string = self.read_test_file(self.processor_name, 'example_mixed_code_types.md')
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_mixed_code_types_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/BoxedTextTest.py b/verto/tests/BoxedTextTest.py
similarity index 91%
rename from kordac/tests/BoxedTextTest.py
rename to verto/tests/BoxedTextTest.py
index 226eb66d..b59a16ca 100644
--- a/kordac/tests/BoxedTextTest.py
+++ b/verto/tests/BoxedTextTest.py
@@ -1,9 +1,9 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.GenericContainerBlockProcessor import GenericContainerBlockProcessor
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.GenericContainerBlockProcessor import GenericContainerBlockProcessor
+from verto.tests.ProcessorTest import ProcessorTest
class BoxedTextTest(ProcessorTest):
@@ -32,7 +32,7 @@ def test_no_boxed_text(self):
self.assertListEqual([False, False, False, False], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'no_boxed_text_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -45,7 +45,7 @@ def test_single_boxed_text(self):
self.assertListEqual([True, False, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'single_boxed_text_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -57,7 +57,7 @@ def test_indented_boxed_text(self):
self.assertListEqual([True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'indented_boxed_text_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -70,7 +70,7 @@ def test_multiple_boxed_text(self):
self.assertListEqual([True, False, True, False, True, False, True, False], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_boxed_text_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -84,7 +84,7 @@ def test_recursive_boxed_text(self):
self.assertListEqual([True, False, True, False, True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'recursive_boxed_text_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -101,7 +101,7 @@ def test_doc_example_basic(self):
self.assertListEqual([True, False, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -115,8 +115,8 @@ def test_doc_example_override_html(self):
self.assertListEqual([True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/ButtonLinkTest.py b/verto/tests/ButtonLinkTest.py
similarity index 91%
rename from kordac/tests/ButtonLinkTest.py
rename to verto/tests/ButtonLinkTest.py
index 5bd8ebf2..0cf0af8f 100644
--- a/kordac/tests/ButtonLinkTest.py
+++ b/verto/tests/ButtonLinkTest.py
@@ -1,9 +1,9 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
+from verto.tests.ProcessorTest import ProcessorTest
class ButtonLinkTest(ProcessorTest):
@@ -31,7 +31,7 @@ def test_no_button(self):
blocks = self.to_blocks(test_string)
self.assertListEqual([False] * 7, [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'no_button_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -44,7 +44,7 @@ def test_contains_button(self):
self.assertListEqual([False, True, False], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_button_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -56,7 +56,7 @@ def test_contains_missing_button(self):
self.assertListEqual([False, False, False], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'missing_end_brace_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -68,7 +68,7 @@ def test_contains_multiple_buttons(self):
self.assertListEqual([False, True, False, False, True, False, False, True, False, False , True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_multiple_buttons_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -82,7 +82,7 @@ def test_contains_file_link_button(self):
self.assertListEqual([False, True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_file_link_button_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -100,7 +100,7 @@ def test_doc_example_basic(self):
self.assertListEqual([True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -113,7 +113,7 @@ def test_doc_example_file(self):
self.assertListEqual([True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_file_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -127,8 +127,8 @@ def test_doc_example_override_html(self):
self.assertListEqual([True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/CommentTest.py b/verto/tests/CommentTest.py
similarity index 91%
rename from kordac/tests/CommentTest.py
rename to verto/tests/CommentTest.py
index 04141066..54a93db5 100644
--- a/kordac/tests/CommentTest.py
+++ b/verto/tests/CommentTest.py
@@ -1,9 +1,9 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.CommentPreprocessor import CommentPreprocessor
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.CommentPreprocessor import CommentPreprocessor
+from verto.tests.ProcessorTest import ProcessorTest
class CommentTest(ProcessorTest):
'''This test class checks to ensure that comments are removed
@@ -26,7 +26,7 @@ def test_no_inline_comment(self):
self.assertFalse(CommentPreprocessor(self.ext, self.md.parser).test(test_string), msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'no_inline_comment_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -37,7 +37,7 @@ def test_text_contains_the_word_comment(self):
self.assertFalse(CommentPreprocessor(self.ext, self.md.parser).test(test_string), msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'text_contains_the_word_comment_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -48,7 +48,7 @@ def tests_contains_inline_comment(self):
self.assertTrue(CommentPreprocessor(self.ext, self.md.parser).test(test_string), msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_inline_comment_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -59,7 +59,7 @@ def test_contains_multiple_inline_comments(self):
self.assertTrue(CommentPreprocessor(self.ext, self.md.parser).test(test_string), msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_multiple_inline_comments_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -74,19 +74,19 @@ def test_comment_contains_comment(self):
self.assertFalse(CommentPreprocessor(self.ext, self.md.parser).test(test_string), msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'comment_contains_comment_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
def test_comment_within_block_container(self):
'''Tests that comments are removed from containers.
'''
- kordac_extension = KordacExtension([self.processor_name, 'panel'], {})
+ verto_extension = VertoExtension([self.processor_name, 'panel'], {})
test_string = self.read_test_file(self.processor_name, 'comment_within_block_container.md')
self.assertTrue(CommentPreprocessor(self.ext, self.md.parser).test(test_string), msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'comment_within_block_container_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -101,7 +101,7 @@ def test_doc_example_basic(self):
self.assertTrue(CommentPreprocessor(self.ext, self.md.parser).test(test_string), msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -112,6 +112,6 @@ def test_doc_example_multiple(self):
self.assertTrue(CommentPreprocessor(self.ext, self.md.parser).test(test_string), msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_multiple_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/ConditionalTest.py b/verto/tests/ConditionalTest.py
similarity index 88%
rename from kordac/tests/ConditionalTest.py
rename to verto/tests/ConditionalTest.py
index b0829c47..554ecc56 100644
--- a/kordac/tests/ConditionalTest.py
+++ b/verto/tests/ConditionalTest.py
@@ -1,10 +1,10 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.ConditionalProcessor import ConditionalProcessor
-from kordac.processors.errors.TagNotMatchedError import TagNotMatchedError
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.ConditionalProcessor import ConditionalProcessor
+from verto.processors.errors.TagNotMatchedError import TagNotMatchedError
+from verto.tests.ProcessorTest import ProcessorTest
class ConditionalTest(ProcessorTest):
@@ -29,7 +29,7 @@ def test_example_basic_else(self):
self.assertListEqual([True, False, True, False, True], [ConditionalProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_basic_else_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -43,9 +43,9 @@ def test_example_elif_no_else(self):
self.assertListEqual([True, False, True, False, True, False, True], [ConditionalProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'example_elif_no_else_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_elif_no_else_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -58,7 +58,7 @@ def test_example_single_elif(self):
self.assertListEqual([True, False, True, False, True], [ConditionalProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_single_elif_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -71,7 +71,7 @@ def test_multiple_else_error(self):
self.assertListEqual([True, False, True, False, True, False, True], [ConditionalProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
def test_else_then_elif_error(self):
'''Ensures that the TagNotMatchedError is thrown when
@@ -82,7 +82,7 @@ def test_else_then_elif_error(self):
self.assertListEqual([True, False, True, False, True, False, True], [ConditionalProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
def test_missing_end_statement_error(self):
'''Ensures that the TagNotMatchedError is thrown
@@ -93,7 +93,7 @@ def test_missing_end_statement_error(self):
self.assertListEqual([True, False, True, False, True, False], [ConditionalProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
def test_missing_if_statement_error(self):
'''Ensures that the TagNotMatchedError is thrown
@@ -104,7 +104,7 @@ def test_missing_if_statement_error(self):
self.assertListEqual([True, False, True], [ConditionalProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
#~
# Doc Tests
@@ -118,7 +118,7 @@ def test_doc_example_basic(self):
self.assertListEqual([True, False, True], [ConditionalProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -131,7 +131,7 @@ def test_doc_example_complex(self):
self.assertListEqual([True, False, True, False, True, False, True, False, True], [ConditionalProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_complex_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -145,8 +145,8 @@ def test_doc_example_override_html(self):
self.assertListEqual([True, False, True, False, True, False, True], [ConditionalProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/ConfigurationTest.py b/verto/tests/ConfigurationTest.py
similarity index 78%
rename from kordac/tests/ConfigurationTest.py
rename to verto/tests/ConfigurationTest.py
index 6b4cb4a5..8d26a457 100644
--- a/kordac/tests/ConfigurationTest.py
+++ b/verto/tests/ConfigurationTest.py
@@ -1,15 +1,15 @@
import unittest
-from kordac.Kordac import Kordac, KordacResult
-from kordac.processors.ScratchTreeprocessor import ScratchImageMetaData
-from kordac.utils.HeadingNode import HeadingNode
+from verto.Verto import Verto, VertoResult
+from verto.processors.ScratchTreeprocessor import ScratchImageMetaData
+from verto.utils.HeadingNode import HeadingNode
import jinja2
-from kordac.tests.BaseTest import BaseTest
+from verto.tests.BaseTest import BaseTest
from collections import defaultdict
class ConfigurationTest(BaseTest):
- '''Test configuration methods of Kordac
+ '''Test configuration methods of Verto
- These are not true unit tests, as they create the complete Kordac
+ These are not true unit tests, as they create the complete Verto
system, however we are using the unittest framework for ease of
use and simplicity of our testing suite.
'''
@@ -30,12 +30,12 @@ def __init__(self, *args, **kwargs):
}
def test_multiple_calls(self):
- '''Checks all fields of KordacResult are correct for multiple
- Kordac calls.
+ '''Checks all fields of VertoResult are correct for multiple
+ Verto calls.
'''
test_cases = [
('all_processors.md',
- KordacResult(
+ VertoResult(
html_string=self.read_test_file(self.test_name, 'all_processors_expected.html', strip=True),
title='Example Title',
required_files={
@@ -68,7 +68,7 @@ def test_multiple_calls(self):
)
),
('some_processors.md',
- KordacResult(
+ VertoResult(
html_string=self.read_test_file(self.test_name, 'some_processors_expected.html', strip=True),
title='Another Example Title',
required_files={
@@ -95,7 +95,7 @@ def test_multiple_calls(self):
)
),
('some_processors_2.md',
- KordacResult(
+ VertoResult(
html_string=self.read_test_file(self.test_name, 'some_processors_2_expected.html', strip=True),
title='Another Example Title',
required_files={
@@ -127,36 +127,36 @@ def test_multiple_calls(self):
]
for test in test_cases:
- kordac = Kordac()
+ verto = Verto()
test_string = self.read_test_file(self.test_name, test[0])
- kordac_result = kordac.convert(test_string)
+ verto_result = verto.convert(test_string)
- self.assertEqual(kordac_result.title, test[1].title)
- self.assertEqual(kordac_result.required_files, test[1].required_files)
- self.assertTupleEqual(kordac_result.heading_tree, test[1].heading_tree)
- self.assertDictEqual(kordac_result.required_glossary_terms, test[1].required_glossary_terms)
+ self.assertEqual(verto_result.title, test[1].title)
+ self.assertEqual(verto_result.required_files, test[1].required_files)
+ self.assertTupleEqual(verto_result.heading_tree, test[1].heading_tree)
+ self.assertDictEqual(verto_result.required_glossary_terms, test[1].required_glossary_terms)
def test_custom_processors_and_custom_templates_on_creation(self):
'''Checks if custom processors and custom templates work
- together on creation of kordac.
+ together on creation of verto.
'''
processors = {'image', 'boxed-text'}
- kordac = Kordac(processors=processors, html_templates=self.custom_templates)
+ verto = Verto(processors=processors, html_templates=self.custom_templates)
test_string = self.read_test_file(self.test_name, 'all_processors.md')
- converted_test_string = kordac.convert(test_string).html_string
+ converted_test_string = verto.convert(test_string).html_string
expected_string = self.read_test_file(self.test_name, 'custom_processors_custom_templates_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
def test_custom_processors_and_custom_templates_after_creation(self):
'''Checks if custom processors and custom templates work
- together after creation of kordac.
+ together after creation of verto.
'''
processors = {'image', 'boxed-text'}
- kordac = Kordac()
- kordac.update_processors(processors)
- kordac.update_templates(self.custom_templates)
+ verto = Verto()
+ verto.update_processors(processors)
+ verto.update_templates(self.custom_templates)
test_string = self.read_test_file(self.test_name, 'all_processors.md')
- converted_test_string = kordac.convert(test_string).html_string
+ converted_test_string = verto.convert(test_string).html_string
expected_string = self.read_test_file(self.test_name, 'custom_processors_custom_templates_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -164,9 +164,9 @@ def test_default_processors_on_creation(self):
'''Checks if all expected default processors work on default
creation.
'''
- kordac = Kordac()
+ verto = Verto()
test_string = self.read_test_file(self.test_name, 'all_processors.md')
- converted_test_string = kordac.convert(test_string).html_string
+ converted_test_string = verto.convert(test_string).html_string
expected_string = self.read_test_file(self.test_name, 'all_processors_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -174,25 +174,25 @@ def test_custom_processors_on_creation(self):
'''Checks if system only uses specified processors.
'''
processors = {'panel', 'image'}
- kordac = Kordac(processors=processors)
+ verto = Verto(processors=processors)
test_string = self.read_test_file(self.test_name, 'all_processors.md')
- converted_test_string = kordac.convert(test_string).html_string
+ converted_test_string = verto.convert(test_string).html_string
expected_string = self.read_test_file(self.test_name, 'custom_processors_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
def test_custom_processors_after_creation(self):
'''Checks if extension correct changes processors.
'''
- kordac = Kordac()
- processors = Kordac.processor_defaults()
+ verto = Verto()
+ processors = Verto.processor_defaults()
processors.add('example_processor')
processors.remove('comment')
- kordac.update_processors(processors)
+ verto.update_processors(processors)
# Check example_processor is now stored in extension processors
- self.assertEqual(kordac.kordac_extension.processors, processors)
+ self.assertEqual(verto.verto_extension.processors, processors)
# Check comments are now skipped
test_string = self.read_test_file(self.test_name, 'all_processors.md')
- converted_test_string = kordac.convert(test_string).html_string
+ converted_test_string = verto.convert(test_string).html_string
expected_string = self.read_test_file(self.test_name, 'all_processors_except_comment_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -201,41 +201,41 @@ def test_unique_custom_processors(self):
provided.
'''
processors = ['comment', 'comment', 'comment']
- kordac = Kordac(processors=processors)
- self.assertEqual(kordac.kordac_extension.processors, set(processors))
- processors = list(Kordac.processor_defaults())
+ verto = Verto(processors=processors)
+ self.assertEqual(verto.verto_extension.processors, set(processors))
+ processors = list(Verto.processor_defaults())
processors.append('example_processor')
processors.append('example_processor')
processors.append('example_processor')
- kordac.update_processors(processors)
- self.assertTrue(kordac.kordac_extension.processors, processors)
+ verto.update_processors(processors)
+ self.assertTrue(verto.verto_extension.processors, processors)
def test_custom_templates_on_creation(self):
'''Checks custom templates are used when given on creation.
'''
- kordac = Kordac(html_templates=self.custom_templates)
+ verto = Verto(html_templates=self.custom_templates)
test_string = self.read_test_file(self.test_name, 'all_processors.md')
- converted_test_string = kordac.convert(test_string).html_string
+ converted_test_string = verto.convert(test_string).html_string
expected_string = self.read_test_file(self.test_name, 'all_processors_custom_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
def test_custom_templates_after_creation(self):
'''Checks custom templates are used when given after creation.
'''
- kordac = Kordac()
- kordac.update_templates(self.custom_templates)
+ verto = Verto()
+ verto.update_templates(self.custom_templates)
test_string = self.read_test_file(self.test_name, 'all_processors.md')
- converted_test_string = kordac.convert(test_string).html_string
+ converted_test_string = verto.convert(test_string).html_string
expected_string = self.read_test_file(self.test_name, 'all_processors_custom_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
def test_reset_templates_after_custom(self):
'''Checks custom templates are reset when given at creation.
'''
- kordac = Kordac(html_templates=self.custom_templates)
- kordac.clear_templates()
+ verto = Verto(html_templates=self.custom_templates)
+ verto.clear_templates()
test_string = self.read_test_file(self.test_name, 'all_processors.md')
- converted_test_string = kordac.convert(test_string).html_string
+ converted_test_string = verto.convert(test_string).html_string
expected_string = self.read_test_file(self.test_name, 'all_processors_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -260,8 +260,8 @@ def test_multiline_custom_templates(self):
{{ heading_type }}>'''
}
- kordac = Kordac(html_templates=custom_templates)
+ verto = Verto(html_templates=custom_templates)
test_string = self.read_test_file(self.test_name, 'all_processors.md')
- converted_test_string = kordac.convert(test_string).html_string
+ converted_test_string = verto.convert(test_string).html_string
expected_string = self.read_test_file(self.test_name, 'multiline_templates_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/FrameTest.py b/verto/tests/FrameTest.py
similarity index 83%
rename from kordac/tests/FrameTest.py
rename to verto/tests/FrameTest.py
index 16e1b016..c2625b4e 100644
--- a/kordac/tests/FrameTest.py
+++ b/verto/tests/FrameTest.py
@@ -1,10 +1,10 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
-from kordac.processors.errors.ArgumentMissingError import ArgumentMissingError
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
+from verto.processors.errors.ArgumentMissingError import ArgumentMissingError
+from verto.tests.ProcessorTest import ProcessorTest
class FrameTest(ProcessorTest):
'''The iframe processor inherits from the generic tag procesor.
@@ -33,7 +33,7 @@ def test_example_no_link(self):
self.assertListEqual([True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
with self.assertRaises(ArgumentMissingError):
- markdown.markdown(test_string, extensions=[self.kordac_extension])
+ markdown.markdown(test_string, extensions=[self.verto_extension])
#~
# Doc Tests
@@ -47,7 +47,7 @@ def test_doc_example_basic(self):
self.assertListEqual([True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -60,8 +60,8 @@ def test_doc_example_override_html(self):
self.assertListEqual([True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/GlossaryLinkTest.py b/verto/tests/GlossaryLinkTest.py
similarity index 87%
rename from kordac/tests/GlossaryLinkTest.py
rename to verto/tests/GlossaryLinkTest.py
index 10ac7818..f019f5d6 100644
--- a/kordac/tests/GlossaryLinkTest.py
+++ b/verto/tests/GlossaryLinkTest.py
@@ -1,9 +1,9 @@
import markdown
import re
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.GlossaryLinkPattern import GlossaryLinkPattern
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.GlossaryLinkPattern import GlossaryLinkPattern
+from verto.tests.ProcessorTest import ProcessorTest
class GlossaryLinkTest(ProcessorTest):
@@ -30,11 +30,11 @@ def test_single_word_term(self):
processor = GlossaryLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'single_word_term_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
- glossary_terms = self.kordac_extension.glossary_terms
+ glossary_terms = self.verto_extension.glossary_terms
expected_glossary_terms = dict()
self.assertDictEqual(expected_glossary_terms, glossary_terms)
@@ -46,11 +46,11 @@ def test_multiple_word_term(self):
processor = GlossaryLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_word_term_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
- glossary_terms = self.kordac_extension.glossary_terms
+ glossary_terms = self.verto_extension.glossary_terms
expected_glossary_terms = dict()
self.assertDictEqual(expected_glossary_terms, glossary_terms)
@@ -63,11 +63,11 @@ def test_reference_text_given(self):
processor = GlossaryLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'reference_text_given_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
- glossary_terms = self.kordac_extension.glossary_terms
+ glossary_terms = self.verto_extension.glossary_terms
expected_glossary_terms = {
'chomsky-hierarchy':
[('Formal languages', 'glossary-chomsky-hierarchy')]
@@ -83,11 +83,11 @@ def test_leading_inline_text(self):
processor = GlossaryLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'leading_inline_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
- glossary_terms = self.kordac_extension.glossary_terms
+ glossary_terms = self.verto_extension.glossary_terms
expected_glossary_terms = dict()
self.assertDictEqual(expected_glossary_terms, glossary_terms)
@@ -100,11 +100,11 @@ def test_trailing_inline_text(self):
processor = GlossaryLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'trailing_inline_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
- glossary_terms = self.kordac_extension.glossary_terms
+ glossary_terms = self.verto_extension.glossary_terms
expected_glossary_terms = dict()
self.assertDictEqual(expected_glossary_terms, glossary_terms)
@@ -117,11 +117,11 @@ def test_leading_and_trailing_inline_text(self):
processor = GlossaryLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'leading_and_trailing_inline_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
- glossary_terms = self.kordac_extension.glossary_terms
+ glossary_terms = self.verto_extension.glossary_terms
expected_glossary_terms = dict()
self.assertDictEqual(expected_glossary_terms, glossary_terms)
@@ -135,11 +135,11 @@ def test_multiple_terms(self):
processor = GlossaryLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_terms_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
- glossary_terms = self.kordac_extension.glossary_terms
+ glossary_terms = self.verto_extension.glossary_terms
expected_glossary_terms = {
'finite-state-automaton':
[('Formal languages', 'glossary-finite-state-automaton')]
@@ -149,18 +149,18 @@ def test_multiple_terms(self):
def test_multiple_reference_text(self):
'''Tests that when the reference argument is used in
multiple tags that all references are stored for the
- final kordac result.
+ final verto result.
'''
test_string = self.read_test_file(self.processor_name, 'multiple_reference_text.md')
processor = GlossaryLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_reference_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
- glossary_terms = self.kordac_extension.glossary_terms
+ glossary_terms = self.verto_extension.glossary_terms
expected_glossary_terms = {
'algorithm':
[('computer program', 'glossary-algorithm'),
@@ -182,11 +182,11 @@ def test_doc_example_basic(self):
processor = GlossaryLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
- glossary_terms = self.kordac_extension.glossary_terms
+ glossary_terms = self.verto_extension.glossary_terms
expected_glossary_terms = dict()
self.assertDictEqual(expected_glossary_terms, glossary_terms)
@@ -199,13 +199,13 @@ def test_doc_example_override_html(self):
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
- glossary_terms = kordac_extension.glossary_terms
+ glossary_terms = verto_extension.glossary_terms
expected_glossary_terms = {
'algorithm':
[('Software Engineering', 'glossary-algorithm')]
diff --git a/kordac/tests/HeadingTest.py b/verto/tests/HeadingTest.py
similarity index 92%
rename from kordac/tests/HeadingTest.py
rename to verto/tests/HeadingTest.py
index 96c13985..7a1e640a 100644
--- a/kordac/tests/HeadingTest.py
+++ b/verto/tests/HeadingTest.py
@@ -2,10 +2,10 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.HeadingBlockProcessor import HeadingBlockProcessor
-from kordac.tests.ProcessorTest import ProcessorTest
-from kordac.utils.HeadingNode import HeadingNode
+from verto.VertoExtension import VertoExtension
+from verto.processors.HeadingBlockProcessor import HeadingBlockProcessor
+from verto.tests.ProcessorTest import ProcessorTest
+from verto.utils.HeadingNode import HeadingNode
class HeadingTest(ProcessorTest):
'''The heading processor is a unique processor that replaces the
@@ -33,11 +33,11 @@ def test_example_blank(self):
self.assertListEqual([False], [HeadingBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_blank_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- tree = self.kordac_extension.get_heading_tree()
+ tree = self.verto_extension.get_heading_tree()
self.assertIsNone(tree)
def test_single_heading(self):
@@ -48,11 +48,11 @@ def test_single_heading(self):
self.assertListEqual([True], [HeadingBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_single_heading_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- tree = self.kordac_extension.get_heading_tree()
+ tree = self.verto_extension.get_heading_tree()
expected_tree = (
HeadingNode(title='Heading One',
title_slug='heading-one',
@@ -72,13 +72,13 @@ def test_multiple_roots_zero_level(self):
self.assertListEqual([True, True, True, True, True, True, True], [HeadingBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_roots_zero_level_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- tree = kordac_extension.get_heading_tree()
+ tree = verto_extension.get_heading_tree()
expected_tree = (HeadingNode(title='This is an H4',
title_slug='this-is-an-h4',
level=4,
@@ -134,11 +134,11 @@ def test_doc_example_basic(self):
self.assertListEqual([True, True, True], [HeadingBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- tree = self.kordac_extension.get_heading_tree()
+ tree = self.verto_extension.get_heading_tree()
expected_tree = (HeadingNode(title='This is an H1',
title_slug='this-is-an-h1',
level=1,
@@ -172,13 +172,13 @@ def test_doc_example_override_html(self):
self.assertListEqual([True, True, True, True, True, True, True], [HeadingBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- tree = kordac_extension.get_heading_tree()
+ tree = verto_extension.get_heading_tree()
expected_tree = (HeadingNode(title='This is an H1',
title_slug='this-is-an-h1',
level=1,
diff --git a/kordac/tests/ImageTest.py b/verto/tests/ImageTest.py
similarity index 87%
rename from kordac/tests/ImageTest.py
rename to verto/tests/ImageTest.py
index 48ccdf1b..07017cb5 100644
--- a/kordac/tests/ImageTest.py
+++ b/verto/tests/ImageTest.py
@@ -2,11 +2,11 @@
from unittest.mock import Mock
from collections import defaultdict
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.ImageBlockProcessor import ImageBlockProcessor
-from kordac.processors.errors.ArgumentMissingError import ArgumentMissingError
-from kordac.processors.errors.ArgumentValueError import ArgumentValueError
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.ImageBlockProcessor import ImageBlockProcessor
+from verto.processors.errors.ArgumentMissingError import ArgumentMissingError
+from verto.processors.errors.ArgumentValueError import ArgumentValueError
+from verto.tests.ProcessorTest import ProcessorTest
class ImageTest(ProcessorTest):
'''The image processor is a simple tag with a multitude of
@@ -32,18 +32,18 @@ def __init__(self, *args, **kwargs):
def test_internal_image(self):
'''Tests to ensure that an internally reference image
produces the desired output, including changing the
- expected images of the kordac extension.
+ expected images of the verto extension.
'''
test_string = self.read_test_file(self.processor_name, 'internal_image.md')
blocks = self.to_blocks(test_string)
self.assertListEqual([False, True, False], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'internal_image_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'pixel-diamond.png'
}
@@ -58,7 +58,7 @@ def test_external_image(self):
self.assertListEqual([True, False], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'external_image_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -70,11 +70,11 @@ def test_default_image(self):
self.assertListEqual([True, False], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'default_image_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'computer-studying-turing-test.png'
}
@@ -89,11 +89,11 @@ def test_contains_multiple_images(self):
self.assertListEqual([False, True, False, True, False, True, False], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_multiple_images_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'finite-state-automata-no-trap-example.png',
'finite-state-automata-trap-added-example.png',
@@ -110,11 +110,11 @@ def test_text_contains_the_word_image(self):
self.assertListEqual([False], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'text_contains_the_word_image_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = set()
self.assertSetEqual(expected_images, images)
@@ -127,11 +127,11 @@ def test_contains_image_and_text_contains_word_image(self):
self.assertListEqual([False, True, False], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_image_and_text_contains_word_image_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'pixel-diamond.png'
}
@@ -145,11 +145,11 @@ def test_contains_hover_text(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_hover_text_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'computer-studying-turing-test.png'
}
@@ -163,11 +163,11 @@ def test_contains_caption_link(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_caption_link_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'computer-studying-turing-test.png'
}
@@ -181,11 +181,11 @@ def test_contains_alt(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_alt_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'computer-studying-turing-test.png'
}
@@ -199,11 +199,11 @@ def test_contains_caption(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_caption_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'computer-studying-turing-test.png'
}
@@ -217,11 +217,11 @@ def test_contains_source(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_source_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'computer-studying-turing-test.png'
}
@@ -236,11 +236,11 @@ def test_align_left(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'align_left_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'computer-studying-turing-test.png'
}
@@ -255,11 +255,11 @@ def test_align_right(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'align_right_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'computer-studying-turing-test.png'
}
@@ -274,11 +274,11 @@ def test_align_center(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'align_center_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = {
'computer-studying-turing-test.png'
}
@@ -293,7 +293,7 @@ def test_caption_link_error(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(ArgumentMissingError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(ArgumentMissingError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
def test_align_undefined_error(self):
'''Tests that undefined align value produces
@@ -304,7 +304,7 @@ def test_align_undefined_error(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(ArgumentValueError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(ArgumentValueError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
#~
# Doc Tests
@@ -317,11 +317,11 @@ def test_doc_example_basic(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = set()
self.assertSetEqual(expected_images, images)
@@ -334,13 +334,13 @@ def test_doc_example_override_html(self):
self.assertListEqual([True], [ImageBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = set()
self.assertSetEqual(expected_images, images)
@@ -355,12 +355,12 @@ def test_doc_example_2_override_html(self):
html_template = self.read_test_file(self.processor_name, 'doc_example_2_override_html_template.html', strip=True)
link_template = self.read_test_file(self.processor_name, 'doc_example_2_override_link_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template, 'relative-file-link': link_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template, 'relative-file-link': link_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_2_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- images = self.kordac_extension.required_files['images']
+ images = self.verto_extension.required_files['images']
expected_images = set()
self.assertSetEqual(expected_images, images)
diff --git a/kordac/tests/InteractiveTest.py b/verto/tests/InteractiveTest.py
similarity index 86%
rename from kordac/tests/InteractiveTest.py
rename to verto/tests/InteractiveTest.py
index 40209bed..77f464ad 100644
--- a/kordac/tests/InteractiveTest.py
+++ b/verto/tests/InteractiveTest.py
@@ -2,9 +2,9 @@
from unittest.mock import Mock
from collections import defaultdict
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.InteractiveBlockProcessor import InteractiveBlockProcessor
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.InteractiveBlockProcessor import InteractiveBlockProcessor
+from verto.tests.ProcessorTest import ProcessorTest
class InteractiveTest(ProcessorTest):
'''The interactive processor is a simple tag with a complex
@@ -33,7 +33,7 @@ def test_doc_example_in_page(self):
self.assertListEqual([True], [InteractiveBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_in_page_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -47,7 +47,7 @@ def test_doc_example_in_page(self):
},
'scratch_images': set()
}
- self.assertEqual(self.kordac_extension.required_files, required_files)
+ self.assertEqual(self.verto_extension.required_files, required_files)
def test_doc_example_whole_page(self):
'''Example of an whole-page interactive.
@@ -57,7 +57,7 @@ def test_doc_example_whole_page(self):
self.assertListEqual([True], [InteractiveBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_whole_page_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -69,7 +69,7 @@ def test_doc_example_whole_page(self):
'page_scripts': set(),
'scratch_images': set()
}
- self.assertEqual(self.kordac_extension.required_files, required_files)
+ self.assertEqual(self.verto_extension.required_files, required_files)
def test_doc_example_iframe(self):
'''Example of an iframe interactive.
@@ -79,7 +79,7 @@ def test_doc_example_iframe(self):
self.assertListEqual([True], [InteractiveBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_iframe_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -91,7 +91,7 @@ def test_doc_example_iframe(self):
'page_scripts': set(),
'scratch_images': set()
}
- self.assertEqual(self.kordac_extension.required_files, required_files)
+ self.assertEqual(self.verto_extension.required_files, required_files)
def test_doc_example_override_html(self):
'''Example showing overriding the html-template.
@@ -102,8 +102,8 @@ def test_doc_example_override_html(self):
self.assertListEqual([True], [InteractiveBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/PanelTest.py b/verto/tests/PanelTest.py
similarity index 89%
rename from kordac/tests/PanelTest.py
rename to verto/tests/PanelTest.py
index 667a0b05..313a292a 100644
--- a/kordac/tests/PanelTest.py
+++ b/verto/tests/PanelTest.py
@@ -1,11 +1,11 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.GenericContainerBlockProcessor import GenericContainerBlockProcessor
-from kordac.processors.errors.TagNotMatchedError import TagNotMatchedError
-from kordac.processors.errors.ArgumentValueError import ArgumentValueError
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.GenericContainerBlockProcessor import GenericContainerBlockProcessor
+from verto.processors.errors.TagNotMatchedError import TagNotMatchedError
+from verto.processors.errors.ArgumentValueError import ArgumentValueError
+from verto.tests.ProcessorTest import ProcessorTest
class PanelTest(ProcessorTest):
'''The panel processor inherits from the generic container.
@@ -32,7 +32,7 @@ def test_parses_blank(self):
self.assertListEqual([True, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(ArgumentValueError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]),test_string)
+ self.assertRaises(ArgumentValueError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]),test_string)
def test_parses_no_blank_lines_single_paragraph(self):
'''Tests that a block of text as content is added to the panel.
@@ -42,7 +42,7 @@ def test_parses_no_blank_lines_single_paragraph(self):
self.assertListEqual([True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'parses_no_blank_lines_single_paragraph_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -54,7 +54,7 @@ def test_parses_expanded_panel(self):
self.assertListEqual([True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'parses_expanded_panel_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -66,7 +66,7 @@ def test_parses_always_expanded_panel(self):
self.assertListEqual([True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'parses_always_expanded_panel_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -79,7 +79,7 @@ def test_parses_blank_lines_multiple_paragraphs(self):
self.assertListEqual([True, False, False, False, False, False, False, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'parses_blank_lines_multiple_paragraphs_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -91,7 +91,7 @@ def test_contains_multiple_panels(self):
self.assertListEqual([True, False, False, True, True, False, True, True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_multiple_panels_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -103,7 +103,7 @@ def test_contains_inner_panel(self):
self.assertListEqual([True, False, True, False, True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'contains_inner_panel_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -116,7 +116,7 @@ def test_missing_start_tag(self):
self.assertListEqual([True, False, True, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
def test_missing_end_tag(self):
'''Tests that TagNotMatchedErrors are thown when an end tag is
@@ -127,7 +127,7 @@ def test_missing_end_tag(self):
self.assertListEqual([True, False, True, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
def test_missing_tag_inner(self):
'''Tests that if inner tags are missing that the
@@ -138,7 +138,7 @@ def test_missing_tag_inner(self):
self.assertListEqual([True, True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(TagNotMatchedError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
#~
# Doc Tests
@@ -152,7 +152,7 @@ def test_doc_example_basic(self):
self.assertListEqual([True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -165,8 +165,8 @@ def test_doc_example_override_html(self):
self.assertListEqual([True, False, True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/ProcessorTest.py b/verto/tests/ProcessorTest.py
similarity index 75%
rename from kordac/tests/ProcessorTest.py
rename to verto/tests/ProcessorTest.py
index d1d4b668..62dd635b 100644
--- a/kordac/tests/ProcessorTest.py
+++ b/verto/tests/ProcessorTest.py
@@ -1,10 +1,10 @@
import unittest
import json
import markdown
-from kordac.KordacExtension import KordacExtension
+from verto.VertoExtension import VertoExtension
from markdown.extensions import Extension
from jinja2 import Environment, PackageLoader, select_autoescape
-from kordac.tests.BaseTest import BaseTest
+from verto.tests.BaseTest import BaseTest
class ProcessorTest(BaseTest):
'''A base test class for individual test classes.
@@ -27,16 +27,16 @@ def loadJinjaTemplate(self, template):
A jinja template.
'''
env = Environment(
- loader=PackageLoader('kordac', 'html-templates'),
+ loader=PackageLoader('verto', 'html-templates'),
autoescape=select_autoescape(['html'])
)
jinja_template = env.get_template(template + '.html')
return jinja_template
def loadProcessorInfo(self):
- '''Loads the processor info similar to the kordac extension.
+ '''Loads the processor info similar to the verto extension.
'''
- pattern_data = open('kordac/processor-info.json').read()
+ pattern_data = open('verto/processor-info.json').read()
return json.loads(pattern_data)
def to_blocks(self, string):
@@ -50,11 +50,11 @@ def to_blocks(self, string):
return string.split('\n\n')
def setUp(self):
- '''Runs before each testcase, creates a kordac extensions
+ '''Runs before each testcase, creates a verto extensions
and a markdown instance for running tests.
'''
- self.kordac_extension = KordacExtension([self.processor_name], {})
- self.md = markdown.Markdown(extensions=[self.kordac_extension])
+ self.verto_extension = VertoExtension([self.processor_name], {})
+ self.md = markdown.Markdown(extensions=[self.verto_extension])
def tearDown(self):
'''Runs after each testcase.
diff --git a/kordac/tests/RelativeLinkTest.py b/verto/tests/RelativeLinkTest.py
similarity index 93%
rename from kordac/tests/RelativeLinkTest.py
rename to verto/tests/RelativeLinkTest.py
index 9cd38153..a0b636f9 100644
--- a/kordac/tests/RelativeLinkTest.py
+++ b/verto/tests/RelativeLinkTest.py
@@ -1,9 +1,9 @@
import markdown
import re
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.RelativeLinkPattern import RelativeLinkPattern
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.RelativeLinkPattern import RelativeLinkPattern
+from verto.tests.ProcessorTest import ProcessorTest
class RelativeLinkTest(ProcessorTest):
'''Tests to check the 'relative-link' pattern works as intended.
@@ -27,7 +27,7 @@ def test_basic_usage(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -39,7 +39,7 @@ def test_long_path(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'long_path_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -51,7 +51,7 @@ def test_multiple_links(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_links_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -63,7 +63,7 @@ def test_ignore_http_schema(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'http_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -76,7 +76,7 @@ def test_http_text(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'http_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -88,7 +88,7 @@ def test_ignore_https_schema(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'https_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -101,7 +101,7 @@ def test_https_text(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'https_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -113,7 +113,7 @@ def test_ignore_ftp_schema(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'ftp_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -126,7 +126,7 @@ def test_ftp_text(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'ftp_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -138,7 +138,7 @@ def test_ignore_ftps_schema(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'ftps_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -151,7 +151,7 @@ def test_ftps_text(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'ftps_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -163,7 +163,7 @@ def test_ignore_mailto_schema(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'mailto_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -176,7 +176,7 @@ def test_mailto_text(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'mailto_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -189,7 +189,7 @@ def test_ignore_news_schema(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'news_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -202,7 +202,7 @@ def test_news_text(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'news_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -215,6 +215,6 @@ def test_www_text(self):
processor = RelativeLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'www_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/RemoveTitleTest.py b/verto/tests/RemoveTitleTest.py
similarity index 89%
rename from kordac/tests/RemoveTitleTest.py
rename to verto/tests/RemoveTitleTest.py
index bd70abb5..5d563590 100644
--- a/kordac/tests/RemoveTitleTest.py
+++ b/verto/tests/RemoveTitleTest.py
@@ -1,8 +1,8 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.RemoveTitlePreprocessor import RemoveTitlePreprocessor
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.RemoveTitlePreprocessor import RemoveTitlePreprocessor
+from verto.tests.ProcessorTest import ProcessorTest
class RemoveTitleTest(ProcessorTest):
'''Tests to check the 'remove-title' preprocesser works as intended.
@@ -24,7 +24,7 @@ def test_basic_usage(self):
processor = RemoveTitlePreprocessor(self.ext, self.md.parser)
self.assertTrue(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -37,7 +37,7 @@ def test_multiple_headings(self):
processor = RemoveTitlePreprocessor(self.ext, self.md.parser)
self.assertTrue(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_headings_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -50,7 +50,7 @@ def test_multiple_level_one_headings(self):
processor = RemoveTitlePreprocessor(self.ext, self.md.parser)
self.assertTrue(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_level_one_headings_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -63,7 +63,7 @@ def test_no_headings(self):
processor = RemoveTitlePreprocessor(self.ext, self.md.parser)
self.assertFalse(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'no_headings_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -76,7 +76,7 @@ def test_level_two_heading(self):
processor = RemoveTitlePreprocessor(self.ext, self.md.parser)
self.assertTrue(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'level_two_heading_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -90,7 +90,7 @@ def test_no_heading_permalink(self):
processor = RemoveTitlePreprocessor(self.ext, self.md.parser)
self.assertFalse(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'no_heading_permalink_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -103,7 +103,7 @@ def test_no_space_title(self):
processor = RemoveTitlePreprocessor(self.ext, self.md.parser)
self.assertTrue(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'no_space_title_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
@@ -114,10 +114,10 @@ def test_processor_off(self):
'''Tests that disabling the processor, leaves the document
unchanged.
'''
- # Create Kordac extension without processor enabled (off by default)
- kordac_extension = KordacExtension()
+ # Create Verto extension without processor enabled (off by default)
+ verto_extension = VertoExtension()
test_string = self.read_test_file(self.processor_name, 'processor_off.md')
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'processor_off_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/SaveTitleTest.py b/verto/tests/SaveTitleTest.py
similarity index 79%
rename from kordac/tests/SaveTitleTest.py
rename to verto/tests/SaveTitleTest.py
index d1be6ad0..566c8f1d 100644
--- a/kordac/tests/SaveTitleTest.py
+++ b/verto/tests/SaveTitleTest.py
@@ -1,8 +1,8 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.SaveTitlePreprocessor import SaveTitlePreprocessor
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.SaveTitlePreprocessor import SaveTitlePreprocessor
+from verto.tests.ProcessorTest import ProcessorTest
class SaveTitleTest(ProcessorTest):
'''Tests to check the 'save-title' preprocesser works as intended.
@@ -23,9 +23,9 @@ def test_basic_usage(self):
processor = SaveTitlePreprocessor(self.ext, self.md.parser)
self.assertTrue(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True).strip()
- self.assertEqual(expected_string, self.kordac_extension.title)
+ self.assertEqual(expected_string, self.verto_extension.title)
def test_multiple_headings(self):
'''Tests that only the first of multiple headings is saved.
@@ -35,9 +35,9 @@ def test_multiple_headings(self):
processor = SaveTitlePreprocessor(self.ext, self.md.parser)
self.assertTrue(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_headings_expected.html', strip=True).strip()
- self.assertEqual(expected_string, self.kordac_extension.title)
+ self.assertEqual(expected_string, self.verto_extension.title)
def test_multiple_level_one_headings(self):
'''Tests that only the first of multiple headings is saved.
@@ -47,9 +47,9 @@ def test_multiple_level_one_headings(self):
processor = SaveTitlePreprocessor(self.ext, self.md.parser)
self.assertTrue(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_level_one_headings_expected.html', strip=True).strip()
- self.assertEqual(expected_string, self.kordac_extension.title)
+ self.assertEqual(expected_string, self.verto_extension.title)
def test_no_headings(self):
'''Tests that if there is no heading that the title remains none.
@@ -59,8 +59,8 @@ def test_no_headings(self):
processor = SaveTitlePreprocessor(self.ext, self.md.parser)
self.assertFalse(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
- self.assertIsNone(self.kordac_extension.title)
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
+ self.assertIsNone(self.verto_extension.title)
def test_level_two_heading(self):
'''Tests that the first heading is saved regardless of level.
@@ -70,9 +70,9 @@ def test_level_two_heading(self):
processor = SaveTitlePreprocessor(self.ext, self.md.parser)
self.assertTrue(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'level_two_heading_expected.html', strip=True).strip()
- self.assertEqual(expected_string, self.kordac_extension.title)
+ self.assertEqual(expected_string, self.verto_extension.title)
def test_no_heading_permalink(self):
'''Tests that the first permalink is not matched erroneously.
@@ -82,8 +82,8 @@ def test_no_heading_permalink(self):
processor = SaveTitlePreprocessor(self.ext, self.md.parser)
self.assertFalse(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
- self.assertIsNone(self.kordac_extension.title)
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
+ self.assertIsNone(self.verto_extension.title)
def test_no_space_title(self):
'''Tests that space in the title does not
@@ -94,9 +94,9 @@ def test_no_space_title(self):
processor = SaveTitlePreprocessor(self.ext, self.md.parser)
self.assertTrue(processor.test(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'no_space_title_expected.html', strip=True).strip()
- self.assertEqual(expected_string, self.kordac_extension.title)
+ self.assertEqual(expected_string, self.verto_extension.title)
# SYSTEM TESTS
@@ -104,9 +104,9 @@ def test_no_result_processor_off(self):
'''Tests that disabling the processor correctly
functions.
'''
- # Create Kordac extension without processor enabled
- kordac_extension = KordacExtension()
+ # Create Verto extension without processor enabled
+ verto_extension = VertoExtension()
test_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage.md')
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
- self.assertIsNone(kordac_extension.title)
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
+ self.assertIsNone(verto_extension.title)
diff --git a/kordac/tests/ScratchTest.py b/verto/tests/ScratchTest.py
similarity index 84%
rename from kordac/tests/ScratchTest.py
rename to verto/tests/ScratchTest.py
index ed712ec5..27c35746 100644
--- a/kordac/tests/ScratchTest.py
+++ b/verto/tests/ScratchTest.py
@@ -2,9 +2,9 @@
from unittest.mock import Mock
from collections import defaultdict
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.ScratchTreeprocessor import ScratchTreeprocessor, ScratchImageMetaData
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.ScratchTreeprocessor import ScratchTreeprocessor, ScratchImageMetaData
+from verto.tests.ProcessorTest import ProcessorTest
class ScratchTest(ProcessorTest):
'''Scratch blocks are unique in that they override behaviour in
@@ -21,7 +21,7 @@ def setUp(self):
'''Overrides the generic setup to load the fenced_code
extension by default (as this is the desired usecase).
'''
- self.kordac_extension = KordacExtension([self.processor_name], {}, ['markdown.extensions.fenced_code'])
+ self.verto_extension = VertoExtension([self.processor_name], {}, ['markdown.extensions.fenced_code'])
#~
# Doc Tests
@@ -31,11 +31,11 @@ def test_doc_example_basic(self):
'''
test_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage.md')
- converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- actual_scratch_images = self.kordac_extension.required_files['scratch_images']
+ actual_scratch_images = self.verto_extension.required_files['scratch_images']
expected_scratch_images = {
ScratchImageMetaData(
hash='a0f8fcad796864abfacac8bda6e0719813833fd1fca348700abbd040557c1576',
@@ -50,13 +50,13 @@ def test_doc_example_override_html(self):
test_string = self.read_test_file(self.processor_name, 'doc_example_override_html.md')
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template}, extensions=['markdown.extensions.fenced_code'])
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template}, extensions=['markdown.extensions.fenced_code'])
- converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- actual_scratch_images = kordac_extension.required_files['scratch_images']
+ actual_scratch_images = verto_extension.required_files['scratch_images']
expected_scratch_images = {
ScratchImageMetaData(
hash='a3b77ed3c3fa57e43c830e338dc39d292c7def676e0e8f7545972b7da20275da',
@@ -71,14 +71,14 @@ def test_doc_example_override_html(self):
def test_example_standard_markdown_block(self):
'''Tests that even without extensions it behaves as expected.
'''
- kordac_extension = KordacExtension([self.processor_name], {}, [])
+ verto_extension = VertoExtension([self.processor_name], {}, [])
test_string = self.read_test_file(self.processor_name, 'example_standard_markdown_block.md')
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_standard_markdown_block_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- actual_scratch_images = kordac_extension.required_files['scratch_images']
+ actual_scratch_images = verto_extension.required_files['scratch_images']
expected_scratch_images = {
ScratchImageMetaData(
hash='a0f8fcad796864abfacac8bda6e0719813833fd1fca348700abbd040557c1576',
@@ -92,11 +92,11 @@ def test_example_separate_blocks(self):
'''
test_string = self.read_test_file(self.processor_name, 'example_separate_blocks.md')
- converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_separate_blocks_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- actual_scratch_images = self.kordac_extension.required_files['scratch_images']
+ actual_scratch_images = self.verto_extension.required_files['scratch_images']
expected_scratch_images = {
ScratchImageMetaData(
hash='8e8a2129c3cecf32101248439961735fc1d45793fadc56e2575673f63d42b9fb',
@@ -110,11 +110,11 @@ def test_example_multiple_codeblocks(self):
'''
test_string = self.read_test_file(self.processor_name, 'example_multiple_codeblocks.md')
- converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_multiple_codeblocks_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- actual_scratch_images = self.kordac_extension.required_files['scratch_images']
+ actual_scratch_images = self.verto_extension.required_files['scratch_images']
expected_scratch_images = {
ScratchImageMetaData(
hash='a3b77ed3c3fa57e43c830e338dc39d292c7def676e0e8f7545972b7da20275da',
@@ -136,14 +136,14 @@ def test_example_multiple_codeblocks_2(self):
the functionality. (Loads the compatiability processor).
'''
extensions = ['markdown.extensions.codehilite', 'markdown.extensions.fenced_code']
- kordac_extension = KordacExtension([self.processor_name], {}, extensions)
+ verto_extension = VertoExtension([self.processor_name], {}, extensions)
test_string = self.read_test_file(self.processor_name, 'example_multiple_codeblocks_2.md')
- converted_test_string = markdown.markdown(test_string, extensions=extensions + [kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=extensions + [verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_multiple_codeblocks_expected_2.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- actual_scratch_images = kordac_extension.required_files['scratch_images']
+ actual_scratch_images = verto_extension.required_files['scratch_images']
expected_scratch_images = {
ScratchImageMetaData(
hash='a3b77ed3c3fa57e43c830e338dc39d292c7def676e0e8f7545972b7da20275da',
@@ -166,11 +166,11 @@ def test_example_split_codeblocks(self):
'''
test_string = self.read_test_file(self.processor_name, 'example_split_codeblocks.md')
- converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_split_codeblocks_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- actual_scratch_images = self.kordac_extension.required_files['scratch_images']
+ actual_scratch_images = self.verto_extension.required_files['scratch_images']
expected_scratch_images = {
ScratchImageMetaData(
hash='a3b77ed3c3fa57e43c830e338dc39d292c7def676e0e8f7545972b7da20275da',
@@ -191,14 +191,14 @@ def test_example_split_codeblocks_default(self):
'''Tests that scratch images are split if the split option is
given on the language.
'''
- kordac_extension = KordacExtension([self.processor_name], {}, [])
+ verto_extension = VertoExtension([self.processor_name], {}, [])
test_string = self.read_test_file(self.processor_name, 'example_split_codeblocks_default.md')
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_split_codeblocks_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- actual_scratch_images = kordac_extension.required_files['scratch_images']
+ actual_scratch_images = verto_extension.required_files['scratch_images']
expected_scratch_images = {
ScratchImageMetaData(
hash='a3b77ed3c3fa57e43c830e338dc39d292c7def676e0e8f7545972b7da20275da',
@@ -219,14 +219,14 @@ def test_example_split_codeblocks_compatibility(self):
'''Tests that options are compatible with codehilite.
'''
extensions = ['markdown.extensions.codehilite', 'markdown.extensions.fenced_code']
- kordac_extension = KordacExtension([self.processor_name], {}, extensions)
+ verto_extension = VertoExtension([self.processor_name], {}, extensions)
test_string = self.read_test_file(self.processor_name, 'example_split_codeblocks.md')
- converted_test_string = markdown.markdown(test_string, extensions=extensions + [kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=extensions + [verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_split_codeblocks_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- actual_scratch_images = kordac_extension.required_files['scratch_images']
+ actual_scratch_images = verto_extension.required_files['scratch_images']
expected_scratch_images = {
ScratchImageMetaData(
hash='a3b77ed3c3fa57e43c830e338dc39d292c7def676e0e8f7545972b7da20275da',
@@ -251,10 +251,10 @@ def test_example_random_codeblocks(self):
outputs = set()
for i in range(6): #P(Outputs the Same) < 0.99 [3 Blocks]
- converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.verto_extension])
outputs.add(converted_test_string)
- self.assertEqual(len(self.kordac_extension.required_files['scratch_images']), 1)
- self.kordac_extension.clear_saved_data()
+ self.assertEqual(len(self.verto_extension.required_files['scratch_images']), 1)
+ self.verto_extension.clear_saved_data()
self.assertFalse(len(outputs) == 1)
def test_example_random_split_codeblocks(self):
@@ -265,10 +265,10 @@ def test_example_random_split_codeblocks(self):
outputs = set()
for i in range(6): #P(Outputs the Same) < 0.99 [3 Blocks]
- converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.verto_extension])
outputs.add(converted_test_string)
- self.assertEqual(len(self.kordac_extension.required_files['scratch_images']), 3)
- self.kordac_extension.clear_saved_data()
+ self.assertEqual(len(self.verto_extension.required_files['scratch_images']), 3)
+ self.verto_extension.clear_saved_data()
self.assertFalse(len(outputs) == 1)
def test_example_other_code(self):
@@ -277,11 +277,11 @@ def test_example_other_code(self):
'''
test_string = self.read_test_file(self.processor_name, 'example_other_code.md')
- converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=['markdown.extensions.fenced_code', self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'example_other_code_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
- actual_scratch_images = self.kordac_extension.required_files['scratch_images']
+ actual_scratch_images = self.verto_extension.required_files['scratch_images']
expected_scratch_images = {
ScratchImageMetaData(
hash='a0f8fcad796864abfacac8bda6e0719813833fd1fca348700abbd040557c1576',
diff --git a/kordac/tests/SmokeTests.py b/verto/tests/SmokeTests.py
similarity index 87%
rename from kordac/tests/SmokeTests.py
rename to verto/tests/SmokeTests.py
index 9a576a57..f349c537 100644
--- a/kordac/tests/SmokeTests.py
+++ b/verto/tests/SmokeTests.py
@@ -1,5 +1,5 @@
import unittest, os, subprocess
-from kordac import Kordac
+from verto import Verto
class SmokeDocsTest(unittest.TestCase):
'''Tests that docs build if they are found.'''
@@ -36,23 +36,23 @@ def test_compile_docs(self):
self.assertEqual(p.returncode, 0) # Success returncode
class SmokeFileTest(unittest.TestCase):
- '''Tests opening of files and that kordac generates some output.'''
+ '''Tests opening of files and that verto generates some output.'''
def __init__(self, *args, **kwargs):
unittest.TestCase.__init__(self, *args, **kwargs)
self.maxDiff = None
- self.kordac = None
- self.assets_template = 'kordac/tests/assets/smoke/{}'
+ self.verto = None
+ self.assets_template = 'verto/tests/assets/smoke/{}'
def setUp(self):
'''Run before any testcases.
'''
- self.kordac = Kordac()
+ self.verto = Verto()
def tearDown(self):
'''Run after any testcases.
'''
- self.kordac = None
+ self.verto = None
def test_compile_files(self):
'''Tests that some example files are converted.
@@ -60,7 +60,7 @@ def test_compile_files(self):
for chapter in ['algorithms.md', 'introduction.md']:
with open(self.assets_template.format(chapter), 'r') as f:
text = f.read()
- result = self.kordac.convert(text)
+ result = self.verto.convert(text)
self.assertIsNot(result, None)
self.assertIsNot(result.title, None)
@@ -76,11 +76,11 @@ def test_compile_files_custom(self):
'boxed-text': ''
}
- kordac = Kordac(html_templates=custom_templates)
+ verto = Verto(html_templates=custom_templates)
for chapter in ['algorithms.md', 'introduction.md']:
with open(self.assets_template.format(chapter), 'r') as f:
text = f.read()
- result = kordac.convert(text)
+ result = verto.convert(text)
self.assertIsNot(result, None)
self.assertIsNot(result.title, None)
diff --git a/kordac/tests/StyleTest.py b/verto/tests/StyleTest.py
similarity index 84%
rename from kordac/tests/StyleTest.py
rename to verto/tests/StyleTest.py
index 756321f1..1a4878f0 100644
--- a/kordac/tests/StyleTest.py
+++ b/verto/tests/StyleTest.py
@@ -1,10 +1,10 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.StylePreprocessor import StylePreprocessor
-from kordac.processors.errors.StyleError import StyleError
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.StylePreprocessor import StylePreprocessor
+from verto.processors.errors.StyleError import StyleError
+from verto.tests.ProcessorTest import ProcessorTest
class StyleTest(ProcessorTest):
'''Checks that failures are raised correctly.
@@ -23,7 +23,7 @@ def test_doc_example_block_whitespace(self):
'''
test_string = self.read_test_file(self.processor_name, 'doc_example_block_whitespace.md')
with self.assertRaises(StyleError):
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
def test_doc_example_block_whitespace_1(self):
'''Test no whitespace before an after content in
@@ -31,21 +31,21 @@ def test_doc_example_block_whitespace_1(self):
'''
test_string = self.read_test_file(self.processor_name, 'doc_example_block_whitespace_1.md')
with self.assertRaises(StyleError):
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
def test_doc_example_block_whitespace_2(self):
'''Test no whitespace before a block tag.
'''
test_string = self.read_test_file(self.processor_name, 'doc_example_block_whitespace_2.md')
with self.assertRaises(StyleError):
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
def test_doc_example_block_whitespace_3(self):
'''Test no whitespace after a block tag.
'''
test_string = self.read_test_file(self.processor_name, 'doc_example_block_whitespace_3.md')
with self.assertRaises(StyleError):
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
def test_doc_example_block_solitary(self):
'''Test extra text after a tag that should be
@@ -53,7 +53,7 @@ def test_doc_example_block_solitary(self):
'''
test_string = self.read_test_file(self.processor_name, 'doc_example_block_solitary.md')
with self.assertRaises(StyleError):
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
def test_doc_example_block_solitary_1(self):
'''Test extra text before a tag that should be
@@ -61,10 +61,10 @@ def test_doc_example_block_solitary_1(self):
'''
test_string = self.read_test_file(self.processor_name, 'doc_example_block_solitary_1.md')
with self.assertRaises(StyleError):
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
def test_doc_example_block_valid(self):
'''A valid example of using container tags.
'''
test_string = self.read_test_file(self.processor_name, 'doc_example_block_valid.md')
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
diff --git a/kordac/tests/TableOfContentsTest.py b/verto/tests/TableOfContentsTest.py
similarity index 86%
rename from kordac/tests/TableOfContentsTest.py
rename to verto/tests/TableOfContentsTest.py
index 76766239..08fd50a1 100644
--- a/kordac/tests/TableOfContentsTest.py
+++ b/verto/tests/TableOfContentsTest.py
@@ -1,9 +1,9 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.GenericTagBlockProcessor import GenericTagBlockProcessor
+from verto.tests.ProcessorTest import ProcessorTest
class TableOfContentsTest(ProcessorTest):
@@ -34,7 +34,7 @@ def test_doc_example_basic(self):
self.assertListEqual([True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -47,8 +47,8 @@ def test_doc_example_override_html(self):
self.assertListEqual([True], [self.block_processor.test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/VideoTest.py b/verto/tests/VideoTest.py
similarity index 90%
rename from kordac/tests/VideoTest.py
rename to verto/tests/VideoTest.py
index cf1af374..239e8afb 100644
--- a/kordac/tests/VideoTest.py
+++ b/verto/tests/VideoTest.py
@@ -1,12 +1,12 @@
import markdown
from unittest.mock import Mock
-from kordac.KordacExtension import KordacExtension
-from kordac.processors.VideoBlockProcessor import VideoBlockProcessor
-from kordac.processors.errors.NoSourceLinkError import NoSourceLinkError
-from kordac.processors.errors.NoVideoIdentifierError import NoVideoIdentifierError
-from kordac.processors.errors.UnsupportedVideoPlayerError import UnsupportedVideoPlayerError
-from kordac.tests.ProcessorTest import ProcessorTest
+from verto.VertoExtension import VertoExtension
+from verto.processors.VideoBlockProcessor import VideoBlockProcessor
+from verto.processors.errors.NoSourceLinkError import NoSourceLinkError
+from verto.processors.errors.NoVideoIdentifierError import NoVideoIdentifierError
+from verto.processors.errors.UnsupportedVideoPlayerError import UnsupportedVideoPlayerError
+from verto.tests.ProcessorTest import ProcessorTest
class VideoTest(ProcessorTest):
@@ -38,7 +38,7 @@ def test_contains_no_video(self):
self.assertFalse(all(VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks), msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_file_string = self.read_test_file(self.processor_name, 'contains_no_video_expected.html', strip=True)
self.assertEqual(converted_test_string, expected_file_string)
@@ -50,7 +50,7 @@ def test_youtube_embed_link(self):
self.assertListEqual([False, True, False, False, False, False, False, False], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_file_string = self.read_test_file(self.processor_name, 'youtube_embed_link_expected.html', strip=True)
self.assertEqual(converted_test_string, expected_file_string)
@@ -63,7 +63,7 @@ def test_youtube_watch_link(self):
self.assertListEqual([False, False, False, False, False, True, False], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_file_string = self.read_test_file(self.processor_name, 'youtube_watch_link_expected.html', strip=True)
self.assertEqual(converted_test_string, expected_file_string)
@@ -75,7 +75,7 @@ def test_youtube_be_link(self):
self.assertListEqual([False, True, False], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_file_string = self.read_test_file(self.processor_name, 'youtube_be_link_expected.html', strip=True)
self.assertEqual(converted_test_string, expected_file_string)
@@ -87,7 +87,7 @@ def test_vimeo_link(self):
self.assertListEqual([False, False, True, False, False, False], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_file_string = self.read_test_file(self.processor_name, 'vimeo_link_expected.html', strip=True)
self.assertEqual(converted_test_string, expected_file_string)
@@ -99,7 +99,7 @@ def test_vimeo_player_link(self):
self.assertListEqual([False, False, True, False, False, False], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_file_string = self.read_test_file(self.processor_name, 'vimeo_player_link_expected.html', strip=True)
self.assertEqual(converted_test_string, expected_file_string)
@@ -111,7 +111,7 @@ def test_multiple_youtube_links(self):
self.assertListEqual([False, False, True, False, True, False, True, False, True, False, True], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_file_string = self.read_test_file(self.processor_name, 'multiple_youtube_links_expected.html', strip=True)
self.assertEqual(converted_test_string, expected_file_string)
@@ -123,7 +123,7 @@ def test_multiple_vimeo_links(self):
self.assertListEqual([True, True, True], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_file_string = self.read_test_file(self.processor_name, 'multiple_vimeo_links_expected.html', strip=True)
self.assertEqual(converted_test_string, expected_file_string)
@@ -136,7 +136,7 @@ def test_youtube_and_vimeo_links(self):
self.assertListEqual([False, False, True, True, False, True, False, True, False, True, True, False, True, True], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_file_string = self.read_test_file(self.processor_name, 'youtube_and_vimeo_links_expected.html', strip=True)
self.assertEqual(converted_test_string, expected_file_string)
@@ -149,7 +149,7 @@ def test_unsupported_video_type(self):
self.assertListEqual([False, False, True], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(UnsupportedVideoPlayerError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(UnsupportedVideoPlayerError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
def test_missing_identifier(self):
'''Tests that a youtube link without an identifier will throw
@@ -160,7 +160,7 @@ def test_missing_identifier(self):
self.assertListEqual([False, True, False], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- self.assertRaises(NoVideoIdentifierError, lambda x: markdown.markdown(x, extensions=[self.kordac_extension]), test_string)
+ self.assertRaises(NoVideoIdentifierError, lambda x: markdown.markdown(x, extensions=[self.verto_extension]), test_string)
#~
# Doc Tests
@@ -173,7 +173,7 @@ def test_doc_example_basic(self):
self.assertListEqual([True], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
- converted_test_string = markdown.markdown(test_string, extensions=[self.kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_basic_usage_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
@@ -186,8 +186,8 @@ def test_doc_example_override_html(self):
self.assertListEqual([True], [VideoBlockProcessor(self.ext, self.md.parser).test(blocks, block) for block in blocks], msg='"{}"'.format(test_string))
html_template = self.read_test_file(self.processor_name, 'doc_example_override_html_template.html', strip=True)
- kordac_extension = KordacExtension([self.processor_name], html_templates={self.processor_name: html_template})
+ verto_extension = VertoExtension([self.processor_name], html_templates={self.processor_name: html_template})
- converted_test_string = markdown.markdown(test_string, extensions=[kordac_extension])
+ converted_test_string = markdown.markdown(test_string, extensions=[verto_extension])
expected_string = self.read_test_file(self.processor_name, 'doc_example_override_html_expected.html', strip=True)
self.assertEqual(expected_string, converted_test_string)
diff --git a/kordac/tests/__init__.py b/verto/tests/__init__.py
similarity index 100%
rename from kordac/tests/__init__.py
rename to verto/tests/__init__.py
diff --git a/kordac/tests/assets/beautify/example_inline_code.md b/verto/tests/assets/beautify/example_inline_code.md
similarity index 100%
rename from kordac/tests/assets/beautify/example_inline_code.md
rename to verto/tests/assets/beautify/example_inline_code.md
diff --git a/kordac/tests/assets/beautify/example_inline_code_expected.html b/verto/tests/assets/beautify/example_inline_code_expected.html
similarity index 100%
rename from kordac/tests/assets/beautify/example_inline_code_expected.html
rename to verto/tests/assets/beautify/example_inline_code_expected.html
diff --git a/kordac/tests/assets/beautify/example_mixed_code_types.md b/verto/tests/assets/beautify/example_mixed_code_types.md
similarity index 100%
rename from kordac/tests/assets/beautify/example_mixed_code_types.md
rename to verto/tests/assets/beautify/example_mixed_code_types.md
diff --git a/kordac/tests/assets/beautify/example_mixed_code_types_expected.html b/verto/tests/assets/beautify/example_mixed_code_types_expected.html
similarity index 100%
rename from kordac/tests/assets/beautify/example_mixed_code_types_expected.html
rename to verto/tests/assets/beautify/example_mixed_code_types_expected.html
diff --git a/kordac/tests/assets/beautify/example_preformatted_code.md b/verto/tests/assets/beautify/example_preformatted_code.md
similarity index 100%
rename from kordac/tests/assets/beautify/example_preformatted_code.md
rename to verto/tests/assets/beautify/example_preformatted_code.md
diff --git a/kordac/tests/assets/beautify/example_preformatted_code_expected.html b/verto/tests/assets/beautify/example_preformatted_code_expected.html
similarity index 100%
rename from kordac/tests/assets/beautify/example_preformatted_code_expected.html
rename to verto/tests/assets/beautify/example_preformatted_code_expected.html
diff --git a/kordac/tests/assets/beautify/example_preformatted_code_with_extension.md b/verto/tests/assets/beautify/example_preformatted_code_with_extension.md
similarity index 100%
rename from kordac/tests/assets/beautify/example_preformatted_code_with_extension.md
rename to verto/tests/assets/beautify/example_preformatted_code_with_extension.md
diff --git a/kordac/tests/assets/beautify/example_preformatted_code_with_extension_expected.html b/verto/tests/assets/beautify/example_preformatted_code_with_extension_expected.html
similarity index 100%
rename from kordac/tests/assets/beautify/example_preformatted_code_with_extension_expected.html
rename to verto/tests/assets/beautify/example_preformatted_code_with_extension_expected.html
diff --git a/kordac/tests/assets/boxed-text/doc_example_basic_usage.md b/verto/tests/assets/boxed-text/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/boxed-text/doc_example_basic_usage.md
rename to verto/tests/assets/boxed-text/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/boxed-text/doc_example_basic_usage_expected.html b/verto/tests/assets/boxed-text/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/boxed-text/doc_example_basic_usage_expected.html
rename to verto/tests/assets/boxed-text/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/boxed-text/doc_example_override_html.md b/verto/tests/assets/boxed-text/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/boxed-text/doc_example_override_html.md
rename to verto/tests/assets/boxed-text/doc_example_override_html.md
diff --git a/kordac/tests/assets/boxed-text/doc_example_override_html_expected.html b/verto/tests/assets/boxed-text/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/boxed-text/doc_example_override_html_expected.html
rename to verto/tests/assets/boxed-text/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/boxed-text/doc_example_override_html_template.html b/verto/tests/assets/boxed-text/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/boxed-text/doc_example_override_html_template.html
rename to verto/tests/assets/boxed-text/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/boxed-text/indented_boxed_text.md b/verto/tests/assets/boxed-text/indented_boxed_text.md
similarity index 100%
rename from kordac/tests/assets/boxed-text/indented_boxed_text.md
rename to verto/tests/assets/boxed-text/indented_boxed_text.md
diff --git a/kordac/tests/assets/boxed-text/indented_boxed_text_expected.html b/verto/tests/assets/boxed-text/indented_boxed_text_expected.html
similarity index 100%
rename from kordac/tests/assets/boxed-text/indented_boxed_text_expected.html
rename to verto/tests/assets/boxed-text/indented_boxed_text_expected.html
diff --git a/kordac/tests/assets/boxed-text/multiple_boxed_text.md b/verto/tests/assets/boxed-text/multiple_boxed_text.md
similarity index 100%
rename from kordac/tests/assets/boxed-text/multiple_boxed_text.md
rename to verto/tests/assets/boxed-text/multiple_boxed_text.md
diff --git a/kordac/tests/assets/boxed-text/multiple_boxed_text_expected.html b/verto/tests/assets/boxed-text/multiple_boxed_text_expected.html
similarity index 100%
rename from kordac/tests/assets/boxed-text/multiple_boxed_text_expected.html
rename to verto/tests/assets/boxed-text/multiple_boxed_text_expected.html
diff --git a/kordac/tests/assets/boxed-text/no_boxed_text.md b/verto/tests/assets/boxed-text/no_boxed_text.md
similarity index 100%
rename from kordac/tests/assets/boxed-text/no_boxed_text.md
rename to verto/tests/assets/boxed-text/no_boxed_text.md
diff --git a/kordac/tests/assets/boxed-text/no_boxed_text_expected.html b/verto/tests/assets/boxed-text/no_boxed_text_expected.html
similarity index 100%
rename from kordac/tests/assets/boxed-text/no_boxed_text_expected.html
rename to verto/tests/assets/boxed-text/no_boxed_text_expected.html
diff --git a/kordac/tests/assets/boxed-text/recursive_boxed_text.md b/verto/tests/assets/boxed-text/recursive_boxed_text.md
similarity index 100%
rename from kordac/tests/assets/boxed-text/recursive_boxed_text.md
rename to verto/tests/assets/boxed-text/recursive_boxed_text.md
diff --git a/kordac/tests/assets/boxed-text/recursive_boxed_text_expected.html b/verto/tests/assets/boxed-text/recursive_boxed_text_expected.html
similarity index 100%
rename from kordac/tests/assets/boxed-text/recursive_boxed_text_expected.html
rename to verto/tests/assets/boxed-text/recursive_boxed_text_expected.html
diff --git a/kordac/tests/assets/boxed-text/single_boxed_text.md b/verto/tests/assets/boxed-text/single_boxed_text.md
similarity index 100%
rename from kordac/tests/assets/boxed-text/single_boxed_text.md
rename to verto/tests/assets/boxed-text/single_boxed_text.md
diff --git a/kordac/tests/assets/boxed-text/single_boxed_text_expected.html b/verto/tests/assets/boxed-text/single_boxed_text_expected.html
similarity index 100%
rename from kordac/tests/assets/boxed-text/single_boxed_text_expected.html
rename to verto/tests/assets/boxed-text/single_boxed_text_expected.html
diff --git a/kordac/tests/assets/button-link/contains_button.md b/verto/tests/assets/button-link/contains_button.md
similarity index 100%
rename from kordac/tests/assets/button-link/contains_button.md
rename to verto/tests/assets/button-link/contains_button.md
diff --git a/kordac/tests/assets/button-link/contains_button_expected.html b/verto/tests/assets/button-link/contains_button_expected.html
similarity index 100%
rename from kordac/tests/assets/button-link/contains_button_expected.html
rename to verto/tests/assets/button-link/contains_button_expected.html
diff --git a/kordac/tests/assets/button-link/contains_file_link_button.md b/verto/tests/assets/button-link/contains_file_link_button.md
similarity index 100%
rename from kordac/tests/assets/button-link/contains_file_link_button.md
rename to verto/tests/assets/button-link/contains_file_link_button.md
diff --git a/kordac/tests/assets/button-link/contains_file_link_button_expected.html b/verto/tests/assets/button-link/contains_file_link_button_expected.html
similarity index 100%
rename from kordac/tests/assets/button-link/contains_file_link_button_expected.html
rename to verto/tests/assets/button-link/contains_file_link_button_expected.html
diff --git a/kordac/tests/assets/button-link/contains_multiple_buttons.md b/verto/tests/assets/button-link/contains_multiple_buttons.md
similarity index 100%
rename from kordac/tests/assets/button-link/contains_multiple_buttons.md
rename to verto/tests/assets/button-link/contains_multiple_buttons.md
diff --git a/kordac/tests/assets/button-link/contains_multiple_buttons_expected.html b/verto/tests/assets/button-link/contains_multiple_buttons_expected.html
similarity index 100%
rename from kordac/tests/assets/button-link/contains_multiple_buttons_expected.html
rename to verto/tests/assets/button-link/contains_multiple_buttons_expected.html
diff --git a/kordac/tests/assets/button-link/doc_example_basic_usage.md b/verto/tests/assets/button-link/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/button-link/doc_example_basic_usage.md
rename to verto/tests/assets/button-link/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/button-link/doc_example_basic_usage_expected.html b/verto/tests/assets/button-link/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/button-link/doc_example_basic_usage_expected.html
rename to verto/tests/assets/button-link/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/button-link/doc_example_file_usage.md b/verto/tests/assets/button-link/doc_example_file_usage.md
similarity index 100%
rename from kordac/tests/assets/button-link/doc_example_file_usage.md
rename to verto/tests/assets/button-link/doc_example_file_usage.md
diff --git a/kordac/tests/assets/button-link/doc_example_file_usage_expected.html b/verto/tests/assets/button-link/doc_example_file_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/button-link/doc_example_file_usage_expected.html
rename to verto/tests/assets/button-link/doc_example_file_usage_expected.html
diff --git a/verto/tests/assets/button-link/doc_example_override_html.md b/verto/tests/assets/button-link/doc_example_override_html.md
new file mode 100644
index 00000000..c585e663
--- /dev/null
+++ b/verto/tests/assets/button-link/doc_example_override_html.md
@@ -0,0 +1 @@
+{button-link link="https://github.com/uccser/verto" text="Verto on GitHub"}
diff --git a/verto/tests/assets/button-link/doc_example_override_html_expected.html b/verto/tests/assets/button-link/doc_example_override_html_expected.html
new file mode 100644
index 00000000..677abcd3
--- /dev/null
+++ b/verto/tests/assets/button-link/doc_example_override_html_expected.html
@@ -0,0 +1,3 @@
+
+ Verto on GitHub
+
diff --git a/kordac/tests/assets/button-link/doc_example_override_html_template.html b/verto/tests/assets/button-link/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/button-link/doc_example_override_html_template.html
rename to verto/tests/assets/button-link/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/button-link/missing_end_brace.md b/verto/tests/assets/button-link/missing_end_brace.md
similarity index 100%
rename from kordac/tests/assets/button-link/missing_end_brace.md
rename to verto/tests/assets/button-link/missing_end_brace.md
diff --git a/kordac/tests/assets/button-link/missing_end_brace_expected.html b/verto/tests/assets/button-link/missing_end_brace_expected.html
similarity index 100%
rename from kordac/tests/assets/button-link/missing_end_brace_expected.html
rename to verto/tests/assets/button-link/missing_end_brace_expected.html
diff --git a/kordac/tests/assets/button-link/no_button.md b/verto/tests/assets/button-link/no_button.md
similarity index 100%
rename from kordac/tests/assets/button-link/no_button.md
rename to verto/tests/assets/button-link/no_button.md
diff --git a/kordac/tests/assets/button-link/no_button_expected.html b/verto/tests/assets/button-link/no_button_expected.html
similarity index 100%
rename from kordac/tests/assets/button-link/no_button_expected.html
rename to verto/tests/assets/button-link/no_button_expected.html
diff --git a/kordac/tests/assets/comment/comment_contains_comment.md b/verto/tests/assets/comment/comment_contains_comment.md
similarity index 100%
rename from kordac/tests/assets/comment/comment_contains_comment.md
rename to verto/tests/assets/comment/comment_contains_comment.md
diff --git a/kordac/tests/assets/comment/comment_contains_comment_expected.html b/verto/tests/assets/comment/comment_contains_comment_expected.html
similarity index 100%
rename from kordac/tests/assets/comment/comment_contains_comment_expected.html
rename to verto/tests/assets/comment/comment_contains_comment_expected.html
diff --git a/kordac/tests/assets/comment/comment_within_block_container.md b/verto/tests/assets/comment/comment_within_block_container.md
similarity index 100%
rename from kordac/tests/assets/comment/comment_within_block_container.md
rename to verto/tests/assets/comment/comment_within_block_container.md
diff --git a/kordac/tests/assets/comment/comment_within_block_container_expected.html b/verto/tests/assets/comment/comment_within_block_container_expected.html
similarity index 100%
rename from kordac/tests/assets/comment/comment_within_block_container_expected.html
rename to verto/tests/assets/comment/comment_within_block_container_expected.html
diff --git a/kordac/tests/assets/comment/contains_inline_comment.md b/verto/tests/assets/comment/contains_inline_comment.md
similarity index 100%
rename from kordac/tests/assets/comment/contains_inline_comment.md
rename to verto/tests/assets/comment/contains_inline_comment.md
diff --git a/kordac/tests/assets/comment/contains_inline_comment_expected.html b/verto/tests/assets/comment/contains_inline_comment_expected.html
similarity index 100%
rename from kordac/tests/assets/comment/contains_inline_comment_expected.html
rename to verto/tests/assets/comment/contains_inline_comment_expected.html
diff --git a/kordac/tests/assets/comment/contains_multiple_inline_comments.md b/verto/tests/assets/comment/contains_multiple_inline_comments.md
similarity index 100%
rename from kordac/tests/assets/comment/contains_multiple_inline_comments.md
rename to verto/tests/assets/comment/contains_multiple_inline_comments.md
diff --git a/kordac/tests/assets/comment/contains_multiple_inline_comments_expected.html b/verto/tests/assets/comment/contains_multiple_inline_comments_expected.html
similarity index 100%
rename from kordac/tests/assets/comment/contains_multiple_inline_comments_expected.html
rename to verto/tests/assets/comment/contains_multiple_inline_comments_expected.html
diff --git a/kordac/tests/assets/comment/doc_example_basic_usage.md b/verto/tests/assets/comment/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/comment/doc_example_basic_usage.md
rename to verto/tests/assets/comment/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/comment/doc_example_basic_usage_expected.html b/verto/tests/assets/comment/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/comment/doc_example_basic_usage_expected.html
rename to verto/tests/assets/comment/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/comment/doc_example_multiple_usage.md b/verto/tests/assets/comment/doc_example_multiple_usage.md
similarity index 100%
rename from kordac/tests/assets/comment/doc_example_multiple_usage.md
rename to verto/tests/assets/comment/doc_example_multiple_usage.md
diff --git a/kordac/tests/assets/comment/doc_example_multiple_usage_expected.html b/verto/tests/assets/comment/doc_example_multiple_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/comment/doc_example_multiple_usage_expected.html
rename to verto/tests/assets/comment/doc_example_multiple_usage_expected.html
diff --git a/kordac/tests/assets/comment/no_inline_comment.md b/verto/tests/assets/comment/no_inline_comment.md
similarity index 100%
rename from kordac/tests/assets/comment/no_inline_comment.md
rename to verto/tests/assets/comment/no_inline_comment.md
diff --git a/kordac/tests/assets/comment/no_inline_comment_expected.html b/verto/tests/assets/comment/no_inline_comment_expected.html
similarity index 100%
rename from kordac/tests/assets/comment/no_inline_comment_expected.html
rename to verto/tests/assets/comment/no_inline_comment_expected.html
diff --git a/kordac/tests/assets/comment/text_contains_the_word_comment.md b/verto/tests/assets/comment/text_contains_the_word_comment.md
similarity index 100%
rename from kordac/tests/assets/comment/text_contains_the_word_comment.md
rename to verto/tests/assets/comment/text_contains_the_word_comment.md
diff --git a/kordac/tests/assets/comment/text_contains_the_word_comment_expected.html b/verto/tests/assets/comment/text_contains_the_word_comment_expected.html
similarity index 100%
rename from kordac/tests/assets/comment/text_contains_the_word_comment_expected.html
rename to verto/tests/assets/comment/text_contains_the_word_comment_expected.html
diff --git a/kordac/tests/assets/conditional/doc_example_basic_usage.md b/verto/tests/assets/conditional/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/conditional/doc_example_basic_usage.md
rename to verto/tests/assets/conditional/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/conditional/doc_example_basic_usage_expected.html b/verto/tests/assets/conditional/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/conditional/doc_example_basic_usage_expected.html
rename to verto/tests/assets/conditional/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/conditional/doc_example_complex_usage.md b/verto/tests/assets/conditional/doc_example_complex_usage.md
similarity index 100%
rename from kordac/tests/assets/conditional/doc_example_complex_usage.md
rename to verto/tests/assets/conditional/doc_example_complex_usage.md
diff --git a/kordac/tests/assets/conditional/doc_example_complex_usage_expected.html b/verto/tests/assets/conditional/doc_example_complex_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/conditional/doc_example_complex_usage_expected.html
rename to verto/tests/assets/conditional/doc_example_complex_usage_expected.html
diff --git a/kordac/tests/assets/conditional/doc_example_override_html.md b/verto/tests/assets/conditional/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/conditional/doc_example_override_html.md
rename to verto/tests/assets/conditional/doc_example_override_html.md
diff --git a/kordac/tests/assets/conditional/doc_example_override_html_expected.html b/verto/tests/assets/conditional/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/conditional/doc_example_override_html_expected.html
rename to verto/tests/assets/conditional/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/conditional/doc_example_override_html_template.html b/verto/tests/assets/conditional/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/conditional/doc_example_override_html_template.html
rename to verto/tests/assets/conditional/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/conditional/else_then_elif_error.md b/verto/tests/assets/conditional/else_then_elif_error.md
similarity index 100%
rename from kordac/tests/assets/conditional/else_then_elif_error.md
rename to verto/tests/assets/conditional/else_then_elif_error.md
diff --git a/kordac/tests/assets/conditional/example_basic_else_usage.md b/verto/tests/assets/conditional/example_basic_else_usage.md
similarity index 100%
rename from kordac/tests/assets/conditional/example_basic_else_usage.md
rename to verto/tests/assets/conditional/example_basic_else_usage.md
diff --git a/kordac/tests/assets/conditional/example_basic_else_usage_expected.html b/verto/tests/assets/conditional/example_basic_else_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/conditional/example_basic_else_usage_expected.html
rename to verto/tests/assets/conditional/example_basic_else_usage_expected.html
diff --git a/kordac/tests/assets/conditional/example_elif_no_else.md b/verto/tests/assets/conditional/example_elif_no_else.md
similarity index 100%
rename from kordac/tests/assets/conditional/example_elif_no_else.md
rename to verto/tests/assets/conditional/example_elif_no_else.md
diff --git a/kordac/tests/assets/conditional/example_elif_no_else_expected.html b/verto/tests/assets/conditional/example_elif_no_else_expected.html
similarity index 100%
rename from kordac/tests/assets/conditional/example_elif_no_else_expected.html
rename to verto/tests/assets/conditional/example_elif_no_else_expected.html
diff --git a/kordac/tests/assets/conditional/example_elif_no_else_template.html b/verto/tests/assets/conditional/example_elif_no_else_template.html
similarity index 100%
rename from kordac/tests/assets/conditional/example_elif_no_else_template.html
rename to verto/tests/assets/conditional/example_elif_no_else_template.html
diff --git a/kordac/tests/assets/conditional/example_single_elif.md b/verto/tests/assets/conditional/example_single_elif.md
similarity index 100%
rename from kordac/tests/assets/conditional/example_single_elif.md
rename to verto/tests/assets/conditional/example_single_elif.md
diff --git a/kordac/tests/assets/conditional/example_single_elif_expected.html b/verto/tests/assets/conditional/example_single_elif_expected.html
similarity index 100%
rename from kordac/tests/assets/conditional/example_single_elif_expected.html
rename to verto/tests/assets/conditional/example_single_elif_expected.html
diff --git a/kordac/tests/assets/conditional/missing_end_statement_error.md b/verto/tests/assets/conditional/missing_end_statement_error.md
similarity index 100%
rename from kordac/tests/assets/conditional/missing_end_statement_error.md
rename to verto/tests/assets/conditional/missing_end_statement_error.md
diff --git a/kordac/tests/assets/conditional/missing_if_statement_error.md b/verto/tests/assets/conditional/missing_if_statement_error.md
similarity index 100%
rename from kordac/tests/assets/conditional/missing_if_statement_error.md
rename to verto/tests/assets/conditional/missing_if_statement_error.md
diff --git a/kordac/tests/assets/conditional/multiple_else_error.md b/verto/tests/assets/conditional/multiple_else_error.md
similarity index 100%
rename from kordac/tests/assets/conditional/multiple_else_error.md
rename to verto/tests/assets/conditional/multiple_else_error.md
diff --git a/kordac/tests/assets/configuration/all_processors.md b/verto/tests/assets/configuration/all_processors.md
similarity index 100%
rename from kordac/tests/assets/configuration/all_processors.md
rename to verto/tests/assets/configuration/all_processors.md
diff --git a/kordac/tests/assets/configuration/all_processors_custom_html_expected.html b/verto/tests/assets/configuration/all_processors_custom_html_expected.html
similarity index 100%
rename from kordac/tests/assets/configuration/all_processors_custom_html_expected.html
rename to verto/tests/assets/configuration/all_processors_custom_html_expected.html
diff --git a/kordac/tests/assets/configuration/all_processors_except_comment_expected.html b/verto/tests/assets/configuration/all_processors_except_comment_expected.html
similarity index 100%
rename from kordac/tests/assets/configuration/all_processors_except_comment_expected.html
rename to verto/tests/assets/configuration/all_processors_except_comment_expected.html
diff --git a/kordac/tests/assets/configuration/all_processors_expected.html b/verto/tests/assets/configuration/all_processors_expected.html
similarity index 100%
rename from kordac/tests/assets/configuration/all_processors_expected.html
rename to verto/tests/assets/configuration/all_processors_expected.html
diff --git a/kordac/tests/assets/configuration/custom_processors_custom_templates_expected.html b/verto/tests/assets/configuration/custom_processors_custom_templates_expected.html
similarity index 100%
rename from kordac/tests/assets/configuration/custom_processors_custom_templates_expected.html
rename to verto/tests/assets/configuration/custom_processors_custom_templates_expected.html
diff --git a/kordac/tests/assets/configuration/custom_processors_expected.html b/verto/tests/assets/configuration/custom_processors_expected.html
similarity index 100%
rename from kordac/tests/assets/configuration/custom_processors_expected.html
rename to verto/tests/assets/configuration/custom_processors_expected.html
diff --git a/kordac/tests/assets/configuration/multiline_templates_expected.html b/verto/tests/assets/configuration/multiline_templates_expected.html
similarity index 100%
rename from kordac/tests/assets/configuration/multiline_templates_expected.html
rename to verto/tests/assets/configuration/multiline_templates_expected.html
diff --git a/kordac/tests/assets/configuration/some_processors.md b/verto/tests/assets/configuration/some_processors.md
similarity index 100%
rename from kordac/tests/assets/configuration/some_processors.md
rename to verto/tests/assets/configuration/some_processors.md
diff --git a/kordac/tests/assets/configuration/some_processors_2.md b/verto/tests/assets/configuration/some_processors_2.md
similarity index 100%
rename from kordac/tests/assets/configuration/some_processors_2.md
rename to verto/tests/assets/configuration/some_processors_2.md
diff --git a/kordac/tests/assets/configuration/some_processors_2_expected.html b/verto/tests/assets/configuration/some_processors_2_expected.html
similarity index 100%
rename from kordac/tests/assets/configuration/some_processors_2_expected.html
rename to verto/tests/assets/configuration/some_processors_2_expected.html
diff --git a/kordac/tests/assets/configuration/some_processors_expected.html b/verto/tests/assets/configuration/some_processors_expected.html
similarity index 100%
rename from kordac/tests/assets/configuration/some_processors_expected.html
rename to verto/tests/assets/configuration/some_processors_expected.html
diff --git a/kordac/tests/assets/glossary-link/doc_example_basic_usage.md b/verto/tests/assets/glossary-link/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/glossary-link/doc_example_basic_usage.md
rename to verto/tests/assets/glossary-link/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/glossary-link/doc_example_basic_usage_expected.html b/verto/tests/assets/glossary-link/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/doc_example_basic_usage_expected.html
rename to verto/tests/assets/glossary-link/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/glossary-link/doc_example_override_html.md b/verto/tests/assets/glossary-link/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/glossary-link/doc_example_override_html.md
rename to verto/tests/assets/glossary-link/doc_example_override_html.md
diff --git a/kordac/tests/assets/glossary-link/doc_example_override_html_expected.html b/verto/tests/assets/glossary-link/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/doc_example_override_html_expected.html
rename to verto/tests/assets/glossary-link/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/glossary-link/doc_example_override_html_template.html b/verto/tests/assets/glossary-link/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/doc_example_override_html_template.html
rename to verto/tests/assets/glossary-link/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/glossary-link/leading_and_trailing_inline_text.md b/verto/tests/assets/glossary-link/leading_and_trailing_inline_text.md
similarity index 100%
rename from kordac/tests/assets/glossary-link/leading_and_trailing_inline_text.md
rename to verto/tests/assets/glossary-link/leading_and_trailing_inline_text.md
diff --git a/kordac/tests/assets/glossary-link/leading_and_trailing_inline_text_expected.html b/verto/tests/assets/glossary-link/leading_and_trailing_inline_text_expected.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/leading_and_trailing_inline_text_expected.html
rename to verto/tests/assets/glossary-link/leading_and_trailing_inline_text_expected.html
diff --git a/kordac/tests/assets/glossary-link/leading_inline_text.md b/verto/tests/assets/glossary-link/leading_inline_text.md
similarity index 100%
rename from kordac/tests/assets/glossary-link/leading_inline_text.md
rename to verto/tests/assets/glossary-link/leading_inline_text.md
diff --git a/kordac/tests/assets/glossary-link/leading_inline_text_expected.html b/verto/tests/assets/glossary-link/leading_inline_text_expected.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/leading_inline_text_expected.html
rename to verto/tests/assets/glossary-link/leading_inline_text_expected.html
diff --git a/kordac/tests/assets/glossary-link/multiple_reference_text.md b/verto/tests/assets/glossary-link/multiple_reference_text.md
similarity index 100%
rename from kordac/tests/assets/glossary-link/multiple_reference_text.md
rename to verto/tests/assets/glossary-link/multiple_reference_text.md
diff --git a/kordac/tests/assets/glossary-link/multiple_reference_text_expected.html b/verto/tests/assets/glossary-link/multiple_reference_text_expected.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/multiple_reference_text_expected.html
rename to verto/tests/assets/glossary-link/multiple_reference_text_expected.html
diff --git a/kordac/tests/assets/glossary-link/multiple_terms.md b/verto/tests/assets/glossary-link/multiple_terms.md
similarity index 100%
rename from kordac/tests/assets/glossary-link/multiple_terms.md
rename to verto/tests/assets/glossary-link/multiple_terms.md
diff --git a/kordac/tests/assets/glossary-link/multiple_terms_expected.html b/verto/tests/assets/glossary-link/multiple_terms_expected.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/multiple_terms_expected.html
rename to verto/tests/assets/glossary-link/multiple_terms_expected.html
diff --git a/kordac/tests/assets/glossary-link/multiple_word_term.md b/verto/tests/assets/glossary-link/multiple_word_term.md
similarity index 100%
rename from kordac/tests/assets/glossary-link/multiple_word_term.md
rename to verto/tests/assets/glossary-link/multiple_word_term.md
diff --git a/kordac/tests/assets/glossary-link/multiple_word_term_expected.html b/verto/tests/assets/glossary-link/multiple_word_term_expected.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/multiple_word_term_expected.html
rename to verto/tests/assets/glossary-link/multiple_word_term_expected.html
diff --git a/kordac/tests/assets/glossary-link/reference_text_given.md b/verto/tests/assets/glossary-link/reference_text_given.md
similarity index 100%
rename from kordac/tests/assets/glossary-link/reference_text_given.md
rename to verto/tests/assets/glossary-link/reference_text_given.md
diff --git a/kordac/tests/assets/glossary-link/reference_text_given_expected.html b/verto/tests/assets/glossary-link/reference_text_given_expected.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/reference_text_given_expected.html
rename to verto/tests/assets/glossary-link/reference_text_given_expected.html
diff --git a/kordac/tests/assets/glossary-link/single_word_term.md b/verto/tests/assets/glossary-link/single_word_term.md
similarity index 100%
rename from kordac/tests/assets/glossary-link/single_word_term.md
rename to verto/tests/assets/glossary-link/single_word_term.md
diff --git a/kordac/tests/assets/glossary-link/single_word_term_expected.html b/verto/tests/assets/glossary-link/single_word_term_expected.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/single_word_term_expected.html
rename to verto/tests/assets/glossary-link/single_word_term_expected.html
diff --git a/kordac/tests/assets/glossary-link/trailing_inline_text.md b/verto/tests/assets/glossary-link/trailing_inline_text.md
similarity index 100%
rename from kordac/tests/assets/glossary-link/trailing_inline_text.md
rename to verto/tests/assets/glossary-link/trailing_inline_text.md
diff --git a/kordac/tests/assets/glossary-link/trailing_inline_text_expected.html b/verto/tests/assets/glossary-link/trailing_inline_text_expected.html
similarity index 100%
rename from kordac/tests/assets/glossary-link/trailing_inline_text_expected.html
rename to verto/tests/assets/glossary-link/trailing_inline_text_expected.html
diff --git a/kordac/tests/assets/heading/doc_example_basic_usage.md b/verto/tests/assets/heading/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/heading/doc_example_basic_usage.md
rename to verto/tests/assets/heading/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/heading/doc_example_basic_usage_expected.html b/verto/tests/assets/heading/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/heading/doc_example_basic_usage_expected.html
rename to verto/tests/assets/heading/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/heading/doc_example_override_html.md b/verto/tests/assets/heading/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/heading/doc_example_override_html.md
rename to verto/tests/assets/heading/doc_example_override_html.md
diff --git a/kordac/tests/assets/heading/doc_example_override_html_expected.html b/verto/tests/assets/heading/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/heading/doc_example_override_html_expected.html
rename to verto/tests/assets/heading/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/heading/doc_example_override_html_template.html b/verto/tests/assets/heading/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/heading/doc_example_override_html_template.html
rename to verto/tests/assets/heading/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/heading/example_blank.md b/verto/tests/assets/heading/example_blank.md
similarity index 100%
rename from kordac/tests/assets/heading/example_blank.md
rename to verto/tests/assets/heading/example_blank.md
diff --git a/kordac/tests/assets/heading/example_blank_expected.html b/verto/tests/assets/heading/example_blank_expected.html
similarity index 100%
rename from kordac/tests/assets/heading/example_blank_expected.html
rename to verto/tests/assets/heading/example_blank_expected.html
diff --git a/kordac/tests/assets/heading/example_single_heading.md b/verto/tests/assets/heading/example_single_heading.md
similarity index 100%
rename from kordac/tests/assets/heading/example_single_heading.md
rename to verto/tests/assets/heading/example_single_heading.md
diff --git a/kordac/tests/assets/heading/example_single_heading_expected.html b/verto/tests/assets/heading/example_single_heading_expected.html
similarity index 100%
rename from kordac/tests/assets/heading/example_single_heading_expected.html
rename to verto/tests/assets/heading/example_single_heading_expected.html
diff --git a/kordac/tests/assets/heading/multiple_roots_zero_level.md b/verto/tests/assets/heading/multiple_roots_zero_level.md
similarity index 100%
rename from kordac/tests/assets/heading/multiple_roots_zero_level.md
rename to verto/tests/assets/heading/multiple_roots_zero_level.md
diff --git a/kordac/tests/assets/heading/multiple_roots_zero_level_expected.html b/verto/tests/assets/heading/multiple_roots_zero_level_expected.html
similarity index 100%
rename from kordac/tests/assets/heading/multiple_roots_zero_level_expected.html
rename to verto/tests/assets/heading/multiple_roots_zero_level_expected.html
diff --git a/kordac/tests/assets/iframe/doc_example_basic_usage.md b/verto/tests/assets/iframe/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/iframe/doc_example_basic_usage.md
rename to verto/tests/assets/iframe/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/iframe/doc_example_basic_usage_expected.html b/verto/tests/assets/iframe/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/iframe/doc_example_basic_usage_expected.html
rename to verto/tests/assets/iframe/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/iframe/doc_example_override_html.md b/verto/tests/assets/iframe/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/iframe/doc_example_override_html.md
rename to verto/tests/assets/iframe/doc_example_override_html.md
diff --git a/kordac/tests/assets/iframe/doc_example_override_html_expected.html b/verto/tests/assets/iframe/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/iframe/doc_example_override_html_expected.html
rename to verto/tests/assets/iframe/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/iframe/doc_example_override_html_template.html b/verto/tests/assets/iframe/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/iframe/doc_example_override_html_template.html
rename to verto/tests/assets/iframe/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/iframe/example_no_link.md b/verto/tests/assets/iframe/example_no_link.md
similarity index 100%
rename from kordac/tests/assets/iframe/example_no_link.md
rename to verto/tests/assets/iframe/example_no_link.md
diff --git a/kordac/tests/assets/image/align_center.md b/verto/tests/assets/image/align_center.md
similarity index 100%
rename from kordac/tests/assets/image/align_center.md
rename to verto/tests/assets/image/align_center.md
diff --git a/kordac/tests/assets/image/align_center_expected.html b/verto/tests/assets/image/align_center_expected.html
similarity index 100%
rename from kordac/tests/assets/image/align_center_expected.html
rename to verto/tests/assets/image/align_center_expected.html
diff --git a/kordac/tests/assets/image/align_left.md b/verto/tests/assets/image/align_left.md
similarity index 100%
rename from kordac/tests/assets/image/align_left.md
rename to verto/tests/assets/image/align_left.md
diff --git a/kordac/tests/assets/image/align_left_expected.html b/verto/tests/assets/image/align_left_expected.html
similarity index 100%
rename from kordac/tests/assets/image/align_left_expected.html
rename to verto/tests/assets/image/align_left_expected.html
diff --git a/kordac/tests/assets/image/align_right.md b/verto/tests/assets/image/align_right.md
similarity index 100%
rename from kordac/tests/assets/image/align_right.md
rename to verto/tests/assets/image/align_right.md
diff --git a/kordac/tests/assets/image/align_right_expected.html b/verto/tests/assets/image/align_right_expected.html
similarity index 100%
rename from kordac/tests/assets/image/align_right_expected.html
rename to verto/tests/assets/image/align_right_expected.html
diff --git a/kordac/tests/assets/image/align_undefined_error.md b/verto/tests/assets/image/align_undefined_error.md
similarity index 100%
rename from kordac/tests/assets/image/align_undefined_error.md
rename to verto/tests/assets/image/align_undefined_error.md
diff --git a/kordac/tests/assets/image/caption_link_error.md b/verto/tests/assets/image/caption_link_error.md
similarity index 100%
rename from kordac/tests/assets/image/caption_link_error.md
rename to verto/tests/assets/image/caption_link_error.md
diff --git a/kordac/tests/assets/image/contains_alt.md b/verto/tests/assets/image/contains_alt.md
similarity index 100%
rename from kordac/tests/assets/image/contains_alt.md
rename to verto/tests/assets/image/contains_alt.md
diff --git a/kordac/tests/assets/image/contains_alt_expected.html b/verto/tests/assets/image/contains_alt_expected.html
similarity index 100%
rename from kordac/tests/assets/image/contains_alt_expected.html
rename to verto/tests/assets/image/contains_alt_expected.html
diff --git a/kordac/tests/assets/image/contains_caption.md b/verto/tests/assets/image/contains_caption.md
similarity index 100%
rename from kordac/tests/assets/image/contains_caption.md
rename to verto/tests/assets/image/contains_caption.md
diff --git a/kordac/tests/assets/image/contains_caption_expected.html b/verto/tests/assets/image/contains_caption_expected.html
similarity index 100%
rename from kordac/tests/assets/image/contains_caption_expected.html
rename to verto/tests/assets/image/contains_caption_expected.html
diff --git a/kordac/tests/assets/image/contains_caption_link.md b/verto/tests/assets/image/contains_caption_link.md
similarity index 100%
rename from kordac/tests/assets/image/contains_caption_link.md
rename to verto/tests/assets/image/contains_caption_link.md
diff --git a/kordac/tests/assets/image/contains_caption_link_expected.html b/verto/tests/assets/image/contains_caption_link_expected.html
similarity index 100%
rename from kordac/tests/assets/image/contains_caption_link_expected.html
rename to verto/tests/assets/image/contains_caption_link_expected.html
diff --git a/kordac/tests/assets/image/contains_hover_text.md b/verto/tests/assets/image/contains_hover_text.md
similarity index 100%
rename from kordac/tests/assets/image/contains_hover_text.md
rename to verto/tests/assets/image/contains_hover_text.md
diff --git a/kordac/tests/assets/image/contains_hover_text_expected.html b/verto/tests/assets/image/contains_hover_text_expected.html
similarity index 100%
rename from kordac/tests/assets/image/contains_hover_text_expected.html
rename to verto/tests/assets/image/contains_hover_text_expected.html
diff --git a/kordac/tests/assets/image/contains_image.md b/verto/tests/assets/image/contains_image.md
similarity index 100%
rename from kordac/tests/assets/image/contains_image.md
rename to verto/tests/assets/image/contains_image.md
diff --git a/kordac/tests/assets/image/contains_image_and_text_contains_word_image.md b/verto/tests/assets/image/contains_image_and_text_contains_word_image.md
similarity index 100%
rename from kordac/tests/assets/image/contains_image_and_text_contains_word_image.md
rename to verto/tests/assets/image/contains_image_and_text_contains_word_image.md
diff --git a/kordac/tests/assets/image/contains_image_and_text_contains_word_image_expected.html b/verto/tests/assets/image/contains_image_and_text_contains_word_image_expected.html
similarity index 100%
rename from kordac/tests/assets/image/contains_image_and_text_contains_word_image_expected.html
rename to verto/tests/assets/image/contains_image_and_text_contains_word_image_expected.html
diff --git a/kordac/tests/assets/image/contains_image_expected.html b/verto/tests/assets/image/contains_image_expected.html
similarity index 100%
rename from kordac/tests/assets/image/contains_image_expected.html
rename to verto/tests/assets/image/contains_image_expected.html
diff --git a/kordac/tests/assets/image/contains_multiple_images.md b/verto/tests/assets/image/contains_multiple_images.md
similarity index 100%
rename from kordac/tests/assets/image/contains_multiple_images.md
rename to verto/tests/assets/image/contains_multiple_images.md
diff --git a/kordac/tests/assets/image/contains_multiple_images_expected.html b/verto/tests/assets/image/contains_multiple_images_expected.html
similarity index 100%
rename from kordac/tests/assets/image/contains_multiple_images_expected.html
rename to verto/tests/assets/image/contains_multiple_images_expected.html
diff --git a/kordac/tests/assets/image/contains_source.md b/verto/tests/assets/image/contains_source.md
similarity index 100%
rename from kordac/tests/assets/image/contains_source.md
rename to verto/tests/assets/image/contains_source.md
diff --git a/kordac/tests/assets/image/contains_source_expected.html b/verto/tests/assets/image/contains_source_expected.html
similarity index 100%
rename from kordac/tests/assets/image/contains_source_expected.html
rename to verto/tests/assets/image/contains_source_expected.html
diff --git a/kordac/tests/assets/image/default_image.md b/verto/tests/assets/image/default_image.md
similarity index 100%
rename from kordac/tests/assets/image/default_image.md
rename to verto/tests/assets/image/default_image.md
diff --git a/kordac/tests/assets/image/default_image_expected.html b/verto/tests/assets/image/default_image_expected.html
similarity index 100%
rename from kordac/tests/assets/image/default_image_expected.html
rename to verto/tests/assets/image/default_image_expected.html
diff --git a/kordac/tests/assets/image/doc_example_2_override_html.md b/verto/tests/assets/image/doc_example_2_override_html.md
similarity index 100%
rename from kordac/tests/assets/image/doc_example_2_override_html.md
rename to verto/tests/assets/image/doc_example_2_override_html.md
diff --git a/kordac/tests/assets/image/doc_example_2_override_html_expected.html b/verto/tests/assets/image/doc_example_2_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/image/doc_example_2_override_html_expected.html
rename to verto/tests/assets/image/doc_example_2_override_html_expected.html
diff --git a/kordac/tests/assets/image/doc_example_2_override_html_template.html b/verto/tests/assets/image/doc_example_2_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/image/doc_example_2_override_html_template.html
rename to verto/tests/assets/image/doc_example_2_override_html_template.html
diff --git a/kordac/tests/assets/image/doc_example_2_override_link_html_template.html b/verto/tests/assets/image/doc_example_2_override_link_html_template.html
similarity index 100%
rename from kordac/tests/assets/image/doc_example_2_override_link_html_template.html
rename to verto/tests/assets/image/doc_example_2_override_link_html_template.html
diff --git a/kordac/tests/assets/image/doc_example_basic_usage.md b/verto/tests/assets/image/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/image/doc_example_basic_usage.md
rename to verto/tests/assets/image/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/image/doc_example_basic_usage_expected.html b/verto/tests/assets/image/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/image/doc_example_basic_usage_expected.html
rename to verto/tests/assets/image/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/image/doc_example_override_html.md b/verto/tests/assets/image/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/image/doc_example_override_html.md
rename to verto/tests/assets/image/doc_example_override_html.md
diff --git a/kordac/tests/assets/image/doc_example_override_html_expected.html b/verto/tests/assets/image/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/image/doc_example_override_html_expected.html
rename to verto/tests/assets/image/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/image/doc_example_override_html_template.html b/verto/tests/assets/image/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/image/doc_example_override_html_template.html
rename to verto/tests/assets/image/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/image/external_image.md b/verto/tests/assets/image/external_image.md
similarity index 100%
rename from kordac/tests/assets/image/external_image.md
rename to verto/tests/assets/image/external_image.md
diff --git a/kordac/tests/assets/image/external_image_expected.html b/verto/tests/assets/image/external_image_expected.html
similarity index 100%
rename from kordac/tests/assets/image/external_image_expected.html
rename to verto/tests/assets/image/external_image_expected.html
diff --git a/kordac/tests/assets/image/internal_image.md b/verto/tests/assets/image/internal_image.md
similarity index 100%
rename from kordac/tests/assets/image/internal_image.md
rename to verto/tests/assets/image/internal_image.md
diff --git a/kordac/tests/assets/image/internal_image_expected.html b/verto/tests/assets/image/internal_image_expected.html
similarity index 100%
rename from kordac/tests/assets/image/internal_image_expected.html
rename to verto/tests/assets/image/internal_image_expected.html
diff --git a/kordac/tests/assets/image/multiple_internal_image.md b/verto/tests/assets/image/multiple_internal_image.md
similarity index 100%
rename from kordac/tests/assets/image/multiple_internal_image.md
rename to verto/tests/assets/image/multiple_internal_image.md
diff --git a/kordac/tests/assets/image/text_contains_the_word_image.md b/verto/tests/assets/image/text_contains_the_word_image.md
similarity index 100%
rename from kordac/tests/assets/image/text_contains_the_word_image.md
rename to verto/tests/assets/image/text_contains_the_word_image.md
diff --git a/kordac/tests/assets/image/text_contains_the_word_image_expected.html b/verto/tests/assets/image/text_contains_the_word_image_expected.html
similarity index 100%
rename from kordac/tests/assets/image/text_contains_the_word_image_expected.html
rename to verto/tests/assets/image/text_contains_the_word_image_expected.html
diff --git a/kordac/tests/assets/interactive/doc_example_iframe_usage.md b/verto/tests/assets/interactive/doc_example_iframe_usage.md
similarity index 100%
rename from kordac/tests/assets/interactive/doc_example_iframe_usage.md
rename to verto/tests/assets/interactive/doc_example_iframe_usage.md
diff --git a/kordac/tests/assets/interactive/doc_example_iframe_usage_expected.html b/verto/tests/assets/interactive/doc_example_iframe_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/interactive/doc_example_iframe_usage_expected.html
rename to verto/tests/assets/interactive/doc_example_iframe_usage_expected.html
diff --git a/kordac/tests/assets/interactive/doc_example_in_page_usage.md b/verto/tests/assets/interactive/doc_example_in_page_usage.md
similarity index 100%
rename from kordac/tests/assets/interactive/doc_example_in_page_usage.md
rename to verto/tests/assets/interactive/doc_example_in_page_usage.md
diff --git a/kordac/tests/assets/interactive/doc_example_in_page_usage_expected.html b/verto/tests/assets/interactive/doc_example_in_page_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/interactive/doc_example_in_page_usage_expected.html
rename to verto/tests/assets/interactive/doc_example_in_page_usage_expected.html
diff --git a/kordac/tests/assets/interactive/doc_example_override_html.md b/verto/tests/assets/interactive/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/interactive/doc_example_override_html.md
rename to verto/tests/assets/interactive/doc_example_override_html.md
diff --git a/kordac/tests/assets/interactive/doc_example_override_html_expected.html b/verto/tests/assets/interactive/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/interactive/doc_example_override_html_expected.html
rename to verto/tests/assets/interactive/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/interactive/doc_example_override_html_template.html b/verto/tests/assets/interactive/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/interactive/doc_example_override_html_template.html
rename to verto/tests/assets/interactive/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/interactive/doc_example_whole_page_usage.md b/verto/tests/assets/interactive/doc_example_whole_page_usage.md
similarity index 100%
rename from kordac/tests/assets/interactive/doc_example_whole_page_usage.md
rename to verto/tests/assets/interactive/doc_example_whole_page_usage.md
diff --git a/kordac/tests/assets/interactive/doc_example_whole_page_usage_expected.html b/verto/tests/assets/interactive/doc_example_whole_page_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/interactive/doc_example_whole_page_usage_expected.html
rename to verto/tests/assets/interactive/doc_example_whole_page_usage_expected.html
diff --git a/kordac/tests/assets/panel/contains_inner_panel.md b/verto/tests/assets/panel/contains_inner_panel.md
similarity index 100%
rename from kordac/tests/assets/panel/contains_inner_panel.md
rename to verto/tests/assets/panel/contains_inner_panel.md
diff --git a/kordac/tests/assets/panel/contains_inner_panel_expected.html b/verto/tests/assets/panel/contains_inner_panel_expected.html
similarity index 100%
rename from kordac/tests/assets/panel/contains_inner_panel_expected.html
rename to verto/tests/assets/panel/contains_inner_panel_expected.html
diff --git a/kordac/tests/assets/panel/contains_multiple_panels.md b/verto/tests/assets/panel/contains_multiple_panels.md
similarity index 100%
rename from kordac/tests/assets/panel/contains_multiple_panels.md
rename to verto/tests/assets/panel/contains_multiple_panels.md
diff --git a/kordac/tests/assets/panel/contains_multiple_panels_expected.html b/verto/tests/assets/panel/contains_multiple_panels_expected.html
similarity index 100%
rename from kordac/tests/assets/panel/contains_multiple_panels_expected.html
rename to verto/tests/assets/panel/contains_multiple_panels_expected.html
diff --git a/kordac/tests/assets/panel/doc_example_basic_usage.md b/verto/tests/assets/panel/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/panel/doc_example_basic_usage.md
rename to verto/tests/assets/panel/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/panel/doc_example_basic_usage_expected.html b/verto/tests/assets/panel/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/panel/doc_example_basic_usage_expected.html
rename to verto/tests/assets/panel/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/panel/doc_example_override_html.md b/verto/tests/assets/panel/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/panel/doc_example_override_html.md
rename to verto/tests/assets/panel/doc_example_override_html.md
diff --git a/kordac/tests/assets/panel/doc_example_override_html_expected.html b/verto/tests/assets/panel/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/panel/doc_example_override_html_expected.html
rename to verto/tests/assets/panel/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/panel/doc_example_override_html_template.html b/verto/tests/assets/panel/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/panel/doc_example_override_html_template.html
rename to verto/tests/assets/panel/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/panel/missing_end_tag.md b/verto/tests/assets/panel/missing_end_tag.md
similarity index 100%
rename from kordac/tests/assets/panel/missing_end_tag.md
rename to verto/tests/assets/panel/missing_end_tag.md
diff --git a/kordac/tests/assets/panel/missing_start_tag.md b/verto/tests/assets/panel/missing_start_tag.md
similarity index 100%
rename from kordac/tests/assets/panel/missing_start_tag.md
rename to verto/tests/assets/panel/missing_start_tag.md
diff --git a/kordac/tests/assets/panel/missing_tag_inner.md b/verto/tests/assets/panel/missing_tag_inner.md
similarity index 100%
rename from kordac/tests/assets/panel/missing_tag_inner.md
rename to verto/tests/assets/panel/missing_tag_inner.md
diff --git a/kordac/tests/assets/panel/parses_always_expanded_panel.md b/verto/tests/assets/panel/parses_always_expanded_panel.md
similarity index 100%
rename from kordac/tests/assets/panel/parses_always_expanded_panel.md
rename to verto/tests/assets/panel/parses_always_expanded_panel.md
diff --git a/kordac/tests/assets/panel/parses_always_expanded_panel_expected.html b/verto/tests/assets/panel/parses_always_expanded_panel_expected.html
similarity index 100%
rename from kordac/tests/assets/panel/parses_always_expanded_panel_expected.html
rename to verto/tests/assets/panel/parses_always_expanded_panel_expected.html
diff --git a/kordac/tests/assets/panel/parses_blank.md b/verto/tests/assets/panel/parses_blank.md
similarity index 100%
rename from kordac/tests/assets/panel/parses_blank.md
rename to verto/tests/assets/panel/parses_blank.md
diff --git a/kordac/tests/assets/panel/parses_blank_lines_multiple_paragraphs.md b/verto/tests/assets/panel/parses_blank_lines_multiple_paragraphs.md
similarity index 100%
rename from kordac/tests/assets/panel/parses_blank_lines_multiple_paragraphs.md
rename to verto/tests/assets/panel/parses_blank_lines_multiple_paragraphs.md
diff --git a/kordac/tests/assets/panel/parses_blank_lines_multiple_paragraphs_expected.html b/verto/tests/assets/panel/parses_blank_lines_multiple_paragraphs_expected.html
similarity index 100%
rename from kordac/tests/assets/panel/parses_blank_lines_multiple_paragraphs_expected.html
rename to verto/tests/assets/panel/parses_blank_lines_multiple_paragraphs_expected.html
diff --git a/kordac/tests/assets/panel/parses_expanded_panel.md b/verto/tests/assets/panel/parses_expanded_panel.md
similarity index 100%
rename from kordac/tests/assets/panel/parses_expanded_panel.md
rename to verto/tests/assets/panel/parses_expanded_panel.md
diff --git a/kordac/tests/assets/panel/parses_expanded_panel_expected.html b/verto/tests/assets/panel/parses_expanded_panel_expected.html
similarity index 100%
rename from kordac/tests/assets/panel/parses_expanded_panel_expected.html
rename to verto/tests/assets/panel/parses_expanded_panel_expected.html
diff --git a/kordac/tests/assets/panel/parses_no_blank_lines_single_paragraph.md b/verto/tests/assets/panel/parses_no_blank_lines_single_paragraph.md
similarity index 100%
rename from kordac/tests/assets/panel/parses_no_blank_lines_single_paragraph.md
rename to verto/tests/assets/panel/parses_no_blank_lines_single_paragraph.md
diff --git a/kordac/tests/assets/panel/parses_no_blank_lines_single_paragraph_expected.html b/verto/tests/assets/panel/parses_no_blank_lines_single_paragraph_expected.html
similarity index 100%
rename from kordac/tests/assets/panel/parses_no_blank_lines_single_paragraph_expected.html
rename to verto/tests/assets/panel/parses_no_blank_lines_single_paragraph_expected.html
diff --git a/kordac/tests/assets/relative-link/doc_example_basic_usage.md b/verto/tests/assets/relative-link/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/relative-link/doc_example_basic_usage.md
rename to verto/tests/assets/relative-link/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/relative-link/doc_example_basic_usage_expected.html b/verto/tests/assets/relative-link/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/doc_example_basic_usage_expected.html
rename to verto/tests/assets/relative-link/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/relative-link/doc_example_override_html.md b/verto/tests/assets/relative-link/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/relative-link/doc_example_override_html.md
rename to verto/tests/assets/relative-link/doc_example_override_html.md
diff --git a/kordac/tests/assets/relative-link/doc_example_override_html_expected.html b/verto/tests/assets/relative-link/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/doc_example_override_html_expected.html
rename to verto/tests/assets/relative-link/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/relative-link/doc_example_override_html_template.html b/verto/tests/assets/relative-link/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/relative-link/doc_example_override_html_template.html
rename to verto/tests/assets/relative-link/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/relative-link/ftp_schema.md b/verto/tests/assets/relative-link/ftp_schema.md
similarity index 100%
rename from kordac/tests/assets/relative-link/ftp_schema.md
rename to verto/tests/assets/relative-link/ftp_schema.md
diff --git a/kordac/tests/assets/relative-link/ftp_schema_expected.html b/verto/tests/assets/relative-link/ftp_schema_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/ftp_schema_expected.html
rename to verto/tests/assets/relative-link/ftp_schema_expected.html
diff --git a/kordac/tests/assets/relative-link/ftp_text.md b/verto/tests/assets/relative-link/ftp_text.md
similarity index 100%
rename from kordac/tests/assets/relative-link/ftp_text.md
rename to verto/tests/assets/relative-link/ftp_text.md
diff --git a/kordac/tests/assets/relative-link/ftp_text_expected.html b/verto/tests/assets/relative-link/ftp_text_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/ftp_text_expected.html
rename to verto/tests/assets/relative-link/ftp_text_expected.html
diff --git a/kordac/tests/assets/relative-link/ftps_schema.md b/verto/tests/assets/relative-link/ftps_schema.md
similarity index 100%
rename from kordac/tests/assets/relative-link/ftps_schema.md
rename to verto/tests/assets/relative-link/ftps_schema.md
diff --git a/kordac/tests/assets/relative-link/ftps_schema_expected.html b/verto/tests/assets/relative-link/ftps_schema_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/ftps_schema_expected.html
rename to verto/tests/assets/relative-link/ftps_schema_expected.html
diff --git a/kordac/tests/assets/relative-link/ftps_text.md b/verto/tests/assets/relative-link/ftps_text.md
similarity index 100%
rename from kordac/tests/assets/relative-link/ftps_text.md
rename to verto/tests/assets/relative-link/ftps_text.md
diff --git a/kordac/tests/assets/relative-link/ftps_text_expected.html b/verto/tests/assets/relative-link/ftps_text_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/ftps_text_expected.html
rename to verto/tests/assets/relative-link/ftps_text_expected.html
diff --git a/kordac/tests/assets/relative-link/http_schema.md b/verto/tests/assets/relative-link/http_schema.md
similarity index 100%
rename from kordac/tests/assets/relative-link/http_schema.md
rename to verto/tests/assets/relative-link/http_schema.md
diff --git a/kordac/tests/assets/relative-link/http_schema_expected.html b/verto/tests/assets/relative-link/http_schema_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/http_schema_expected.html
rename to verto/tests/assets/relative-link/http_schema_expected.html
diff --git a/kordac/tests/assets/relative-link/http_text.md b/verto/tests/assets/relative-link/http_text.md
similarity index 100%
rename from kordac/tests/assets/relative-link/http_text.md
rename to verto/tests/assets/relative-link/http_text.md
diff --git a/kordac/tests/assets/relative-link/http_text_expected.html b/verto/tests/assets/relative-link/http_text_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/http_text_expected.html
rename to verto/tests/assets/relative-link/http_text_expected.html
diff --git a/kordac/tests/assets/relative-link/https_schema.md b/verto/tests/assets/relative-link/https_schema.md
similarity index 100%
rename from kordac/tests/assets/relative-link/https_schema.md
rename to verto/tests/assets/relative-link/https_schema.md
diff --git a/kordac/tests/assets/relative-link/https_schema_expected.html b/verto/tests/assets/relative-link/https_schema_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/https_schema_expected.html
rename to verto/tests/assets/relative-link/https_schema_expected.html
diff --git a/kordac/tests/assets/relative-link/https_text.md b/verto/tests/assets/relative-link/https_text.md
similarity index 100%
rename from kordac/tests/assets/relative-link/https_text.md
rename to verto/tests/assets/relative-link/https_text.md
diff --git a/kordac/tests/assets/relative-link/https_text_expected.html b/verto/tests/assets/relative-link/https_text_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/https_text_expected.html
rename to verto/tests/assets/relative-link/https_text_expected.html
diff --git a/kordac/tests/assets/relative-link/long_path.md b/verto/tests/assets/relative-link/long_path.md
similarity index 100%
rename from kordac/tests/assets/relative-link/long_path.md
rename to verto/tests/assets/relative-link/long_path.md
diff --git a/kordac/tests/assets/relative-link/long_path_expected.html b/verto/tests/assets/relative-link/long_path_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/long_path_expected.html
rename to verto/tests/assets/relative-link/long_path_expected.html
diff --git a/kordac/tests/assets/relative-link/mailto_schema.md b/verto/tests/assets/relative-link/mailto_schema.md
similarity index 100%
rename from kordac/tests/assets/relative-link/mailto_schema.md
rename to verto/tests/assets/relative-link/mailto_schema.md
diff --git a/kordac/tests/assets/relative-link/mailto_schema_expected.html b/verto/tests/assets/relative-link/mailto_schema_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/mailto_schema_expected.html
rename to verto/tests/assets/relative-link/mailto_schema_expected.html
diff --git a/kordac/tests/assets/relative-link/mailto_text.md b/verto/tests/assets/relative-link/mailto_text.md
similarity index 100%
rename from kordac/tests/assets/relative-link/mailto_text.md
rename to verto/tests/assets/relative-link/mailto_text.md
diff --git a/kordac/tests/assets/relative-link/mailto_text_expected.html b/verto/tests/assets/relative-link/mailto_text_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/mailto_text_expected.html
rename to verto/tests/assets/relative-link/mailto_text_expected.html
diff --git a/kordac/tests/assets/relative-link/multiple_links.md b/verto/tests/assets/relative-link/multiple_links.md
similarity index 100%
rename from kordac/tests/assets/relative-link/multiple_links.md
rename to verto/tests/assets/relative-link/multiple_links.md
diff --git a/kordac/tests/assets/relative-link/multiple_links_expected.html b/verto/tests/assets/relative-link/multiple_links_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/multiple_links_expected.html
rename to verto/tests/assets/relative-link/multiple_links_expected.html
diff --git a/kordac/tests/assets/relative-link/news_schema.md b/verto/tests/assets/relative-link/news_schema.md
similarity index 100%
rename from kordac/tests/assets/relative-link/news_schema.md
rename to verto/tests/assets/relative-link/news_schema.md
diff --git a/kordac/tests/assets/relative-link/news_schema_expected.html b/verto/tests/assets/relative-link/news_schema_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/news_schema_expected.html
rename to verto/tests/assets/relative-link/news_schema_expected.html
diff --git a/kordac/tests/assets/relative-link/news_text.md b/verto/tests/assets/relative-link/news_text.md
similarity index 100%
rename from kordac/tests/assets/relative-link/news_text.md
rename to verto/tests/assets/relative-link/news_text.md
diff --git a/kordac/tests/assets/relative-link/news_text_expected.html b/verto/tests/assets/relative-link/news_text_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/news_text_expected.html
rename to verto/tests/assets/relative-link/news_text_expected.html
diff --git a/kordac/tests/assets/relative-link/www_text.md b/verto/tests/assets/relative-link/www_text.md
similarity index 100%
rename from kordac/tests/assets/relative-link/www_text.md
rename to verto/tests/assets/relative-link/www_text.md
diff --git a/kordac/tests/assets/relative-link/www_text_expected.html b/verto/tests/assets/relative-link/www_text_expected.html
similarity index 100%
rename from kordac/tests/assets/relative-link/www_text_expected.html
rename to verto/tests/assets/relative-link/www_text_expected.html
diff --git a/kordac/tests/assets/remove-title/doc_example_basic_usage.md b/verto/tests/assets/remove-title/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/remove-title/doc_example_basic_usage.md
rename to verto/tests/assets/remove-title/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/remove-title/doc_example_basic_usage_expected.html b/verto/tests/assets/remove-title/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/remove-title/doc_example_basic_usage_expected.html
rename to verto/tests/assets/remove-title/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/remove-title/level_two_heading.md b/verto/tests/assets/remove-title/level_two_heading.md
similarity index 100%
rename from kordac/tests/assets/remove-title/level_two_heading.md
rename to verto/tests/assets/remove-title/level_two_heading.md
diff --git a/kordac/tests/assets/remove-title/level_two_heading_expected.html b/verto/tests/assets/remove-title/level_two_heading_expected.html
similarity index 100%
rename from kordac/tests/assets/remove-title/level_two_heading_expected.html
rename to verto/tests/assets/remove-title/level_two_heading_expected.html
diff --git a/kordac/tests/assets/remove-title/multiple_headings.md b/verto/tests/assets/remove-title/multiple_headings.md
similarity index 100%
rename from kordac/tests/assets/remove-title/multiple_headings.md
rename to verto/tests/assets/remove-title/multiple_headings.md
diff --git a/kordac/tests/assets/remove-title/multiple_headings_expected.html b/verto/tests/assets/remove-title/multiple_headings_expected.html
similarity index 100%
rename from kordac/tests/assets/remove-title/multiple_headings_expected.html
rename to verto/tests/assets/remove-title/multiple_headings_expected.html
diff --git a/kordac/tests/assets/remove-title/multiple_level_one_headings.md b/verto/tests/assets/remove-title/multiple_level_one_headings.md
similarity index 100%
rename from kordac/tests/assets/remove-title/multiple_level_one_headings.md
rename to verto/tests/assets/remove-title/multiple_level_one_headings.md
diff --git a/kordac/tests/assets/remove-title/multiple_level_one_headings_expected.html b/verto/tests/assets/remove-title/multiple_level_one_headings_expected.html
similarity index 100%
rename from kordac/tests/assets/remove-title/multiple_level_one_headings_expected.html
rename to verto/tests/assets/remove-title/multiple_level_one_headings_expected.html
diff --git a/kordac/tests/assets/remove-title/no_heading_permalink.md b/verto/tests/assets/remove-title/no_heading_permalink.md
similarity index 100%
rename from kordac/tests/assets/remove-title/no_heading_permalink.md
rename to verto/tests/assets/remove-title/no_heading_permalink.md
diff --git a/kordac/tests/assets/remove-title/no_heading_permalink_expected.html b/verto/tests/assets/remove-title/no_heading_permalink_expected.html
similarity index 100%
rename from kordac/tests/assets/remove-title/no_heading_permalink_expected.html
rename to verto/tests/assets/remove-title/no_heading_permalink_expected.html
diff --git a/kordac/tests/assets/remove-title/no_headings.md b/verto/tests/assets/remove-title/no_headings.md
similarity index 100%
rename from kordac/tests/assets/remove-title/no_headings.md
rename to verto/tests/assets/remove-title/no_headings.md
diff --git a/kordac/tests/assets/remove-title/no_headings_expected.html b/verto/tests/assets/remove-title/no_headings_expected.html
similarity index 100%
rename from kordac/tests/assets/remove-title/no_headings_expected.html
rename to verto/tests/assets/remove-title/no_headings_expected.html
diff --git a/kordac/tests/assets/remove-title/no_space_title.md b/verto/tests/assets/remove-title/no_space_title.md
similarity index 100%
rename from kordac/tests/assets/remove-title/no_space_title.md
rename to verto/tests/assets/remove-title/no_space_title.md
diff --git a/kordac/tests/assets/remove-title/no_space_title_expected.html b/verto/tests/assets/remove-title/no_space_title_expected.html
similarity index 100%
rename from kordac/tests/assets/remove-title/no_space_title_expected.html
rename to verto/tests/assets/remove-title/no_space_title_expected.html
diff --git a/kordac/tests/assets/remove-title/processor_off.md b/verto/tests/assets/remove-title/processor_off.md
similarity index 100%
rename from kordac/tests/assets/remove-title/processor_off.md
rename to verto/tests/assets/remove-title/processor_off.md
diff --git a/kordac/tests/assets/remove-title/processor_off_expected.html b/verto/tests/assets/remove-title/processor_off_expected.html
similarity index 100%
rename from kordac/tests/assets/remove-title/processor_off_expected.html
rename to verto/tests/assets/remove-title/processor_off_expected.html
diff --git a/kordac/tests/assets/save-title/doc_example_basic_usage.md b/verto/tests/assets/save-title/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/save-title/doc_example_basic_usage.md
rename to verto/tests/assets/save-title/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/save-title/doc_example_basic_usage_expected.html b/verto/tests/assets/save-title/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/save-title/doc_example_basic_usage_expected.html
rename to verto/tests/assets/save-title/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/save-title/level_two_heading.md b/verto/tests/assets/save-title/level_two_heading.md
similarity index 100%
rename from kordac/tests/assets/save-title/level_two_heading.md
rename to verto/tests/assets/save-title/level_two_heading.md
diff --git a/kordac/tests/assets/save-title/level_two_heading_expected.html b/verto/tests/assets/save-title/level_two_heading_expected.html
similarity index 100%
rename from kordac/tests/assets/save-title/level_two_heading_expected.html
rename to verto/tests/assets/save-title/level_two_heading_expected.html
diff --git a/kordac/tests/assets/save-title/multiple_headings.md b/verto/tests/assets/save-title/multiple_headings.md
similarity index 100%
rename from kordac/tests/assets/save-title/multiple_headings.md
rename to verto/tests/assets/save-title/multiple_headings.md
diff --git a/kordac/tests/assets/save-title/multiple_headings_expected.html b/verto/tests/assets/save-title/multiple_headings_expected.html
similarity index 100%
rename from kordac/tests/assets/save-title/multiple_headings_expected.html
rename to verto/tests/assets/save-title/multiple_headings_expected.html
diff --git a/kordac/tests/assets/save-title/multiple_level_one_headings.md b/verto/tests/assets/save-title/multiple_level_one_headings.md
similarity index 100%
rename from kordac/tests/assets/save-title/multiple_level_one_headings.md
rename to verto/tests/assets/save-title/multiple_level_one_headings.md
diff --git a/kordac/tests/assets/save-title/multiple_level_one_headings_expected.html b/verto/tests/assets/save-title/multiple_level_one_headings_expected.html
similarity index 100%
rename from kordac/tests/assets/save-title/multiple_level_one_headings_expected.html
rename to verto/tests/assets/save-title/multiple_level_one_headings_expected.html
diff --git a/kordac/tests/assets/save-title/no_heading_permalink.md b/verto/tests/assets/save-title/no_heading_permalink.md
similarity index 100%
rename from kordac/tests/assets/save-title/no_heading_permalink.md
rename to verto/tests/assets/save-title/no_heading_permalink.md
diff --git a/kordac/tests/assets/save-title/no_headings.md b/verto/tests/assets/save-title/no_headings.md
similarity index 100%
rename from kordac/tests/assets/save-title/no_headings.md
rename to verto/tests/assets/save-title/no_headings.md
diff --git a/kordac/tests/assets/save-title/no_space_title.md b/verto/tests/assets/save-title/no_space_title.md
similarity index 100%
rename from kordac/tests/assets/save-title/no_space_title.md
rename to verto/tests/assets/save-title/no_space_title.md
diff --git a/kordac/tests/assets/save-title/no_space_title_expected.html b/verto/tests/assets/save-title/no_space_title_expected.html
similarity index 100%
rename from kordac/tests/assets/save-title/no_space_title_expected.html
rename to verto/tests/assets/save-title/no_space_title_expected.html
diff --git a/kordac/tests/assets/scratch/doc_example_basic_usage.md b/verto/tests/assets/scratch/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/scratch/doc_example_basic_usage.md
rename to verto/tests/assets/scratch/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/scratch/doc_example_basic_usage_expected.html b/verto/tests/assets/scratch/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/scratch/doc_example_basic_usage_expected.html
rename to verto/tests/assets/scratch/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/scratch/doc_example_override_html.md b/verto/tests/assets/scratch/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/scratch/doc_example_override_html.md
rename to verto/tests/assets/scratch/doc_example_override_html.md
diff --git a/kordac/tests/assets/scratch/doc_example_override_html_expected.html b/verto/tests/assets/scratch/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/scratch/doc_example_override_html_expected.html
rename to verto/tests/assets/scratch/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/scratch/doc_example_override_html_template.html b/verto/tests/assets/scratch/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/scratch/doc_example_override_html_template.html
rename to verto/tests/assets/scratch/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/scratch/example_multiple_codeblocks.md b/verto/tests/assets/scratch/example_multiple_codeblocks.md
similarity index 100%
rename from kordac/tests/assets/scratch/example_multiple_codeblocks.md
rename to verto/tests/assets/scratch/example_multiple_codeblocks.md
diff --git a/kordac/tests/assets/scratch/example_multiple_codeblocks_2.md b/verto/tests/assets/scratch/example_multiple_codeblocks_2.md
similarity index 100%
rename from kordac/tests/assets/scratch/example_multiple_codeblocks_2.md
rename to verto/tests/assets/scratch/example_multiple_codeblocks_2.md
diff --git a/kordac/tests/assets/scratch/example_multiple_codeblocks_expected.html b/verto/tests/assets/scratch/example_multiple_codeblocks_expected.html
similarity index 100%
rename from kordac/tests/assets/scratch/example_multiple_codeblocks_expected.html
rename to verto/tests/assets/scratch/example_multiple_codeblocks_expected.html
diff --git a/kordac/tests/assets/scratch/example_multiple_codeblocks_expected_2.html b/verto/tests/assets/scratch/example_multiple_codeblocks_expected_2.html
similarity index 100%
rename from kordac/tests/assets/scratch/example_multiple_codeblocks_expected_2.html
rename to verto/tests/assets/scratch/example_multiple_codeblocks_expected_2.html
diff --git a/kordac/tests/assets/scratch/example_other_code.md b/verto/tests/assets/scratch/example_other_code.md
similarity index 100%
rename from kordac/tests/assets/scratch/example_other_code.md
rename to verto/tests/assets/scratch/example_other_code.md
diff --git a/kordac/tests/assets/scratch/example_other_code_expected.html b/verto/tests/assets/scratch/example_other_code_expected.html
similarity index 100%
rename from kordac/tests/assets/scratch/example_other_code_expected.html
rename to verto/tests/assets/scratch/example_other_code_expected.html
diff --git a/kordac/tests/assets/scratch/example_random_codeblocks.md b/verto/tests/assets/scratch/example_random_codeblocks.md
similarity index 100%
rename from kordac/tests/assets/scratch/example_random_codeblocks.md
rename to verto/tests/assets/scratch/example_random_codeblocks.md
diff --git a/kordac/tests/assets/scratch/example_random_split_codeblocks.md b/verto/tests/assets/scratch/example_random_split_codeblocks.md
similarity index 100%
rename from kordac/tests/assets/scratch/example_random_split_codeblocks.md
rename to verto/tests/assets/scratch/example_random_split_codeblocks.md
diff --git a/kordac/tests/assets/scratch/example_separate_blocks.md b/verto/tests/assets/scratch/example_separate_blocks.md
similarity index 100%
rename from kordac/tests/assets/scratch/example_separate_blocks.md
rename to verto/tests/assets/scratch/example_separate_blocks.md
diff --git a/kordac/tests/assets/scratch/example_separate_blocks_expected.html b/verto/tests/assets/scratch/example_separate_blocks_expected.html
similarity index 100%
rename from kordac/tests/assets/scratch/example_separate_blocks_expected.html
rename to verto/tests/assets/scratch/example_separate_blocks_expected.html
diff --git a/kordac/tests/assets/scratch/example_split_codeblocks.md b/verto/tests/assets/scratch/example_split_codeblocks.md
similarity index 100%
rename from kordac/tests/assets/scratch/example_split_codeblocks.md
rename to verto/tests/assets/scratch/example_split_codeblocks.md
diff --git a/kordac/tests/assets/scratch/example_split_codeblocks_default.md b/verto/tests/assets/scratch/example_split_codeblocks_default.md
similarity index 100%
rename from kordac/tests/assets/scratch/example_split_codeblocks_default.md
rename to verto/tests/assets/scratch/example_split_codeblocks_default.md
diff --git a/kordac/tests/assets/scratch/example_split_codeblocks_expected.html b/verto/tests/assets/scratch/example_split_codeblocks_expected.html
similarity index 100%
rename from kordac/tests/assets/scratch/example_split_codeblocks_expected.html
rename to verto/tests/assets/scratch/example_split_codeblocks_expected.html
diff --git a/kordac/tests/assets/scratch/example_standard_markdown_block.md b/verto/tests/assets/scratch/example_standard_markdown_block.md
similarity index 100%
rename from kordac/tests/assets/scratch/example_standard_markdown_block.md
rename to verto/tests/assets/scratch/example_standard_markdown_block.md
diff --git a/kordac/tests/assets/scratch/example_standard_markdown_block_expected.html b/verto/tests/assets/scratch/example_standard_markdown_block_expected.html
similarity index 100%
rename from kordac/tests/assets/scratch/example_standard_markdown_block_expected.html
rename to verto/tests/assets/scratch/example_standard_markdown_block_expected.html
diff --git a/kordac/tests/assets/smoke/algorithms.md b/verto/tests/assets/smoke/algorithms.md
similarity index 100%
rename from kordac/tests/assets/smoke/algorithms.md
rename to verto/tests/assets/smoke/algorithms.md
diff --git a/kordac/tests/assets/smoke/introduction.md b/verto/tests/assets/smoke/introduction.md
similarity index 100%
rename from kordac/tests/assets/smoke/introduction.md
rename to verto/tests/assets/smoke/introduction.md
diff --git a/kordac/tests/assets/style/doc_example_block_solitary.md b/verto/tests/assets/style/doc_example_block_solitary.md
similarity index 100%
rename from kordac/tests/assets/style/doc_example_block_solitary.md
rename to verto/tests/assets/style/doc_example_block_solitary.md
diff --git a/kordac/tests/assets/style/doc_example_block_solitary_1.md b/verto/tests/assets/style/doc_example_block_solitary_1.md
similarity index 100%
rename from kordac/tests/assets/style/doc_example_block_solitary_1.md
rename to verto/tests/assets/style/doc_example_block_solitary_1.md
diff --git a/kordac/tests/assets/style/doc_example_block_valid.md b/verto/tests/assets/style/doc_example_block_valid.md
similarity index 100%
rename from kordac/tests/assets/style/doc_example_block_valid.md
rename to verto/tests/assets/style/doc_example_block_valid.md
diff --git a/kordac/tests/assets/style/doc_example_block_whitespace.md b/verto/tests/assets/style/doc_example_block_whitespace.md
similarity index 100%
rename from kordac/tests/assets/style/doc_example_block_whitespace.md
rename to verto/tests/assets/style/doc_example_block_whitespace.md
diff --git a/kordac/tests/assets/style/doc_example_block_whitespace_1.md b/verto/tests/assets/style/doc_example_block_whitespace_1.md
similarity index 100%
rename from kordac/tests/assets/style/doc_example_block_whitespace_1.md
rename to verto/tests/assets/style/doc_example_block_whitespace_1.md
diff --git a/kordac/tests/assets/style/doc_example_block_whitespace_2.md b/verto/tests/assets/style/doc_example_block_whitespace_2.md
similarity index 100%
rename from kordac/tests/assets/style/doc_example_block_whitespace_2.md
rename to verto/tests/assets/style/doc_example_block_whitespace_2.md
diff --git a/kordac/tests/assets/style/doc_example_block_whitespace_3.md b/verto/tests/assets/style/doc_example_block_whitespace_3.md
similarity index 100%
rename from kordac/tests/assets/style/doc_example_block_whitespace_3.md
rename to verto/tests/assets/style/doc_example_block_whitespace_3.md
diff --git a/kordac/tests/assets/table-of-contents/doc_example_basic_usage.md b/verto/tests/assets/table-of-contents/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/table-of-contents/doc_example_basic_usage.md
rename to verto/tests/assets/table-of-contents/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/table-of-contents/doc_example_basic_usage_expected.html b/verto/tests/assets/table-of-contents/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/table-of-contents/doc_example_basic_usage_expected.html
rename to verto/tests/assets/table-of-contents/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/table-of-contents/doc_example_override_html.md b/verto/tests/assets/table-of-contents/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/table-of-contents/doc_example_override_html.md
rename to verto/tests/assets/table-of-contents/doc_example_override_html.md
diff --git a/kordac/tests/assets/table-of-contents/doc_example_override_html_expected.html b/verto/tests/assets/table-of-contents/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/table-of-contents/doc_example_override_html_expected.html
rename to verto/tests/assets/table-of-contents/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/table-of-contents/doc_example_override_html_template.html b/verto/tests/assets/table-of-contents/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/table-of-contents/doc_example_override_html_template.html
rename to verto/tests/assets/table-of-contents/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/video/contains_multiple_videos.md b/verto/tests/assets/video/contains_multiple_videos.md
similarity index 100%
rename from kordac/tests/assets/video/contains_multiple_videos.md
rename to verto/tests/assets/video/contains_multiple_videos.md
diff --git a/kordac/tests/assets/video/contains_multiple_videos_expected.html b/verto/tests/assets/video/contains_multiple_videos_expected.html
similarity index 100%
rename from kordac/tests/assets/video/contains_multiple_videos_expected.html
rename to verto/tests/assets/video/contains_multiple_videos_expected.html
diff --git a/kordac/tests/assets/video/contains_no_video.md b/verto/tests/assets/video/contains_no_video.md
similarity index 100%
rename from kordac/tests/assets/video/contains_no_video.md
rename to verto/tests/assets/video/contains_no_video.md
diff --git a/kordac/tests/assets/video/contains_no_video_expected.html b/verto/tests/assets/video/contains_no_video_expected.html
similarity index 100%
rename from kordac/tests/assets/video/contains_no_video_expected.html
rename to verto/tests/assets/video/contains_no_video_expected.html
diff --git a/kordac/tests/assets/video/contains_vimeo_video.md b/verto/tests/assets/video/contains_vimeo_video.md
similarity index 100%
rename from kordac/tests/assets/video/contains_vimeo_video.md
rename to verto/tests/assets/video/contains_vimeo_video.md
diff --git a/kordac/tests/assets/video/contains_vimeo_video_expected.html b/verto/tests/assets/video/contains_vimeo_video_expected.html
similarity index 100%
rename from kordac/tests/assets/video/contains_vimeo_video_expected.html
rename to verto/tests/assets/video/contains_vimeo_video_expected.html
diff --git a/kordac/tests/assets/video/doc_example_basic_usage.md b/verto/tests/assets/video/doc_example_basic_usage.md
similarity index 100%
rename from kordac/tests/assets/video/doc_example_basic_usage.md
rename to verto/tests/assets/video/doc_example_basic_usage.md
diff --git a/kordac/tests/assets/video/doc_example_basic_usage_expected.html b/verto/tests/assets/video/doc_example_basic_usage_expected.html
similarity index 100%
rename from kordac/tests/assets/video/doc_example_basic_usage_expected.html
rename to verto/tests/assets/video/doc_example_basic_usage_expected.html
diff --git a/kordac/tests/assets/video/doc_example_override_html.md b/verto/tests/assets/video/doc_example_override_html.md
similarity index 100%
rename from kordac/tests/assets/video/doc_example_override_html.md
rename to verto/tests/assets/video/doc_example_override_html.md
diff --git a/kordac/tests/assets/video/doc_example_override_html_expected.html b/verto/tests/assets/video/doc_example_override_html_expected.html
similarity index 100%
rename from kordac/tests/assets/video/doc_example_override_html_expected.html
rename to verto/tests/assets/video/doc_example_override_html_expected.html
diff --git a/kordac/tests/assets/video/doc_example_override_html_template.html b/verto/tests/assets/video/doc_example_override_html_template.html
similarity index 100%
rename from kordac/tests/assets/video/doc_example_override_html_template.html
rename to verto/tests/assets/video/doc_example_override_html_template.html
diff --git a/kordac/tests/assets/video/doc_example_override_html_youtube_template.html b/verto/tests/assets/video/doc_example_override_html_youtube_template.html
similarity index 100%
rename from kordac/tests/assets/video/doc_example_override_html_youtube_template.html
rename to verto/tests/assets/video/doc_example_override_html_youtube_template.html
diff --git a/kordac/tests/assets/video/missing_identifier.md b/verto/tests/assets/video/missing_identifier.md
similarity index 100%
rename from kordac/tests/assets/video/missing_identifier.md
rename to verto/tests/assets/video/missing_identifier.md
diff --git a/kordac/tests/assets/video/multiple_vimeo_links.md b/verto/tests/assets/video/multiple_vimeo_links.md
similarity index 100%
rename from kordac/tests/assets/video/multiple_vimeo_links.md
rename to verto/tests/assets/video/multiple_vimeo_links.md
diff --git a/kordac/tests/assets/video/multiple_vimeo_links_expected.html b/verto/tests/assets/video/multiple_vimeo_links_expected.html
similarity index 100%
rename from kordac/tests/assets/video/multiple_vimeo_links_expected.html
rename to verto/tests/assets/video/multiple_vimeo_links_expected.html
diff --git a/kordac/tests/assets/video/multiple_youtube_links.md b/verto/tests/assets/video/multiple_youtube_links.md
similarity index 100%
rename from kordac/tests/assets/video/multiple_youtube_links.md
rename to verto/tests/assets/video/multiple_youtube_links.md
diff --git a/kordac/tests/assets/video/multiple_youtube_links_expected.html b/verto/tests/assets/video/multiple_youtube_links_expected.html
similarity index 100%
rename from kordac/tests/assets/video/multiple_youtube_links_expected.html
rename to verto/tests/assets/video/multiple_youtube_links_expected.html
diff --git a/kordac/tests/assets/video/unsupported_video_type.md b/verto/tests/assets/video/unsupported_video_type.md
similarity index 100%
rename from kordac/tests/assets/video/unsupported_video_type.md
rename to verto/tests/assets/video/unsupported_video_type.md
diff --git a/kordac/tests/assets/video/vimeo_link.md b/verto/tests/assets/video/vimeo_link.md
similarity index 100%
rename from kordac/tests/assets/video/vimeo_link.md
rename to verto/tests/assets/video/vimeo_link.md
diff --git a/kordac/tests/assets/video/vimeo_link_expected.html b/verto/tests/assets/video/vimeo_link_expected.html
similarity index 100%
rename from kordac/tests/assets/video/vimeo_link_expected.html
rename to verto/tests/assets/video/vimeo_link_expected.html
diff --git a/kordac/tests/assets/video/vimeo_player_link.md b/verto/tests/assets/video/vimeo_player_link.md
similarity index 100%
rename from kordac/tests/assets/video/vimeo_player_link.md
rename to verto/tests/assets/video/vimeo_player_link.md
diff --git a/kordac/tests/assets/video/vimeo_player_link_expected.html b/verto/tests/assets/video/vimeo_player_link_expected.html
similarity index 100%
rename from kordac/tests/assets/video/vimeo_player_link_expected.html
rename to verto/tests/assets/video/vimeo_player_link_expected.html
diff --git a/kordac/tests/assets/video/youtube_and_vimeo_links.md b/verto/tests/assets/video/youtube_and_vimeo_links.md
similarity index 100%
rename from kordac/tests/assets/video/youtube_and_vimeo_links.md
rename to verto/tests/assets/video/youtube_and_vimeo_links.md
diff --git a/kordac/tests/assets/video/youtube_and_vimeo_links_expected.html b/verto/tests/assets/video/youtube_and_vimeo_links_expected.html
similarity index 100%
rename from kordac/tests/assets/video/youtube_and_vimeo_links_expected.html
rename to verto/tests/assets/video/youtube_and_vimeo_links_expected.html
diff --git a/kordac/tests/assets/video/youtube_be_link.md b/verto/tests/assets/video/youtube_be_link.md
similarity index 100%
rename from kordac/tests/assets/video/youtube_be_link.md
rename to verto/tests/assets/video/youtube_be_link.md
diff --git a/kordac/tests/assets/video/youtube_be_link_expected.html b/verto/tests/assets/video/youtube_be_link_expected.html
similarity index 100%
rename from kordac/tests/assets/video/youtube_be_link_expected.html
rename to verto/tests/assets/video/youtube_be_link_expected.html
diff --git a/kordac/tests/assets/video/youtube_embed_link.md b/verto/tests/assets/video/youtube_embed_link.md
similarity index 100%
rename from kordac/tests/assets/video/youtube_embed_link.md
rename to verto/tests/assets/video/youtube_embed_link.md
diff --git a/kordac/tests/assets/video/youtube_embed_link_expected.html b/verto/tests/assets/video/youtube_embed_link_expected.html
similarity index 100%
rename from kordac/tests/assets/video/youtube_embed_link_expected.html
rename to verto/tests/assets/video/youtube_embed_link_expected.html
diff --git a/kordac/tests/assets/video/youtube_watch_link.md b/verto/tests/assets/video/youtube_watch_link.md
similarity index 100%
rename from kordac/tests/assets/video/youtube_watch_link.md
rename to verto/tests/assets/video/youtube_watch_link.md
diff --git a/kordac/tests/assets/video/youtube_watch_link_expected.html b/verto/tests/assets/video/youtube_watch_link_expected.html
similarity index 100%
rename from kordac/tests/assets/video/youtube_watch_link_expected.html
rename to verto/tests/assets/video/youtube_watch_link_expected.html
diff --git a/kordac/tests/start_tests.py b/verto/tests/start_tests.py
similarity index 71%
rename from kordac/tests/start_tests.py
rename to verto/tests/start_tests.py
index 79241b64..ddc2e2ec 100644
--- a/kordac/tests/start_tests.py
+++ b/verto/tests/start_tests.py
@@ -1,33 +1,33 @@
import sys, unittest, optparse
from collections import defaultdict
-from kordac.tests.SmokeTests import SmokeFileTest, SmokeDocsTest
-from kordac.tests.ConfigurationTest import ConfigurationTest
-from kordac.tests.GlossaryLinkTest import GlossaryLinkTest
-from kordac.tests.PanelTest import PanelTest
-from kordac.tests.CommentTest import CommentTest
-from kordac.tests.HeadingTest import HeadingTest
-from kordac.tests.ImageTest import ImageTest
-from kordac.tests.VideoTest import VideoTest
-from kordac.tests.InteractiveTest import InteractiveTest
-from kordac.tests.ButtonLinkTest import ButtonLinkTest
-from kordac.tests.BoxedTextTest import BoxedTextTest
-from kordac.tests.SaveTitleTest import SaveTitleTest
-from kordac.tests.RemoveTitleTest import RemoveTitleTest
-from kordac.tests.RelativeLinkTest import RelativeLinkTest
-from kordac.tests.ConditionalTest import ConditionalTest
-from kordac.tests.StyleTest import StyleTest
-from kordac.tests.FrameTest import FrameTest
-from kordac.tests.TableOfContentsTest import TableOfContentsTest
-from kordac.tests.ScratchTest import ScratchTest
-from kordac.tests.BeautifyTest import BeautifyTest
+from verto.tests.SmokeTests import SmokeFileTest, SmokeDocsTest
+from verto.tests.ConfigurationTest import ConfigurationTest
+from verto.tests.GlossaryLinkTest import GlossaryLinkTest
+from verto.tests.PanelTest import PanelTest
+from verto.tests.CommentTest import CommentTest
+from verto.tests.HeadingTest import HeadingTest
+from verto.tests.ImageTest import ImageTest
+from verto.tests.VideoTest import VideoTest
+from verto.tests.InteractiveTest import InteractiveTest
+from verto.tests.ButtonLinkTest import ButtonLinkTest
+from verto.tests.BoxedTextTest import BoxedTextTest
+from verto.tests.SaveTitleTest import SaveTitleTest
+from verto.tests.RemoveTitleTest import RemoveTitleTest
+from verto.tests.RelativeLinkTest import RelativeLinkTest
+from verto.tests.ConditionalTest import ConditionalTest
+from verto.tests.FrameTest import FrameTest
+from verto.tests.StyleTest import StyleTest
+from verto.tests.TableOfContentsTest import TableOfContentsTest
+from verto.tests.ScratchTest import ScratchTest
+from verto.tests.BeautifyTest import BeautifyTest
def parse_args():
'''Parses the arguments for running the test suite, these are
useful for developing when parts of verto are known to fail.
'''
opts = optparse.OptionParser(
- usage='Run the command `python -m kordac.tests.start_tests` from the level above the kordac directory.', description='Verifies that Kordac is functional compared to the testing suite.')
+ usage='Run the command `python -m verto.tests.start_tests` from the level above the verto directory.', description='Verifies that Verto is functional compared to the testing suite.')
opts.add_option('--travis',
action='store_true', help='Enables skipping suites on failure. To be used by continuous integration system.', default=False)
opts.add_option('--no_smoke',
diff --git a/kordac/utils/HeadingNode.py b/verto/utils/HeadingNode.py
similarity index 100%
rename from kordac/utils/HeadingNode.py
rename to verto/utils/HeadingNode.py
diff --git a/kordac/utils/UniqueSlugify.py b/verto/utils/UniqueSlugify.py
similarity index 100%
rename from kordac/utils/UniqueSlugify.py
rename to verto/utils/UniqueSlugify.py
diff --git a/kordac/utils/__init__.py b/verto/utils/__init__.py
similarity index 100%
rename from kordac/utils/__init__.py
rename to verto/utils/__init__.py
diff --git a/kordac/utils/overrides.py b/verto/utils/overrides.py
similarity index 100%
rename from kordac/utils/overrides.py
rename to verto/utils/overrides.py