Source

trac-ticketlinks / trac / wiki / parser.py

Author Commit Message Labels Comments Date
cboos
0.12.3dev: no need to allow for empty WikiCreole links. In addition, this avoids a subtle bug involving the Genshi _speedups extension. Closes #10292.
Branches
0.12-stable
rblank
0.12.3dev: Fixed two misuses of `property()`, and cleaned up all other instances. Closes #10078.
Branches
0.12-stable
rblank
0.12.2dev: Allow the underscore in link schemes, even though it's not RFC:2396 compliant, as it seems to be in widespread use in InterMapTxt.
Branches
0.12-stable
cboos
0.12.2dev: fix stupid error in LINK_SCHEME regexp. Patch by Jun Omae on #9712, thanks!
Branches
0.12-stable
rblank
Made the collection from enumeration methods of interfaces more robust against the "accidental" return of `None`. Discussed in comment:8:ticket:9316 and following.
Branches
trunk
rblank
wiki: Added the possibility to have `["internal free links" with a label]`. Also consistently accept a `?query=string` where a `#fragment` was accepted. This was already the case in most of the link syntaxes, but a few special cases were missing. Closes #7695.
Branches
trunk
cboos
WikiFormatting: add WikiCreole style for setting anchors {{{ [[=#anchor|label]] }}} is therefore equivalent to: {{{ [=#anchor label] }}}
Branches
trunk
cboos
WikiFormatting: follow-up to r9446, `lhref_relative_target` is better kept private.
Branches
trunk
cboos
WikiFormatting: fix relative links, WikiCreole style.
Branches
trunk
cboos
WikiFormatting: add some support for WikiCreole (#4356) - `**` token for bold and `//` token for italic. Note that they should be matched by themselves, i.e. one can't use `'''` to match `**` or `''` to match `//` - `[[target]]` or `[[target|label]]` TracLinks. If `target` has to contain a `|` character, it must be wrapped in a string quote, as usual with TracLinks. The content of `[[]]` can't contain the `]]` substring. Note that support for the [[http://meta.wikimedia.org/wiki/Help:Piped_link#Pipe_trick|pipe trick]] is simply "emulated" (and to some extent only), as the wiki text is not converted before save. It is consistent with the removal of the scheme we do anyway. The reverse pipe trick is not operational yet.
Branches
trunk
cboos
TracLinks: InterTrac prefixes can now be ''real'' prefixes, i.e. you can add them in front of any `<resolver>:...` link, including the `<resolver>:"..."` ones used when the target contains space characters. Patch contributed by Oren Held, thanks! Closes #4865.
Branches
trunk
cboos
WikiFormatting: support arbitrary restart numbers in ordered lists. Closes #8892.
Branches
trunk
cboos
WikiFormatting: respect wiki markup after '> ...' quoting (citations). Instead of using a regexp and proceeding line by line, we first gather all the quoted lines and parse them recursively. Fixes #4235.
Branches
trunk
cboos
WikiFormatting: another follow-up to r9069, this time to allow the `|-` separator to be aligned with the `#!td` and `#!th` blocks, in case the latter are indented.
Branches
trunk
cboos
WikiFormatting: improve row separators for complex tables - add support for WikiMedia style row separators (`|-`) - add a `#!tr` WikiProcessor Either way can be used to separate `#!td` cells in multiple rows in a more explicit way than by using an isolated `||`. For the `|-` separator, there can be more than one '-', so that rows can be better visualised: Example: {{{ {{{ #!th Heading A }}} {{{ #!th Heading B }}} |--------- {{{ #!td Content A }}} {{{ #!td Content B }}} }}} The `#!tr` processor can be used when nesting is preferred, or…
Branches
trunk
cboos
WikiFormatting: accept more compact WikiProcessor declarations, on the same line as `{{{`, the start of a code block. For example, instead of: {{{ {{{ #!div class=important '''Warning''': you must follow those guidelines - ... }}} }}} it is now possible to write: {{{ {{{#!div class=important '''Warning''': you must follow those guidelines - ... }}} }}}
Branches
trunk
cboos
WikiProcessors: allow leading spaces in the first line `#!processor`. That amount of space is removed from the beginning of each line in the corresponding block, if possible. e.g. {{{ - This is some XML: {{{ #!xml <book> <chapter><title>At the beginning...</title> There was some leading space. </chapter> </book> }}} }}}
Branches
trunk
cboos
WikiFormatting: fix a corner case with new colspan syntax for tables. Closes #8977.
Branches
trunk
cboos
WikiFormatting: headings range from <h1> to <h6>, as determined by the number of leading '='. Also the trailing '=' are now optional, for better WikiCreole conformance. Fixes #5713.
Branches
trunk
cboos
WikiFormatting: make it possible to start list items at the beginning of line directly, without preceding space characters. This makes the Trac wiki syntax for lists closer to other markup syntaxes, namely reStructuredText, WikiCreole and rdoc's simple markup.
Branches
trunk
cboos
WikiFormatting: !MacroList(*) produces a short list of known macros. A shortcut form of ![[?]] is also possible.
Branches
trunk
cboos
WikiFormatting: macro help can now be queried by appending a '?' character to the macro name. e.g. `[[Image?]]` is a shortcut for `[[MacroList(Image)]]`.
Branches
trunk
cboos
WikiFormatting: make it easier to write big tables by allowing a row to be written on multiple lines. In order to prevent starting a new row, end the line with a '\' character, after the last `||`.
Branches
trunk
cboos
Wiki: minor clean-ups, comments.
Branches
trunk
cboos
Follow-up to r8696, restore backward compatibility of the private formatter API. Closes #8867.
Branches
trunk
rblank
0.12dev: Improved the plugin admin panel to provide better grouping of components by module, and to display the component and module docstrings as descriptions. Closes #8839.
Branches
trunk
rblank
0.12dev: Fixed the `LINK_SCHEME` regexp to be RFC 2396 compliant, as advertised in the comment. This avoids issues with e.g. times followed by markup, which were interpreted as links (for example `23:59,'''bold'''`). Closes #8162.
Branches
trunk
cboos
Adding table header support: {{{ ||= this is a header =||= another header =|| ||= also a header =|| NOT A HEADER ! || }}} Closes #3347.
Branches
trunk
cboos
Added `colspan` support for simple tables. An extra colspan is added for each duplicated `||` separator. Syntax: {{{ || col |||| title (colspan 2) || || a || b || c || |||||| last row (colspan 3) || }}} This syntax is compatible with MoinMoin:HelpOnTables. Closes #1293.
Branches
trunk
cboos
Add a simple syntax for defining anchors anywhere in wiki pages: {{{ [=#point1] }}} The syntax is reminiscent of the syntax used for adding explicit ids to headings: {{{ == Long title == #title }}} It's also very close to the syntax for the corresponding ''link'' to that anchor: {{{ [#point1] }}} Optionally, a label can be given to the anchor: {{{ [[=#point1 '''Point 1''']] }}} For more complex anchors (e.g. when a custom title is wanted), one can use the Span macro, e.g. `[[s…
Branches
trunk
  1. Prev
  2. 1
  3. 2
  4. Next