Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 2
- Log:
Initial import of Instiki 0.11.0 sources from a downloaded Tarball.
Instiki is a Ruby On Rails based Wiki clone.
- Author:
- adh
- Date:
- Sat Jul 22 14:54:51 +0100 2006
- Size:
- 955 Bytes
1 | require 'chunks/chunk' |
2 | |
3 | # These are basic chunks that have a pattern and can be protected. |
4 | # They are used by rendering process to prevent wiki rendering |
5 | # occuring within literal areas such as <code> and <pre> blocks |
6 | # and within HTML tags. |
7 | module Literal |
8 | |
9 | class AbstractLiteral < Chunk::Abstract |
10 | |
11 | def initialize(match_data, content) |
12 | super |
13 | @unmask_text = @text |
14 | end |
15 | |
16 | end |
17 | |
18 | # A literal chunk that protects 'code' and 'pre' tags from wiki rendering. |
19 | class Pre < AbstractLiteral |
20 | PRE_BLOCKS = "a|pre|code" |
21 | PRE_PATTERN = Regexp.new('<('+PRE_BLOCKS+')\b[^>]*?>.*?</\1>', Regexp::MULTILINE) |
22 | def self.pattern() PRE_PATTERN end |
23 | end |
24 | |
25 | # A literal chunk that protects HTML tags from wiki rendering. |
26 | class Tags < AbstractLiteral |
27 | TAGS = "a|img|em|strong|div|span|table|td|th|ul|ol|li|dl|dt|dd" |
28 | TAGS_PATTERN = Regexp.new('<(?:'+TAGS+')[^>]*?>', Regexp::MULTILINE) |
29 | def self.pattern() TAGS_PATTERN end |
30 | end |
31 | end |