<commit_before>pandoc-source-exec
===============

``pandoc-source-exec`` is a `panflute`_ `pandoc`_ `filter`_.

It executes code annotated code blocks with the proper executables and
adds the output below. `Example <example>`__:

::

    ```{ .python .exec }
    print('Hello World')
    ```

The above can be compiled like this:

.. code-block:: Makefile

    main:
    	pandoc --filter pandoc-source-exec -o example.pdf example.md

The resulting output will include `Hello World` after the code block.

Installation
------------

Just use pip to install it from `pypi`_

.. code-block:: shell

    pip install pandoc-code-exec


.. _`filter`: https://pandoc.org/scripting.html
.. _`pandoc`: https://pandoc.org/index.html
.. _`panflute`: http://scorreia.com/software/panflute/index.html
.. _`pypi`: https://pypi.python.org/pypi/pandoc-code-exec

Future
------

- [ ] Execute code other than python
- [ ] Refactor interactive execution, build REPL wrappers.
- [ ] Allow configurable pre- and postfixes for the output<commit_msg>fixing readme to be shown properly on pypi<commit_after>pandoc-source-exec
===============

``pandoc-source-exec`` is a `panflute`_ `pandoc`_ `filter`_.

It executes code annotated code blocks with the proper executables and
adds the output below. `Example <example>`__:

::

    ```{ .python .exec }
    print('Hello World')
    ```

The above can be compiled like this:

.. code-block:: Makefile

    main:
    	pandoc --filter pandoc-source-exec -o example.pdf example.md

The resulting output will include `Hello World` after the code block.

Installation
------------

Just use pip to install it from `pypi`_

.. code-block:: shell

    pip install pandoc-code-exec


.. _`filter`: https://pandoc.org/scripting.html
.. _`pandoc`: https://pandoc.org/index.html
.. _`panflute`: http://scorreia.com/software/panflute/index.html
.. _`pypi`: https://pypi.python.org/pypi/pandoc-code-exec

Future
------

- Execute code other than python
- Refactor interactive execution, build REPL wrappers.
- Allow configurable pre- and postfixes for the output
{'fraction_non_alphanumeric': 0.15132530120481927, 'fraction_numerical': 0.0, 'mean_word_length': 3.325, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6453181', 'n_tokens_mistral': 706, 'n_tokens_neox': 668, 'n_words': 200}