Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08E3F100EC for ; Wed, 24 Apr 2013 00:49:18 +0000 (UTC) Received: (qmail 77295 invoked by uid 500); 24 Apr 2013 00:49:17 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 77216 invoked by uid 500); 24 Apr 2013 00:49:17 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 76955 invoked by uid 99); 24 Apr 2013 00:49:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Apr 2013 00:49:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Apr 2013 00:49:13 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 13FCCB072E for ; Tue, 23 Apr 2013 19:48:53 -0500 (CDT) Date: Tue, 23 Apr 2013 19:48:53 -0500 (CDT) From: "Charles Salmon (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (DOXIA-488) Support optional langage for syntax highlighting MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/DOXIA-488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Charles Salmon updated DOXIA-488: --------------------------------- Attachment: DOXIA-488.patch The patch with the changes and the unit test > Support optional langage for syntax highlighting > ------------------------------------------------ > > Key: DOXIA-488 > URL: https://jira.codehaus.org/browse/DOXIA-488 > Project: Maven Doxia > Issue Type: Bug > Components: Module - Markdown > Affects Versions: 1.3 > Reporter: Charles Salmon > Priority: Trivial > Attachments: DOXIA-488.patch > > > pegdown supports the way to specify the langage for a code block: > {noformat} > ~~~langage > code > ~~~ > {noformat} > Following the resolution of DOXIA-484 (pegdown dependency update), we should make sure the overrided {code:java}public void visit( VerbatimNode node ) {code} of the {code:java}MarkdownToDoxiaHtmlSerializer{code} includes the support of langage option, ie: > {code:java} > /** > * {@inheritDoc} > */ > @Override > public void visit( VerbatimNode node ) > { > printer.println().print("
");
>         if (!StringUtils.isEmpty(node.getType())) {
>             printAttribute("class", node.getType());
>         }
>         printer.print(">");
>         ...
>      }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira