#### 30.2.4 Stripping paragraph properties

You can designate text in your DITA document that you do not want fully converted to HTML. For example, you can include material pre-written in HTML, and direct DITA2Go to insert the material as is in the HTML output. Create a special paragraph format to use only for this purpose, and assign to it one of the following properties:

[HTMLParaStyles]
; para format = keywords for functions and properties
; Comment makes the element a comment, replacing the para tags,
; unless ParaStyle is "script", then the comment is in the tags
; NoTags suppresses any attributes for the para tag, and suppresses
; any tags within
; NoPara eliminates the para tags only, to be provided in a macro
; NoWrap suppresses \n line breaks and preserves leading spaces
; Raw acts like NoTags, and also eliminates the para tags entirely
; It is used to put macro inclusions in between document elements

Comment

Use Comment to cause a paragraph to appear only as a comment in the generated HTML source code. DITA2Go substitutes <!-- and --> tags for the <p> and </p> tags, unless you have also assigned a script tag to the paragraph format in [ParaTags]; see §30.2.3 Designating script paragraph formats.

NoTags

Use NoTags to suppress all tags between <p> and </p> (such as <font>, <b>, <i>, and so forth) in the generated HTML for the paragraph. Only the <p> tags themselves and the paragraph content are included in the output.

NoPara

Use NoPara to suppress only the <p> tags in the output. You might want to do this when either of the following is true:

- The paragraph will be part of a DITA2Go macro that already supplies <p> ... </p>.
- You are generating XML instead of HTML; see §23.3.2 Eliminating HTML attributes and tags for generic XML. If you are producing DITA XML output, also see §24.4.3.2 Omitting element tags for selected paragraph formats.

NoWrap

Use NoWrap to suppress \n line breaks and preserve leading spaces in preformatted text. This property has the same effect as [HTMLOptions]NoWrap, but applied at the paragraph format level; see §22.6.3 Suppressing line breaks in HTML and XML output.

Raw

Use Raw to insert straight HTML code wherever you want it to appear in your document. DITA2Go embeds the content of the paragraph in the output without generating HTML tags, and without processing any macro invocations the content might include.

Previous Topic: 30.2.3 Designating script paragraph formats

Next Topic: 30.2.5 Providing content for empty paragraphs

Parent Topic: 30.2 Mapping paragraph formats

Sibling Topics:

30.2.1 Assigning HTML tags and attributes to paragraph formats

30.2.2 Including or excluding paragraph autonumbers

30.2.3 Designating script paragraph formats

30.2.5 Providing content for empty paragraphs

30.2.6 Eliminating unwanted paragraphs

Table of Contents • Index