Vanha frontend siirretty temp/. Uusi rakenne: - StatusBar.astro, Terminal.astro, Editor.astro, Guide.astro - global.css erillinen - Wasm pääsäikeessä (ei Worker — yksinkertainen, debugattava) - Tab-completion, dropdown, projektikortti, Monaco, GUIDE.md - Ei tokenisointia eikä koodilaboratoriota Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
884 B
TypeScript
35 lines
884 B
TypeScript
import type {Nodes, Paragraph, Root, Sentence} from 'nlcst'
|
|
import type {Plugin} from 'unified'
|
|
|
|
// See `parse-latin`.
|
|
type Extension<Node extends Nodes> = (node: Node) => undefined | void
|
|
|
|
/**
|
|
* Add support for parsing Latin-script natural language.
|
|
*
|
|
* @this
|
|
* Unified processor.
|
|
* @returns
|
|
* Nothing.
|
|
*/
|
|
declare const retextLatin: Plugin<[], string, Root>
|
|
export default retextLatin
|
|
|
|
// Add custom data supported when `retext-latin` is added.
|
|
declare module 'unified' {
|
|
interface Data {
|
|
/**
|
|
* List of extensions to transform paragraph nodes.
|
|
*/
|
|
nlcstParagraphExtensions?: Array<Extension<Paragraph>>
|
|
/**
|
|
* List of extensions to transform root nodes.
|
|
*/
|
|
nlcstRootExtensions?: Array<Extension<Root>>
|
|
/**
|
|
* List of extensions to transform sentence nodes.
|
|
*/
|
|
nlcstSentenceExtensions?: Array<Extension<Sentence>>
|
|
}
|
|
}
|