|
| 1 | +--- |
| 2 | +icon: align-left |
| 3 | +category: page-layout |
| 4 | +summary: Write paragraphs using plain text or Markdown. |
| 5 | +top: |
| 6 | + - name: article |
| 7 | + type: BOOLEAN |
| 8 | + description: Makes long texts more readable by increasing the line height, adding margins, using a serif |
| 9 | + font, and decorating the initial letter. |
| 10 | + - name: center |
| 11 | + type: BOOLEAN |
| 12 | + description: Whether to center the title. |
| 13 | + - name: contents |
| 14 | + type: TEXT |
| 15 | + description: A top-level paragraph of text to display, without any formatting, without having to make additional |
| 16 | + queries. |
| 17 | + - name: contents_md |
| 18 | + type: TEXT |
| 19 | + description: Rich text in the markdown format. Among others, this allows you to write bold text using `**bold**`, |
| 20 | + italics using `*italics*`, and links using `[text](https://example.com)`. |
| 21 | + - name: html |
| 22 | + type: TEXT |
| 23 | + description: Raw html code to include on the page. Don't use that if you are not sure what you are doing, |
| 24 | + it may have security implications. |
| 25 | + - id |
| 26 | + - name: title |
| 27 | + type: TEXT |
| 28 | + description: Text header before the paragraph. |
| 29 | + - name: unsafe_contents_md |
| 30 | + type: TEXT |
| 31 | + description: Markdown format with html blocks. Use this only with trusted content. See the html-blocks |
| 32 | + section of the Commonmark spec for additional info. |
| 33 | +row: |
| 34 | + - name: bold |
| 35 | + type: BOOLEAN |
| 36 | + description: Whether the span of text should be displayed as bold. |
| 37 | + - name: break |
| 38 | + type: BOOLEAN |
| 39 | + description: Indicates that the current span of text starts a new paragraph. |
| 40 | + - name: code |
| 41 | + type: BOOLEAN |
| 42 | + description: Use a monospace font. Useful to display the text as code. |
| 43 | + - name: color |
| 44 | + type: COLOR |
| 45 | + description: The name of a color for this span of text. |
| 46 | + - name: contents |
| 47 | + type: TEXT |
| 48 | + required: true |
| 49 | + description: A span of text to display |
| 50 | + - name: contents_md |
| 51 | + type: TEXT |
| 52 | + description: Rich text in the markdown format. Among others, this allows you to write bold text using `**bold**`, |
| 53 | + italics using `*italics*`, and links using `[text](https://example.com)`. |
| 54 | + - name: italics |
| 55 | + type: BOOLEAN |
| 56 | + description: Whether the span of text should be displayed as italics. |
| 57 | + - name: link |
| 58 | + type: URL |
| 59 | + description: An URL to which the user should be taken when they click on this span of text. |
| 60 | + - name: size |
| 61 | + type: INTEGER |
| 62 | + description: A number between 1 and 6 indicating the font size. |
| 63 | + - name: underline |
| 64 | + type: BOOLEAN |
| 65 | + description: Whether the span of text should be underlined. |
| 66 | + - name: unsafe_contents_md |
| 67 | + type: TEXT |
| 68 | + description: Markdown format with html blocks. Use this only with trusted content. See the html-blocks |
| 69 | + section of the Commonmark spec for additional info. |
| 70 | +--- |
| 71 | + |
| 72 | +A paragraph of text. The entire component will render as a single paragraph, with each item being rendered as a span of text inside it, the styling of which can be customized using parameters. |
0 commit comments