metapensiero.markup.semtext


Namemetapensiero.markup.semtext JSON
Version 0.28 PyPI version JSON
download
home_pagehttps://gitlab.com/metapensiero/metapensiero.markup.semtext.git
Summarya Simple Enough Markup
upload_time2022-12-27 15:44:50
maintainer
docs_urlNone
authorLele Gaifax
requires_python
licenseGPLv3+
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. -*- coding: utf-8 -*-
.. :Project:   metapensiero.markup.semtext -- a Simple Enough Markup
.. :Created:   Wed 23 Nov 2016 09:14:23 CET
.. :Author:    Lele Gaifax <lele@metapensiero.it>
.. :License:   GNU General Public License version 3 or later
.. :Copyright: © 2016, 2017 Arstecnica s.r.l.
.. :Copyright: © 2018 Lele Gaifax
..

=============================
 metapensiero.markup.semtext
=============================

a Simple Enough Markup
======================

:author: Lele Gaifax
:contact: lele@metapensiero.it
:license: GNU General Public License version 3 or later

Implement a minimalistic markup usable in the various descriptions, with just the needed
elements: headings and paragraphs containing plain, **bold** or *italic* text, `hyper
<link>` and unordered lists.

The internal representation is a tree of nodes, and a set of functions to transpose it to/from
a textual format, HTML and `Quill Delta`__ are included.

__ https://quilljs.com/docs/delta/


.. -*- coding: utf-8 -*-

Changes
-------

0.28 (2022-12-27)
~~~~~~~~~~~~~~~~~

- Add compatibility with SLY 0.5


0.27 (2022-05-20)
~~~~~~~~~~~~~~~~~

- Do not fail badly on whitespace only outside a text node


0.26 (2021-02-02)
~~~~~~~~~~~~~~~~~

- Suppress warning on unsupported HTML tags


0.25 (2020-06-18)
~~~~~~~~~~~~~~~~~

- As an interim workaround to SemText limitation, represent "bolded links" as plain links


0.24 (2020-05-21)
~~~~~~~~~~~~~~~~~

- Add option to ``parse_text()`` to fallback to plain text on parsing errors


0.23 (2019-12-02)
~~~~~~~~~~~~~~~~~

- Ignore spurious orphan headers


0.22 (2019-11-08)
~~~~~~~~~~~~~~~~~

- Ignore non-textual insert operations, such as "image"


0.21 (2019-09-20)
~~~~~~~~~~~~~~~~~

- Explain assertion errors, to avoid meaningless logging messages

- Suppress warning on ignored ``<pre>`` tags


0.20 (2019-09-02)
~~~~~~~~~~~~~~~~~

- Ignore ``code-block`` attributes


0.19 (2019-07-16)
~~~~~~~~~~~~~~~~~

- Workaround a degenerated case involving empty hrefs


0.18 (2019-07-12)
~~~~~~~~~~~~~~~~~

- Completely ignore ``<iframe>`` and ``<script>`` tags

- Extract <table> content as plain paragraph, to make them at least readable


0.17 (2019-07-03)
~~~~~~~~~~~~~~~~~

- Ignore text attributes that we are not going to handle


0.16 (2019-06-25)
~~~~~~~~~~~~~~~~~

- Handle HTML created with non-Unix end-of-line convention


0.15 (2018-08-23)
~~~~~~~~~~~~~~~~~

- Ignore ``<style>`` tags and degenerated ``<a>`` tags


0.14 (2018-08-23)
~~~~~~~~~~~~~~~~~

- Ignore ``<img>`` tags, out of scope at least for now


0.13 (2018-08-23)
~~~~~~~~~~~~~~~~~

- Rewritten HTML parser, slightly more robust and versatile


0.12 (2018-08-17)
~~~~~~~~~~~~~~~~~

- Try harder to handle degenerated paragraphs represented with DIVs

- Replace asserts with a custom exception to signal parsing errors


0.11 (2018-08-15)
~~~~~~~~~~~~~~~~~

- Handle degenerated paragraphs represented with DIVs

- Add an option to swallow HTML parsing exceptions and falling back to plain text


0.10 (2018-08-01)
~~~~~~~~~~~~~~~~~

- Handle SPANs inside headings


0.9 (2018-07-12)
~~~~~~~~~~~~~~~~

- Ignore standalone BRs in the HTML parser


0.8 (2018-07-12)
~~~~~~~~~~~~~~~~

- Ignore BRs inside headings in the HTML parser


