You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@infra.apache.org by "Gavin (JIRA)" <ji...@apache.org> on 2015/07/01 16:08:04 UTC

[jira] [Closed] (INFRA-8576) Please enable the builtin 'Attribute lists' extension to Python Markdown

     [ https://issues.apache.org/jira/browse/INFRA-8576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gavin closed INFRA-8576.
------------------------
    Resolution: Fixed

patch applied, thanks.

> Please enable the builtin 'Attribute lists' extension to Python Markdown
> ------------------------------------------------------------------------
>
>                 Key: INFRA-8576
>                 URL: https://issues.apache.org/jira/browse/INFRA-8576
>             Project: Infrastructure
>          Issue Type: Task
>          Components: CMS
>            Reporter: Steve Rowe
>            Assignee: Gavin
>
> The builtin Attribute Lists Python Markdown extension (https://pythonhosted.org/Markdown/extensions/attr_list.html) enables setting class attributes on header elements, which we'd like to be able to do for the Solr replacement site being worked on in SOLR-6058.
> Here's a patch (works for me when I build the site locally):
> -----
> Index: markdownd.py
> ===================================================================
> --- markdownd.py	(revision 926469)
> +++ markdownd.py	(working copy)
> @@ -35,7 +35,7 @@
>  os.setsid() 
>  os.umask(0) 
>  
> -EXTENSIONS = ['tables', 'def_list', 'toc',
> +EXTENSIONS = ['tables', 'def_list', 'toc', 'attr_list',
>               'codehilite', 'elementid', 'footnotes', 'abbr']
>  
>  # check markdown prereqs outside trapped exceptions
> -----



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)