Skip to main content

argot text markup -- a markdown dialect

Project description

Argot is a small set of extensions on the markdown markup language designed primarily for writing technical blog entries. The extensions are not “proper” markdown extensions; they are implemented as preprocessors that compile down into markdown or html syntax. In addition to markdown’s regular syntax, which argot does not interfere with, argot provides these features:

You can fork argot from its hg repository.

requirements

argot requires markdown, pygments, and lxml. lxml can be difficult to install from pypi, so it is not listed as an installation requirement in setup.py. Please fulfill this requirement through lxml’s OS bundles.

moin-style highlighted code blocks

In markdown, code blocks are blocks of text one level of indentation removed from the body text. However, when dealing with more primative browser input mechanisms, indenting lots of text can be problematic (as tab often shifts input focus). In addition to allowing for this convention, argot implements moin/tracwiki style code blocks that feature syntax highlighting via pygments.

syntax

The general syntax is ‘{{{’ followed by an optional shebang and desired pygments parser, followed by your code block, and bookended with ‘}}}’:

{{{#!parser
    ... code ...
}}}

By default, if no parser is provided, argot uses pygments to try and guess what language is being used. It falls back to the plain text lexer. These codeblocks are actually compiled down to a pseudo markdown/html syntax that looks something like this:

<code style="parser">
    ... code ...
</code>

As a later pre-processing step, blocks of this style are temporarily removed from the body text and replaced by a token. Markdown is then run over the rest of the document, and the token is replaced with the syntax highlighted code. As a result, you can achieve syntax highlighted code by using the raw syntax as the highlight step is agnostic to where the code came from.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

Argot-0.3-py2.6.egg (16.3 kB view details)

Uploaded Source

Argot-0.3-py2.5.egg (16.4 kB view details)

Uploaded Source

File details

Details for the file Argot-0.3-py2.6.egg.

File metadata

  • Download URL: Argot-0.3-py2.6.egg
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Argot-0.3-py2.6.egg
Algorithm Hash digest
SHA256 ac6ce2dd15840aab71a84c6a8807775e92b6e48863d62c2b84c8511b329ca32e
MD5 4eddfe303bf9d941aa1d928061ab81fd
BLAKE2b-256 d316c180127dcf5d2d1aec2a769c2ca9a0dc08e3e5d2e64114640a506c62cc16

See more details on using hashes here.

File details

Details for the file Argot-0.3-py2.5.egg.

File metadata

  • Download URL: Argot-0.3-py2.5.egg
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Argot-0.3-py2.5.egg
Algorithm Hash digest
SHA256 daee26e3a3da9c0120ddc83ff7471939625bfaa224222f47fb1fbeeb97c50ff8
MD5 fbbe41118d900880753a3ab824b9c3ea
BLAKE2b-256 21c1a4c3e7938e2e0ca3f9ea790c44afeec5dd996c9d67c1cdaa19e120bf1876

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page