~thumper/creoleparser/trunk

« back to all changes in this revision

Viewing changes to creoleparser/dialects.py

  • Committer: stephen.h.day
  • Date: 2010-10-10 15:36:50 UTC
  • Revision ID: svn-v4:a60eed84-fc3d-0410-a09c-0d1a7a6707c9:trunk:226
external_links_class option added to create_dialect

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
      disable_external_content
50
50
        If True, an error message will be inserted when an externally
51
51
        hosted image is found.
 
52
      external_links_class
 
53
        Class attribute to add to external links (i.e., not wiki or interwiki
 
54
        link).
52
55
      indent_class
53
 
        The class attribute to add to indented regions.
 
56
        Class attribute to add to indented regions.
54
57
      indent_style
55
 
        The style attribute to add to indented regions.
 
58
        Style attribute to add to indented regions.
56
59
      interwiki_links_base_urls
57
60
        Dictionary of urls for interwiki links.
58
61
      interwiki_links_funcs
122
125
def creole10_base(wiki_links_base_url='',wiki_links_space_char='_',
123
126
                 interwiki_links_base_urls={},
124
127
                 no_wiki_monospace=True,
125
 
                 wiki_links_class_func=None,
 
128
                 wiki_links_class_func=None, external_links_class=None,
126
129
                 wiki_links_path_func=None, interwiki_links_funcs={},
127
130
                 interwiki_links_space_chars={},
128
131
                 blog_style_endings=False,
170
173
                                            space_chars=interwiki_links_space_chars,
171
174
                                       base_url=wiki_links_base_url,
172
175
                              space_char=wiki_links_space_char,class_func=wiki_links_class_func,
173
 
                              path_func=wiki_links_path_func)
 
176
                              path_func=wiki_links_path_func, external_links_class=external_links_class)
174
177
 
175
178
        img = ImageElement('img',('{{','}}'),delimiter = '|',interwiki_delimiter=':',
176
179
                                            base_urls=interwiki_links_base_urls,