# core/converters/markdown.converter.ts

> 26 lines of code and 11 definitions.

Tree: Bane's Lab Deploy
Language: typescript
Layer: processing
Canonical: https://banes-lab.com/anatomy/deploy#file-deploy-core-converters-markdown-converter-ts
Source text: https://banes-lab.com/source/deploy/core/converters/markdown.converter.ts.txt

Listed in [core/converters](https://banes-lab.com/api/source/deploy/core/converters.md), after [core/converters/index.converter.ts](https://banes-lab.com/source/deploy/core/converters/index.converter.ts.md) and before [core/converters/nginx.converter.ts](https://banes-lab.com/source/deploy/core/converters/nginx.converter.ts.md).

## Definitions

- `code` (lexical_declaration, line 12, exported)
- `lines` (lexical_declaration, line 32, exported)
- `bullet` (lexical_declaration, line 8, exported)
- `fenced` (lexical_declaration, line 16, exported)
- `link` (lexical_declaration, line 24, exported)
- `relative` (lexical_declaration, line 28, exported)
- `BULLET` (lexical_declaration, line 3)
- `LABEL_END` (lexical_declaration, line 4)
- `CODE` (lexical_declaration, line 5)
- `FENCE` (lexical_declaration, line 6)
- `fencedBlock` (lexical_declaration, line 20, exported)

## Contained in

- [core/converters](https://banes-lab.com/anatomy/deploy/folder-deploy-core-converters.md)

## Used by

- [core/probes/system.probe.ts](https://banes-lab.com/source/deploy/core/probes/system.probe.ts.md)
- [core/probes/vcs.probe.ts](https://banes-lab.com/source/deploy/core/probes/vcs.probe.ts.md)
- [core/reporters/deployment.reporter.ts](https://banes-lab.com/source/deploy/core/reporters/deployment.reporter.ts.md)
- [core/reporters/nginx.reporter.ts](https://banes-lab.com/source/deploy/core/reporters/nginx.reporter.ts.md)
- [core/reporters/notification.reporter.ts](https://banes-lab.com/source/deploy/core/reporters/notification.reporter.ts.md)

## Linked from

- [core/probes](https://banes-lab.com/anatomy/deploy/folder-deploy-core-probes.md)
- [core/reporters](https://banes-lab.com/anatomy/deploy/folder-deploy-core-reporters.md)

## Source

````typescript
import { LINE_BREAK } from "#configuration/constants/deployment.constants";

const BULLET = "• **";
const LABEL_END = ":** ";
const CODE = "`";
const FENCE = "```";

export const bullet = function bullet(label: string, value: string): string {
    return BULLET + label + LABEL_END + value;
};

export const code = function code(value: string): string {
    return CODE + value + CODE;
};

export const fenced = function fenced(value: string): string {
    return FENCE + value + FENCE;
};

export const fencedBlock = function fencedBlock(language: string, value: string): string {
    return FENCE + language + LINE_BREAK + value + LINE_BREAK + FENCE;
};

export const link = function link(label: string, url: string): string {
    return `[${label}](${url})`;
};

export const relative = function relative(unixSeconds: number): string {
    return `<t:${String(unixSeconds)}:R>`;
};

export const lines = function lines(entries: readonly string[]): string {
    return entries.join(LINE_BREAK);
};
````
