Content Macro
Version 758.1 by Admin on 2022/07/26 20:11
Allows entering content in any of the supported Syntaxes |
Type | JAR |
Category | |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Bundled With | XWiki Standard |
Compatibility | XWiki 4.2M3+ |
Description
Allows to enter content in any of the supported Syntaxes and thus allows to have content written in various syntaxes.
Usage
{{content syntax="<syntax id>"}}
...content written in <syntax id> syntax...
{{/content}}
...content written in <syntax id> syntax...
{{/content}}
where:
- syntax id: The technical id of the syntax in which the content is written. For example: xwiki/2.0, xwiki/2.1, confluence/1.0, html/4.01, xhtml/1.0, markdown/1.0, etc. Check the "Input" column of the supported Syntax table for the full list of supported syntaxes.
Example
This is in **bold**
{{content syntax="confluence/1.0"}}
This is *bold* too!
{{/content}}
{{content syntax="confluence/1.0"}}
This is *bold* too!
{{/content}}
Results in:
Prerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager).
You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.
Dependencies
Dependencies for this extension (org.xwiki.rendering:xwiki-rendering-macro-content 14.5):