Changes between Version 7 and Version 8 of InlineMacro
- Timestamp:
- Jun 3, 2015, 12:06:47 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InlineMacro
v7 v8 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Display inline sanitized XHTML markup =3 2 4 == Description == 3 = Display inline sanitized XHTML markup 4 5 == Description 5 6 6 7 Returns raw, inline XHTML markup that has been validated and sanitized. 7 8 8 == Validation ==9 === Validation 9 10 10 11 Markup that doesn't follow these requirements will be rejected with an error message: … … 14 15 * Empty elements must be self-closing with a space before the forward slash, e.g. <img ... />. 15 16 16 == Sanitization ==17 === Sanitization 17 18 18 19 Dangerous constructs such as <script> elements will be removed. 19 20 20 == Use Cases ==21 === Use Cases 21 22 22 `Inline` is useful for creating "phrase" elements not supported by WikiFormatting, or for including 23 attributes such as titles. The `#!html` [WikiProcessors WikiProcessor] works well for creating larger 24 chunks of markup, and in particular block-level elements such as an <address> that are also not supported 25 (a [http://microformats.org/ Microformat] is an excellent example). However, `Inline` is designed to be 26 embedded directly in another construct, typically a paragraph of text. 23 `Inline` is useful for creating "phrase" elements not supported by WikiFormatting, or for including attributes such as titles. The `#!html` [WikiProcessors WikiProcessor] works well for creating larger chunks of markup, and in particular block-level elements such as an <address> that are also not supported. A [http://microformats.org/ Microformat] is an excellent example. However, `Inline` is designed to be embedded directly in another construct, typically a paragraph of text. 27 24 25 == Bugs/Feature Requests 28 26 27 Existing bugs and feature requests for InlineMacro are 28 [report:9?COMPONENT=InlineMacro here]. 29 29 30 == Installation == 30 If you have any issues, create a 31 [/newticket?component=InlineMacro new ticket]. 32 33 [[TicketQuery(component=InlineMacro&group=type,format=progress)]] 34 35 == Source 36 37 * Browse the source at: [http://github.com/dwclifton/tracinlinemacro/tree/master GitHub]. 38 * Public clone URL: 39 {{{#!sh 40 git clone git://github.com/dwclifton/tracinlinemacro.git 41 }}} 42 43 == Installation 31 44 32 45 Download the attached [download:inlinemacro zipfile], unpack to a temporary location, visit the `0.11` 33 46 directory and run: 34 47 35 {{{ 36 #!sh 48 {{{#!sh 37 49 python setup.py bdist_egg 38 50 cp dist/*.egg /trac/env/Project/plugins 39 51 }}} 40 52 41 == Configuration ==53 == Configuration 42 54 43 Enable the macro in :55 Enable the macro in `/trac/env/Project/conf/trac.ini`: 44 56 45 /trac/env/Project/conf/trac.ini: 46 47 {{{ 48 #!ini 57 {{{#!ini 49 58 [components] 50 59 inline.* = enabled … … 53 62 You may have to restart your Web server. 54 63 55 == Examples ==64 == Examples 56 65 57 66 {{{ … … 60 69 }}} 61 70 62 == Source == 63 64 * Browse the source at: [http://github.com/dwclifton/tracinlinemacro/tree/master GitHub]. 65 * Public clone URL: 66 {{{ 67 #!sh 68 git clone git://github.com/dwclifton/tracinlinemacro.git 69 }}} 70 71 == Bugs/Feature Requests == 72 73 Existing bugs and feature requests for InlineMacro are 74 [report:9?COMPONENT=InlineMacro here]. 75 76 If you have any issues, create a 77 [http://trac-hacks.org/newticket?component=InlineMacro&owner=dwclifton new ticket]. 78 79 == Recent Changes == 71 == Recent Changes 80 72 81 73 [[ChangeLog(inlinemacro, 3)]] 82 74 83 == Author/Contributors ==75 == Author/Contributors 84 76 85 * '''Author:''' [wiki:dwclifton] 86 * '''Maintainer:''' [ wiki:dwclifton]77 * '''Author:''' [wiki:dwclifton] [[BR]] 78 * '''Maintainer:''' [[Maintainer]] [[BR]] 87 79 * '''Contributors:''' The Python and Trac development community.