# SiMarkdownExtension Type documentation

## TypeScript declaration

### [SiMarkdownExtension](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L77-L86>)

**Kind:** interface

```
import type { SiMarkdownExtension } from '@siemens/element-ng/markdown';
```

An extension to the si-markdown component

```
interface SiMarkdownExtension
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [codeTypes](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L83-L83>) (optional) | `TypeHandler[]` | Special code type handlers to install |
| [directives](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L85-L85>) (optional) | `TypeHandler[]` | Directives |
| [plugins](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L79-L79>) (optional) | `PluginWithOptions[]` | `unified` plugins to install |
| [types](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L81-L81>) (optional) | `TypeHandler[]` | Type handlers to install |

### Types Documentation

### [PluginWithOptions](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L69-L74>)

**Kind:** interface

```
import type { PluginWithOptions } from '@siemens/element-ng/markdown';
```

Combination of unified plugin with options

```
interface PluginWithOptions
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [options](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L73-L73>) (optional) | `any` | Options passed during plugin registration |
| [plugin](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L71-L71>) | `UnifiedPlugin` | The plugin |

### [TypeHandler](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L48-L51>)

**Kind:** interface

```
import type { TypeHandler } from '@siemens/element-ng/markdown';
```

Type handler for a named type. This can be an AST node type, a code type, a directive name

```
interface TypeHandler extends ComponentWithOptions<SiMarkdownExtensionComponent>
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [component](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L42-L42>) (inherited) | `Type<SiMarkdownExtensionComponent>` | The component used to render the node<br><br>Inherited from [ComponentWithOptions\<SiMarkdownExtensionComponent\>](<index.html#t:ComponentWithOptions>) |
| [options](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L44-L44>) (optional, inherited) | `any` | Options passed to the component<br><br>Inherited from [ComponentWithOptions\<SiMarkdownExtensionComponent\>](<index.html#t:ComponentWithOptions>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L50-L50>) | `string` | Type name |

### [UnifiedPlugin](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L64-L64>)

**Kind:** type alias

```
import type { UnifiedPlugin } from '@siemens/element-ng/markdown';
```

```
type UnifiedPlugin = Plugin<any> | Transformer<any> | Preset | PluggableList
```

### [SiMarkdownExtensionComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L18-L25>)

**Kind:** interface

```
import type { SiMarkdownExtensionComponent } from '@siemens/element-ng/markdown';
```

Interface an extension component must implement

```
interface SiMarkdownExtensionComponent
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [node](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L20-L20>) | `InputSignal<Node>` | Node to be rendered |
| [options](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L24-L24>) | `InputSignal<any>` | Options passed to the component |
| [parent](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L22-L22>) | `InputSignal<Parent>` | The parent node |

### [ComponentWithOptions](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L40-L45>)

**Kind:** interface

```
import type { ComponentWithOptions } from '@siemens/element-ng/markdown';
```

A combination of a component and options passed to it during run-time

```
interface ComponentWithOptions<T>
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [component](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L42-L42>) | `Type<T>` | The component used to render the node |
| [options](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L44-L44>) (optional) | `any` | Options passed to the component |