0.7 (2018-06-26)
~~~~~~~~~~~~~~~~

- Better handling of nested DIVs in the HTML parser


0.6 (2018-06-13)
~~~~~~~~~~~~~~~~

- Handle implicit list item indexes in SEMPrinter


0.5 (2018-04-26)
~~~~~~~~~~~~~~~~

- Properly escape also the link's address


0.4 (2018-04-26)
~~~~~~~~~~~~~~~~

- New ``escape`` option to ``HTMLPrinter`` that by default uses `html.escape(text,
  quote=True)`__ to emit safe text spans

  __ https://docs.python.org/3/library/html.html#html.escape


0.3 (2018-04-20)
~~~~~~~~~~~~~~~~

- Support for hyperlinks

- Support for headings

- New function to emit a Quill Delta representation of an AST


0.2 (2018-03-10)
~~~~~~~~~~~~~~~~

- Fix HTML representation of numbered list items without a value

- Raise a specific InvalidNestingError exception instead of generic AssertionError


0.1 (2018-02-25)
~~~~~~~~~~~~~~~~

- Renamed to metapensiero.markup.semtext


0.0 (unreleased)
~~~~~~~~~~~~~~~~

- Initial effort.

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/metapensiero/metapensiero.markup.semtext.git",
    "name": "metapensiero.markup.semtext",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Lele Gaifax",
    "author_email": "lele@metapensiero.it",
    "download_url": "https://files.pythonhosted.org/packages/cb/1f/39b1019a50b395b7c7740a9dced62542799eba6678c8426d50ae1e424148/metapensiero.markup.semtext-0.28.tar.gz",
    "platform": null,
    "description": ".. -*- coding: utf-8 -*-\n.. :Project:   metapensiero.markup.semtext -- a Simple Enough Markup\n.. :Created:   Wed 23 Nov 2016 09:14:23 CET\n.. :Author:    Lele Gaifax <lele@metapensiero.it>\n.. :License:   GNU General Public License version 3 or later\n.. :Copyright: \u00a9 2016, 2017 Arstecnica s.r.l.\n.. :Copyright: \u00a9 2018 Lele Gaifax\n..\n\n=============================\n metapensiero.markup.semtext\n=============================\n\na Simple Enough Markup\n======================\n\n:author: Lele Gaifax\n:contact: lele@metapensiero.it\n:license: GNU General Public License version 3 or later\n\nImplement a minimalistic markup usable in the various descriptions, with just the needed\nelements: headings and paragraphs containing plain, **bold** or *italic* text, `hyper\n<link>` and unordered lists.\n\nThe internal representation is a tree of nodes, and a set of functions to transpose it to/from\na textual format, HTML and `Quill Delta`__ are included.\n\n__ https://quilljs.com/docs/delta/\n\n\n.. -*- coding: utf-8 -*-\n\nChanges\n-------\n\n0.28 (2022-12-27)\n~~~~~~~~~~~~~~~~~\n\n- Add compatibility with SLY 0.5\n\n\n0.27 (2022-05-20)\n~~~~~~~~~~~~~~~~~\n\n- Do not fail badly on whitespace only outside a text node\n\n\n0.26 (2021-02-02)\n~~~~~~~~~~~~~~~~~\n\n- Suppress warning on unsupported HTML tags\n\n\n0.25 (2020-06-18)\n~~~~~~~~~~~~~~~~~\n\n- As an interim workaround to SemText limitation, represent \"bolded links\" as plain links\n\n\n0.24 (2020-05-21)\n~~~~~~~~~~~~~~~~~\n\n- Add option to ``parse_text()`` to fallback to plain text on parsing errors\n\n\n0.23 (2019-12-02)\n~~~~~~~~~~~~~~~~~\n\n- Ignore spurious orphan headers\n\n\n0.22 (2019-11-08)\n~~~~~~~~~~~~~~~~~\n\n- Ignore non-textual insert operations, such as \"image\"\n\n\n0.21 (2019-09-20)\n~~~~~~~~~~~~~~~~~\n\n- Explain assertion errors, to avoid meaningless logging messages\n\n- Suppress warning on ignored ``<pre>`` tags\n\n\n0.20 (2019-09-02)\n~~~~~~~~~~~~~~~~~\n\n- Ignore ``code-block`` attributes\n\n\n0.19 (2019-07-16)\n~~~~~~~~~~~~~~~~~\n\n- Workaround a degenerated case involving empty hrefs\n\n\n0.18 (2019-07-12)\n~~~~~~~~~~~~~~~~~\n\n- Completely ignore ``<iframe>`` and ``<script>`` tags\n\n- Extract <table> content as plain paragraph, to make them at least readable\n\n\n0.17 (2019-07-03)\n~~~~~~~~~~~~~~~~~\n\n- Ignore text attributes that we are not going to handle\n\n\n0.16 (2019-06-25)\n~~~~~~~~~~~~~~~~~\n\n- Handle HTML created with non-Unix end-of-line convention\n\n\n0.15 (2018-08-23)\n~~~~~~~~~~~~~~~~~\n\n- Ignore ``<style>`` tags and degenerated ``<a>`` tags\n\n\n0.14 (2018-08-23)\n~~~~~~~~~~~~~~~~~\n\n- Ignore ``<img>`` tags, out of scope at least for now\n\n\n0.13 (2018-08-23)\n~~~~~~~~~~~~~~~~~\n\n- Rewritten HTML parser, slightly more robust and versatile\n\n\n0.12 (2018-08-17)\n~~~~~~~~~~~~~~~~~\n\n- Try harder to handle degenerated paragraphs represented with DIVs\n\n- Replace asserts with a custom exception to signal parsing errors\n\n\n0.11 (2018-08-15)\n~~~~~~~~~~~~~~~~~\n\n- Handle degenerated paragraphs represented with DIVs\n\n- Add an option to swallow HTML parsing exceptions and falling back to plain text\n\n\n0.10 (2018-08-01)\n~~~~~~~~~~~~~~~~~\n\n- Handle SPANs inside headings\n\n\n0.9 (2018-07-12)\n~~~~~~~~~~~~~~~~\n\n- Ignore standalone BRs in the HTML parser\n\n\n0.8 (2018-07-12)\n~~~~~~~~~~~~~~~~\n\n- Ignore BRs inside headings in the HTML parser\n\n\n0.7 (2018-06-26)\n~~~~~~~~~~~~~~~~\n\n- Better handling of nested DIVs in the HTML parser\n\n\n0.6 (2018-06-13)\n~~~~~~~~~~~~~~~~\n\n- Handle implicit list item indexes in SEMPrinter\n\n\n0.5 (2018-04-26)\n~~~~~~~~~~~~~~~~\n\n- Properly escape also the link's address\n\n\n0.4 (2018-04-26)\n~~~~~~~~~~~~~~~~\n\n- New ``escape`` option to ``HTMLPrinter`` that by default uses `html.escape(text,\n  quote=True)`__ to emit safe text spans\n\n  __ https://docs.python.org/3/library/html.html#html.escape\n\n\n0.3 (2018-04-20)\n~~~~~~~~~~~~~~~~\n\n- Support for hyperlinks\n\n- Support for headings\n\n- New function to emit a Quill Delta representation of an AST\n\n\n0.2 (2018-03-10)\n~~~~~~~~~~~~~~~~\n\n- Fix HTML representation of numbered list items without a value\n\n- Raise a specific InvalidNestingError exception instead of generic AssertionError\n\n\n0.1 (2018-02-25)\n~~~~~~~~~~~~~~~~\n\n- Renamed to metapensiero.markup.semtext\n\n\n0.0 (unreleased)\n~~~~~~~~~~~~~~~~\n\n- Initial effort.\n",
    "bugtrack_url": null,
    "license": "GPLv3+",
    "summary": "a Simple Enough Markup",
    "version": "0.28",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "8fa1225f868562406743dc3adc319159",
                "sha256": "abdcfa734558fe7d8d9b0580924b881e73fd8b59b979b66b394892c663011091"
            },
            "downloads": -1,
            "filename": "metapensiero.markup.semtext-0.28.tar.gz",
            "has_sig": false,
            "md5_digest": "8fa1225f868562406743dc3adc319159",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 19094,
            "upload_time": "2022-12-27T15:44:50",
            "upload_time_iso_8601": "2022-12-27T15:44:50.595589Z",
            "url": "https://files.pythonhosted.org/packages/cb/1f/39b1019a50b395b7c7740a9dced62542799eba6678c8426d50ae1e424148/metapensiero.markup.semtext-0.28.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-27 15:44:50",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "gitlab_user": "metapensiero",
    "gitlab_project": "metapensiero.markup.semtext.git",
    "lcname": "metapensiero.markup.semtext"
}
        
Elapsed time: 0.02312s