[ANN] Markdown Syntax 1.2 has been released (experimental)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] Markdown Syntax 1.2 has been released (experimental)

vmassol
Administrator
Hi Markdown lovers,

Just wanted to announce that I’ve completely written XWiki support for the Markdown syntax (using flexmark-java instead of pegdown). It’s available as the “markdown/1.2” syntax inside of XWiki.

See http://extensions.xwiki.org/xwiki/bin/view/Extension/Markdown+Syntax+1.2 for details.

Please try it out and let me know how it goes.

If you find bugs please report them at http://jira.xwiki.org/browse/MARKDOWN

Thanks
-Vincent

Reply | Threaded
Open this post in threaded view
|

Re: [xwiki-users] [ANN] Markdown Syntax 1.2 has been released (experimental)

Ludovic Dubost
Hi,

This is quite cool.. It seems to even work with XWiki macros and with
Wysiwyg ! How much is the wysiwyg part supposed to work ?

I found an issue though.. If you use the code macros the parser seems to
try to transform it to ``` ... ``` instead of {{code}} {{/code}}

Ludovic


--
*Ludovic Dubost*
*Founder and CEO*
[hidden email]
skype: ldubost
Blog: http://blog.ludovic.orgTry XWiki on the cloud
<http://www.xwiki.com/en/products/try-xwiki-cloud>  - Try Cryptpad: Secure
realtime Wysiwyg Editing <https://cryptpad.fr>


On Mon, Jan 23, 2017 at 12:36 AM, Vincent Massol <[hidden email]> wrote:

> Hi Markdown lovers,
>
> Just wanted to announce that I’ve completely written XWiki support for the
> Markdown syntax (using flexmark-java instead of pegdown). It’s available as
> the “markdown/1.2” syntax inside of XWiki.
>
> See http://extensions.xwiki.org/xwiki/bin/view/Extension/
> Markdown+Syntax+1.2 for details.
>
> Please try it out and let me know how it goes.
>
> If you find bugs please report them at http://jira.xwiki.org/browse/
> MARKDOWN
>
> Thanks
> -Vincent
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [xwiki-users] [ANN] Markdown Syntax 1.2 has been released (experimental)

vmassol
Administrator

> On 23 Jan 2017, at 17:14, Ludovic Dubost <[hidden email]> wrote:
>
> Hi,
>
> This is quite cool.. It seems to even work with XWiki macros and with
> Wysiwyg ! How much is the wysiwyg part supposed to work ?

It’s supposed to work well. I’m sure there are edge cases not working but I’ve had some users test it and they raised some issues that I have just fixed in this new release.

> I found an issue though.. If you use the code macros the parser seems to
> try to transform it to ``` ... ``` instead of {{code}} {{/code}}

It is actually done on purpose:
https://github.com/xwiki-contrib/syntax-markdown/blob/64686aed191fbf755094ca41fd62c58abb6d4942/syntax-markdown-markdown10/src/main/java/org/xwiki/contrib/rendering/markdown10/internal/renderer/MarkdownChainingRenderer.java#L610-L610

Since the XWiki XDOM doesn’t have a Code Block we are transforming backticks into a {{code}} macro. Thus if we render it back as a wiki macro we loose the standard MD syntax which is to use backticks.

We need to decide what we prefer but my preference was to use backticks since that’s the traditional MD-way.

WDYT?

Thanks
-Vincent

>
> Ludovic
>
>
> --
> *Ludovic Dubost*
> *Founder and CEO*
> [hidden email]
> skype: ldubost
> Blog: http://blog.ludovic.orgTry XWiki on the cloud
> <http://www.xwiki.com/en/products/try-xwiki-cloud>  - Try Cryptpad: Secure
> realtime Wysiwyg Editing <https://cryptpad.fr>
>
>
> On Mon, Jan 23, 2017 at 12:36 AM, Vincent Massol <[hidden email]> wrote:
>
>> Hi Markdown lovers,
>>
>> Just wanted to announce that I’ve completely written XWiki support for the
>> Markdown syntax (using flexmark-java instead of pegdown). It’s available as
>> the “markdown/1.2” syntax inside of XWiki.
>>
>> See http://extensions.xwiki.org/xwiki/bin/view/Extension/
>> Markdown+Syntax+1.2 for details.
>>
>> Please try it out and let me know how it goes.
>>
>> If you find bugs please report them at http://jira.xwiki.org/browse/
>> MARKDOWN
>>
>> Thanks
>> -Vincent
>>
>>