# Markdown

## Usage

The Markdown component takes *markdown* text and converts it into *JSX*. Simply import a **.md** file into your element and pass it to the Markdown component as the **value** property:

{% tabs %}
{% tab title="Component" %}
{% code title="MyElement.js" %}

```jsx
import React from 'react';
import readme from './readme.md';
import { useHookComponent } from 'reactium-core/sdk';

const MyElement = () => {

    const { Markdown } = useHookComponent('RTK');
    
    return <Markdown value={readme} />
};
```

{% endcode %}
{% endtab %}

{% tab title="Markdown" %}
{% code title="readme.md" %}

````markup
# Title
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.

Some **bold**, *italic*, ~~strike~~, and `code` text

```
<div>markup</div>
```

> Block quote
````

{% endcode %}
{% endtab %}

{% tab title="Output" %}
![](/files/-MT1lQ-qOLyC2hMz-ge1)
{% endtab %}
{% endtabs %}

{% hint style="info" %}
The Toolkit plugin extends the Reactium Webpack configuration to allow **.md** file imports.&#x20;
{% endhint %}

## Properties

| Property  | Type     | Description       |
| --------- | -------- | ----------------- |
| **Value** | `String` | The markdown text |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.reactium.io/reactium-toolkit/components/markdown.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
