[ http://jira.xwiki.org/jira/browse/XWIKI-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergiu Dumitriu closed XWIKI-1248. ---------------------------------- Fix Version/s: 1.3 M2 Tests: [Unit] Resolution: Fixed Assignee: Sergiu Dumitriu The syntax works as proposed, with the following remarks: - Filtering out links and scripts is not implemented, as it increases the rendering time a lot in some usage scenarios. This should be fixed when switching to the new rendering engine. - Works on a single line only. - Regex should run in O(n*m) whatever the text, where n=<text length> and m=<number of * occurrences> > Strong XWiki syntax > ------------------- > > Key: XWIKI-1248 > URL: http://jira.xwiki.org/jira/browse/XWIKI-1248 > Project: XWiki Core > Issue Type: Task > Components: Wiki features > Reporter: Sergiu Dumitriu > Assigned To: Sergiu Dumitriu > Priority: Minor > Fix For: 1.3 M2 > > > The strong wiki markup is triggered by placing a piece of text inside stars, > like: \*text\*. This filter only works in single line mode. > It generates markup specifying that the delimited text is strongly empahised; > in XHTML the <strong> tag is used. > Expected behavior: > {noformat} > This is not * bold * => This is not * bold * > This is not *bold * => This is not *bold * > This is not * bold* => This is not * bold* > This is *bold* => This is <strong>bold</strong> > This is *a* letter bold => This is <strong>a</strong> letter bold > This is *a* short bold* => This is <strong>a</strong> short bold* > This is *all * bold* => This is <strong>all * bold</strong> > This is *all *bold* => This is <strong>all *bold</strong> > This is *one*bold* => This is <strong>one</strong>bold* > *a* => <strong>a</strong> > More *bolds* on a *line* => More <strong>bolds</strong> on a > <strong>line</strong> > The extra stars are **inside** => The extra stars are > <strong>*inside*</strong> > This*is*bold => This<strong>is</strong>bold > *Eeny*meeny*miny*moe* => <strong>Eeny</strong>meeny<strong>miny</strong>moe* > * Eeny*meeny*miny*moe* => > ...<li>Eeny<strong>meeny</strong>miny<strong>moe</strong></li>... > * list* item => ...<li>list* item</li>... > * *list* item => ...<li><strong>list</strong> item</li>... > This is a bold *** text => This is an bold <strong>*</strong> text > This is a bold ****** text => This is an bold <strong>****</strong> text > Ignore *things* inside <script> var x = m*n+n*n; </script> => Ignore > <strong>things</strong> inside <script> var x = m*n+n*n; </script> > Ignore <a href="/some*page*with*stars">attributes</a> => Ignore <a > href="/some*page*with*stars">attributes</a> > Multiline examples: > This is not *not > bold* > => > This is not *not > bold* > <script> > var s = "non *bold* text"; > </script> > var s = "non *bold* text"; > => > <script> > var s = "non *bold* text"; > </script> > var s = "non <strong>bold</strong> text"; > {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications