summaryrefslogtreecommitdiff
path: root/pygments/lexers/markup.py
Commit message (Collapse)AuthorAgeFilesLines
* Prepare for release.Matthäus G. Chajdas2023-04-101-3/+6
| | | | | | * Update CHANGES. * Fix missing `versionadded` declarations. * Fix a few linter issues.
* Add lexer for MediaWiki Wikitext (#2373)diskdance2023-04-051-1/+736
|
* Update copyright year to 2023.Matthäus G. Chajdas2023-03-291-1/+1
|
* Improve whitespace handling in Markdown.Matthäus G. Chajdas2022-12-041-4/+4
|
* Rework URL information in lexers.Matthäus G. Chajdas2022-03-201-3/+6
| | | | | | | | This commit adds a new url field to a lexer, which can be used to link to the language website, instead of relying on having the link in either languages.rst or the docstring of the lexer. Additionally, it changes the languages.rst file to auto-generate the list of lexers from the actual source code, using the provided URL.
* Happy new year.Georg Brandl2022-01-251-1/+1
|
* feat(lexers): add more man page filename globs (#1801)Ville Skyttä2021-12-281-1/+1
| | | Numbered ones go up to 9, Perl ones may have 1p or 3pm suffixes.
* Clean-up unused imports (#1887)Mickaël Schoentgen2021-08-231-1/+1
|
* uniformize aliases order (#1780)Mestery2021-04-261-3/+3
| | | | | * uniformize aliases order * LighttpdConfLexer: add lighttpd.conf filename
* add markdown to aliasesMestery2021-01-181-1/+1
|
* Run pyupgrade across codebase to modernize syntax and patterns (#1622)Jon Dufresne2021-01-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | pyupgrade is a tool to automatically upgrade syntax for newer versions of the Python language. The project has been Python 3 only since 35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups: - Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all source files as utf-8 by default. - Replace IOError/EnvironmentError with OSError. Python 3 unified these exceptions. The old names are aliases only. - Use the Python 3 shorter super() syntax. - Remove "utf8" argument form encode/decode. In Python 3, this value is the default. - Remove "r" from open() calls. In Python 3, this value is the default. - Remove u prefix from Unicode strings. In Python 3, all strings are Unicode. - Replace io.open() with builtin open(). In Python 3, these functions are functionally equivalent. Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
* Markdown lexer improvements (#1623)Leistungsabfall2021-01-061-11/+9
| | | | | | | | | * improve fenced code recognition for markdown lexer * improve inline code detection * improve detection of some Markdown keywords * remove Markdown recognition of code indented by 4 spaces as reliable detection is not possible with regex
* Bump copyright year.Matthäus G. Chajdas2021-01-031-1/+1
|
* all: remove "u" string prefix (#1536)Georg Brandl2020-09-081-2/+2
| | | | | | | | | | | * all: remove "u" string prefix * util: remove unirange Since Python 3.3, all builds are wide unicode compatible. * unistring: remove support for narrow-unicode builds which stopped being relevant with Python 3.3
* all: use argumentless super()Georg Brandl2020-09-061-6/+3
|
* all: use yield from (#1537)Georg Brandl2020-09-061-8/+4
|
* all: fixup remaining regexlint warningsGeorg Brandl2020-09-061-23/+27
|
* Update copyright year (fixes #1514.)Matthäus G. Chajdas2020-08-221-1/+1
|
* Added '*.markdown' file extension to 'markdown' lexer (#1476)Konstantin Podsvirov2020-08-021-1/+1
| | | Some people use the full name of the markup.
* Improve Markdown lexer (#1495)Leistungsabfall2020-07-211-21/+32
| | | | | | | | | | | | | | | | | | | | | * Add support for Setext-style headings in Markdown * Improve inline code detection in Markdown * Add support for indented code blocks in Markdown * Improve italics & bold detection in Markdown * Simplify italics & bold regexes in Markdown * Add warning about possible unrecognized internal tags in Markdown * Improve striktethrough detection in Markdown * Small bugfix in Markdown * Small bugfix in Markdown * Small refactoring in Markdown
* Add support for .tid files (TiddlyWiki5) (#1390)Max2020-05-241-1/+160
| | | | | | | | | | | * add support for .tid files (TiddlyWiki5) * add lexers/_mapping.py * markup.py: change versionadded of TiddlyWiki5Lexer to 2.7 * markup.py, TiddlyWiki5Lexer: use non-greedy matcher for table headers, footers, captions and classes * markup.py, TiddlyWiki5Lexer: make timestamps of type Number.Integer
* reStructuredText: highlight only field list markersEric Knibbe2019-11-271-4/+3
|
* Fixup all headers and some more minor problems.2.4.2Georg Brandl2019-05-281-1/+1
|
* Merged in cjwatson/pygments-main (pull request #753)Anteru2019-04-011-0/+5
|\ | | | | | | Markdown: add support for reference-style links
| * Markdown: add support for reference-style linksColin Watson2018-02-221-0/+5
| |
* | Fix issue with markdown lexer code fencesFredrik Larsen2017-11-101-4/+3
|/ | | | | | | Fixes the bug reported in #1389, where the markdown lexer will not issue a token for the closing code fence. Issue: #1389
* Copyright update.Georg Brandl2017-01-221-1/+1
|
* Add support for partials and path segments for Handlebars.Christian Hammond2016-11-041-0/+595
This introduces support for some missing features to the Handlebars lexer: Partials and path segments. Partials mostly appeared to work before, but the `>` in `{{> ... }}` would appear as a syntax error, as could other components of the partial. This change introduces support for: * Standard partials: `{{> partialName}}` * Partials with parameters: `{{> partialName varname="value"}}` * Ddynamic partials: `{{> (partialFunc)}}` * Ddynamic partials with lookups: `{{> (lookup ../path "partialName")}}` * Partial blocks: `{{> @partial-block}}` * Inline partials: `{{#*inline}}..{{/inline}}` It also introduces support for path segments, which can reference content in the current context or in a parent context. For instance, `this.name`, `this/name`, `./name`, `../name`, `this/name`, etc. These are all now tracked as variables.