Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 1985 Bytes
1 | class Typo |
2 | class Textfilter |
3 | class Markdown < TextFilterPlugin::Markup |
4 | plugin_display_name "Markdown" |
5 | plugin_description 'Markdown markup language from <a href="http://daringfireball.com/">Daring Fireball</a>' |
6 | |
7 | def self.help_text |
8 | %{ |
9 | [Markdown](http://daringfireball.net/projects/markdown/) is a simple text-to-HTML converter that |
10 | turns common text idioms into HTML. The [full syntax](http://daringfireball.net/projects/markdown/syntax) |
11 | is available from the author's site, but here's a short summary: |
12 | |
13 | * **Paragraphs**: Start a new paragraph by skipping a line. |
14 | * **Italics**: Put text in *italics* by enclosing it in either \* or \_: `*italics*` turns into *italics*. |
15 | * **Bold**: Put text in **bold** by enclosing it in two \*s: `**bold**` turns into **bold**. |
16 | * **Pre-formatted text**: Enclosing a short block of text in backquotes (`) displays it in a monospaced font |
17 | and converts HTML metacharacters so they display correctly. Example: ``<img src="foo"/>`` displays as `<img src="foo"/>`. |
18 | Also, any paragraph indented 4 or more spaces is treated as pre-formatted text. |
19 | * **Block quotes**: Any paragraph (or line) that starts with a `>` is treated as a blockquote. |
20 | * **Hyperlinks**: You can create links like this: `[amazon's web site](http://www.amazon.com)`. That produces |
21 | "[amazon's web site](http://www.amazon.com)". |
22 | * **Lists**: You can create numbered or bulleted lists by ending a paragraph with a colon (:), skipping a line, and then using |
23 | asterisks (*, for bullets) or numbers (for numbered lists). See the |
24 | [Markdown syntax page](http://daringfireball.net/projects/markdown/syntax) for examples. |
25 | * **Raw HTML**: Markdown will pass raw HTML through unchanged, so you can use HTML's syntax whenever Markdown doesn't provide |
26 | a reasonable alternative. |
27 | |
28 | } |
29 | end |
30 | |
31 | def self.filtertext(blog,content,text,params) |
32 | BlueCloth.new(text.gsub(%r{</?notextile>}, '')).to_html |
33 | end |
34 | end |
35 | end |
36 | end |