Kramdown IAL
Publisher: Steven GouletThemes in package: 2
Adds syntax highlighting scopes in your markdown for Kramdown IAL (inline attribute lists) (e.g. {: .class #id key="value"}) inside Markdown.
Adds syntax highlighting scopes in your markdown for Kramdown IAL (inline attribute lists) (e.g. {: .class #id key="value"}) inside Markdown.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment, string.comment | #6e7781 | — |
| constant.other.placeholder, constant.character | #cf222e | — |
| constant, entity.name.constant, variable.other.constant, variable.other.enummember, variable.language, entity | #0550ae | — |
| entity.name, meta.export.default, meta.definition.variable | #953800 | — |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression | #24292f | — |
| entity.name.function | #8250df | — |
| entity.name.tag, support.class.component | #116329 | — |
| keyword | #cf222e | — |
| storage, storage.type | #cf222e | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #24292f | — |
| string, string punctuation.section.embedded source | #0a3069 | — |
| support | #0550ae | — |
| meta.property-name | #0550ae | — |
| variable | #953800 | — |
| variable.other | #24292f | — |
| invalid.broken, invalid.deprecated, invalid.illegal, invalid.unimplemented | #d1242f | italic |
| message.error | #d1242f | — |
| source.regexp, string.regexp | #0a3069 | — |
| string.regexp constant.character.escape | #116329 | bold |
| support.type.property-name.json | #116329 | — |
| punctuation.definition.list.begin.markdown | #953800 | — |
| markup.heading, markup.heading entity.name | #0550ae | bold |
| markup.quote | #116329 | — |
| markup.italic | #24292f | italic |
| markup.bold | #24292f | bold |
| markup.inline.raw | #0550ae | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #d1242f | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #116329 | — |
| markup.changed, punctuation.definition.changed | #953800 | — |
| meta.diff.range | #8250df | bold |
| meta.diff.header | #0550ae | — |
| punctuation.definition.attribute-list.begin.kramdown, punctuation.definition.attribute-list.end.kramdown | #8250df | — |
| punctuation.definition.extension.begin.kramdown, punctuation.definition.extension.end.kramdown, punctuation.definition.extension.endtag.begin.kramdown, punctuation.definition.extension.endtag.end.kramdown, punctuation.definition.extension.self-close.kramdown, punctuation.definition.end-of-block-marker.kramdown | #8250df | — |
| entity.name.function.kramdown | #0550ae | — |
| token.info-token | #0969da | — |
| token.warn-token | #9a6700 | — |
| token.error-token | #d1242f | — |
| token.debug-token | #8250df | — |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}