Metadata-Version: 2.1
Name: clld-morphology-plugin
Version: 0.0.7
Summary: Short description of package.
Home-page: https://github.com/fmatter/clld-morphology-plugin
Author: Florian Matter
Author-email: florianmatter@gmail.com
Project-URL: Bug Tracker, https://github.com/fmatter/clld-morphology-plugin/issues
Keywords: web,pyramid,pylons
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown
Provides-Extra: dev
Provides-Extra: publishing
License-File: LICENSE

# clld-morphology-plugin

A plugin for modelling morphology in CLLD apps. Models:
* word forms (consist of morphs)
* morphs (are parts of word forms, belong to morphemes)
* morphemes (have different [allo]morphs)

![License](https://img.shields.io/github/license/fmatter/clld-morphology-plugin)
[![Tests](https://img.shields.io/github/workflow/status/fmatter/clld-morphology-plugin/tests?label=tests)](https://github.com/fmatter/clld-morphology-plugin/actions/workflows/tests.yml)
[![Codecov](https://img.shields.io/codecov/c/github/fmatter/clld-morphology-plugin)](https://app.codecov.io/gh/fmatter/clld-morphology-plugin/)
[![PyPI](https://img.shields.io/pypi/v/clld-morphology-plugin.svg)](https://pypi.org/project/clld-morphology-plugin)
![Versions](https://img.shields.io/pypi/pyversions/clld-morphology-plugin)

## Markdown
Since this plugin was primarily developed for [yawarana-sketch-clld](https://github.com/fmatter/yawarana-sketch-clld), comments on models are rendered using markdown.
However, it is up to the app developer to choose what markdown you want to use; templates assume that the parent mako template provides a function `markdown(request, content)`.
If you want to use the [clld-markdown-plugin](https://github.com/clld/clld-markdown-plugin/), use the following code in your top-level `.mako`:

    <%def name="markdown(request, content)">
        <%from clld_markdown_plugin import markdown%>
        ${markdown(request, content)|n}
    </%def>

to use plain markdown instead:

    <%def name="markdown(request, content)">
        <%from markdown import Markdown%>
        ${Markdown(content)|n}
    </%def>
