2023-06-23 10:52:03 +00:00
|
|
|
import {type JSX} from "preact";
|
|
|
|
import {Link} from "../../utilities/exports.js";
|
|
|
|
import {Setting, type SettingProps} from "./index.js";
|
2022-02-23 13:52:06 +00:00
|
|
|
|
2023-06-23 10:52:03 +00:00
|
|
|
export function MarkdownToolbarSetting(props: SettingProps): JSX.Element {
|
|
|
|
return (
|
|
|
|
<Setting {...props}>
|
2022-02-23 13:52:06 +00:00
|
|
|
<p class="info">
|
|
|
|
Adds a toolbar with a selection of Markdown snippets that when used will
|
|
|
|
insert the according Markdown where your cursor is. Particularly useful
|
2023-06-23 10:52:03 +00:00
|
|
|
for the{" "}
|
|
|
|
<Link
|
2022-02-23 13:52:06 +00:00
|
|
|
url="https://docs.tildes.net/instructions/text-formatting#expandable-sections"
|
|
|
|
text="expandable section"
|
|
|
|
/>
|
|
|
|
/spoilerbox syntax. If you have text selected, the Markdown will be
|
|
|
|
inserted around your text.
|
2023-11-25 11:37:55 +00:00
|
|
|
<br />
|
|
|
|
You can edit the available snippets and their position in the toolbar
|
|
|
|
using the{" "}
|
|
|
|
<a href="/options/markdown-toolbar-editor.html">
|
|
|
|
Markdown Toolbar Editor
|
|
|
|
</a>
|
2022-02-23 13:52:06 +00:00
|
|
|
.
|
|
|
|
</p>
|
2023-06-23 10:52:03 +00:00
|
|
|
</Setting>
|
|
|
|
);
|
2022-02-23 13:52:06 +00:00
|
|
|
}
|