
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
pygments-xslfo-formatter
Advanced tools
This is a formatter for pygments <http://pygments.org>
__ that produces
output marked up with tags with the appropriate colour and other
presentational attributes set according to the pygments style in use.
To be useful this must be embeded in a complete xsl-fo document. It was
developed for use with asciidoc <http://asciidoc.org>
__ to produce
PDF's using fop <http://xmlgraphics.apache.org/fop>
__ with minimal
configuration or extra dependencies.
It is possible that it could be used in more general docbook to pdf tool chains.
Install from pypi:
.. code:: console
$ pip install pygments-xslfo-formatter
To install from the from the source distibution. Use any of the normal installation methods from the top directory of the distribution to install.
.. code:: console
$ python setup.py install # Usual setup.py installation method
$ pip install . # Using pip
This will install pygments if it is not already installed. You can check that it is working by listing the formatters and checking for the presence of one containing xslfo.
.. code:: console
$ pygmentize -L formatters
Formatters:
~~~~~~~~~~~
[... ommitted output ...]
* xslfo, xsl-fo:
Format tokens as XSL-FO ``<fo:inline>`` tags.
As this just adds a new formatter type to pygments, you just use' xslfo' where ever you might, for example, specify 'html' as a formatter name.
.. code:: console
$ pygmentize -f xslso -l python setup.py
You should see lots of tags
To use with asciidoc, which is the initial purpose of this extension look at the example directory which contains a simple but complete example.
You can see an example pdf file
here:\ [1] <https://bitbucket.org/sratcliffe/pygments-xslfo-formatter/downloads/example.pdf>
__
FAQs
A pygments formatter that outputs <fo:inline> tags
We found that pygments-xslfo-formatter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.