// Note: this file is authored manually, not generated from `index.js`. /** * A character code. * * This is often the same as what `String#charCodeAt()` yields but micromark * adds meaning to certain other values. * * `null` represents the end of the input stream (called eof). * Negative integers are used instead of certain sequences of characters (such * as line endings and tabs). */ export type Code = number | null /** * A chunk is either a character code or a slice of a buffer in the form of a * string. * * Chunks are used because strings are more efficient storage that character * codes, but limited in what they can represent. */ export type Chunk = Code | string /** * Enumeration of the content types. * * Technically `document` is also a content type, which includes containers * (lists, block quotes) and flow. * As `ContentType` is used on tokens to define the type of subcontent but * `document` is the highest level of content, so it’s not listed here. * * Containers in markdown come from the margin and include more constructs * on the lines that define them. * Take for example a block quote with a paragraph inside it (such as * `> asd`). * * `flow` represents the sections, such as headings, code, and content, which * is also parsed per line * An example is HTML, which has a certain starting condition (such as * `