file_path stringlengths 3 280 | file_language stringclasses 66 values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108 values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
src/util/location.rs | Rust | //! Deal with positions in a file.
//!
//! * Convert between byte indices and unist points.
//! * Convert between byte indices into a string which is built up of several
//! slices in a whole document, and byte indices into that whole document.
use crate::unist::Point;
use alloc::{vec, vec::Vec};
/// Each stop represents a new slice, which contains the byte index into the
/// corresponding string where the slice starts (`0`), and the byte index into
/// the whole document where that slice starts (`1`).
pub type Stop = (usize, usize);
#[derive(Debug)]
pub struct Location {
/// List, where each index is a line number (0-based), and each value is
/// the byte index *after* where the line ends.
indices: Vec<usize>,
}
impl Location {
/// Get an index for the given `bytes`.
///
/// Port of <https://github.com/vfile/vfile-location/blob/main/index.js>
#[must_use]
pub fn new(bytes: &[u8]) -> Self {
let mut index = 0;
let mut location_index = Self { indices: vec![] };
while index < bytes.len() {
if bytes[index] == b'\r' {
if index + 1 < bytes.len() && bytes[index + 1] == b'\n' {
location_index.indices.push(index + 2);
index += 1;
} else {
location_index.indices.push(index + 1);
}
} else if bytes[index] == b'\n' {
location_index.indices.push(index + 1);
}
index += 1;
}
location_index.indices.push(index + 1);
location_index
}
/// Get the line and column-based `point` for `offset` in the bound indices.
///
/// Returns `None` when given out of bounds input.
///
/// Port of <https://github.com/vfile/vfile-location/blob/main/index.js>
#[must_use]
pub fn to_point(&self, offset: usize) -> Option<Point> {
let mut index = 0;
if let Some(end) = self.indices.last() {
if offset < *end {
while index < self.indices.len() {
if self.indices[index] > offset {
break;
}
index += 1;
}
let previous = if index > 0 {
self.indices[index - 1]
} else {
0
};
return Some(Point::new(index + 1, offset + 1 - previous, offset));
}
}
None
}
/// Like `to_point`, but takes a relative offset from a certain string
/// instead of an absolute offset into the whole document.
///
/// The relative offset is made absolute based on `stops`, which represent
/// where that certain string is in the whole document.
#[must_use]
pub fn relative_to_point(&self, stops: &[Stop], relative: usize) -> Option<Point> {
Location::relative_to_absolute(stops, relative).and_then(|absolute| self.to_point(absolute))
}
/// Turn a relative offset into an absolute offset.
#[must_use]
pub fn relative_to_absolute(stops: &[Stop], relative: usize) -> Option<usize> {
let mut index = 0;
while index < stops.len() && stops[index].0 <= relative {
index += 1;
}
// There are no points: that only occurs if there was an empty string.
if index == 0 {
None
} else {
let (stop_relative, stop_absolute) = &stops[index - 1];
Some(stop_absolute + (relative - stop_relative))
}
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_location_lf() {
let location = Location::new("ab\nc".as_bytes());
assert_eq!(
location.to_point(0), // `a`
Some(Point::new(1, 1, 0)),
"should support some points (1)"
);
assert_eq!(
location.to_point(1), // `b`
Some(Point::new(1, 2, 1)),
"should support some points (2)"
);
assert_eq!(
location.to_point(2), // `\n`
Some(Point::new(1, 3, 2)),
"should support some points (3)"
);
assert_eq!(
location.to_point(3), // `c`
Some(Point::new(2, 1, 3)),
"should support some points (4)"
);
assert_eq!(
location.to_point(4), // EOF
// Still gets a point, so that we can represent positions of things
// that end at the last character, the `c` end at `2:2`.
Some(Point::new(2, 2, 4)),
"should support some points (5)"
);
assert_eq!(
location.to_point(5), // Out of bounds
None,
"should support some points (6)"
);
}
#[test]
fn test_location_cr() {
let location = Location::new("a\rb".as_bytes());
assert_eq!(
location.to_point(0), // `a`
Some(Point::new(1, 1, 0)),
"should support some points (1)"
);
assert_eq!(
location.to_point(1), // `\r`
Some(Point::new(1, 2, 1)),
"should support some points (2)"
);
assert_eq!(
location.to_point(2), // `b`
Some(Point::new(2, 1, 2)),
"should support some points (3)"
);
}
#[test]
fn test_location_cr_lf() {
let location = Location::new("a\r\nb".as_bytes());
assert_eq!(
location.to_point(0), // `a`
Some(Point::new(1, 1, 0)),
"should support some points (1)"
);
assert_eq!(
location.to_point(1), // `\r`
Some(Point::new(1, 2, 1)),
"should support some points (2)"
);
assert_eq!(
location.to_point(2), // `\n`
Some(Point::new(1, 3, 2)),
"should support some points (3)"
);
assert_eq!(
location.to_point(3), // `b`
Some(Point::new(2, 1, 3)),
"should support some points (4)"
);
}
#[test]
fn test_empty() {
let location = Location::new("".as_bytes());
assert_eq!(location.to_point(0), Some(Point::new(1, 1, 0)), "to_point");
assert_eq!(
location.relative_to_point(&[], 0),
None,
"relative_to_point"
);
assert_eq!(
Location::relative_to_absolute(&[], 0),
None,
"relative_to_absolute"
);
}
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
src/util/mdx.rs | Rust | use alloc::{boxed::Box, string::String};
/// Signal used as feedback when parsing MDX ESM/expressions.
#[derive(Clone, Debug)]
pub enum Signal {
/// A syntax error.
///
/// `markdown-rs` will crash with error message `String`, and convert the
/// `usize` (byte offset into `&str` passed to `MdxExpressionParse` or
/// `MdxEsmParse`) to where it happened in the whole document.
///
/// ## Examples
///
/// ```rust ignore
/// Signal::Error("Unexpected `\"`, expected identifier".into(), 1)
/// ```
Error(String, usize, Box<String>, Box<String>),
/// An error at the end of the (partial?) expression.
///
/// `markdown-rs` will either crash with error message `String` if it
/// doesn’t have any more text, or it will try again later when more text
/// is available.
///
/// ## Examples
///
/// ```rust ignore
/// Signal::Eof("Unexpected end of file in string literal".into())
/// ```
Eof(String, Box<String>, Box<String>),
/// Done, successfully.
///
/// `markdown-rs` knows that this is the end of a valid expression/esm and
/// continues with markdown.
///
/// ## Examples
///
/// ```rust ignore
/// Signal::Ok
/// ```
Ok,
}
/// Signature of a function that parses MDX ESM.
///
/// Can be passed as `mdx_esm_parse` in
/// [`ParseOptions`][crate::configuration::ParseOptions] to support
/// ESM according to a certain grammar (typically, a programming language).
pub type EsmParse = dyn Fn(&str) -> Signal;
/// Expression kind.
#[derive(Clone, Debug)]
pub enum ExpressionKind {
/// Kind of expressions in prose.
///
/// ```mdx
/// > | # {Math.PI}
/// ^^^^^^^^^
/// |
/// > | {Math.PI}
/// ^^^^^^^^^
/// ```
Expression,
/// Kind of expressions as attributes.
///
/// ```mdx
/// > | <a {...b}>
/// ^^^^^^
/// ```
AttributeExpression,
/// Kind of expressions as attribute values.
///
/// ```mdx
/// > | <a b={c}>
/// ^^^
/// ```
AttributeValueExpression,
}
/// Signature of a function that parses MDX expressions.
///
/// Can be passed as `mdx_expression_parse` in
/// [`ParseOptions`][crate::configuration::ParseOptions] to support
/// expressions according to a certain grammar (typically, a programming
/// language).
///
pub type ExpressionParse = dyn Fn(&str, &ExpressionKind) -> Signal;
#[cfg(test)]
mod tests {
use super::*;
use alloc::boxed::Box;
#[test]
fn test_mdx_expression_parse() {
fn func(_value: &str, _kind: &ExpressionKind) -> Signal {
Signal::Ok
}
let func_accepting = |_a: Box<ExpressionParse>| true;
assert!(
matches!(func("a", &ExpressionKind::Expression), Signal::Ok),
"should expose an `ExpressionParse` type (1)"
);
assert!(
func_accepting(Box::new(func)),
"should expose an `ExpressionParse` type (2)"
);
}
#[test]
fn test_mdx_esm_parse() {
fn func(_value: &str) -> Signal {
Signal::Ok
}
let func_accepting = |_a: Box<EsmParse>| true;
assert!(
matches!(func("a"), Signal::Ok),
"should expose an `EsmParse` type (1)"
);
assert!(
func_accepting(Box::new(func)),
"should expose an `EsmParse` type (2)"
);
}
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
src/util/mdx_collect.rs | Rust | //! Collect info for MDX.
use crate::event::{Event, Kind, Name};
use crate::util::slice::{Position, Slice};
use alloc::{string::String, vec, vec::Vec};
pub type Stop = (usize, usize);
#[derive(Debug)]
pub struct Result {
pub value: String,
pub stops: Vec<Stop>,
}
pub fn collect(
events: &[Event],
bytes: &[u8],
from: usize,
names: &[Name],
stop: &[Name],
) -> Result {
let mut result = Result {
value: String::new(),
stops: vec![],
};
let mut index = from;
while index < events.len() {
if events[index].kind == Kind::Enter {
if names.contains(&events[index].name) {
// Include virtual spaces, and assume void.
let value = Slice::from_position(
bytes,
&Position {
start: &events[index].point,
end: &events[index + 1].point,
},
)
.serialize();
result
.stops
.push((result.value.len(), events[index].point.index));
result.value.push_str(&value);
}
} else if stop.contains(&events[index].name) {
break;
}
index += 1;
}
result
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
src/util/mod.rs | Rust | //! Utilities used when processing markdown.
pub mod char;
pub mod character_reference;
pub mod constant;
pub mod edit_map;
pub mod encode;
pub mod gfm_tagfilter;
pub mod identifier;
pub mod infer;
pub mod line_ending;
pub mod location;
pub mod mdx;
pub mod mdx_collect;
pub mod normalize_identifier;
pub mod sanitize_uri;
pub mod skip;
pub mod slice;
pub mod unicode;
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
src/util/normalize_identifier.rs | Rust | //! Normalize identifiers.
use alloc::string::String;
/// Normalize an identifier, as found in [references][label_end] and
/// [definitions][definition], so it can be compared when matching.
///
/// This collapsed whitespace found in markdown (`\t`, `\r`, `\n`, and ` `)
/// into one space, trims it (as in, dropping the first and last space), and
/// then performs unicode case folding twice: first by lowercasing uppercase
/// characters, and then uppercasing lowercase characters.
///
/// Some characters are considered “uppercase”, such as U+03F4 (`ϴ`), but if
/// their lowercase counterpart (U+03B8 (`θ`)) is uppercased will result in a
/// different uppercase character (U+0398 (`Θ`)).
/// Hence, to get that form, we perform both lower- and uppercase.
///
/// Performing these steps in that order works, but the inverse does not work.
/// To illustrate, say the source markdown containes two identifiers
/// `SS` (U+0053 U+0053) and `ẞ` (U+1E9E), which would be lowercased to
/// `ss` (U+0073 U+0073) and `ß` (U+00DF), and those in turn would both
/// uppercase to `SS` (U+0053 U+0053).
/// If we’d inverse the steps, for `ẞ`, we’d first uppercase without a
/// change, and then lowercase to `ß`, which would not match `ss`.
///
/// ## Examples
///
/// ```rust ignore
/// markdown::util::normalize_identifier::normalize_identifier;
///
/// assert_eq!(normalize_identifier(" a "), "a");
/// assert_eq!(normalize_identifier("a\t\r\nb"), "a b");
/// assert_eq!(normalize_identifier("ПРИВЕТ"), "привет");
/// assert_eq!(normalize_identifier("Привет"), "привет");
/// assert_eq!(normalize_identifier("привет"), "привет");
/// ```
///
/// ## References
///
/// * [`micromark-util-normalize-identifier` in `micromark`](https://github.com/micromark/micromark/tree/main/packages/micromark-util-normalize-identifier)
///
/// [definition]: crate::construct::definition
/// [label_end]: crate::construct::label_end
pub fn normalize_identifier(value: &str) -> String {
// Note: it’ll grow a bit smaller for consecutive whitespace.
let mut result = String::with_capacity(value.len());
let bytes = value.as_bytes();
let mut in_whitespace = true;
let mut index = 0;
let mut start = 0;
while index < bytes.len() {
if matches!(bytes[index], b'\t' | b'\n' | b'\r' | b' ') {
// First whitespace we see after non-whitespace.
if !in_whitespace {
result.push_str(&value[start..index]);
in_whitespace = true;
}
}
// First non-whitespace we see after whitespace.
else if in_whitespace {
if start != 0 {
result.push(' ');
}
start = index;
in_whitespace = false;
}
index += 1;
}
if !in_whitespace {
result.push_str(&value[start..]);
}
result.to_lowercase().to_uppercase()
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
src/util/sanitize_uri.rs | Rust | //! Make urls safe.
use crate::util::encode::encode;
use alloc::{format, string::String, vec::Vec};
/// Make a value safe for injection as a URL.
///
/// This encodes unsafe characters with percent-encoding and skips already
/// encoded sequences (see `normalize` below).
/// Further unsafe characters are encoded as character references (see
/// `encode`).
///
/// ## Examples
///
/// ```rust ignore
/// use markdown::util::sanitize_uri::sanitize;
///
/// assert_eq!(sanitize("javascript:alert(1)"), "javascript:alert(1)");
/// assert_eq!(sanitize("https://a👍b.c/%20/%"), "https://a%F0%9F%91%8Db.c/%20/%25");
/// ```
///
/// ## References
///
/// * [`micromark-util-sanitize-uri` in `micromark`](https://github.com/micromark/micromark/tree/main/packages/micromark-util-sanitize-uri)
#[must_use]
pub fn sanitize(value: &str) -> String {
encode(&normalize(value), true)
}
/// Make a value safe for injection as a URL, and check protocols.
///
/// This first uses [`sanitize`][].
/// Then, a vec of (lowercase) allowed protocols can be given, in which case
/// the URL is ignored or kept.
///
/// For example, `&["http", "https", "irc", "ircs", "mailto", "xmpp"]`
/// can be used for `a[href]`, or `&["http", "https"]` for `img[src]`.
/// If the URL includes an unknown protocol (one not matched by `protocol`, such
/// as a dangerous example, `javascript:`), the value is ignored.
///
/// ## Examples
///
/// ```rust ignore
/// use markdown::util::sanitize_uri::sanitize_with_protocols;
///
/// assert_eq!(sanitize_with_protocols("javascript:alert(1)", &["http", "https"]), "");
/// assert_eq!(sanitize_with_protocols("https://example.com", &["http", "https"]), "https://example.com");
/// assert_eq!(sanitize_with_protocols("https://a👍b.c/%20/%", &["http", "https"]), "https://a%F0%9F%91%8Db.c/%20/%25");
/// ```
///
/// ## References
///
/// * [`micromark-util-sanitize-uri` in `micromark`](https://github.com/micromark/micromark/tree/main/packages/micromark-util-sanitize-uri)
pub fn sanitize_with_protocols(value: &str, protocols: &[&str]) -> String {
let value = sanitize(value);
let end = value.find(|c| matches!(c, '?' | '#' | '/'));
let mut colon = value.find(':');
// If the first colon is after `?`, `#`, or `/`, it’s not a protocol.
if let Some(end) = end {
if let Some(index) = colon {
if index > end {
colon = None;
}
}
}
// If there is no protocol, it’s relative, and fine.
if let Some(colon) = colon {
// If it is a protocol, it should be allowed.
let protocol = value[0..colon].to_lowercase();
if !protocols.contains(&protocol.as_str()) {
return String::new();
}
}
value
}
/// Normalize a URL (such as used in [definitions][definition],
/// [references][label_end]).
///
/// It encodes unsafe characters with percent-encoding, skipping already encoded
/// sequences.
///
/// ## Examples
///
/// ```rust ignore
/// use markdown::util::sanitize_uri::normalize;
///
/// assert_eq!(sanitize_uri("https://example.com"), "https://example.com");
/// assert_eq!(sanitize_uri("https://a👍b.c/%20/%"), "https://a%F0%9F%91%8Db.c/%20/%25");
/// ```
///
/// ## References
///
/// * [`micromark-util-sanitize-uri` in `micromark`](https://github.com/micromark/micromark/tree/main/packages/micromark-util-sanitize-uri)
///
/// [definition]: crate::construct::definition
/// [label_end]: crate::construct::label_end
fn normalize(value: &str) -> String {
let chars = value.chars().collect::<Vec<_>>();
// Note: it’ll grow bigger for each non-ascii or non-safe character.
let mut result = String::with_capacity(value.len());
let mut index = 0;
let mut start = 0;
let mut buff = [0; 4];
while index < chars.len() {
let char = chars[index];
// A correct percent encoded value.
if char == '%'
&& index + 2 < chars.len()
&& chars[index + 1].is_ascii_alphanumeric()
&& chars[index + 2].is_ascii_alphanumeric()
{
index += 3;
continue;
}
// Note: Rust already takes care of lone surrogates.
// Non-ascii or not allowed ascii.
if char >= '\u{0080}'
|| !matches!(char, '!' | '#' | '$' | '&'..=';' | '=' | '?'..='Z' | '_' | 'a'..='z' | '~')
{
result.push_str(&chars[start..index].iter().collect::<String>());
char.encode_utf8(&mut buff);
#[allow(clippy::format_collect)]
result.push_str(
&buff[0..char.len_utf8()]
.iter()
.map(|&byte| format!("%{:>02X}", byte))
.collect::<String>(),
);
start = index + 1;
}
index += 1;
}
result.push_str(&chars[start..].iter().collect::<String>());
result
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
src/util/skip.rs | Rust | //! Move across lists of events.
use crate::event::{Event, Kind, Name};
/// Skip from `index`, optionally past `names`.
pub fn opt(events: &[Event], index: usize, names: &[Name]) -> usize {
skip_opt_impl(events, index, names, true)
}
/// Skip from `index`, optionally past `names`, backwards.
pub fn opt_back(events: &[Event], index: usize, names: &[Name]) -> usize {
skip_opt_impl(events, index, names, false)
}
/// Skip from `index` forwards to `names`.
pub fn to(events: &[Event], index: usize, names: &[Name]) -> usize {
to_impl(events, index, names, true)
}
/// Skip from `index` backwards to `names`.
pub fn to_back(events: &[Event], index: usize, names: &[Name]) -> usize {
to_impl(events, index, names, false)
}
/// Skip to something.
fn to_impl(events: &[Event], mut index: usize, names: &[Name], forward: bool) -> usize {
while index < events.len() {
let current = &events[index].name;
if names.contains(current) {
break;
}
index = if forward { index + 1 } else { index - 1 };
}
index
}
/// Skip past things.
fn skip_opt_impl(events: &[Event], mut index: usize, names: &[Name], forward: bool) -> usize {
let mut balance = 0;
let open = if forward { Kind::Enter } else { Kind::Exit };
while index < events.len() {
let current = &events[index].name;
if !names.contains(current) || events[index].kind != open {
break;
}
index = if forward { index + 1 } else { index - 1 };
balance += 1;
loop {
balance = if events[index].kind == open {
balance + 1
} else {
balance - 1
};
let next = if forward {
index + 1
} else if index > 0 {
index - 1
} else {
index
};
if events[index].name == *current && balance == 0 {
index = next;
break;
}
index = next;
}
}
index
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
src/util/slice.rs | Rust | //! Deal with bytes.
use crate::event::{Event, Kind, Point};
use crate::util::constant::TAB_SIZE;
use alloc::{format, string::String, vec};
use core::str;
/// A range between two points.
#[derive(Debug)]
pub struct Position<'a> {
/// Start point.
pub start: &'a Point,
/// End point.
pub end: &'a Point,
}
impl<'a> Position<'a> {
/// Get a position from an exit event.
///
/// Looks backwards for the corresponding `enter` event.
/// This does not support nested events (such as lists in lists).
///
/// ## Panics
///
/// This function panics if an enter event is given.
/// When `markdown-rs` is used, this function never panics.
pub fn from_exit_event(events: &'a [Event], index: usize) -> Position<'a> {
debug_assert_eq!(events[index].kind, Kind::Exit, "expected `exit` event");
let end = &events[index].point;
let name = &events[index].name;
let mut index = index - 1;
while !(events[index].kind == Kind::Enter && events[index].name == *name) {
index -= 1;
}
let start = &events[index].point;
Position { start, end }
}
/// Turn a position into indices.
///
/// Indices are places in `bytes` where this position starts and ends.
///
/// > 👉 **Note**: indices cannot represent virtual spaces.
pub fn to_indices(&self) -> (usize, usize) {
(self.start.index, self.end.index)
}
}
/// Bytes belonging to a range.
///
/// Includes info on virtual spaces before and after the bytes.
#[derive(Debug)]
pub struct Slice<'a> {
/// Bytes.
pub bytes: &'a [u8],
/// Number of virtual spaces before the bytes.
pub before: usize,
/// Number of virtual spaces after the bytes.
pub after: usize,
}
impl<'a> Slice<'a> {
/// Get a slice for a position.
pub fn from_position(bytes: &'a [u8], position: &Position) -> Slice<'a> {
let mut before = position.start.vs;
let mut after = position.end.vs;
let mut start = position.start.index;
let mut end = position.end.index;
// If we have virtual spaces before, it means we are past the actual
// character at that index, and those virtual spaces.
if before > 0 {
before = TAB_SIZE - before;
start += 1;
}
// If we have virtual spaces after, it means that character is included,
// and one less virtual space.
if after > 0 {
after -= 1;
end += 1;
}
Slice {
bytes: &bytes[start..end],
before,
after,
}
}
/// Get a slice for two indices.
///
/// > 👉 **Note**: indices cannot represent virtual spaces.
pub fn from_indices(bytes: &'a [u8], start: usize, end: usize) -> Slice<'a> {
Slice {
bytes: &bytes[start..end],
before: 0,
after: 0,
}
}
/// Get the size of this slice, including virtual spaces.
pub fn len(&self) -> usize {
self.bytes.len() + self.before + self.after
}
/// Turn the slice into a `&str`.
///
/// > 👉 **Note**: cannot represent virtual spaces.
pub fn as_str(&self) -> &str {
str::from_utf8(self.bytes).unwrap()
}
/// Turn the slice into a `String`.
///
/// Supports virtual spaces.
pub fn serialize(&self) -> String {
let prefix = String::from_utf8(vec![b' '; self.before]).unwrap();
let suffix = String::from_utf8(vec![b' '; self.after]).unwrap();
format!("{}{}{}", prefix, self.as_str(), suffix)
}
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
src/util/unicode.rs | Rust | //! Info on Unicode.
/// List of characters that are considered punctuation.
///
/// > 👉 **Important**: this module is generated by `generate/src/main.rs`.
/// > It is generate from the latest Unicode data.
///
/// Rust does not contain an `is_punctuation` method on `char`, while it does
/// support [`is_ascii_alphanumeric`](char::is_ascii_alphanumeric).
///
/// `CommonMark` handles attention (emphasis, strong) markers based on what
/// comes before or after them.
/// One such difference is if those characters are Unicode punctuation.
///
/// ## References
///
/// * [*§ 2.1 Characters and lines* in `CommonMark`](https://spec.commonmark.org/0.31.2/#unicode-punctuation-character)
pub static PUNCTUATION: [char; 9369] = [
'\u{0021}',
'\u{0022}',
'\u{0023}',
'\u{0024}',
'\u{0025}',
'\u{0026}',
'\u{0027}',
'\u{0028}',
'\u{0029}',
'\u{002A}',
'\u{002B}',
'\u{002C}',
'\u{002D}',
'\u{002E}',
'\u{002F}',
'\u{003A}',
'\u{003B}',
'\u{003C}',
'\u{003D}',
'\u{003E}',
'\u{003F}',
'\u{0040}',
'\u{005B}',
'\u{005C}',
'\u{005D}',
'\u{005E}',
'\u{005F}',
'\u{0060}',
'\u{007B}',
'\u{007C}',
'\u{007D}',
'\u{007E}',
'\u{00A1}',
'\u{00A2}',
'\u{00A3}',
'\u{00A4}',
'\u{00A5}',
'\u{00A6}',
'\u{00A7}',
'\u{00A8}',
'\u{00A9}',
'\u{00AB}',
'\u{00AC}',
'\u{00AE}',
'\u{00AF}',
'\u{00B0}',
'\u{00B1}',
'\u{00B4}',
'\u{00B6}',
'\u{00B7}',
'\u{00B8}',
'\u{00BB}',
'\u{00BF}',
'\u{00D7}',
'\u{00F7}',
'\u{02C2}',
'\u{02C3}',
'\u{02C4}',
'\u{02C5}',
'\u{02D2}',
'\u{02D3}',
'\u{02D4}',
'\u{02D5}',
'\u{02D6}',
'\u{02D7}',
'\u{02D8}',
'\u{02D9}',
'\u{02DA}',
'\u{02DB}',
'\u{02DC}',
'\u{02DD}',
'\u{02DE}',
'\u{02DF}',
'\u{02E5}',
'\u{02E6}',
'\u{02E7}',
'\u{02E8}',
'\u{02E9}',
'\u{02EA}',
'\u{02EB}',
'\u{02ED}',
'\u{02EF}',
'\u{02F0}',
'\u{02F1}',
'\u{02F2}',
'\u{02F3}',
'\u{02F4}',
'\u{02F5}',
'\u{02F6}',
'\u{02F7}',
'\u{02F8}',
'\u{02F9}',
'\u{02FA}',
'\u{02FB}',
'\u{02FC}',
'\u{02FD}',
'\u{02FE}',
'\u{02FF}',
'\u{0375}',
'\u{037E}',
'\u{0384}',
'\u{0385}',
'\u{0387}',
'\u{03F6}',
'\u{0482}',
'\u{055A}',
'\u{055B}',
'\u{055C}',
'\u{055D}',
'\u{055E}',
'\u{055F}',
'\u{0589}',
'\u{058A}',
'\u{058D}',
'\u{058E}',
'\u{058F}',
'\u{05BE}',
'\u{05C0}',
'\u{05C3}',
'\u{05C6}',
'\u{05F3}',
'\u{05F4}',
'\u{0606}',
'\u{0607}',
'\u{0608}',
'\u{0609}',
'\u{060A}',
'\u{060B}',
'\u{060C}',
'\u{060D}',
'\u{060E}',
'\u{060F}',
'\u{061B}',
'\u{061D}',
'\u{061E}',
'\u{061F}',
'\u{066A}',
'\u{066B}',
'\u{066C}',
'\u{066D}',
'\u{06D4}',
'\u{06DE}',
'\u{06E9}',
'\u{06FD}',
'\u{06FE}',
'\u{0700}',
'\u{0701}',
'\u{0702}',
'\u{0703}',
'\u{0704}',
'\u{0705}',
'\u{0706}',
'\u{0707}',
'\u{0708}',
'\u{0709}',
'\u{070A}',
'\u{070B}',
'\u{070C}',
'\u{070D}',
'\u{07F6}',
'\u{07F7}',
'\u{07F8}',
'\u{07F9}',
'\u{07FE}',
'\u{07FF}',
'\u{0830}',
'\u{0831}',
'\u{0832}',
'\u{0833}',
'\u{0834}',
'\u{0835}',
'\u{0836}',
'\u{0837}',
'\u{0838}',
'\u{0839}',
'\u{083A}',
'\u{083B}',
'\u{083C}',
'\u{083D}',
'\u{083E}',
'\u{085E}',
'\u{0888}',
'\u{0964}',
'\u{0965}',
'\u{0970}',
'\u{09F2}',
'\u{09F3}',
'\u{09FA}',
'\u{09FB}',
'\u{09FD}',
'\u{0A76}',
'\u{0AF0}',
'\u{0AF1}',
'\u{0B70}',
'\u{0BF3}',
'\u{0BF4}',
'\u{0BF5}',
'\u{0BF6}',
'\u{0BF7}',
'\u{0BF8}',
'\u{0BF9}',
'\u{0BFA}',
'\u{0C77}',
'\u{0C7F}',
'\u{0C84}',
'\u{0D4F}',
'\u{0D79}',
'\u{0DF4}',
'\u{0E3F}',
'\u{0E4F}',
'\u{0E5A}',
'\u{0E5B}',
'\u{0F01}',
'\u{0F02}',
'\u{0F03}',
'\u{0F04}',
'\u{0F05}',
'\u{0F06}',
'\u{0F07}',
'\u{0F08}',
'\u{0F09}',
'\u{0F0A}',
'\u{0F0B}',
'\u{0F0C}',
'\u{0F0D}',
'\u{0F0E}',
'\u{0F0F}',
'\u{0F10}',
'\u{0F11}',
'\u{0F12}',
'\u{0F13}',
'\u{0F14}',
'\u{0F15}',
'\u{0F16}',
'\u{0F17}',
'\u{0F1A}',
'\u{0F1B}',
'\u{0F1C}',
'\u{0F1D}',
'\u{0F1E}',
'\u{0F1F}',
'\u{0F34}',
'\u{0F36}',
'\u{0F38}',
'\u{0F3A}',
'\u{0F3B}',
'\u{0F3C}',
'\u{0F3D}',
'\u{0F85}',
'\u{0FBE}',
'\u{0FBF}',
'\u{0FC0}',
'\u{0FC1}',
'\u{0FC2}',
'\u{0FC3}',
'\u{0FC4}',
'\u{0FC5}',
'\u{0FC7}',
'\u{0FC8}',
'\u{0FC9}',
'\u{0FCA}',
'\u{0FCB}',
'\u{0FCC}',
'\u{0FCE}',
'\u{0FCF}',
'\u{0FD0}',
'\u{0FD1}',
'\u{0FD2}',
'\u{0FD3}',
'\u{0FD4}',
'\u{0FD5}',
'\u{0FD6}',
'\u{0FD7}',
'\u{0FD8}',
'\u{0FD9}',
'\u{0FDA}',
'\u{104A}',
'\u{104B}',
'\u{104C}',
'\u{104D}',
'\u{104E}',
'\u{104F}',
'\u{109E}',
'\u{109F}',
'\u{10FB}',
'\u{1360}',
'\u{1361}',
'\u{1362}',
'\u{1363}',
'\u{1364}',
'\u{1365}',
'\u{1366}',
'\u{1367}',
'\u{1368}',
'\u{1390}',
'\u{1391}',
'\u{1392}',
'\u{1393}',
'\u{1394}',
'\u{1395}',
'\u{1396}',
'\u{1397}',
'\u{1398}',
'\u{1399}',
'\u{1400}',
'\u{166D}',
'\u{166E}',
'\u{169B}',
'\u{169C}',
'\u{16EB}',
'\u{16EC}',
'\u{16ED}',
'\u{1735}',
'\u{1736}',
'\u{17D4}',
'\u{17D5}',
'\u{17D6}',
'\u{17D8}',
'\u{17D9}',
'\u{17DA}',
'\u{17DB}',
'\u{1800}',
'\u{1801}',
'\u{1802}',
'\u{1803}',
'\u{1804}',
'\u{1805}',
'\u{1806}',
'\u{1807}',
'\u{1808}',
'\u{1809}',
'\u{180A}',
'\u{1940}',
'\u{1944}',
'\u{1945}',
'\u{19DE}',
'\u{19DF}',
'\u{19E0}',
'\u{19E1}',
'\u{19E2}',
'\u{19E3}',
'\u{19E4}',
'\u{19E5}',
'\u{19E6}',
'\u{19E7}',
'\u{19E8}',
'\u{19E9}',
'\u{19EA}',
'\u{19EB}',
'\u{19EC}',
'\u{19ED}',
'\u{19EE}',
'\u{19EF}',
'\u{19F0}',
'\u{19F1}',
'\u{19F2}',
'\u{19F3}',
'\u{19F4}',
'\u{19F5}',
'\u{19F6}',
'\u{19F7}',
'\u{19F8}',
'\u{19F9}',
'\u{19FA}',
'\u{19FB}',
'\u{19FC}',
'\u{19FD}',
'\u{19FE}',
'\u{19FF}',
'\u{1A1E}',
'\u{1A1F}',
'\u{1AA0}',
'\u{1AA1}',
'\u{1AA2}',
'\u{1AA3}',
'\u{1AA4}',
'\u{1AA5}',
'\u{1AA6}',
'\u{1AA8}',
'\u{1AA9}',
'\u{1AAA}',
'\u{1AAB}',
'\u{1AAC}',
'\u{1AAD}',
'\u{1B4E}',
'\u{1B4F}',
'\u{1B5A}',
'\u{1B5B}',
'\u{1B5C}',
'\u{1B5D}',
'\u{1B5E}',
'\u{1B5F}',
'\u{1B60}',
'\u{1B61}',
'\u{1B62}',
'\u{1B63}',
'\u{1B64}',
'\u{1B65}',
'\u{1B66}',
'\u{1B67}',
'\u{1B68}',
'\u{1B69}',
'\u{1B6A}',
'\u{1B74}',
'\u{1B75}',
'\u{1B76}',
'\u{1B77}',
'\u{1B78}',
'\u{1B79}',
'\u{1B7A}',
'\u{1B7B}',
'\u{1B7C}',
'\u{1B7D}',
'\u{1B7E}',
'\u{1B7F}',
'\u{1BFC}',
'\u{1BFD}',
'\u{1BFE}',
'\u{1BFF}',
'\u{1C3B}',
'\u{1C3C}',
'\u{1C3D}',
'\u{1C3E}',
'\u{1C3F}',
'\u{1C7E}',
'\u{1C7F}',
'\u{1CC0}',
'\u{1CC1}',
'\u{1CC2}',
'\u{1CC3}',
'\u{1CC4}',
'\u{1CC5}',
'\u{1CC6}',
'\u{1CC7}',
'\u{1CD3}',
'\u{1FBD}',
'\u{1FBF}',
'\u{1FC0}',
'\u{1FC1}',
'\u{1FCD}',
'\u{1FCE}',
'\u{1FCF}',
'\u{1FDD}',
'\u{1FDE}',
'\u{1FDF}',
'\u{1FED}',
'\u{1FEE}',
'\u{1FEF}',
'\u{1FFD}',
'\u{1FFE}',
'\u{2010}',
'\u{2011}',
'\u{2012}',
'\u{2013}',
'\u{2014}',
'\u{2015}',
'\u{2016}',
'\u{2017}',
'\u{2018}',
'\u{2019}',
'\u{201A}',
'\u{201B}',
'\u{201C}',
'\u{201D}',
'\u{201E}',
'\u{201F}',
'\u{2020}',
'\u{2021}',
'\u{2022}',
'\u{2023}',
'\u{2024}',
'\u{2025}',
'\u{2026}',
'\u{2027}',
'\u{2030}',
'\u{2031}',
'\u{2032}',
'\u{2033}',
'\u{2034}',
'\u{2035}',
'\u{2036}',
'\u{2037}',
'\u{2038}',
'\u{2039}',
'\u{203A}',
'\u{203B}',
'\u{203C}',
'\u{203D}',
'\u{203E}',
'\u{203F}',
'\u{2040}',
'\u{2041}',
'\u{2042}',
'\u{2043}',
'\u{2044}',
'\u{2045}',
'\u{2046}',
'\u{2047}',
'\u{2048}',
'\u{2049}',
'\u{204A}',
'\u{204B}',
'\u{204C}',
'\u{204D}',
'\u{204E}',
'\u{204F}',
'\u{2050}',
'\u{2051}',
'\u{2052}',
'\u{2053}',
'\u{2054}',
'\u{2055}',
'\u{2056}',
'\u{2057}',
'\u{2058}',
'\u{2059}',
'\u{205A}',
'\u{205B}',
'\u{205C}',
'\u{205D}',
'\u{205E}',
'\u{207A}',
'\u{207B}',
'\u{207C}',
'\u{207D}',
'\u{207E}',
'\u{208A}',
'\u{208B}',
'\u{208C}',
'\u{208D}',
'\u{208E}',
'\u{20A0}',
'\u{20A1}',
'\u{20A2}',
'\u{20A3}',
'\u{20A4}',
'\u{20A5}',
'\u{20A6}',
'\u{20A7}',
'\u{20A8}',
'\u{20A9}',
'\u{20AA}',
'\u{20AB}',
'\u{20AC}',
'\u{20AD}',
'\u{20AE}',
'\u{20AF}',
'\u{20B0}',
'\u{20B1}',
'\u{20B2}',
'\u{20B3}',
'\u{20B4}',
'\u{20B5}',
'\u{20B6}',
'\u{20B7}',
'\u{20B8}',
'\u{20B9}',
'\u{20BA}',
'\u{20BB}',
'\u{20BC}',
'\u{20BD}',
'\u{20BE}',
'\u{20BF}',
'\u{20C0}',
'\u{2100}',
'\u{2101}',
'\u{2103}',
'\u{2104}',
'\u{2105}',
'\u{2106}',
'\u{2108}',
'\u{2109}',
'\u{2114}',
'\u{2116}',
'\u{2117}',
'\u{2118}',
'\u{211E}',
'\u{211F}',
'\u{2120}',
'\u{2121}',
'\u{2122}',
'\u{2123}',
'\u{2125}',
'\u{2127}',
'\u{2129}',
'\u{212E}',
'\u{213A}',
'\u{213B}',
'\u{2140}',
'\u{2141}',
'\u{2142}',
'\u{2143}',
'\u{2144}',
'\u{214A}',
'\u{214B}',
'\u{214C}',
'\u{214D}',
'\u{214F}',
'\u{218A}',
'\u{218B}',
'\u{2190}',
'\u{2191}',
'\u{2192}',
'\u{2193}',
'\u{2194}',
'\u{2195}',
'\u{2196}',
'\u{2197}',
'\u{2198}',
'\u{2199}',
'\u{219A}',
'\u{219B}',
'\u{219C}',
'\u{219D}',
'\u{219E}',
'\u{219F}',
'\u{21A0}',
'\u{21A1}',
'\u{21A2}',
'\u{21A3}',
'\u{21A4}',
'\u{21A5}',
'\u{21A6}',
'\u{21A7}',
'\u{21A8}',
'\u{21A9}',
'\u{21AA}',
'\u{21AB}',
'\u{21AC}',
'\u{21AD}',
'\u{21AE}',
'\u{21AF}',
'\u{21B0}',
'\u{21B1}',
'\u{21B2}',
'\u{21B3}',
'\u{21B4}',
'\u{21B5}',
'\u{21B6}',
'\u{21B7}',
'\u{21B8}',
'\u{21B9}',
'\u{21BA}',
'\u{21BB}',
'\u{21BC}',
'\u{21BD}',
'\u{21BE}',
'\u{21BF}',
'\u{21C0}',
'\u{21C1}',
'\u{21C2}',
'\u{21C3}',
'\u{21C4}',
'\u{21C5}',
'\u{21C6}',
'\u{21C7}',
'\u{21C8}',
'\u{21C9}',
'\u{21CA}',
'\u{21CB}',
'\u{21CC}',
'\u{21CD}',
'\u{21CE}',
'\u{21CF}',
'\u{21D0}',
'\u{21D1}',
'\u{21D2}',
'\u{21D3}',
'\u{21D4}',
'\u{21D5}',
'\u{21D6}',
'\u{21D7}',
'\u{21D8}',
'\u{21D9}',
'\u{21DA}',
'\u{21DB}',
'\u{21DC}',
'\u{21DD}',
'\u{21DE}',
'\u{21DF}',
'\u{21E0}',
'\u{21E1}',
'\u{21E2}',
'\u{21E3}',
'\u{21E4}',
'\u{21E5}',
'\u{21E6}',
'\u{21E7}',
'\u{21E8}',
'\u{21E9}',
'\u{21EA}',
'\u{21EB}',
'\u{21EC}',
'\u{21ED}',
'\u{21EE}',
'\u{21EF}',
'\u{21F0}',
'\u{21F1}',
'\u{21F2}',
'\u{21F3}',
'\u{21F4}',
'\u{21F5}',
'\u{21F6}',
'\u{21F7}',
'\u{21F8}',
'\u{21F9}',
'\u{21FA}',
'\u{21FB}',
'\u{21FC}',
'\u{21FD}',
'\u{21FE}',
'\u{21FF}',
'\u{2200}',
'\u{2201}',
'\u{2202}',
'\u{2203}',
'\u{2204}',
'\u{2205}',
'\u{2206}',
'\u{2207}',
'\u{2208}',
'\u{2209}',
'\u{220A}',
'\u{220B}',
'\u{220C}',
'\u{220D}',
'\u{220E}',
'\u{220F}',
'\u{2210}',
'\u{2211}',
'\u{2212}',
'\u{2213}',
'\u{2214}',
'\u{2215}',
'\u{2216}',
'\u{2217}',
'\u{2218}',
'\u{2219}',
'\u{221A}',
'\u{221B}',
'\u{221C}',
'\u{221D}',
'\u{221E}',
'\u{221F}',
'\u{2220}',
'\u{2221}',
'\u{2222}',
'\u{2223}',
'\u{2224}',
'\u{2225}',
'\u{2226}',
'\u{2227}',
'\u{2228}',
'\u{2229}',
'\u{222A}',
'\u{222B}',
'\u{222C}',
'\u{222D}',
'\u{222E}',
'\u{222F}',
'\u{2230}',
'\u{2231}',
'\u{2232}',
'\u{2233}',
'\u{2234}',
'\u{2235}',
'\u{2236}',
'\u{2237}',
'\u{2238}',
'\u{2239}',
'\u{223A}',
'\u{223B}',
'\u{223C}',
'\u{223D}',
'\u{223E}',
'\u{223F}',
'\u{2240}',
'\u{2241}',
'\u{2242}',
'\u{2243}',
'\u{2244}',
'\u{2245}',
'\u{2246}',
'\u{2247}',
'\u{2248}',
'\u{2249}',
'\u{224A}',
'\u{224B}',
'\u{224C}',
'\u{224D}',
'\u{224E}',
'\u{224F}',
'\u{2250}',
'\u{2251}',
'\u{2252}',
'\u{2253}',
'\u{2254}',
'\u{2255}',
'\u{2256}',
'\u{2257}',
'\u{2258}',
'\u{2259}',
'\u{225A}',
'\u{225B}',
'\u{225C}',
'\u{225D}',
'\u{225E}',
'\u{225F}',
'\u{2260}',
'\u{2261}',
'\u{2262}',
'\u{2263}',
'\u{2264}',
'\u{2265}',
'\u{2266}',
'\u{2267}',
'\u{2268}',
'\u{2269}',
'\u{226A}',
'\u{226B}',
'\u{226C}',
'\u{226D}',
'\u{226E}',
'\u{226F}',
'\u{2270}',
'\u{2271}',
'\u{2272}',
'\u{2273}',
'\u{2274}',
'\u{2275}',
'\u{2276}',
'\u{2277}',
'\u{2278}',
'\u{2279}',
'\u{227A}',
'\u{227B}',
'\u{227C}',
'\u{227D}',
'\u{227E}',
'\u{227F}',
'\u{2280}',
'\u{2281}',
'\u{2282}',
'\u{2283}',
'\u{2284}',
'\u{2285}',
'\u{2286}',
'\u{2287}',
'\u{2288}',
'\u{2289}',
'\u{228A}',
'\u{228B}',
'\u{228C}',
'\u{228D}',
'\u{228E}',
'\u{228F}',
'\u{2290}',
'\u{2291}',
'\u{2292}',
'\u{2293}',
'\u{2294}',
'\u{2295}',
'\u{2296}',
'\u{2297}',
'\u{2298}',
'\u{2299}',
'\u{229A}',
'\u{229B}',
'\u{229C}',
'\u{229D}',
'\u{229E}',
'\u{229F}',
'\u{22A0}',
'\u{22A1}',
'\u{22A2}',
'\u{22A3}',
'\u{22A4}',
'\u{22A5}',
'\u{22A6}',
'\u{22A7}',
'\u{22A8}',
'\u{22A9}',
'\u{22AA}',
'\u{22AB}',
'\u{22AC}',
'\u{22AD}',
'\u{22AE}',
'\u{22AF}',
'\u{22B0}',
'\u{22B1}',
'\u{22B2}',
'\u{22B3}',
'\u{22B4}',
'\u{22B5}',
'\u{22B6}',
'\u{22B7}',
'\u{22B8}',
'\u{22B9}',
'\u{22BA}',
'\u{22BB}',
'\u{22BC}',
'\u{22BD}',
'\u{22BE}',
'\u{22BF}',
'\u{22C0}',
'\u{22C1}',
'\u{22C2}',
'\u{22C3}',
'\u{22C4}',
'\u{22C5}',
'\u{22C6}',
'\u{22C7}',
'\u{22C8}',
'\u{22C9}',
'\u{22CA}',
'\u{22CB}',
'\u{22CC}',
'\u{22CD}',
'\u{22CE}',
'\u{22CF}',
'\u{22D0}',
'\u{22D1}',
'\u{22D2}',
'\u{22D3}',
'\u{22D4}',
'\u{22D5}',
'\u{22D6}',
'\u{22D7}',
'\u{22D8}',
'\u{22D9}',
'\u{22DA}',
'\u{22DB}',
'\u{22DC}',
'\u{22DD}',
'\u{22DE}',
'\u{22DF}',
'\u{22E0}',
'\u{22E1}',
'\u{22E2}',
'\u{22E3}',
'\u{22E4}',
'\u{22E5}',
'\u{22E6}',
'\u{22E7}',
'\u{22E8}',
'\u{22E9}',
'\u{22EA}',
'\u{22EB}',
'\u{22EC}',
'\u{22ED}',
'\u{22EE}',
'\u{22EF}',
'\u{22F0}',
'\u{22F1}',
'\u{22F2}',
'\u{22F3}',
'\u{22F4}',
'\u{22F5}',
'\u{22F6}',
'\u{22F7}',
'\u{22F8}',
'\u{22F9}',
'\u{22FA}',
'\u{22FB}',
'\u{22FC}',
'\u{22FD}',
'\u{22FE}',
'\u{22FF}',
'\u{2300}',
'\u{2301}',
'\u{2302}',
'\u{2303}',
'\u{2304}',
'\u{2305}',
'\u{2306}',
'\u{2307}',
'\u{2308}',
'\u{2309}',
'\u{230A}',
'\u{230B}',
'\u{230C}',
'\u{230D}',
'\u{230E}',
'\u{230F}',
'\u{2310}',
'\u{2311}',
'\u{2312}',
'\u{2313}',
'\u{2314}',
'\u{2315}',
'\u{2316}',
'\u{2317}',
'\u{2318}',
'\u{2319}',
'\u{231A}',
'\u{231B}',
'\u{231C}',
'\u{231D}',
'\u{231E}',
'\u{231F}',
'\u{2320}',
'\u{2321}',
'\u{2322}',
'\u{2323}',
'\u{2324}',
'\u{2325}',
'\u{2326}',
'\u{2327}',
'\u{2328}',
'\u{2329}',
'\u{232A}',
'\u{232B}',
'\u{232C}',
'\u{232D}',
'\u{232E}',
'\u{232F}',
'\u{2330}',
'\u{2331}',
'\u{2332}',
'\u{2333}',
'\u{2334}',
'\u{2335}',
'\u{2336}',
'\u{2337}',
'\u{2338}',
'\u{2339}',
'\u{233A}',
'\u{233B}',
'\u{233C}',
'\u{233D}',
'\u{233E}',
'\u{233F}',
'\u{2340}',
'\u{2341}',
'\u{2342}',
'\u{2343}',
'\u{2344}',
'\u{2345}',
'\u{2346}',
'\u{2347}',
'\u{2348}',
'\u{2349}',
'\u{234A}',
'\u{234B}',
'\u{234C}',
'\u{234D}',
'\u{234E}',
'\u{234F}',
'\u{2350}',
'\u{2351}',
'\u{2352}',
'\u{2353}',
'\u{2354}',
'\u{2355}',
'\u{2356}',
'\u{2357}',
'\u{2358}',
'\u{2359}',
'\u{235A}',
'\u{235B}',
'\u{235C}',
'\u{235D}',
'\u{235E}',
'\u{235F}',
'\u{2360}',
'\u{2361}',
'\u{2362}',
'\u{2363}',
'\u{2364}',
'\u{2365}',
'\u{2366}',
'\u{2367}',
'\u{2368}',
'\u{2369}',
'\u{236A}',
'\u{236B}',
'\u{236C}',
'\u{236D}',
'\u{236E}',
'\u{236F}',
'\u{2370}',
'\u{2371}',
'\u{2372}',
'\u{2373}',
'\u{2374}',
'\u{2375}',
'\u{2376}',
'\u{2377}',
'\u{2378}',
'\u{2379}',
'\u{237A}',
'\u{237B}',
'\u{237C}',
'\u{237D}',
'\u{237E}',
'\u{237F}',
'\u{2380}',
'\u{2381}',
'\u{2382}',
'\u{2383}',
'\u{2384}',
'\u{2385}',
'\u{2386}',
'\u{2387}',
'\u{2388}',
'\u{2389}',
'\u{238A}',
'\u{238B}',
'\u{238C}',
'\u{238D}',
'\u{238E}',
'\u{238F}',
'\u{2390}',
'\u{2391}',
'\u{2392}',
'\u{2393}',
'\u{2394}',
'\u{2395}',
'\u{2396}',
'\u{2397}',
'\u{2398}',
'\u{2399}',
'\u{239A}',
'\u{239B}',
'\u{239C}',
'\u{239D}',
'\u{239E}',
'\u{239F}',
'\u{23A0}',
'\u{23A1}',
'\u{23A2}',
'\u{23A3}',
'\u{23A4}',
'\u{23A5}',
'\u{23A6}',
'\u{23A7}',
'\u{23A8}',
'\u{23A9}',
'\u{23AA}',
'\u{23AB}',
'\u{23AC}',
'\u{23AD}',
'\u{23AE}',
'\u{23AF}',
'\u{23B0}',
'\u{23B1}',
'\u{23B2}',
'\u{23B3}',
'\u{23B4}',
'\u{23B5}',
'\u{23B6}',
'\u{23B7}',
'\u{23B8}',
'\u{23B9}',
'\u{23BA}',
'\u{23BB}',
'\u{23BC}',
'\u{23BD}',
'\u{23BE}',
'\u{23BF}',
'\u{23C0}',
'\u{23C1}',
'\u{23C2}',
'\u{23C3}',
'\u{23C4}',
'\u{23C5}',
'\u{23C6}',
'\u{23C7}',
'\u{23C8}',
'\u{23C9}',
'\u{23CA}',
'\u{23CB}',
'\u{23CC}',
'\u{23CD}',
'\u{23CE}',
'\u{23CF}',
'\u{23D0}',
'\u{23D1}',
'\u{23D2}',
'\u{23D3}',
'\u{23D4}',
'\u{23D5}',
'\u{23D6}',
'\u{23D7}',
'\u{23D8}',
'\u{23D9}',
'\u{23DA}',
'\u{23DB}',
'\u{23DC}',
'\u{23DD}',
'\u{23DE}',
'\u{23DF}',
'\u{23E0}',
'\u{23E1}',
'\u{23E2}',
'\u{23E3}',
'\u{23E4}',
'\u{23E5}',
'\u{23E6}',
'\u{23E7}',
'\u{23E8}',
'\u{23E9}',
'\u{23EA}',
'\u{23EB}',
'\u{23EC}',
'\u{23ED}',
'\u{23EE}',
'\u{23EF}',
'\u{23F0}',
'\u{23F1}',
'\u{23F2}',
'\u{23F3}',
'\u{23F4}',
'\u{23F5}',
'\u{23F6}',
'\u{23F7}',
'\u{23F8}',
'\u{23F9}',
'\u{23FA}',
'\u{23FB}',
'\u{23FC}',
'\u{23FD}',
'\u{23FE}',
'\u{23FF}',
'\u{2400}',
'\u{2401}',
'\u{2402}',
'\u{2403}',
'\u{2404}',
'\u{2405}',
'\u{2406}',
'\u{2407}',
'\u{2408}',
'\u{2409}',
'\u{240A}',
'\u{240B}',
'\u{240C}',
'\u{240D}',
'\u{240E}',
'\u{240F}',
'\u{2410}',
'\u{2411}',
'\u{2412}',
'\u{2413}',
'\u{2414}',
'\u{2415}',
'\u{2416}',
'\u{2417}',
'\u{2418}',
'\u{2419}',
'\u{241A}',
'\u{241B}',
'\u{241C}',
'\u{241D}',
'\u{241E}',
'\u{241F}',
'\u{2420}',
'\u{2421}',
'\u{2422}',
'\u{2423}',
'\u{2424}',
'\u{2425}',
'\u{2426}',
'\u{2427}',
'\u{2428}',
'\u{2429}',
'\u{2440}',
'\u{2441}',
'\u{2442}',
'\u{2443}',
'\u{2444}',
'\u{2445}',
'\u{2446}',
'\u{2447}',
'\u{2448}',
'\u{2449}',
'\u{244A}',
'\u{249C}',
'\u{249D}',
'\u{249E}',
'\u{249F}',
'\u{24A0}',
'\u{24A1}',
'\u{24A2}',
'\u{24A3}',
'\u{24A4}',
'\u{24A5}',
'\u{24A6}',
'\u{24A7}',
'\u{24A8}',
'\u{24A9}',
'\u{24AA}',
'\u{24AB}',
'\u{24AC}',
'\u{24AD}',
'\u{24AE}',
'\u{24AF}',
'\u{24B0}',
'\u{24B1}',
'\u{24B2}',
'\u{24B3}',
'\u{24B4}',
'\u{24B5}',
'\u{24B6}',
'\u{24B7}',
'\u{24B8}',
'\u{24B9}',
'\u{24BA}',
'\u{24BB}',
'\u{24BC}',
'\u{24BD}',
'\u{24BE}',
'\u{24BF}',
'\u{24C0}',
'\u{24C1}',
'\u{24C2}',
'\u{24C3}',
'\u{24C4}',
'\u{24C5}',
'\u{24C6}',
'\u{24C7}',
'\u{24C8}',
'\u{24C9}',
'\u{24CA}',
'\u{24CB}',
'\u{24CC}',
'\u{24CD}',
'\u{24CE}',
'\u{24CF}',
'\u{24D0}',
'\u{24D1}',
'\u{24D2}',
'\u{24D3}',
'\u{24D4}',
'\u{24D5}',
'\u{24D6}',
'\u{24D7}',
'\u{24D8}',
'\u{24D9}',
'\u{24DA}',
'\u{24DB}',
'\u{24DC}',
'\u{24DD}',
'\u{24DE}',
'\u{24DF}',
'\u{24E0}',
'\u{24E1}',
'\u{24E2}',
'\u{24E3}',
'\u{24E4}',
'\u{24E5}',
'\u{24E6}',
'\u{24E7}',
'\u{24E8}',
'\u{24E9}',
'\u{2500}',
'\u{2501}',
'\u{2502}',
'\u{2503}',
'\u{2504}',
'\u{2505}',
'\u{2506}',
'\u{2507}',
'\u{2508}',
'\u{2509}',
'\u{250A}',
'\u{250B}',
'\u{250C}',
'\u{250D}',
'\u{250E}',
'\u{250F}',
'\u{2510}',
'\u{2511}',
'\u{2512}',
'\u{2513}',
'\u{2514}',
'\u{2515}',
'\u{2516}',
'\u{2517}',
'\u{2518}',
'\u{2519}',
'\u{251A}',
'\u{251B}',
'\u{251C}',
'\u{251D}',
'\u{251E}',
'\u{251F}',
'\u{2520}',
'\u{2521}',
'\u{2522}',
'\u{2523}',
'\u{2524}',
'\u{2525}',
'\u{2526}',
'\u{2527}',
'\u{2528}',
'\u{2529}',
'\u{252A}',
'\u{252B}',
'\u{252C}',
'\u{252D}',
'\u{252E}',
'\u{252F}',
'\u{2530}',
'\u{2531}',
'\u{2532}',
'\u{2533}',
'\u{2534}',
'\u{2535}',
'\u{2536}',
'\u{2537}',
'\u{2538}',
'\u{2539}',
'\u{253A}',
'\u{253B}',
'\u{253C}',
'\u{253D}',
'\u{253E}',
'\u{253F}',
'\u{2540}',
'\u{2541}',
'\u{2542}',
'\u{2543}',
'\u{2544}',
'\u{2545}',
'\u{2546}',
'\u{2547}',
'\u{2548}',
'\u{2549}',
'\u{254A}',
'\u{254B}',
'\u{254C}',
'\u{254D}',
'\u{254E}',
'\u{254F}',
'\u{2550}',
'\u{2551}',
'\u{2552}',
'\u{2553}',
'\u{2554}',
'\u{2555}',
'\u{2556}',
'\u{2557}',
'\u{2558}',
'\u{2559}',
'\u{255A}',
'\u{255B}',
'\u{255C}',
'\u{255D}',
'\u{255E}',
'\u{255F}',
'\u{2560}',
'\u{2561}',
'\u{2562}',
'\u{2563}',
'\u{2564}',
'\u{2565}',
'\u{2566}',
'\u{2567}',
'\u{2568}',
'\u{2569}',
'\u{256A}',
'\u{256B}',
'\u{256C}',
'\u{256D}',
'\u{256E}',
'\u{256F}',
'\u{2570}',
'\u{2571}',
'\u{2572}',
'\u{2573}',
'\u{2574}',
'\u{2575}',
'\u{2576}',
'\u{2577}',
'\u{2578}',
'\u{2579}',
'\u{257A}',
'\u{257B}',
'\u{257C}',
'\u{257D}',
'\u{257E}',
'\u{257F}',
'\u{2580}',
'\u{2581}',
'\u{2582}',
'\u{2583}',
'\u{2584}',
'\u{2585}',
'\u{2586}',
'\u{2587}',
'\u{2588}',
'\u{2589}',
'\u{258A}',
'\u{258B}',
'\u{258C}',
'\u{258D}',
'\u{258E}',
'\u{258F}',
'\u{2590}',
'\u{2591}',
'\u{2592}',
'\u{2593}',
'\u{2594}',
'\u{2595}',
'\u{2596}',
'\u{2597}',
'\u{2598}',
'\u{2599}',
'\u{259A}',
'\u{259B}',
'\u{259C}',
'\u{259D}',
'\u{259E}',
'\u{259F}',
'\u{25A0}',
'\u{25A1}',
'\u{25A2}',
'\u{25A3}',
'\u{25A4}',
'\u{25A5}',
'\u{25A6}',
'\u{25A7}',
'\u{25A8}',
'\u{25A9}',
'\u{25AA}',
'\u{25AB}',
'\u{25AC}',
'\u{25AD}',
'\u{25AE}',
'\u{25AF}',
'\u{25B0}',
'\u{25B1}',
'\u{25B2}',
'\u{25B3}',
'\u{25B4}',
'\u{25B5}',
'\u{25B6}',
'\u{25B7}',
'\u{25B8}',
'\u{25B9}',
'\u{25BA}',
'\u{25BB}',
'\u{25BC}',
'\u{25BD}',
'\u{25BE}',
'\u{25BF}',
'\u{25C0}',
'\u{25C1}',
'\u{25C2}',
'\u{25C3}',
'\u{25C4}',
'\u{25C5}',
'\u{25C6}',
'\u{25C7}',
'\u{25C8}',
'\u{25C9}',
'\u{25CA}',
'\u{25CB}',
'\u{25CC}',
'\u{25CD}',
'\u{25CE}',
'\u{25CF}',
'\u{25D0}',
'\u{25D1}',
'\u{25D2}',
'\u{25D3}',
'\u{25D4}',
'\u{25D5}',
'\u{25D6}',
'\u{25D7}',
'\u{25D8}',
'\u{25D9}',
'\u{25DA}',
'\u{25DB}',
'\u{25DC}',
'\u{25DD}',
'\u{25DE}',
'\u{25DF}',
'\u{25E0}',
'\u{25E1}',
'\u{25E2}',
'\u{25E3}',
'\u{25E4}',
'\u{25E5}',
'\u{25E6}',
'\u{25E7}',
'\u{25E8}',
'\u{25E9}',
'\u{25EA}',
'\u{25EB}',
'\u{25EC}',
'\u{25ED}',
'\u{25EE}',
'\u{25EF}',
'\u{25F0}',
'\u{25F1}',
'\u{25F2}',
'\u{25F3}',
'\u{25F4}',
'\u{25F5}',
'\u{25F6}',
'\u{25F7}',
'\u{25F8}',
'\u{25F9}',
'\u{25FA}',
'\u{25FB}',
'\u{25FC}',
'\u{25FD}',
'\u{25FE}',
'\u{25FF}',
'\u{2600}',
'\u{2601}',
'\u{2602}',
'\u{2603}',
'\u{2604}',
'\u{2605}',
'\u{2606}',
'\u{2607}',
'\u{2608}',
'\u{2609}',
'\u{260A}',
'\u{260B}',
'\u{260C}',
'\u{260D}',
'\u{260E}',
'\u{260F}',
'\u{2610}',
'\u{2611}',
'\u{2612}',
'\u{2613}',
'\u{2614}',
'\u{2615}',
'\u{2616}',
'\u{2617}',
'\u{2618}',
'\u{2619}',
'\u{261A}',
'\u{261B}',
'\u{261C}',
'\u{261D}',
'\u{261E}',
'\u{261F}',
'\u{2620}',
'\u{2621}',
'\u{2622}',
'\u{2623}',
'\u{2624}',
'\u{2625}',
'\u{2626}',
'\u{2627}',
'\u{2628}',
'\u{2629}',
'\u{262A}',
'\u{262B}',
'\u{262C}',
'\u{262D}',
'\u{262E}',
'\u{262F}',
'\u{2630}',
'\u{2631}',
'\u{2632}',
'\u{2633}',
'\u{2634}',
'\u{2635}',
'\u{2636}',
'\u{2637}',
'\u{2638}',
'\u{2639}',
'\u{263A}',
'\u{263B}',
'\u{263C}',
'\u{263D}',
'\u{263E}',
'\u{263F}',
'\u{2640}',
'\u{2641}',
'\u{2642}',
'\u{2643}',
'\u{2644}',
'\u{2645}',
'\u{2646}',
'\u{2647}',
'\u{2648}',
'\u{2649}',
'\u{264A}',
'\u{264B}',
'\u{264C}',
'\u{264D}',
'\u{264E}',
'\u{264F}',
'\u{2650}',
'\u{2651}',
'\u{2652}',
'\u{2653}',
'\u{2654}',
'\u{2655}',
'\u{2656}',
'\u{2657}',
'\u{2658}',
'\u{2659}',
'\u{265A}',
'\u{265B}',
'\u{265C}',
'\u{265D}',
'\u{265E}',
'\u{265F}',
'\u{2660}',
'\u{2661}',
'\u{2662}',
'\u{2663}',
'\u{2664}',
'\u{2665}',
'\u{2666}',
'\u{2667}',
'\u{2668}',
'\u{2669}',
'\u{266A}',
'\u{266B}',
'\u{266C}',
'\u{266D}',
'\u{266E}',
'\u{266F}',
'\u{2670}',
'\u{2671}',
'\u{2672}',
'\u{2673}',
'\u{2674}',
'\u{2675}',
'\u{2676}',
'\u{2677}',
'\u{2678}',
'\u{2679}',
'\u{267A}',
'\u{267B}',
'\u{267C}',
'\u{267D}',
'\u{267E}',
'\u{267F}',
'\u{2680}',
'\u{2681}',
'\u{2682}',
'\u{2683}',
'\u{2684}',
'\u{2685}',
'\u{2686}',
'\u{2687}',
'\u{2688}',
'\u{2689}',
'\u{268A}',
'\u{268B}',
'\u{268C}',
'\u{268D}',
'\u{268E}',
'\u{268F}',
'\u{2690}',
'\u{2691}',
'\u{2692}',
'\u{2693}',
'\u{2694}',
'\u{2695}',
'\u{2696}',
'\u{2697}',
'\u{2698}',
'\u{2699}',
'\u{269A}',
'\u{269B}',
'\u{269C}',
'\u{269D}',
'\u{269E}',
'\u{269F}',
'\u{26A0}',
'\u{26A1}',
'\u{26A2}',
'\u{26A3}',
'\u{26A4}',
'\u{26A5}',
'\u{26A6}',
'\u{26A7}',
'\u{26A8}',
'\u{26A9}',
'\u{26AA}',
'\u{26AB}',
'\u{26AC}',
'\u{26AD}',
'\u{26AE}',
'\u{26AF}',
'\u{26B0}',
'\u{26B1}',
'\u{26B2}',
'\u{26B3}',
'\u{26B4}',
'\u{26B5}',
'\u{26B6}',
'\u{26B7}',
'\u{26B8}',
'\u{26B9}',
'\u{26BA}',
'\u{26BB}',
'\u{26BC}',
'\u{26BD}',
'\u{26BE}',
'\u{26BF}',
'\u{26C0}',
'\u{26C1}',
'\u{26C2}',
'\u{26C3}',
'\u{26C4}',
'\u{26C5}',
'\u{26C6}',
'\u{26C7}',
'\u{26C8}',
'\u{26C9}',
'\u{26CA}',
'\u{26CB}',
'\u{26CC}',
'\u{26CD}',
'\u{26CE}',
'\u{26CF}',
'\u{26D0}',
'\u{26D1}',
'\u{26D2}',
'\u{26D3}',
'\u{26D4}',
'\u{26D5}',
'\u{26D6}',
'\u{26D7}',
'\u{26D8}',
'\u{26D9}',
'\u{26DA}',
'\u{26DB}',
'\u{26DC}',
'\u{26DD}',
'\u{26DE}',
'\u{26DF}',
'\u{26E0}',
'\u{26E1}',
'\u{26E2}',
'\u{26E3}',
'\u{26E4}',
'\u{26E5}',
'\u{26E6}',
'\u{26E7}',
'\u{26E8}',
'\u{26E9}',
'\u{26EA}',
'\u{26EB}',
'\u{26EC}',
'\u{26ED}',
'\u{26EE}',
'\u{26EF}',
'\u{26F0}',
'\u{26F1}',
'\u{26F2}',
'\u{26F3}',
'\u{26F4}',
'\u{26F5}',
'\u{26F6}',
'\u{26F7}',
'\u{26F8}',
'\u{26F9}',
'\u{26FA}',
'\u{26FB}',
'\u{26FC}',
'\u{26FD}',
'\u{26FE}',
'\u{26FF}',
'\u{2700}',
'\u{2701}',
'\u{2702}',
'\u{2703}',
'\u{2704}',
'\u{2705}',
'\u{2706}',
'\u{2707}',
'\u{2708}',
'\u{2709}',
'\u{270A}',
'\u{270B}',
'\u{270C}',
'\u{270D}',
'\u{270E}',
'\u{270F}',
'\u{2710}',
'\u{2711}',
'\u{2712}',
'\u{2713}',
'\u{2714}',
'\u{2715}',
'\u{2716}',
'\u{2717}',
'\u{2718}',
'\u{2719}',
'\u{271A}',
'\u{271B}',
'\u{271C}',
'\u{271D}',
'\u{271E}',
'\u{271F}',
'\u{2720}',
'\u{2721}',
'\u{2722}',
'\u{2723}',
'\u{2724}',
'\u{2725}',
'\u{2726}',
'\u{2727}',
'\u{2728}',
'\u{2729}',
'\u{272A}',
'\u{272B}',
'\u{272C}',
'\u{272D}',
'\u{272E}',
'\u{272F}',
'\u{2730}',
'\u{2731}',
'\u{2732}',
'\u{2733}',
'\u{2734}',
'\u{2735}',
'\u{2736}',
'\u{2737}',
'\u{2738}',
'\u{2739}',
'\u{273A}',
'\u{273B}',
'\u{273C}',
'\u{273D}',
'\u{273E}',
'\u{273F}',
'\u{2740}',
'\u{2741}',
'\u{2742}',
'\u{2743}',
'\u{2744}',
'\u{2745}',
'\u{2746}',
'\u{2747}',
'\u{2748}',
'\u{2749}',
'\u{274A}',
'\u{274B}',
'\u{274C}',
'\u{274D}',
'\u{274E}',
'\u{274F}',
'\u{2750}',
'\u{2751}',
'\u{2752}',
'\u{2753}',
'\u{2754}',
'\u{2755}',
'\u{2756}',
'\u{2757}',
'\u{2758}',
'\u{2759}',
'\u{275A}',
'\u{275B}',
'\u{275C}',
'\u{275D}',
'\u{275E}',
'\u{275F}',
'\u{2760}',
'\u{2761}',
'\u{2762}',
'\u{2763}',
'\u{2764}',
'\u{2765}',
'\u{2766}',
'\u{2767}',
'\u{2768}',
'\u{2769}',
'\u{276A}',
'\u{276B}',
'\u{276C}',
'\u{276D}',
'\u{276E}',
'\u{276F}',
'\u{2770}',
'\u{2771}',
'\u{2772}',
'\u{2773}',
'\u{2774}',
'\u{2775}',
'\u{2794}',
'\u{2795}',
'\u{2796}',
'\u{2797}',
'\u{2798}',
'\u{2799}',
'\u{279A}',
'\u{279B}',
'\u{279C}',
'\u{279D}',
'\u{279E}',
'\u{279F}',
'\u{27A0}',
'\u{27A1}',
'\u{27A2}',
'\u{27A3}',
'\u{27A4}',
'\u{27A5}',
'\u{27A6}',
'\u{27A7}',
'\u{27A8}',
'\u{27A9}',
'\u{27AA}',
'\u{27AB}',
'\u{27AC}',
'\u{27AD}',
'\u{27AE}',
'\u{27AF}',
'\u{27B0}',
'\u{27B1}',
'\u{27B2}',
'\u{27B3}',
'\u{27B4}',
'\u{27B5}',
'\u{27B6}',
'\u{27B7}',
'\u{27B8}',
'\u{27B9}',
'\u{27BA}',
'\u{27BB}',
'\u{27BC}',
'\u{27BD}',
'\u{27BE}',
'\u{27BF}',
'\u{27C0}',
'\u{27C1}',
'\u{27C2}',
'\u{27C3}',
'\u{27C4}',
'\u{27C5}',
'\u{27C6}',
'\u{27C7}',
'\u{27C8}',
'\u{27C9}',
'\u{27CA}',
'\u{27CB}',
'\u{27CC}',
'\u{27CD}',
'\u{27CE}',
'\u{27CF}',
'\u{27D0}',
'\u{27D1}',
'\u{27D2}',
'\u{27D3}',
'\u{27D4}',
'\u{27D5}',
'\u{27D6}',
'\u{27D7}',
'\u{27D8}',
'\u{27D9}',
'\u{27DA}',
'\u{27DB}',
'\u{27DC}',
'\u{27DD}',
'\u{27DE}',
'\u{27DF}',
'\u{27E0}',
'\u{27E1}',
'\u{27E2}',
'\u{27E3}',
'\u{27E4}',
'\u{27E5}',
'\u{27E6}',
'\u{27E7}',
'\u{27E8}',
'\u{27E9}',
'\u{27EA}',
'\u{27EB}',
'\u{27EC}',
'\u{27ED}',
'\u{27EE}',
'\u{27EF}',
'\u{27F0}',
'\u{27F1}',
'\u{27F2}',
'\u{27F3}',
'\u{27F4}',
'\u{27F5}',
'\u{27F6}',
'\u{27F7}',
'\u{27F8}',
'\u{27F9}',
'\u{27FA}',
'\u{27FB}',
'\u{27FC}',
'\u{27FD}',
'\u{27FE}',
'\u{27FF}',
'\u{2800}',
'\u{2801}',
'\u{2802}',
'\u{2803}',
'\u{2804}',
'\u{2805}',
'\u{2806}',
'\u{2807}',
'\u{2808}',
'\u{2809}',
'\u{280A}',
'\u{280B}',
'\u{280C}',
'\u{280D}',
'\u{280E}',
'\u{280F}',
'\u{2810}',
'\u{2811}',
'\u{2812}',
'\u{2813}',
'\u{2814}',
'\u{2815}',
'\u{2816}',
'\u{2817}',
'\u{2818}',
'\u{2819}',
'\u{281A}',
'\u{281B}',
'\u{281C}',
'\u{281D}',
'\u{281E}',
'\u{281F}',
'\u{2820}',
'\u{2821}',
'\u{2822}',
'\u{2823}',
'\u{2824}',
'\u{2825}',
'\u{2826}',
'\u{2827}',
'\u{2828}',
'\u{2829}',
'\u{282A}',
'\u{282B}',
'\u{282C}',
'\u{282D}',
'\u{282E}',
'\u{282F}',
'\u{2830}',
'\u{2831}',
'\u{2832}',
'\u{2833}',
'\u{2834}',
'\u{2835}',
'\u{2836}',
'\u{2837}',
'\u{2838}',
'\u{2839}',
'\u{283A}',
'\u{283B}',
'\u{283C}',
'\u{283D}',
'\u{283E}',
'\u{283F}',
'\u{2840}',
'\u{2841}',
'\u{2842}',
'\u{2843}',
'\u{2844}',
'\u{2845}',
'\u{2846}',
'\u{2847}',
'\u{2848}',
'\u{2849}',
'\u{284A}',
'\u{284B}',
'\u{284C}',
'\u{284D}',
'\u{284E}',
'\u{284F}',
'\u{2850}',
'\u{2851}',
'\u{2852}',
'\u{2853}',
'\u{2854}',
'\u{2855}',
'\u{2856}',
'\u{2857}',
'\u{2858}',
'\u{2859}',
'\u{285A}',
'\u{285B}',
'\u{285C}',
'\u{285D}',
'\u{285E}',
'\u{285F}',
'\u{2860}',
'\u{2861}',
'\u{2862}',
'\u{2863}',
'\u{2864}',
'\u{2865}',
'\u{2866}',
'\u{2867}',
'\u{2868}',
'\u{2869}',
'\u{286A}',
'\u{286B}',
'\u{286C}',
'\u{286D}',
'\u{286E}',
'\u{286F}',
'\u{2870}',
'\u{2871}',
'\u{2872}',
'\u{2873}',
'\u{2874}',
'\u{2875}',
'\u{2876}',
'\u{2877}',
'\u{2878}',
'\u{2879}',
'\u{287A}',
'\u{287B}',
'\u{287C}',
'\u{287D}',
'\u{287E}',
'\u{287F}',
'\u{2880}',
'\u{2881}',
'\u{2882}',
'\u{2883}',
'\u{2884}',
'\u{2885}',
'\u{2886}',
'\u{2887}',
'\u{2888}',
'\u{2889}',
'\u{288A}',
'\u{288B}',
'\u{288C}',
'\u{288D}',
'\u{288E}',
'\u{288F}',
'\u{2890}',
'\u{2891}',
'\u{2892}',
'\u{2893}',
'\u{2894}',
'\u{2895}',
'\u{2896}',
'\u{2897}',
'\u{2898}',
'\u{2899}',
'\u{289A}',
'\u{289B}',
'\u{289C}',
'\u{289D}',
'\u{289E}',
'\u{289F}',
'\u{28A0}',
'\u{28A1}',
'\u{28A2}',
'\u{28A3}',
'\u{28A4}',
'\u{28A5}',
'\u{28A6}',
'\u{28A7}',
'\u{28A8}',
'\u{28A9}',
'\u{28AA}',
'\u{28AB}',
'\u{28AC}',
'\u{28AD}',
'\u{28AE}',
'\u{28AF}',
'\u{28B0}',
'\u{28B1}',
'\u{28B2}',
'\u{28B3}',
'\u{28B4}',
'\u{28B5}',
'\u{28B6}',
'\u{28B7}',
'\u{28B8}',
'\u{28B9}',
'\u{28BA}',
'\u{28BB}',
'\u{28BC}',
'\u{28BD}',
'\u{28BE}',
'\u{28BF}',
'\u{28C0}',
'\u{28C1}',
'\u{28C2}',
'\u{28C3}',
'\u{28C4}',
'\u{28C5}',
'\u{28C6}',
'\u{28C7}',
'\u{28C8}',
'\u{28C9}',
'\u{28CA}',
'\u{28CB}',
'\u{28CC}',
'\u{28CD}',
'\u{28CE}',
'\u{28CF}',
'\u{28D0}',
'\u{28D1}',
'\u{28D2}',
'\u{28D3}',
'\u{28D4}',
'\u{28D5}',
'\u{28D6}',
'\u{28D7}',
'\u{28D8}',
'\u{28D9}',
'\u{28DA}',
'\u{28DB}',
'\u{28DC}',
'\u{28DD}',
'\u{28DE}',
'\u{28DF}',
'\u{28E0}',
'\u{28E1}',
'\u{28E2}',
'\u{28E3}',
'\u{28E4}',
'\u{28E5}',
'\u{28E6}',
'\u{28E7}',
'\u{28E8}',
'\u{28E9}',
'\u{28EA}',
'\u{28EB}',
'\u{28EC}',
'\u{28ED}',
'\u{28EE}',
'\u{28EF}',
'\u{28F0}',
'\u{28F1}',
'\u{28F2}',
'\u{28F3}',
'\u{28F4}',
'\u{28F5}',
'\u{28F6}',
'\u{28F7}',
'\u{28F8}',
'\u{28F9}',
'\u{28FA}',
'\u{28FB}',
'\u{28FC}',
'\u{28FD}',
'\u{28FE}',
'\u{28FF}',
'\u{2900}',
'\u{2901}',
'\u{2902}',
'\u{2903}',
'\u{2904}',
'\u{2905}',
'\u{2906}',
'\u{2907}',
'\u{2908}',
'\u{2909}',
'\u{290A}',
'\u{290B}',
'\u{290C}',
'\u{290D}',
'\u{290E}',
'\u{290F}',
'\u{2910}',
'\u{2911}',
'\u{2912}',
'\u{2913}',
'\u{2914}',
'\u{2915}',
'\u{2916}',
'\u{2917}',
'\u{2918}',
'\u{2919}',
'\u{291A}',
'\u{291B}',
'\u{291C}',
'\u{291D}',
'\u{291E}',
'\u{291F}',
'\u{2920}',
'\u{2921}',
'\u{2922}',
'\u{2923}',
'\u{2924}',
'\u{2925}',
'\u{2926}',
'\u{2927}',
'\u{2928}',
'\u{2929}',
'\u{292A}',
'\u{292B}',
'\u{292C}',
'\u{292D}',
'\u{292E}',
'\u{292F}',
'\u{2930}',
'\u{2931}',
'\u{2932}',
'\u{2933}',
'\u{2934}',
'\u{2935}',
'\u{2936}',
'\u{2937}',
'\u{2938}',
'\u{2939}',
'\u{293A}',
'\u{293B}',
'\u{293C}',
'\u{293D}',
'\u{293E}',
'\u{293F}',
'\u{2940}',
'\u{2941}',
'\u{2942}',
'\u{2943}',
'\u{2944}',
'\u{2945}',
'\u{2946}',
'\u{2947}',
'\u{2948}',
'\u{2949}',
'\u{294A}',
'\u{294B}',
'\u{294C}',
'\u{294D}',
'\u{294E}',
'\u{294F}',
'\u{2950}',
'\u{2951}',
'\u{2952}',
'\u{2953}',
'\u{2954}',
'\u{2955}',
'\u{2956}',
'\u{2957}',
'\u{2958}',
'\u{2959}',
'\u{295A}',
'\u{295B}',
'\u{295C}',
'\u{295D}',
'\u{295E}',
'\u{295F}',
'\u{2960}',
'\u{2961}',
'\u{2962}',
'\u{2963}',
'\u{2964}',
'\u{2965}',
'\u{2966}',
'\u{2967}',
'\u{2968}',
'\u{2969}',
'\u{296A}',
'\u{296B}',
'\u{296C}',
'\u{296D}',
'\u{296E}',
'\u{296F}',
'\u{2970}',
'\u{2971}',
'\u{2972}',
'\u{2973}',
'\u{2974}',
'\u{2975}',
'\u{2976}',
'\u{2977}',
'\u{2978}',
'\u{2979}',
'\u{297A}',
'\u{297B}',
'\u{297C}',
'\u{297D}',
'\u{297E}',
'\u{297F}',
'\u{2980}',
'\u{2981}',
'\u{2982}',
'\u{2983}',
'\u{2984}',
'\u{2985}',
'\u{2986}',
'\u{2987}',
'\u{2988}',
'\u{2989}',
'\u{298A}',
'\u{298B}',
'\u{298C}',
'\u{298D}',
'\u{298E}',
'\u{298F}',
'\u{2990}',
'\u{2991}',
'\u{2992}',
'\u{2993}',
'\u{2994}',
'\u{2995}',
'\u{2996}',
'\u{2997}',
'\u{2998}',
'\u{2999}',
'\u{299A}',
'\u{299B}',
'\u{299C}',
'\u{299D}',
'\u{299E}',
'\u{299F}',
'\u{29A0}',
'\u{29A1}',
'\u{29A2}',
'\u{29A3}',
'\u{29A4}',
'\u{29A5}',
'\u{29A6}',
'\u{29A7}',
'\u{29A8}',
'\u{29A9}',
'\u{29AA}',
'\u{29AB}',
'\u{29AC}',
'\u{29AD}',
'\u{29AE}',
'\u{29AF}',
'\u{29B0}',
'\u{29B1}',
'\u{29B2}',
'\u{29B3}',
'\u{29B4}',
'\u{29B5}',
'\u{29B6}',
'\u{29B7}',
'\u{29B8}',
'\u{29B9}',
'\u{29BA}',
'\u{29BB}',
'\u{29BC}',
'\u{29BD}',
'\u{29BE}',
'\u{29BF}',
'\u{29C0}',
'\u{29C1}',
'\u{29C2}',
'\u{29C3}',
'\u{29C4}',
'\u{29C5}',
'\u{29C6}',
'\u{29C7}',
'\u{29C8}',
'\u{29C9}',
'\u{29CA}',
'\u{29CB}',
'\u{29CC}',
'\u{29CD}',
'\u{29CE}',
'\u{29CF}',
'\u{29D0}',
'\u{29D1}',
'\u{29D2}',
'\u{29D3}',
'\u{29D4}',
'\u{29D5}',
'\u{29D6}',
'\u{29D7}',
'\u{29D8}',
'\u{29D9}',
'\u{29DA}',
'\u{29DB}',
'\u{29DC}',
'\u{29DD}',
'\u{29DE}',
'\u{29DF}',
'\u{29E0}',
'\u{29E1}',
'\u{29E2}',
'\u{29E3}',
'\u{29E4}',
'\u{29E5}',
'\u{29E6}',
'\u{29E7}',
'\u{29E8}',
'\u{29E9}',
'\u{29EA}',
'\u{29EB}',
'\u{29EC}',
'\u{29ED}',
'\u{29EE}',
'\u{29EF}',
'\u{29F0}',
'\u{29F1}',
'\u{29F2}',
'\u{29F3}',
'\u{29F4}',
'\u{29F5}',
'\u{29F6}',
'\u{29F7}',
'\u{29F8}',
'\u{29F9}',
'\u{29FA}',
'\u{29FB}',
'\u{29FC}',
'\u{29FD}',
'\u{29FE}',
'\u{29FF}',
'\u{2A00}',
'\u{2A01}',
'\u{2A02}',
'\u{2A03}',
'\u{2A04}',
'\u{2A05}',
'\u{2A06}',
'\u{2A07}',
'\u{2A08}',
'\u{2A09}',
'\u{2A0A}',
'\u{2A0B}',
'\u{2A0C}',
'\u{2A0D}',
'\u{2A0E}',
'\u{2A0F}',
'\u{2A10}',
'\u{2A11}',
'\u{2A12}',
'\u{2A13}',
'\u{2A14}',
'\u{2A15}',
'\u{2A16}',
'\u{2A17}',
'\u{2A18}',
'\u{2A19}',
'\u{2A1A}',
'\u{2A1B}',
'\u{2A1C}',
'\u{2A1D}',
'\u{2A1E}',
'\u{2A1F}',
'\u{2A20}',
'\u{2A21}',
'\u{2A22}',
'\u{2A23}',
'\u{2A24}',
'\u{2A25}',
'\u{2A26}',
'\u{2A27}',
'\u{2A28}',
'\u{2A29}',
'\u{2A2A}',
'\u{2A2B}',
'\u{2A2C}',
'\u{2A2D}',
'\u{2A2E}',
'\u{2A2F}',
'\u{2A30}',
'\u{2A31}',
'\u{2A32}',
'\u{2A33}',
'\u{2A34}',
'\u{2A35}',
'\u{2A36}',
'\u{2A37}',
'\u{2A38}',
'\u{2A39}',
'\u{2A3A}',
'\u{2A3B}',
'\u{2A3C}',
'\u{2A3D}',
'\u{2A3E}',
'\u{2A3F}',
'\u{2A40}',
'\u{2A41}',
'\u{2A42}',
'\u{2A43}',
'\u{2A44}',
'\u{2A45}',
'\u{2A46}',
'\u{2A47}',
'\u{2A48}',
'\u{2A49}',
'\u{2A4A}',
'\u{2A4B}',
'\u{2A4C}',
'\u{2A4D}',
'\u{2A4E}',
'\u{2A4F}',
'\u{2A50}',
'\u{2A51}',
'\u{2A52}',
'\u{2A53}',
'\u{2A54}',
'\u{2A55}',
'\u{2A56}',
'\u{2A57}',
'\u{2A58}',
'\u{2A59}',
'\u{2A5A}',
'\u{2A5B}',
'\u{2A5C}',
'\u{2A5D}',
'\u{2A5E}',
'\u{2A5F}',
'\u{2A60}',
'\u{2A61}',
'\u{2A62}',
'\u{2A63}',
'\u{2A64}',
'\u{2A65}',
'\u{2A66}',
'\u{2A67}',
'\u{2A68}',
'\u{2A69}',
'\u{2A6A}',
'\u{2A6B}',
'\u{2A6C}',
'\u{2A6D}',
'\u{2A6E}',
'\u{2A6F}',
'\u{2A70}',
'\u{2A71}',
'\u{2A72}',
'\u{2A73}',
'\u{2A74}',
'\u{2A75}',
'\u{2A76}',
'\u{2A77}',
'\u{2A78}',
'\u{2A79}',
'\u{2A7A}',
'\u{2A7B}',
'\u{2A7C}',
'\u{2A7D}',
'\u{2A7E}',
'\u{2A7F}',
'\u{2A80}',
'\u{2A81}',
'\u{2A82}',
'\u{2A83}',
'\u{2A84}',
'\u{2A85}',
'\u{2A86}',
'\u{2A87}',
'\u{2A88}',
'\u{2A89}',
'\u{2A8A}',
'\u{2A8B}',
'\u{2A8C}',
'\u{2A8D}',
'\u{2A8E}',
'\u{2A8F}',
'\u{2A90}',
'\u{2A91}',
'\u{2A92}',
'\u{2A93}',
'\u{2A94}',
'\u{2A95}',
'\u{2A96}',
'\u{2A97}',
'\u{2A98}',
'\u{2A99}',
'\u{2A9A}',
'\u{2A9B}',
'\u{2A9C}',
'\u{2A9D}',
'\u{2A9E}',
'\u{2A9F}',
'\u{2AA0}',
'\u{2AA1}',
'\u{2AA2}',
'\u{2AA3}',
'\u{2AA4}',
'\u{2AA5}',
'\u{2AA6}',
'\u{2AA7}',
'\u{2AA8}',
'\u{2AA9}',
'\u{2AAA}',
'\u{2AAB}',
'\u{2AAC}',
'\u{2AAD}',
'\u{2AAE}',
'\u{2AAF}',
'\u{2AB0}',
'\u{2AB1}',
'\u{2AB2}',
'\u{2AB3}',
'\u{2AB4}',
'\u{2AB5}',
'\u{2AB6}',
'\u{2AB7}',
'\u{2AB8}',
'\u{2AB9}',
'\u{2ABA}',
'\u{2ABB}',
'\u{2ABC}',
'\u{2ABD}',
'\u{2ABE}',
'\u{2ABF}',
'\u{2AC0}',
'\u{2AC1}',
'\u{2AC2}',
'\u{2AC3}',
'\u{2AC4}',
'\u{2AC5}',
'\u{2AC6}',
'\u{2AC7}',
'\u{2AC8}',
'\u{2AC9}',
'\u{2ACA}',
'\u{2ACB}',
'\u{2ACC}',
'\u{2ACD}',
'\u{2ACE}',
'\u{2ACF}',
'\u{2AD0}',
'\u{2AD1}',
'\u{2AD2}',
'\u{2AD3}',
'\u{2AD4}',
'\u{2AD5}',
'\u{2AD6}',
'\u{2AD7}',
'\u{2AD8}',
'\u{2AD9}',
'\u{2ADA}',
'\u{2ADB}',
'\u{2ADC}',
'\u{2ADD}',
'\u{2ADE}',
'\u{2ADF}',
'\u{2AE0}',
'\u{2AE1}',
'\u{2AE2}',
'\u{2AE3}',
'\u{2AE4}',
'\u{2AE5}',
'\u{2AE6}',
'\u{2AE7}',
'\u{2AE8}',
'\u{2AE9}',
'\u{2AEA}',
'\u{2AEB}',
'\u{2AEC}',
'\u{2AED}',
'\u{2AEE}',
'\u{2AEF}',
'\u{2AF0}',
'\u{2AF1}',
'\u{2AF2}',
'\u{2AF3}',
'\u{2AF4}',
'\u{2AF5}',
'\u{2AF6}',
'\u{2AF7}',
'\u{2AF8}',
'\u{2AF9}',
'\u{2AFA}',
'\u{2AFB}',
'\u{2AFC}',
'\u{2AFD}',
'\u{2AFE}',
'\u{2AFF}',
'\u{2B00}',
'\u{2B01}',
'\u{2B02}',
'\u{2B03}',
'\u{2B04}',
'\u{2B05}',
'\u{2B06}',
'\u{2B07}',
'\u{2B08}',
'\u{2B09}',
'\u{2B0A}',
'\u{2B0B}',
'\u{2B0C}',
'\u{2B0D}',
'\u{2B0E}',
'\u{2B0F}',
'\u{2B10}',
'\u{2B11}',
'\u{2B12}',
'\u{2B13}',
'\u{2B14}',
'\u{2B15}',
'\u{2B16}',
'\u{2B17}',
'\u{2B18}',
'\u{2B19}',
'\u{2B1A}',
'\u{2B1B}',
'\u{2B1C}',
'\u{2B1D}',
'\u{2B1E}',
'\u{2B1F}',
'\u{2B20}',
'\u{2B21}',
'\u{2B22}',
'\u{2B23}',
'\u{2B24}',
'\u{2B25}',
'\u{2B26}',
'\u{2B27}',
'\u{2B28}',
'\u{2B29}',
'\u{2B2A}',
'\u{2B2B}',
'\u{2B2C}',
'\u{2B2D}',
'\u{2B2E}',
'\u{2B2F}',
'\u{2B30}',
'\u{2B31}',
'\u{2B32}',
'\u{2B33}',
'\u{2B34}',
'\u{2B35}',
'\u{2B36}',
'\u{2B37}',
'\u{2B38}',
'\u{2B39}',
'\u{2B3A}',
'\u{2B3B}',
'\u{2B3C}',
'\u{2B3D}',
'\u{2B3E}',
'\u{2B3F}',
'\u{2B40}',
'\u{2B41}',
'\u{2B42}',
'\u{2B43}',
'\u{2B44}',
'\u{2B45}',
'\u{2B46}',
'\u{2B47}',
'\u{2B48}',
'\u{2B49}',
'\u{2B4A}',
'\u{2B4B}',
'\u{2B4C}',
'\u{2B4D}',
'\u{2B4E}',
'\u{2B4F}',
'\u{2B50}',
'\u{2B51}',
'\u{2B52}',
'\u{2B53}',
'\u{2B54}',
'\u{2B55}',
'\u{2B56}',
'\u{2B57}',
'\u{2B58}',
'\u{2B59}',
'\u{2B5A}',
'\u{2B5B}',
'\u{2B5C}',
'\u{2B5D}',
'\u{2B5E}',
'\u{2B5F}',
'\u{2B60}',
'\u{2B61}',
'\u{2B62}',
'\u{2B63}',
'\u{2B64}',
'\u{2B65}',
'\u{2B66}',
'\u{2B67}',
'\u{2B68}',
'\u{2B69}',
'\u{2B6A}',
'\u{2B6B}',
'\u{2B6C}',
'\u{2B6D}',
'\u{2B6E}',
'\u{2B6F}',
'\u{2B70}',
'\u{2B71}',
'\u{2B72}',
'\u{2B73}',
'\u{2B76}',
'\u{2B77}',
'\u{2B78}',
'\u{2B79}',
'\u{2B7A}',
'\u{2B7B}',
'\u{2B7C}',
'\u{2B7D}',
'\u{2B7E}',
'\u{2B7F}',
'\u{2B80}',
'\u{2B81}',
'\u{2B82}',
'\u{2B83}',
'\u{2B84}',
'\u{2B85}',
'\u{2B86}',
'\u{2B87}',
'\u{2B88}',
'\u{2B89}',
'\u{2B8A}',
'\u{2B8B}',
'\u{2B8C}',
'\u{2B8D}',
'\u{2B8E}',
'\u{2B8F}',
'\u{2B90}',
'\u{2B91}',
'\u{2B92}',
'\u{2B93}',
'\u{2B94}',
'\u{2B95}',
'\u{2B97}',
'\u{2B98}',
'\u{2B99}',
'\u{2B9A}',
'\u{2B9B}',
'\u{2B9C}',
'\u{2B9D}',
'\u{2B9E}',
'\u{2B9F}',
'\u{2BA0}',
'\u{2BA1}',
'\u{2BA2}',
'\u{2BA3}',
'\u{2BA4}',
'\u{2BA5}',
'\u{2BA6}',
'\u{2BA7}',
'\u{2BA8}',
'\u{2BA9}',
'\u{2BAA}',
'\u{2BAB}',
'\u{2BAC}',
'\u{2BAD}',
'\u{2BAE}',
'\u{2BAF}',
'\u{2BB0}',
'\u{2BB1}',
'\u{2BB2}',
'\u{2BB3}',
'\u{2BB4}',
'\u{2BB5}',
'\u{2BB6}',
'\u{2BB7}',
'\u{2BB8}',
'\u{2BB9}',
'\u{2BBA}',
'\u{2BBB}',
'\u{2BBC}',
'\u{2BBD}',
'\u{2BBE}',
'\u{2BBF}',
'\u{2BC0}',
'\u{2BC1}',
'\u{2BC2}',
'\u{2BC3}',
'\u{2BC4}',
'\u{2BC5}',
'\u{2BC6}',
'\u{2BC7}',
'\u{2BC8}',
'\u{2BC9}',
'\u{2BCA}',
'\u{2BCB}',
'\u{2BCC}',
'\u{2BCD}',
'\u{2BCE}',
'\u{2BCF}',
'\u{2BD0}',
'\u{2BD1}',
'\u{2BD2}',
'\u{2BD3}',
'\u{2BD4}',
'\u{2BD5}',
'\u{2BD6}',
'\u{2BD7}',
'\u{2BD8}',
'\u{2BD9}',
'\u{2BDA}',
'\u{2BDB}',
'\u{2BDC}',
'\u{2BDD}',
'\u{2BDE}',
'\u{2BDF}',
'\u{2BE0}',
'\u{2BE1}',
'\u{2BE2}',
'\u{2BE3}',
'\u{2BE4}',
'\u{2BE5}',
'\u{2BE6}',
'\u{2BE7}',
'\u{2BE8}',
'\u{2BE9}',
'\u{2BEA}',
'\u{2BEB}',
'\u{2BEC}',
'\u{2BED}',
'\u{2BEE}',
'\u{2BEF}',
'\u{2BF0}',
'\u{2BF1}',
'\u{2BF2}',
'\u{2BF3}',
'\u{2BF4}',
'\u{2BF5}',
'\u{2BF6}',
'\u{2BF7}',
'\u{2BF8}',
'\u{2BF9}',
'\u{2BFA}',
'\u{2BFB}',
'\u{2BFC}',
'\u{2BFD}',
'\u{2BFE}',
'\u{2BFF}',
'\u{2CE5}',
'\u{2CE6}',
'\u{2CE7}',
'\u{2CE8}',
'\u{2CE9}',
'\u{2CEA}',
'\u{2CF9}',
'\u{2CFA}',
'\u{2CFB}',
'\u{2CFC}',
'\u{2CFE}',
'\u{2CFF}',
'\u{2D70}',
'\u{2E00}',
'\u{2E01}',
'\u{2E02}',
'\u{2E03}',
'\u{2E04}',
'\u{2E05}',
'\u{2E06}',
'\u{2E07}',
'\u{2E08}',
'\u{2E09}',
'\u{2E0A}',
'\u{2E0B}',
'\u{2E0C}',
'\u{2E0D}',
'\u{2E0E}',
'\u{2E0F}',
'\u{2E10}',
'\u{2E11}',
'\u{2E12}',
'\u{2E13}',
'\u{2E14}',
'\u{2E15}',
'\u{2E16}',
'\u{2E17}',
'\u{2E18}',
'\u{2E19}',
'\u{2E1A}',
'\u{2E1B}',
'\u{2E1C}',
'\u{2E1D}',
'\u{2E1E}',
'\u{2E1F}',
'\u{2E20}',
'\u{2E21}',
'\u{2E22}',
'\u{2E23}',
'\u{2E24}',
'\u{2E25}',
'\u{2E26}',
'\u{2E27}',
'\u{2E28}',
'\u{2E29}',
'\u{2E2A}',
'\u{2E2B}',
'\u{2E2C}',
'\u{2E2D}',
'\u{2E2E}',
'\u{2E30}',
'\u{2E31}',
'\u{2E32}',
'\u{2E33}',
'\u{2E34}',
'\u{2E35}',
'\u{2E36}',
'\u{2E37}',
'\u{2E38}',
'\u{2E39}',
'\u{2E3A}',
'\u{2E3B}',
'\u{2E3C}',
'\u{2E3D}',
'\u{2E3E}',
'\u{2E3F}',
'\u{2E40}',
'\u{2E41}',
'\u{2E42}',
'\u{2E43}',
'\u{2E44}',
'\u{2E45}',
'\u{2E46}',
'\u{2E47}',
'\u{2E48}',
'\u{2E49}',
'\u{2E4A}',
'\u{2E4B}',
'\u{2E4C}',
'\u{2E4D}',
'\u{2E4E}',
'\u{2E4F}',
'\u{2E50}',
'\u{2E51}',
'\u{2E52}',
'\u{2E53}',
'\u{2E54}',
'\u{2E55}',
'\u{2E56}',
'\u{2E57}',
'\u{2E58}',
'\u{2E59}',
'\u{2E5A}',
'\u{2E5B}',
'\u{2E5C}',
'\u{2E5D}',
'\u{2E80}',
'\u{2E81}',
'\u{2E82}',
'\u{2E83}',
'\u{2E84}',
'\u{2E85}',
'\u{2E86}',
'\u{2E87}',
'\u{2E88}',
'\u{2E89}',
'\u{2E8A}',
'\u{2E8B}',
'\u{2E8C}',
'\u{2E8D}',
'\u{2E8E}',
'\u{2E8F}',
'\u{2E90}',
'\u{2E91}',
'\u{2E92}',
'\u{2E93}',
'\u{2E94}',
'\u{2E95}',
'\u{2E96}',
'\u{2E97}',
'\u{2E98}',
'\u{2E99}',
'\u{2E9B}',
'\u{2E9C}',
'\u{2E9D}',
'\u{2E9E}',
'\u{2E9F}',
'\u{2EA0}',
'\u{2EA1}',
'\u{2EA2}',
'\u{2EA3}',
'\u{2EA4}',
'\u{2EA5}',
'\u{2EA6}',
'\u{2EA7}',
'\u{2EA8}',
'\u{2EA9}',
'\u{2EAA}',
'\u{2EAB}',
'\u{2EAC}',
'\u{2EAD}',
'\u{2EAE}',
'\u{2EAF}',
'\u{2EB0}',
'\u{2EB1}',
'\u{2EB2}',
'\u{2EB3}',
'\u{2EB4}',
'\u{2EB5}',
'\u{2EB6}',
'\u{2EB7}',
'\u{2EB8}',
'\u{2EB9}',
'\u{2EBA}',
'\u{2EBB}',
'\u{2EBC}',
'\u{2EBD}',
'\u{2EBE}',
'\u{2EBF}',
'\u{2EC0}',
'\u{2EC1}',
'\u{2EC2}',
'\u{2EC3}',
'\u{2EC4}',
'\u{2EC5}',
'\u{2EC6}',
'\u{2EC7}',
'\u{2EC8}',
'\u{2EC9}',
'\u{2ECA}',
'\u{2ECB}',
'\u{2ECC}',
'\u{2ECD}',
'\u{2ECE}',
'\u{2ECF}',
'\u{2ED0}',
'\u{2ED1}',
'\u{2ED2}',
'\u{2ED3}',
'\u{2ED4}',
'\u{2ED5}',
'\u{2ED6}',
'\u{2ED7}',
'\u{2ED8}',
'\u{2ED9}',
'\u{2EDA}',
'\u{2EDB}',
'\u{2EDC}',
'\u{2EDD}',
'\u{2EDE}',
'\u{2EDF}',
'\u{2EE0}',
'\u{2EE1}',
'\u{2EE2}',
'\u{2EE3}',
'\u{2EE4}',
'\u{2EE5}',
'\u{2EE6}',
'\u{2EE7}',
'\u{2EE8}',
'\u{2EE9}',
'\u{2EEA}',
'\u{2EEB}',
'\u{2EEC}',
'\u{2EED}',
'\u{2EEE}',
'\u{2EEF}',
'\u{2EF0}',
'\u{2EF1}',
'\u{2EF2}',
'\u{2EF3}',
'\u{2F00}',
'\u{2F01}',
'\u{2F02}',
'\u{2F03}',
'\u{2F04}',
'\u{2F05}',
'\u{2F06}',
'\u{2F07}',
'\u{2F08}',
'\u{2F09}',
'\u{2F0A}',
'\u{2F0B}',
'\u{2F0C}',
'\u{2F0D}',
'\u{2F0E}',
'\u{2F0F}',
'\u{2F10}',
'\u{2F11}',
'\u{2F12}',
'\u{2F13}',
'\u{2F14}',
'\u{2F15}',
'\u{2F16}',
'\u{2F17}',
'\u{2F18}',
'\u{2F19}',
'\u{2F1A}',
'\u{2F1B}',
'\u{2F1C}',
'\u{2F1D}',
'\u{2F1E}',
'\u{2F1F}',
'\u{2F20}',
'\u{2F21}',
'\u{2F22}',
'\u{2F23}',
'\u{2F24}',
'\u{2F25}',
'\u{2F26}',
'\u{2F27}',
'\u{2F28}',
'\u{2F29}',
'\u{2F2A}',
'\u{2F2B}',
'\u{2F2C}',
'\u{2F2D}',
'\u{2F2E}',
'\u{2F2F}',
'\u{2F30}',
'\u{2F31}',
'\u{2F32}',
'\u{2F33}',
'\u{2F34}',
'\u{2F35}',
'\u{2F36}',
'\u{2F37}',
'\u{2F38}',
'\u{2F39}',
'\u{2F3A}',
'\u{2F3B}',
'\u{2F3C}',
'\u{2F3D}',
'\u{2F3E}',
'\u{2F3F}',
'\u{2F40}',
'\u{2F41}',
'\u{2F42}',
'\u{2F43}',
'\u{2F44}',
'\u{2F45}',
'\u{2F46}',
'\u{2F47}',
'\u{2F48}',
'\u{2F49}',
'\u{2F4A}',
'\u{2F4B}',
'\u{2F4C}',
'\u{2F4D}',
'\u{2F4E}',
'\u{2F4F}',
'\u{2F50}',
'\u{2F51}',
'\u{2F52}',
'\u{2F53}',
'\u{2F54}',
'\u{2F55}',
'\u{2F56}',
'\u{2F57}',
'\u{2F58}',
'\u{2F59}',
'\u{2F5A}',
'\u{2F5B}',
'\u{2F5C}',
'\u{2F5D}',
'\u{2F5E}',
'\u{2F5F}',
'\u{2F60}',
'\u{2F61}',
'\u{2F62}',
'\u{2F63}',
'\u{2F64}',
'\u{2F65}',
'\u{2F66}',
'\u{2F67}',
'\u{2F68}',
'\u{2F69}',
'\u{2F6A}',
'\u{2F6B}',
'\u{2F6C}',
'\u{2F6D}',
'\u{2F6E}',
'\u{2F6F}',
'\u{2F70}',
'\u{2F71}',
'\u{2F72}',
'\u{2F73}',
'\u{2F74}',
'\u{2F75}',
'\u{2F76}',
'\u{2F77}',
'\u{2F78}',
'\u{2F79}',
'\u{2F7A}',
'\u{2F7B}',
'\u{2F7C}',
'\u{2F7D}',
'\u{2F7E}',
'\u{2F7F}',
'\u{2F80}',
'\u{2F81}',
'\u{2F82}',
'\u{2F83}',
'\u{2F84}',
'\u{2F85}',
'\u{2F86}',
'\u{2F87}',
'\u{2F88}',
'\u{2F89}',
'\u{2F8A}',
'\u{2F8B}',
'\u{2F8C}',
'\u{2F8D}',
'\u{2F8E}',
'\u{2F8F}',
'\u{2F90}',
'\u{2F91}',
'\u{2F92}',
'\u{2F93}',
'\u{2F94}',
'\u{2F95}',
'\u{2F96}',
'\u{2F97}',
'\u{2F98}',
'\u{2F99}',
'\u{2F9A}',
'\u{2F9B}',
'\u{2F9C}',
'\u{2F9D}',
'\u{2F9E}',
'\u{2F9F}',
'\u{2FA0}',
'\u{2FA1}',
'\u{2FA2}',
'\u{2FA3}',
'\u{2FA4}',
'\u{2FA5}',
'\u{2FA6}',
'\u{2FA7}',
'\u{2FA8}',
'\u{2FA9}',
'\u{2FAA}',
'\u{2FAB}',
'\u{2FAC}',
'\u{2FAD}',
'\u{2FAE}',
'\u{2FAF}',
'\u{2FB0}',
'\u{2FB1}',
'\u{2FB2}',
'\u{2FB3}',
'\u{2FB4}',
'\u{2FB5}',
'\u{2FB6}',
'\u{2FB7}',
'\u{2FB8}',
'\u{2FB9}',
'\u{2FBA}',
'\u{2FBB}',
'\u{2FBC}',
'\u{2FBD}',
'\u{2FBE}',
'\u{2FBF}',
'\u{2FC0}',
'\u{2FC1}',
'\u{2FC2}',
'\u{2FC3}',
'\u{2FC4}',
'\u{2FC5}',
'\u{2FC6}',
'\u{2FC7}',
'\u{2FC8}',
'\u{2FC9}',
'\u{2FCA}',
'\u{2FCB}',
'\u{2FCC}',
'\u{2FCD}',
'\u{2FCE}',
'\u{2FCF}',
'\u{2FD0}',
'\u{2FD1}',
'\u{2FD2}',
'\u{2FD3}',
'\u{2FD4}',
'\u{2FD5}',
'\u{2FF0}',
'\u{2FF1}',
'\u{2FF2}',
'\u{2FF3}',
'\u{2FF4}',
'\u{2FF5}',
'\u{2FF6}',
'\u{2FF7}',
'\u{2FF8}',
'\u{2FF9}',
'\u{2FFA}',
'\u{2FFB}',
'\u{2FFC}',
'\u{2FFD}',
'\u{2FFE}',
'\u{2FFF}',
'\u{3001}',
'\u{3002}',
'\u{3003}',
'\u{3004}',
'\u{3008}',
'\u{3009}',
'\u{300A}',
'\u{300B}',
'\u{300C}',
'\u{300D}',
'\u{300E}',
'\u{300F}',
'\u{3010}',
'\u{3011}',
'\u{3012}',
'\u{3013}',
'\u{3014}',
'\u{3015}',
'\u{3016}',
'\u{3017}',
'\u{3018}',
'\u{3019}',
'\u{301A}',
'\u{301B}',
'\u{301C}',
'\u{301D}',
'\u{301E}',
'\u{301F}',
'\u{3020}',
'\u{3030}',
'\u{3036}',
'\u{3037}',
'\u{303D}',
'\u{303E}',
'\u{303F}',
'\u{309B}',
'\u{309C}',
'\u{30A0}',
'\u{30FB}',
'\u{3190}',
'\u{3191}',
'\u{3196}',
'\u{3197}',
'\u{3198}',
'\u{3199}',
'\u{319A}',
'\u{319B}',
'\u{319C}',
'\u{319D}',
'\u{319E}',
'\u{319F}',
'\u{31C0}',
'\u{31C1}',
'\u{31C2}',
'\u{31C3}',
'\u{31C4}',
'\u{31C5}',
'\u{31C6}',
'\u{31C7}',
'\u{31C8}',
'\u{31C9}',
'\u{31CA}',
'\u{31CB}',
'\u{31CC}',
'\u{31CD}',
'\u{31CE}',
'\u{31CF}',
'\u{31D0}',
'\u{31D1}',
'\u{31D2}',
'\u{31D3}',
'\u{31D4}',
'\u{31D5}',
'\u{31D6}',
'\u{31D7}',
'\u{31D8}',
'\u{31D9}',
'\u{31DA}',
'\u{31DB}',
'\u{31DC}',
'\u{31DD}',
'\u{31DE}',
'\u{31DF}',
'\u{31E0}',
'\u{31E1}',
'\u{31E2}',
'\u{31E3}',
'\u{31E4}',
'\u{31E5}',
'\u{31EF}',
'\u{3200}',
'\u{3201}',
'\u{3202}',
'\u{3203}',
'\u{3204}',
'\u{3205}',
'\u{3206}',
'\u{3207}',
'\u{3208}',
'\u{3209}',
'\u{320A}',
'\u{320B}',
'\u{320C}',
'\u{320D}',
'\u{320E}',
'\u{320F}',
'\u{3210}',
'\u{3211}',
'\u{3212}',
'\u{3213}',
'\u{3214}',
'\u{3215}',
'\u{3216}',
'\u{3217}',
'\u{3218}',
'\u{3219}',
'\u{321A}',
'\u{321B}',
'\u{321C}',
'\u{321D}',
'\u{321E}',
'\u{322A}',
'\u{322B}',
'\u{322C}',
'\u{322D}',
'\u{322E}',
'\u{322F}',
'\u{3230}',
'\u{3231}',
'\u{3232}',
'\u{3233}',
'\u{3234}',
'\u{3235}',
'\u{3236}',
'\u{3237}',
'\u{3238}',
'\u{3239}',
'\u{323A}',
'\u{323B}',
'\u{323C}',
'\u{323D}',
'\u{323E}',
'\u{323F}',
'\u{3240}',
'\u{3241}',
'\u{3242}',
'\u{3243}',
'\u{3244}',
'\u{3245}',
'\u{3246}',
'\u{3247}',
'\u{3250}',
'\u{3260}',
'\u{3261}',
'\u{3262}',
'\u{3263}',
'\u{3264}',
'\u{3265}',
'\u{3266}',
'\u{3267}',
'\u{3268}',
'\u{3269}',
'\u{326A}',
'\u{326B}',
'\u{326C}',
'\u{326D}',
'\u{326E}',
'\u{326F}',
'\u{3270}',
'\u{3271}',
'\u{3272}',
'\u{3273}',
'\u{3274}',
'\u{3275}',
'\u{3276}',
'\u{3277}',
'\u{3278}',
'\u{3279}',
'\u{327A}',
'\u{327B}',
'\u{327C}',
'\u{327D}',
'\u{327E}',
'\u{327F}',
'\u{328A}',
'\u{328B}',
'\u{328C}',
'\u{328D}',
'\u{328E}',
'\u{328F}',
'\u{3290}',
'\u{3291}',
'\u{3292}',
'\u{3293}',
'\u{3294}',
'\u{3295}',
'\u{3296}',
'\u{3297}',
'\u{3298}',
'\u{3299}',
'\u{329A}',
'\u{329B}',
'\u{329C}',
'\u{329D}',
'\u{329E}',
'\u{329F}',
'\u{32A0}',
'\u{32A1}',
'\u{32A2}',
'\u{32A3}',
'\u{32A4}',
'\u{32A5}',
'\u{32A6}',
'\u{32A7}',
'\u{32A8}',
'\u{32A9}',
'\u{32AA}',
'\u{32AB}',
'\u{32AC}',
'\u{32AD}',
'\u{32AE}',
'\u{32AF}',
'\u{32B0}',
'\u{32C0}',
'\u{32C1}',
'\u{32C2}',
'\u{32C3}',
'\u{32C4}',
'\u{32C5}',
'\u{32C6}',
'\u{32C7}',
'\u{32C8}',
'\u{32C9}',
'\u{32CA}',
'\u{32CB}',
'\u{32CC}',
'\u{32CD}',
'\u{32CE}',
'\u{32CF}',
'\u{32D0}',
'\u{32D1}',
'\u{32D2}',
'\u{32D3}',
'\u{32D4}',
'\u{32D5}',
'\u{32D6}',
'\u{32D7}',
'\u{32D8}',
'\u{32D9}',
'\u{32DA}',
'\u{32DB}',
'\u{32DC}',
'\u{32DD}',
'\u{32DE}',
'\u{32DF}',
'\u{32E0}',
'\u{32E1}',
'\u{32E2}',
'\u{32E3}',
'\u{32E4}',
'\u{32E5}',
'\u{32E6}',
'\u{32E7}',
'\u{32E8}',
'\u{32E9}',
'\u{32EA}',
'\u{32EB}',
'\u{32EC}',
'\u{32ED}',
'\u{32EE}',
'\u{32EF}',
'\u{32F0}',
'\u{32F1}',
'\u{32F2}',
'\u{32F3}',
'\u{32F4}',
'\u{32F5}',
'\u{32F6}',
'\u{32F7}',
'\u{32F8}',
'\u{32F9}',
'\u{32FA}',
'\u{32FB}',
'\u{32FC}',
'\u{32FD}',
'\u{32FE}',
'\u{32FF}',
'\u{3300}',
'\u{3301}',
'\u{3302}',
'\u{3303}',
'\u{3304}',
'\u{3305}',
'\u{3306}',
'\u{3307}',
'\u{3308}',
'\u{3309}',
'\u{330A}',
'\u{330B}',
'\u{330C}',
'\u{330D}',
'\u{330E}',
'\u{330F}',
'\u{3310}',
'\u{3311}',
'\u{3312}',
'\u{3313}',
'\u{3314}',
'\u{3315}',
'\u{3316}',
'\u{3317}',
'\u{3318}',
'\u{3319}',
'\u{331A}',
'\u{331B}',
'\u{331C}',
'\u{331D}',
'\u{331E}',
'\u{331F}',
'\u{3320}',
'\u{3321}',
'\u{3322}',
'\u{3323}',
'\u{3324}',
'\u{3325}',
'\u{3326}',
'\u{3327}',
'\u{3328}',
'\u{3329}',
'\u{332A}',
'\u{332B}',
'\u{332C}',
'\u{332D}',
'\u{332E}',
'\u{332F}',
'\u{3330}',
'\u{3331}',
'\u{3332}',
'\u{3333}',
'\u{3334}',
'\u{3335}',
'\u{3336}',
'\u{3337}',
'\u{3338}',
'\u{3339}',
'\u{333A}',
'\u{333B}',
'\u{333C}',
'\u{333D}',
'\u{333E}',
'\u{333F}',
'\u{3340}',
'\u{3341}',
'\u{3342}',
'\u{3343}',
'\u{3344}',
'\u{3345}',
'\u{3346}',
'\u{3347}',
'\u{3348}',
'\u{3349}',
'\u{334A}',
'\u{334B}',
'\u{334C}',
'\u{334D}',
'\u{334E}',
'\u{334F}',
'\u{3350}',
'\u{3351}',
'\u{3352}',
'\u{3353}',
'\u{3354}',
'\u{3355}',
'\u{3356}',
'\u{3357}',
'\u{3358}',
'\u{3359}',
'\u{335A}',
'\u{335B}',
'\u{335C}',
'\u{335D}',
'\u{335E}',
'\u{335F}',
'\u{3360}',
'\u{3361}',
'\u{3362}',
'\u{3363}',
'\u{3364}',
'\u{3365}',
'\u{3366}',
'\u{3367}',
'\u{3368}',
'\u{3369}',
'\u{336A}',
'\u{336B}',
'\u{336C}',
'\u{336D}',
'\u{336E}',
'\u{336F}',
'\u{3370}',
'\u{3371}',
'\u{3372}',
'\u{3373}',
'\u{3374}',
'\u{3375}',
'\u{3376}',
'\u{3377}',
'\u{3378}',
'\u{3379}',
'\u{337A}',
'\u{337B}',
'\u{337C}',
'\u{337D}',
'\u{337E}',
'\u{337F}',
'\u{3380}',
'\u{3381}',
'\u{3382}',
'\u{3383}',
'\u{3384}',
'\u{3385}',
'\u{3386}',
'\u{3387}',
'\u{3388}',
'\u{3389}',
'\u{338A}',
'\u{338B}',
'\u{338C}',
'\u{338D}',
'\u{338E}',
'\u{338F}',
'\u{3390}',
'\u{3391}',
'\u{3392}',
'\u{3393}',
'\u{3394}',
'\u{3395}',
'\u{3396}',
'\u{3397}',
'\u{3398}',
'\u{3399}',
'\u{339A}',
'\u{339B}',
'\u{339C}',
'\u{339D}',
'\u{339E}',
'\u{339F}',
'\u{33A0}',
'\u{33A1}',
'\u{33A2}',
'\u{33A3}',
'\u{33A4}',
'\u{33A5}',
'\u{33A6}',
'\u{33A7}',
'\u{33A8}',
'\u{33A9}',
'\u{33AA}',
'\u{33AB}',
'\u{33AC}',
'\u{33AD}',
'\u{33AE}',
'\u{33AF}',
'\u{33B0}',
'\u{33B1}',
'\u{33B2}',
'\u{33B3}',
'\u{33B4}',
'\u{33B5}',
'\u{33B6}',
'\u{33B7}',
'\u{33B8}',
'\u{33B9}',
'\u{33BA}',
'\u{33BB}',
'\u{33BC}',
'\u{33BD}',
'\u{33BE}',
'\u{33BF}',
'\u{33C0}',
'\u{33C1}',
'\u{33C2}',
'\u{33C3}',
'\u{33C4}',
'\u{33C5}',
'\u{33C6}',
'\u{33C7}',
'\u{33C8}',
'\u{33C9}',
'\u{33CA}',
'\u{33CB}',
'\u{33CC}',
'\u{33CD}',
'\u{33CE}',
'\u{33CF}',
'\u{33D0}',
'\u{33D1}',
'\u{33D2}',
'\u{33D3}',
'\u{33D4}',
'\u{33D5}',
'\u{33D6}',
'\u{33D7}',
'\u{33D8}',
'\u{33D9}',
'\u{33DA}',
'\u{33DB}',
'\u{33DC}',
'\u{33DD}',
'\u{33DE}',
'\u{33DF}',
'\u{33E0}',
'\u{33E1}',
'\u{33E2}',
'\u{33E3}',
'\u{33E4}',
'\u{33E5}',
'\u{33E6}',
'\u{33E7}',
'\u{33E8}',
'\u{33E9}',
'\u{33EA}',
'\u{33EB}',
'\u{33EC}',
'\u{33ED}',
'\u{33EE}',
'\u{33EF}',
'\u{33F0}',
'\u{33F1}',
'\u{33F2}',
'\u{33F3}',
'\u{33F4}',
'\u{33F5}',
'\u{33F6}',
'\u{33F7}',
'\u{33F8}',
'\u{33F9}',
'\u{33FA}',
'\u{33FB}',
'\u{33FC}',
'\u{33FD}',
'\u{33FE}',
'\u{33FF}',
'\u{4DC0}',
'\u{4DC1}',
'\u{4DC2}',
'\u{4DC3}',
'\u{4DC4}',
'\u{4DC5}',
'\u{4DC6}',
'\u{4DC7}',
'\u{4DC8}',
'\u{4DC9}',
'\u{4DCA}',
'\u{4DCB}',
'\u{4DCC}',
'\u{4DCD}',
'\u{4DCE}',
'\u{4DCF}',
'\u{4DD0}',
'\u{4DD1}',
'\u{4DD2}',
'\u{4DD3}',
'\u{4DD4}',
'\u{4DD5}',
'\u{4DD6}',
'\u{4DD7}',
'\u{4DD8}',
'\u{4DD9}',
'\u{4DDA}',
'\u{4DDB}',
'\u{4DDC}',
'\u{4DDD}',
'\u{4DDE}',
'\u{4DDF}',
'\u{4DE0}',
'\u{4DE1}',
'\u{4DE2}',
'\u{4DE3}',
'\u{4DE4}',
'\u{4DE5}',
'\u{4DE6}',
'\u{4DE7}',
'\u{4DE8}',
'\u{4DE9}',
'\u{4DEA}',
'\u{4DEB}',
'\u{4DEC}',
'\u{4DED}',
'\u{4DEE}',
'\u{4DEF}',
'\u{4DF0}',
'\u{4DF1}',
'\u{4DF2}',
'\u{4DF3}',
'\u{4DF4}',
'\u{4DF5}',
'\u{4DF6}',
'\u{4DF7}',
'\u{4DF8}',
'\u{4DF9}',
'\u{4DFA}',
'\u{4DFB}',
'\u{4DFC}',
'\u{4DFD}',
'\u{4DFE}',
'\u{4DFF}',
'\u{A490}',
'\u{A491}',
'\u{A492}',
'\u{A493}',
'\u{A494}',
'\u{A495}',
'\u{A496}',
'\u{A497}',
'\u{A498}',
'\u{A499}',
'\u{A49A}',
'\u{A49B}',
'\u{A49C}',
'\u{A49D}',
'\u{A49E}',
'\u{A49F}',
'\u{A4A0}',
'\u{A4A1}',
'\u{A4A2}',
'\u{A4A3}',
'\u{A4A4}',
'\u{A4A5}',
'\u{A4A6}',
'\u{A4A7}',
'\u{A4A8}',
'\u{A4A9}',
'\u{A4AA}',
'\u{A4AB}',
'\u{A4AC}',
'\u{A4AD}',
'\u{A4AE}',
'\u{A4AF}',
'\u{A4B0}',
'\u{A4B1}',
'\u{A4B2}',
'\u{A4B3}',
'\u{A4B4}',
'\u{A4B5}',
'\u{A4B6}',
'\u{A4B7}',
'\u{A4B8}',
'\u{A4B9}',
'\u{A4BA}',
'\u{A4BB}',
'\u{A4BC}',
'\u{A4BD}',
'\u{A4BE}',
'\u{A4BF}',
'\u{A4C0}',
'\u{A4C1}',
'\u{A4C2}',
'\u{A4C3}',
'\u{A4C4}',
'\u{A4C5}',
'\u{A4C6}',
'\u{A4FE}',
'\u{A4FF}',
'\u{A60D}',
'\u{A60E}',
'\u{A60F}',
'\u{A673}',
'\u{A67E}',
'\u{A6F2}',
'\u{A6F3}',
'\u{A6F4}',
'\u{A6F5}',
'\u{A6F6}',
'\u{A6F7}',
'\u{A700}',
'\u{A701}',
'\u{A702}',
'\u{A703}',
'\u{A704}',
'\u{A705}',
'\u{A706}',
'\u{A707}',
'\u{A708}',
'\u{A709}',
'\u{A70A}',
'\u{A70B}',
'\u{A70C}',
'\u{A70D}',
'\u{A70E}',
'\u{A70F}',
'\u{A710}',
'\u{A711}',
'\u{A712}',
'\u{A713}',
'\u{A714}',
'\u{A715}',
'\u{A716}',
'\u{A720}',
'\u{A721}',
'\u{A789}',
'\u{A78A}',
'\u{A828}',
'\u{A829}',
'\u{A82A}',
'\u{A82B}',
'\u{A836}',
'\u{A837}',
'\u{A838}',
'\u{A839}',
'\u{A874}',
'\u{A875}',
'\u{A876}',
'\u{A877}',
'\u{A8CE}',
'\u{A8CF}',
'\u{A8F8}',
'\u{A8F9}',
'\u{A8FA}',
'\u{A8FC}',
'\u{A92E}',
'\u{A92F}',
'\u{A95F}',
'\u{A9C1}',
'\u{A9C2}',
'\u{A9C3}',
'\u{A9C4}',
'\u{A9C5}',
'\u{A9C6}',
'\u{A9C7}',
'\u{A9C8}',
'\u{A9C9}',
'\u{A9CA}',
'\u{A9CB}',
'\u{A9CC}',
'\u{A9CD}',
'\u{A9DE}',
'\u{A9DF}',
'\u{AA5C}',
'\u{AA5D}',
'\u{AA5E}',
'\u{AA5F}',
'\u{AA77}',
'\u{AA78}',
'\u{AA79}',
'\u{AADE}',
'\u{AADF}',
'\u{AAF0}',
'\u{AAF1}',
'\u{AB5B}',
'\u{AB6A}',
'\u{AB6B}',
'\u{ABEB}',
'\u{FB29}',
'\u{FBB2}',
'\u{FBB3}',
'\u{FBB4}',
'\u{FBB5}',
'\u{FBB6}',
'\u{FBB7}',
'\u{FBB8}',
'\u{FBB9}',
'\u{FBBA}',
'\u{FBBB}',
'\u{FBBC}',
'\u{FBBD}',
'\u{FBBE}',
'\u{FBBF}',
'\u{FBC0}',
'\u{FBC1}',
'\u{FBC2}',
'\u{FD3E}',
'\u{FD3F}',
'\u{FD40}',
'\u{FD41}',
'\u{FD42}',
'\u{FD43}',
'\u{FD44}',
'\u{FD45}',
'\u{FD46}',
'\u{FD47}',
'\u{FD48}',
'\u{FD49}',
'\u{FD4A}',
'\u{FD4B}',
'\u{FD4C}',
'\u{FD4D}',
'\u{FD4E}',
'\u{FD4F}',
'\u{FDCF}',
'\u{FDFC}',
'\u{FDFD}',
'\u{FDFE}',
'\u{FDFF}',
'\u{FE10}',
'\u{FE11}',
'\u{FE12}',
'\u{FE13}',
'\u{FE14}',
'\u{FE15}',
'\u{FE16}',
'\u{FE17}',
'\u{FE18}',
'\u{FE19}',
'\u{FE30}',
'\u{FE31}',
'\u{FE32}',
'\u{FE33}',
'\u{FE34}',
'\u{FE35}',
'\u{FE36}',
'\u{FE37}',
'\u{FE38}',
'\u{FE39}',
'\u{FE3A}',
'\u{FE3B}',
'\u{FE3C}',
'\u{FE3D}',
'\u{FE3E}',
'\u{FE3F}',
'\u{FE40}',
'\u{FE41}',
'\u{FE42}',
'\u{FE43}',
'\u{FE44}',
'\u{FE45}',
'\u{FE46}',
'\u{FE47}',
'\u{FE48}',
'\u{FE49}',
'\u{FE4A}',
'\u{FE4B}',
'\u{FE4C}',
'\u{FE4D}',
'\u{FE4E}',
'\u{FE4F}',
'\u{FE50}',
'\u{FE51}',
'\u{FE52}',
'\u{FE54}',
'\u{FE55}',
'\u{FE56}',
'\u{FE57}',
'\u{FE58}',
'\u{FE59}',
'\u{FE5A}',
'\u{FE5B}',
'\u{FE5C}',
'\u{FE5D}',
'\u{FE5E}',
'\u{FE5F}',
'\u{FE60}',
'\u{FE61}',
'\u{FE62}',
'\u{FE63}',
'\u{FE64}',
'\u{FE65}',
'\u{FE66}',
'\u{FE68}',
'\u{FE69}',
'\u{FE6A}',
'\u{FE6B}',
'\u{FF01}',
'\u{FF02}',
'\u{FF03}',
'\u{FF04}',
'\u{FF05}',
'\u{FF06}',
'\u{FF07}',
'\u{FF08}',
'\u{FF09}',
'\u{FF0A}',
'\u{FF0B}',
'\u{FF0C}',
'\u{FF0D}',
'\u{FF0E}',
'\u{FF0F}',
'\u{FF1A}',
'\u{FF1B}',
'\u{FF1C}',
'\u{FF1D}',
'\u{FF1E}',
'\u{FF1F}',
'\u{FF20}',
'\u{FF3B}',
'\u{FF3C}',
'\u{FF3D}',
'\u{FF3E}',
'\u{FF3F}',
'\u{FF40}',
'\u{FF5B}',
'\u{FF5C}',
'\u{FF5D}',
'\u{FF5E}',
'\u{FF5F}',
'\u{FF60}',
'\u{FF61}',
'\u{FF62}',
'\u{FF63}',
'\u{FF64}',
'\u{FF65}',
'\u{FFE0}',
'\u{FFE1}',
'\u{FFE2}',
'\u{FFE3}',
'\u{FFE4}',
'\u{FFE5}',
'\u{FFE6}',
'\u{FFE8}',
'\u{FFE9}',
'\u{FFEA}',
'\u{FFEB}',
'\u{FFEC}',
'\u{FFED}',
'\u{FFEE}',
'\u{FFFC}',
'\u{FFFD}',
'\u{10100}',
'\u{10101}',
'\u{10102}',
'\u{10137}',
'\u{10138}',
'\u{10139}',
'\u{1013A}',
'\u{1013B}',
'\u{1013C}',
'\u{1013D}',
'\u{1013E}',
'\u{1013F}',
'\u{10179}',
'\u{1017A}',
'\u{1017B}',
'\u{1017C}',
'\u{1017D}',
'\u{1017E}',
'\u{1017F}',
'\u{10180}',
'\u{10181}',
'\u{10182}',
'\u{10183}',
'\u{10184}',
'\u{10185}',
'\u{10186}',
'\u{10187}',
'\u{10188}',
'\u{10189}',
'\u{1018C}',
'\u{1018D}',
'\u{1018E}',
'\u{10190}',
'\u{10191}',
'\u{10192}',
'\u{10193}',
'\u{10194}',
'\u{10195}',
'\u{10196}',
'\u{10197}',
'\u{10198}',
'\u{10199}',
'\u{1019A}',
'\u{1019B}',
'\u{1019C}',
'\u{101A0}',
'\u{101D0}',
'\u{101D1}',
'\u{101D2}',
'\u{101D3}',
'\u{101D4}',
'\u{101D5}',
'\u{101D6}',
'\u{101D7}',
'\u{101D8}',
'\u{101D9}',
'\u{101DA}',
'\u{101DB}',
'\u{101DC}',
'\u{101DD}',
'\u{101DE}',
'\u{101DF}',
'\u{101E0}',
'\u{101E1}',
'\u{101E2}',
'\u{101E3}',
'\u{101E4}',
'\u{101E5}',
'\u{101E6}',
'\u{101E7}',
'\u{101E8}',
'\u{101E9}',
'\u{101EA}',
'\u{101EB}',
'\u{101EC}',
'\u{101ED}',
'\u{101EE}',
'\u{101EF}',
'\u{101F0}',
'\u{101F1}',
'\u{101F2}',
'\u{101F3}',
'\u{101F4}',
'\u{101F5}',
'\u{101F6}',
'\u{101F7}',
'\u{101F8}',
'\u{101F9}',
'\u{101FA}',
'\u{101FB}',
'\u{101FC}',
'\u{1039F}',
'\u{103D0}',
'\u{1056F}',
'\u{10857}',
'\u{10877}',
'\u{10878}',
'\u{1091F}',
'\u{1093F}',
'\u{10A50}',
'\u{10A51}',
'\u{10A52}',
'\u{10A53}',
'\u{10A54}',
'\u{10A55}',
'\u{10A56}',
'\u{10A57}',
'\u{10A58}',
'\u{10A7F}',
'\u{10AC8}',
'\u{10AF0}',
'\u{10AF1}',
'\u{10AF2}',
'\u{10AF3}',
'\u{10AF4}',
'\u{10AF5}',
'\u{10AF6}',
'\u{10B39}',
'\u{10B3A}',
'\u{10B3B}',
'\u{10B3C}',
'\u{10B3D}',
'\u{10B3E}',
'\u{10B3F}',
'\u{10B99}',
'\u{10B9A}',
'\u{10B9B}',
'\u{10B9C}',
'\u{10D6E}',
'\u{10D8E}',
'\u{10D8F}',
'\u{10EAD}',
'\u{10F55}',
'\u{10F56}',
'\u{10F57}',
'\u{10F58}',
'\u{10F59}',
'\u{10F86}',
'\u{10F87}',
'\u{10F88}',
'\u{10F89}',
'\u{11047}',
'\u{11048}',
'\u{11049}',
'\u{1104A}',
'\u{1104B}',
'\u{1104C}',
'\u{1104D}',
'\u{110BB}',
'\u{110BC}',
'\u{110BE}',
'\u{110BF}',
'\u{110C0}',
'\u{110C1}',
'\u{11140}',
'\u{11141}',
'\u{11142}',
'\u{11143}',
'\u{11174}',
'\u{11175}',
'\u{111C5}',
'\u{111C6}',
'\u{111C7}',
'\u{111C8}',
'\u{111CD}',
'\u{111DB}',
'\u{111DD}',
'\u{111DE}',
'\u{111DF}',
'\u{11238}',
'\u{11239}',
'\u{1123A}',
'\u{1123B}',
'\u{1123C}',
'\u{1123D}',
'\u{112A9}',
'\u{113D4}',
'\u{113D5}',
'\u{113D7}',
'\u{113D8}',
'\u{1144B}',
'\u{1144C}',
'\u{1144D}',
'\u{1144E}',
'\u{1144F}',
'\u{1145A}',
'\u{1145B}',
'\u{1145D}',
'\u{114C6}',
'\u{115C1}',
'\u{115C2}',
'\u{115C3}',
'\u{115C4}',
'\u{115C5}',
'\u{115C6}',
'\u{115C7}',
'\u{115C8}',
'\u{115C9}',
'\u{115CA}',
'\u{115CB}',
'\u{115CC}',
'\u{115CD}',
'\u{115CE}',
'\u{115CF}',
'\u{115D0}',
'\u{115D1}',
'\u{115D2}',
'\u{115D3}',
'\u{115D4}',
'\u{115D5}',
'\u{115D6}',
'\u{115D7}',
'\u{11641}',
'\u{11642}',
'\u{11643}',
'\u{11660}',
'\u{11661}',
'\u{11662}',
'\u{11663}',
'\u{11664}',
'\u{11665}',
'\u{11666}',
'\u{11667}',
'\u{11668}',
'\u{11669}',
'\u{1166A}',
'\u{1166B}',
'\u{1166C}',
'\u{116B9}',
'\u{1173C}',
'\u{1173D}',
'\u{1173E}',
'\u{1173F}',
'\u{1183B}',
'\u{11944}',
'\u{11945}',
'\u{11946}',
'\u{119E2}',
'\u{11A3F}',
'\u{11A40}',
'\u{11A41}',
'\u{11A42}',
'\u{11A43}',
'\u{11A44}',
'\u{11A45}',
'\u{11A46}',
'\u{11A9A}',
'\u{11A9B}',
'\u{11A9C}',
'\u{11A9E}',
'\u{11A9F}',
'\u{11AA0}',
'\u{11AA1}',
'\u{11AA2}',
'\u{11B00}',
'\u{11B01}',
'\u{11B02}',
'\u{11B03}',
'\u{11B04}',
'\u{11B05}',
'\u{11B06}',
'\u{11B07}',
'\u{11B08}',
'\u{11B09}',
'\u{11BE1}',
'\u{11C41}',
'\u{11C42}',
'\u{11C43}',
'\u{11C44}',
'\u{11C45}',
'\u{11C70}',
'\u{11C71}',
'\u{11EF7}',
'\u{11EF8}',
'\u{11F43}',
'\u{11F44}',
'\u{11F45}',
'\u{11F46}',
'\u{11F47}',
'\u{11F48}',
'\u{11F49}',
'\u{11F4A}',
'\u{11F4B}',
'\u{11F4C}',
'\u{11F4D}',
'\u{11F4E}',
'\u{11F4F}',
'\u{11FD5}',
'\u{11FD6}',
'\u{11FD7}',
'\u{11FD8}',
'\u{11FD9}',
'\u{11FDA}',
'\u{11FDB}',
'\u{11FDC}',
'\u{11FDD}',
'\u{11FDE}',
'\u{11FDF}',
'\u{11FE0}',
'\u{11FE1}',
'\u{11FE2}',
'\u{11FE3}',
'\u{11FE4}',
'\u{11FE5}',
'\u{11FE6}',
'\u{11FE7}',
'\u{11FE8}',
'\u{11FE9}',
'\u{11FEA}',
'\u{11FEB}',
'\u{11FEC}',
'\u{11FED}',
'\u{11FEE}',
'\u{11FEF}',
'\u{11FF0}',
'\u{11FF1}',
'\u{11FFF}',
'\u{12470}',
'\u{12471}',
'\u{12472}',
'\u{12473}',
'\u{12474}',
'\u{12FF1}',
'\u{12FF2}',
'\u{16A6E}',
'\u{16A6F}',
'\u{16AF5}',
'\u{16B37}',
'\u{16B38}',
'\u{16B39}',
'\u{16B3A}',
'\u{16B3B}',
'\u{16B3C}',
'\u{16B3D}',
'\u{16B3E}',
'\u{16B3F}',
'\u{16B44}',
'\u{16B45}',
'\u{16D6D}',
'\u{16D6E}',
'\u{16D6F}',
'\u{16E97}',
'\u{16E98}',
'\u{16E99}',
'\u{16E9A}',
'\u{16FE2}',
'\u{1BC9C}',
'\u{1BC9F}',
'\u{1CC00}',
'\u{1CC01}',
'\u{1CC02}',
'\u{1CC03}',
'\u{1CC04}',
'\u{1CC05}',
'\u{1CC06}',
'\u{1CC07}',
'\u{1CC08}',
'\u{1CC09}',
'\u{1CC0A}',
'\u{1CC0B}',
'\u{1CC0C}',
'\u{1CC0D}',
'\u{1CC0E}',
'\u{1CC0F}',
'\u{1CC10}',
'\u{1CC11}',
'\u{1CC12}',
'\u{1CC13}',
'\u{1CC14}',
'\u{1CC15}',
'\u{1CC16}',
'\u{1CC17}',
'\u{1CC18}',
'\u{1CC19}',
'\u{1CC1A}',
'\u{1CC1B}',
'\u{1CC1C}',
'\u{1CC1D}',
'\u{1CC1E}',
'\u{1CC1F}',
'\u{1CC20}',
'\u{1CC21}',
'\u{1CC22}',
'\u{1CC23}',
'\u{1CC24}',
'\u{1CC25}',
'\u{1CC26}',
'\u{1CC27}',
'\u{1CC28}',
'\u{1CC29}',
'\u{1CC2A}',
'\u{1CC2B}',
'\u{1CC2C}',
'\u{1CC2D}',
'\u{1CC2E}',
'\u{1CC2F}',
'\u{1CC30}',
'\u{1CC31}',
'\u{1CC32}',
'\u{1CC33}',
'\u{1CC34}',
'\u{1CC35}',
'\u{1CC36}',
'\u{1CC37}',
'\u{1CC38}',
'\u{1CC39}',
'\u{1CC3A}',
'\u{1CC3B}',
'\u{1CC3C}',
'\u{1CC3D}',
'\u{1CC3E}',
'\u{1CC3F}',
'\u{1CC40}',
'\u{1CC41}',
'\u{1CC42}',
'\u{1CC43}',
'\u{1CC44}',
'\u{1CC45}',
'\u{1CC46}',
'\u{1CC47}',
'\u{1CC48}',
'\u{1CC49}',
'\u{1CC4A}',
'\u{1CC4B}',
'\u{1CC4C}',
'\u{1CC4D}',
'\u{1CC4E}',
'\u{1CC4F}',
'\u{1CC50}',
'\u{1CC51}',
'\u{1CC52}',
'\u{1CC53}',
'\u{1CC54}',
'\u{1CC55}',
'\u{1CC56}',
'\u{1CC57}',
'\u{1CC58}',
'\u{1CC59}',
'\u{1CC5A}',
'\u{1CC5B}',
'\u{1CC5C}',
'\u{1CC5D}',
'\u{1CC5E}',
'\u{1CC5F}',
'\u{1CC60}',
'\u{1CC61}',
'\u{1CC62}',
'\u{1CC63}',
'\u{1CC64}',
'\u{1CC65}',
'\u{1CC66}',
'\u{1CC67}',
'\u{1CC68}',
'\u{1CC69}',
'\u{1CC6A}',
'\u{1CC6B}',
'\u{1CC6C}',
'\u{1CC6D}',
'\u{1CC6E}',
'\u{1CC6F}',
'\u{1CC70}',
'\u{1CC71}',
'\u{1CC72}',
'\u{1CC73}',
'\u{1CC74}',
'\u{1CC75}',
'\u{1CC76}',
'\u{1CC77}',
'\u{1CC78}',
'\u{1CC79}',
'\u{1CC7A}',
'\u{1CC7B}',
'\u{1CC7C}',
'\u{1CC7D}',
'\u{1CC7E}',
'\u{1CC7F}',
'\u{1CC80}',
'\u{1CC81}',
'\u{1CC82}',
'\u{1CC83}',
'\u{1CC84}',
'\u{1CC85}',
'\u{1CC86}',
'\u{1CC87}',
'\u{1CC88}',
'\u{1CC89}',
'\u{1CC8A}',
'\u{1CC8B}',
'\u{1CC8C}',
'\u{1CC8D}',
'\u{1CC8E}',
'\u{1CC8F}',
'\u{1CC90}',
'\u{1CC91}',
'\u{1CC92}',
'\u{1CC93}',
'\u{1CC94}',
'\u{1CC95}',
'\u{1CC96}',
'\u{1CC97}',
'\u{1CC98}',
'\u{1CC99}',
'\u{1CC9A}',
'\u{1CC9B}',
'\u{1CC9C}',
'\u{1CC9D}',
'\u{1CC9E}',
'\u{1CC9F}',
'\u{1CCA0}',
'\u{1CCA1}',
'\u{1CCA2}',
'\u{1CCA3}',
'\u{1CCA4}',
'\u{1CCA5}',
'\u{1CCA6}',
'\u{1CCA7}',
'\u{1CCA8}',
'\u{1CCA9}',
'\u{1CCAA}',
'\u{1CCAB}',
'\u{1CCAC}',
'\u{1CCAD}',
'\u{1CCAE}',
'\u{1CCAF}',
'\u{1CCB0}',
'\u{1CCB1}',
'\u{1CCB2}',
'\u{1CCB3}',
'\u{1CCB4}',
'\u{1CCB5}',
'\u{1CCB6}',
'\u{1CCB7}',
'\u{1CCB8}',
'\u{1CCB9}',
'\u{1CCBA}',
'\u{1CCBB}',
'\u{1CCBC}',
'\u{1CCBD}',
'\u{1CCBE}',
'\u{1CCBF}',
'\u{1CCC0}',
'\u{1CCC1}',
'\u{1CCC2}',
'\u{1CCC3}',
'\u{1CCC4}',
'\u{1CCC5}',
'\u{1CCC6}',
'\u{1CCC7}',
'\u{1CCC8}',
'\u{1CCC9}',
'\u{1CCCA}',
'\u{1CCCB}',
'\u{1CCCC}',
'\u{1CCCD}',
'\u{1CCCE}',
'\u{1CCCF}',
'\u{1CCD0}',
'\u{1CCD1}',
'\u{1CCD2}',
'\u{1CCD3}',
'\u{1CCD4}',
'\u{1CCD5}',
'\u{1CCD6}',
'\u{1CCD7}',
'\u{1CCD8}',
'\u{1CCD9}',
'\u{1CCDA}',
'\u{1CCDB}',
'\u{1CCDC}',
'\u{1CCDD}',
'\u{1CCDE}',
'\u{1CCDF}',
'\u{1CCE0}',
'\u{1CCE1}',
'\u{1CCE2}',
'\u{1CCE3}',
'\u{1CCE4}',
'\u{1CCE5}',
'\u{1CCE6}',
'\u{1CCE7}',
'\u{1CCE8}',
'\u{1CCE9}',
'\u{1CCEA}',
'\u{1CCEB}',
'\u{1CCEC}',
'\u{1CCED}',
'\u{1CCEE}',
'\u{1CCEF}',
'\u{1CD00}',
'\u{1CD01}',
'\u{1CD02}',
'\u{1CD03}',
'\u{1CD04}',
'\u{1CD05}',
'\u{1CD06}',
'\u{1CD07}',
'\u{1CD08}',
'\u{1CD09}',
'\u{1CD0A}',
'\u{1CD0B}',
'\u{1CD0C}',
'\u{1CD0D}',
'\u{1CD0E}',
'\u{1CD0F}',
'\u{1CD10}',
'\u{1CD11}',
'\u{1CD12}',
'\u{1CD13}',
'\u{1CD14}',
'\u{1CD15}',
'\u{1CD16}',
'\u{1CD17}',
'\u{1CD18}',
'\u{1CD19}',
'\u{1CD1A}',
'\u{1CD1B}',
'\u{1CD1C}',
'\u{1CD1D}',
'\u{1CD1E}',
'\u{1CD1F}',
'\u{1CD20}',
'\u{1CD21}',
'\u{1CD22}',
'\u{1CD23}',
'\u{1CD24}',
'\u{1CD25}',
'\u{1CD26}',
'\u{1CD27}',
'\u{1CD28}',
'\u{1CD29}',
'\u{1CD2A}',
'\u{1CD2B}',
'\u{1CD2C}',
'\u{1CD2D}',
'\u{1CD2E}',
'\u{1CD2F}',
'\u{1CD30}',
'\u{1CD31}',
'\u{1CD32}',
'\u{1CD33}',
'\u{1CD34}',
'\u{1CD35}',
'\u{1CD36}',
'\u{1CD37}',
'\u{1CD38}',
'\u{1CD39}',
'\u{1CD3A}',
'\u{1CD3B}',
'\u{1CD3C}',
'\u{1CD3D}',
'\u{1CD3E}',
'\u{1CD3F}',
'\u{1CD40}',
'\u{1CD41}',
'\u{1CD42}',
'\u{1CD43}',
'\u{1CD44}',
'\u{1CD45}',
'\u{1CD46}',
'\u{1CD47}',
'\u{1CD48}',
'\u{1CD49}',
'\u{1CD4A}',
'\u{1CD4B}',
'\u{1CD4C}',
'\u{1CD4D}',
'\u{1CD4E}',
'\u{1CD4F}',
'\u{1CD50}',
'\u{1CD51}',
'\u{1CD52}',
'\u{1CD53}',
'\u{1CD54}',
'\u{1CD55}',
'\u{1CD56}',
'\u{1CD57}',
'\u{1CD58}',
'\u{1CD59}',
'\u{1CD5A}',
'\u{1CD5B}',
'\u{1CD5C}',
'\u{1CD5D}',
'\u{1CD5E}',
'\u{1CD5F}',
'\u{1CD60}',
'\u{1CD61}',
'\u{1CD62}',
'\u{1CD63}',
'\u{1CD64}',
'\u{1CD65}',
'\u{1CD66}',
'\u{1CD67}',
'\u{1CD68}',
'\u{1CD69}',
'\u{1CD6A}',
'\u{1CD6B}',
'\u{1CD6C}',
'\u{1CD6D}',
'\u{1CD6E}',
'\u{1CD6F}',
'\u{1CD70}',
'\u{1CD71}',
'\u{1CD72}',
'\u{1CD73}',
'\u{1CD74}',
'\u{1CD75}',
'\u{1CD76}',
'\u{1CD77}',
'\u{1CD78}',
'\u{1CD79}',
'\u{1CD7A}',
'\u{1CD7B}',
'\u{1CD7C}',
'\u{1CD7D}',
'\u{1CD7E}',
'\u{1CD7F}',
'\u{1CD80}',
'\u{1CD81}',
'\u{1CD82}',
'\u{1CD83}',
'\u{1CD84}',
'\u{1CD85}',
'\u{1CD86}',
'\u{1CD87}',
'\u{1CD88}',
'\u{1CD89}',
'\u{1CD8A}',
'\u{1CD8B}',
'\u{1CD8C}',
'\u{1CD8D}',
'\u{1CD8E}',
'\u{1CD8F}',
'\u{1CD90}',
'\u{1CD91}',
'\u{1CD92}',
'\u{1CD93}',
'\u{1CD94}',
'\u{1CD95}',
'\u{1CD96}',
'\u{1CD97}',
'\u{1CD98}',
'\u{1CD99}',
'\u{1CD9A}',
'\u{1CD9B}',
'\u{1CD9C}',
'\u{1CD9D}',
'\u{1CD9E}',
'\u{1CD9F}',
'\u{1CDA0}',
'\u{1CDA1}',
'\u{1CDA2}',
'\u{1CDA3}',
'\u{1CDA4}',
'\u{1CDA5}',
'\u{1CDA6}',
'\u{1CDA7}',
'\u{1CDA8}',
'\u{1CDA9}',
'\u{1CDAA}',
'\u{1CDAB}',
'\u{1CDAC}',
'\u{1CDAD}',
'\u{1CDAE}',
'\u{1CDAF}',
'\u{1CDB0}',
'\u{1CDB1}',
'\u{1CDB2}',
'\u{1CDB3}',
'\u{1CDB4}',
'\u{1CDB5}',
'\u{1CDB6}',
'\u{1CDB7}',
'\u{1CDB8}',
'\u{1CDB9}',
'\u{1CDBA}',
'\u{1CDBB}',
'\u{1CDBC}',
'\u{1CDBD}',
'\u{1CDBE}',
'\u{1CDBF}',
'\u{1CDC0}',
'\u{1CDC1}',
'\u{1CDC2}',
'\u{1CDC3}',
'\u{1CDC4}',
'\u{1CDC5}',
'\u{1CDC6}',
'\u{1CDC7}',
'\u{1CDC8}',
'\u{1CDC9}',
'\u{1CDCA}',
'\u{1CDCB}',
'\u{1CDCC}',
'\u{1CDCD}',
'\u{1CDCE}',
'\u{1CDCF}',
'\u{1CDD0}',
'\u{1CDD1}',
'\u{1CDD2}',
'\u{1CDD3}',
'\u{1CDD4}',
'\u{1CDD5}',
'\u{1CDD6}',
'\u{1CDD7}',
'\u{1CDD8}',
'\u{1CDD9}',
'\u{1CDDA}',
'\u{1CDDB}',
'\u{1CDDC}',
'\u{1CDDD}',
'\u{1CDDE}',
'\u{1CDDF}',
'\u{1CDE0}',
'\u{1CDE1}',
'\u{1CDE2}',
'\u{1CDE3}',
'\u{1CDE4}',
'\u{1CDE5}',
'\u{1CDE6}',
'\u{1CDE7}',
'\u{1CDE8}',
'\u{1CDE9}',
'\u{1CDEA}',
'\u{1CDEB}',
'\u{1CDEC}',
'\u{1CDED}',
'\u{1CDEE}',
'\u{1CDEF}',
'\u{1CDF0}',
'\u{1CDF1}',
'\u{1CDF2}',
'\u{1CDF3}',
'\u{1CDF4}',
'\u{1CDF5}',
'\u{1CDF6}',
'\u{1CDF7}',
'\u{1CDF8}',
'\u{1CDF9}',
'\u{1CDFA}',
'\u{1CDFB}',
'\u{1CDFC}',
'\u{1CDFD}',
'\u{1CDFE}',
'\u{1CDFF}',
'\u{1CE00}',
'\u{1CE01}',
'\u{1CE02}',
'\u{1CE03}',
'\u{1CE04}',
'\u{1CE05}',
'\u{1CE06}',
'\u{1CE07}',
'\u{1CE08}',
'\u{1CE09}',
'\u{1CE0A}',
'\u{1CE0B}',
'\u{1CE0C}',
'\u{1CE0D}',
'\u{1CE0E}',
'\u{1CE0F}',
'\u{1CE10}',
'\u{1CE11}',
'\u{1CE12}',
'\u{1CE13}',
'\u{1CE14}',
'\u{1CE15}',
'\u{1CE16}',
'\u{1CE17}',
'\u{1CE18}',
'\u{1CE19}',
'\u{1CE1A}',
'\u{1CE1B}',
'\u{1CE1C}',
'\u{1CE1D}',
'\u{1CE1E}',
'\u{1CE1F}',
'\u{1CE20}',
'\u{1CE21}',
'\u{1CE22}',
'\u{1CE23}',
'\u{1CE24}',
'\u{1CE25}',
'\u{1CE26}',
'\u{1CE27}',
'\u{1CE28}',
'\u{1CE29}',
'\u{1CE2A}',
'\u{1CE2B}',
'\u{1CE2C}',
'\u{1CE2D}',
'\u{1CE2E}',
'\u{1CE2F}',
'\u{1CE30}',
'\u{1CE31}',
'\u{1CE32}',
'\u{1CE33}',
'\u{1CE34}',
'\u{1CE35}',
'\u{1CE36}',
'\u{1CE37}',
'\u{1CE38}',
'\u{1CE39}',
'\u{1CE3A}',
'\u{1CE3B}',
'\u{1CE3C}',
'\u{1CE3D}',
'\u{1CE3E}',
'\u{1CE3F}',
'\u{1CE40}',
'\u{1CE41}',
'\u{1CE42}',
'\u{1CE43}',
'\u{1CE44}',
'\u{1CE45}',
'\u{1CE46}',
'\u{1CE47}',
'\u{1CE48}',
'\u{1CE49}',
'\u{1CE4A}',
'\u{1CE4B}',
'\u{1CE4C}',
'\u{1CE4D}',
'\u{1CE4E}',
'\u{1CE4F}',
'\u{1CE50}',
'\u{1CE51}',
'\u{1CE52}',
'\u{1CE53}',
'\u{1CE54}',
'\u{1CE55}',
'\u{1CE56}',
'\u{1CE57}',
'\u{1CE58}',
'\u{1CE59}',
'\u{1CE5A}',
'\u{1CE5B}',
'\u{1CE5C}',
'\u{1CE5D}',
'\u{1CE5E}',
'\u{1CE5F}',
'\u{1CE60}',
'\u{1CE61}',
'\u{1CE62}',
'\u{1CE63}',
'\u{1CE64}',
'\u{1CE65}',
'\u{1CE66}',
'\u{1CE67}',
'\u{1CE68}',
'\u{1CE69}',
'\u{1CE6A}',
'\u{1CE6B}',
'\u{1CE6C}',
'\u{1CE6D}',
'\u{1CE6E}',
'\u{1CE6F}',
'\u{1CE70}',
'\u{1CE71}',
'\u{1CE72}',
'\u{1CE73}',
'\u{1CE74}',
'\u{1CE75}',
'\u{1CE76}',
'\u{1CE77}',
'\u{1CE78}',
'\u{1CE79}',
'\u{1CE7A}',
'\u{1CE7B}',
'\u{1CE7C}',
'\u{1CE7D}',
'\u{1CE7E}',
'\u{1CE7F}',
'\u{1CE80}',
'\u{1CE81}',
'\u{1CE82}',
'\u{1CE83}',
'\u{1CE84}',
'\u{1CE85}',
'\u{1CE86}',
'\u{1CE87}',
'\u{1CE88}',
'\u{1CE89}',
'\u{1CE8A}',
'\u{1CE8B}',
'\u{1CE8C}',
'\u{1CE8D}',
'\u{1CE8E}',
'\u{1CE8F}',
'\u{1CE90}',
'\u{1CE91}',
'\u{1CE92}',
'\u{1CE93}',
'\u{1CE94}',
'\u{1CE95}',
'\u{1CE96}',
'\u{1CE97}',
'\u{1CE98}',
'\u{1CE99}',
'\u{1CE9A}',
'\u{1CE9B}',
'\u{1CE9C}',
'\u{1CE9D}',
'\u{1CE9E}',
'\u{1CE9F}',
'\u{1CEA0}',
'\u{1CEA1}',
'\u{1CEA2}',
'\u{1CEA3}',
'\u{1CEA4}',
'\u{1CEA5}',
'\u{1CEA6}',
'\u{1CEA7}',
'\u{1CEA8}',
'\u{1CEA9}',
'\u{1CEAA}',
'\u{1CEAB}',
'\u{1CEAC}',
'\u{1CEAD}',
'\u{1CEAE}',
'\u{1CEAF}',
'\u{1CEB0}',
'\u{1CEB1}',
'\u{1CEB2}',
'\u{1CEB3}',
'\u{1CF50}',
'\u{1CF51}',
'\u{1CF52}',
'\u{1CF53}',
'\u{1CF54}',
'\u{1CF55}',
'\u{1CF56}',
'\u{1CF57}',
'\u{1CF58}',
'\u{1CF59}',
'\u{1CF5A}',
'\u{1CF5B}',
'\u{1CF5C}',
'\u{1CF5D}',
'\u{1CF5E}',
'\u{1CF5F}',
'\u{1CF60}',
'\u{1CF61}',
'\u{1CF62}',
'\u{1CF63}',
'\u{1CF64}',
'\u{1CF65}',
'\u{1CF66}',
'\u{1CF67}',
'\u{1CF68}',
'\u{1CF69}',
'\u{1CF6A}',
'\u{1CF6B}',
'\u{1CF6C}',
'\u{1CF6D}',
'\u{1CF6E}',
'\u{1CF6F}',
'\u{1CF70}',
'\u{1CF71}',
'\u{1CF72}',
'\u{1CF73}',
'\u{1CF74}',
'\u{1CF75}',
'\u{1CF76}',
'\u{1CF77}',
'\u{1CF78}',
'\u{1CF79}',
'\u{1CF7A}',
'\u{1CF7B}',
'\u{1CF7C}',
'\u{1CF7D}',
'\u{1CF7E}',
'\u{1CF7F}',
'\u{1CF80}',
'\u{1CF81}',
'\u{1CF82}',
'\u{1CF83}',
'\u{1CF84}',
'\u{1CF85}',
'\u{1CF86}',
'\u{1CF87}',
'\u{1CF88}',
'\u{1CF89}',
'\u{1CF8A}',
'\u{1CF8B}',
'\u{1CF8C}',
'\u{1CF8D}',
'\u{1CF8E}',
'\u{1CF8F}',
'\u{1CF90}',
'\u{1CF91}',
'\u{1CF92}',
'\u{1CF93}',
'\u{1CF94}',
'\u{1CF95}',
'\u{1CF96}',
'\u{1CF97}',
'\u{1CF98}',
'\u{1CF99}',
'\u{1CF9A}',
'\u{1CF9B}',
'\u{1CF9C}',
'\u{1CF9D}',
'\u{1CF9E}',
'\u{1CF9F}',
'\u{1CFA0}',
'\u{1CFA1}',
'\u{1CFA2}',
'\u{1CFA3}',
'\u{1CFA4}',
'\u{1CFA5}',
'\u{1CFA6}',
'\u{1CFA7}',
'\u{1CFA8}',
'\u{1CFA9}',
'\u{1CFAA}',
'\u{1CFAB}',
'\u{1CFAC}',
'\u{1CFAD}',
'\u{1CFAE}',
'\u{1CFAF}',
'\u{1CFB0}',
'\u{1CFB1}',
'\u{1CFB2}',
'\u{1CFB3}',
'\u{1CFB4}',
'\u{1CFB5}',
'\u{1CFB6}',
'\u{1CFB7}',
'\u{1CFB8}',
'\u{1CFB9}',
'\u{1CFBA}',
'\u{1CFBB}',
'\u{1CFBC}',
'\u{1CFBD}',
'\u{1CFBE}',
'\u{1CFBF}',
'\u{1CFC0}',
'\u{1CFC1}',
'\u{1CFC2}',
'\u{1CFC3}',
'\u{1D000}',
'\u{1D001}',
'\u{1D002}',
'\u{1D003}',
'\u{1D004}',
'\u{1D005}',
'\u{1D006}',
'\u{1D007}',
'\u{1D008}',
'\u{1D009}',
'\u{1D00A}',
'\u{1D00B}',
'\u{1D00C}',
'\u{1D00D}',
'\u{1D00E}',
'\u{1D00F}',
'\u{1D010}',
'\u{1D011}',
'\u{1D012}',
'\u{1D013}',
'\u{1D014}',
'\u{1D015}',
'\u{1D016}',
'\u{1D017}',
'\u{1D018}',
'\u{1D019}',
'\u{1D01A}',
'\u{1D01B}',
'\u{1D01C}',
'\u{1D01D}',
'\u{1D01E}',
'\u{1D01F}',
'\u{1D020}',
'\u{1D021}',
'\u{1D022}',
'\u{1D023}',
'\u{1D024}',
'\u{1D025}',
'\u{1D026}',
'\u{1D027}',
'\u{1D028}',
'\u{1D029}',
'\u{1D02A}',
'\u{1D02B}',
'\u{1D02C}',
'\u{1D02D}',
'\u{1D02E}',
'\u{1D02F}',
'\u{1D030}',
'\u{1D031}',
'\u{1D032}',
'\u{1D033}',
'\u{1D034}',
'\u{1D035}',
'\u{1D036}',
'\u{1D037}',
'\u{1D038}',
'\u{1D039}',
'\u{1D03A}',
'\u{1D03B}',
'\u{1D03C}',
'\u{1D03D}',
'\u{1D03E}',
'\u{1D03F}',
'\u{1D040}',
'\u{1D041}',
'\u{1D042}',
'\u{1D043}',
'\u{1D044}',
'\u{1D045}',
'\u{1D046}',
'\u{1D047}',
'\u{1D048}',
'\u{1D049}',
'\u{1D04A}',
'\u{1D04B}',
'\u{1D04C}',
'\u{1D04D}',
'\u{1D04E}',
'\u{1D04F}',
'\u{1D050}',
'\u{1D051}',
'\u{1D052}',
'\u{1D053}',
'\u{1D054}',
'\u{1D055}',
'\u{1D056}',
'\u{1D057}',
'\u{1D058}',
'\u{1D059}',
'\u{1D05A}',
'\u{1D05B}',
'\u{1D05C}',
'\u{1D05D}',
'\u{1D05E}',
'\u{1D05F}',
'\u{1D060}',
'\u{1D061}',
'\u{1D062}',
'\u{1D063}',
'\u{1D064}',
'\u{1D065}',
'\u{1D066}',
'\u{1D067}',
'\u{1D068}',
'\u{1D069}',
'\u{1D06A}',
'\u{1D06B}',
'\u{1D06C}',
'\u{1D06D}',
'\u{1D06E}',
'\u{1D06F}',
'\u{1D070}',
'\u{1D071}',
'\u{1D072}',
'\u{1D073}',
'\u{1D074}',
'\u{1D075}',
'\u{1D076}',
'\u{1D077}',
'\u{1D078}',
'\u{1D079}',
'\u{1D07A}',
'\u{1D07B}',
'\u{1D07C}',
'\u{1D07D}',
'\u{1D07E}',
'\u{1D07F}',
'\u{1D080}',
'\u{1D081}',
'\u{1D082}',
'\u{1D083}',
'\u{1D084}',
'\u{1D085}',
'\u{1D086}',
'\u{1D087}',
'\u{1D088}',
'\u{1D089}',
'\u{1D08A}',
'\u{1D08B}',
'\u{1D08C}',
'\u{1D08D}',
'\u{1D08E}',
'\u{1D08F}',
'\u{1D090}',
'\u{1D091}',
'\u{1D092}',
'\u{1D093}',
'\u{1D094}',
'\u{1D095}',
'\u{1D096}',
'\u{1D097}',
'\u{1D098}',
'\u{1D099}',
'\u{1D09A}',
'\u{1D09B}',
'\u{1D09C}',
'\u{1D09D}',
'\u{1D09E}',
'\u{1D09F}',
'\u{1D0A0}',
'\u{1D0A1}',
'\u{1D0A2}',
'\u{1D0A3}',
'\u{1D0A4}',
'\u{1D0A5}',
'\u{1D0A6}',
'\u{1D0A7}',
'\u{1D0A8}',
'\u{1D0A9}',
'\u{1D0AA}',
'\u{1D0AB}',
'\u{1D0AC}',
'\u{1D0AD}',
'\u{1D0AE}',
'\u{1D0AF}',
'\u{1D0B0}',
'\u{1D0B1}',
'\u{1D0B2}',
'\u{1D0B3}',
'\u{1D0B4}',
'\u{1D0B5}',
'\u{1D0B6}',
'\u{1D0B7}',
'\u{1D0B8}',
'\u{1D0B9}',
'\u{1D0BA}',
'\u{1D0BB}',
'\u{1D0BC}',
'\u{1D0BD}',
'\u{1D0BE}',
'\u{1D0BF}',
'\u{1D0C0}',
'\u{1D0C1}',
'\u{1D0C2}',
'\u{1D0C3}',
'\u{1D0C4}',
'\u{1D0C5}',
'\u{1D0C6}',
'\u{1D0C7}',
'\u{1D0C8}',
'\u{1D0C9}',
'\u{1D0CA}',
'\u{1D0CB}',
'\u{1D0CC}',
'\u{1D0CD}',
'\u{1D0CE}',
'\u{1D0CF}',
'\u{1D0D0}',
'\u{1D0D1}',
'\u{1D0D2}',
'\u{1D0D3}',
'\u{1D0D4}',
'\u{1D0D5}',
'\u{1D0D6}',
'\u{1D0D7}',
'\u{1D0D8}',
'\u{1D0D9}',
'\u{1D0DA}',
'\u{1D0DB}',
'\u{1D0DC}',
'\u{1D0DD}',
'\u{1D0DE}',
'\u{1D0DF}',
'\u{1D0E0}',
'\u{1D0E1}',
'\u{1D0E2}',
'\u{1D0E3}',
'\u{1D0E4}',
'\u{1D0E5}',
'\u{1D0E6}',
'\u{1D0E7}',
'\u{1D0E8}',
'\u{1D0E9}',
'\u{1D0EA}',
'\u{1D0EB}',
'\u{1D0EC}',
'\u{1D0ED}',
'\u{1D0EE}',
'\u{1D0EF}',
'\u{1D0F0}',
'\u{1D0F1}',
'\u{1D0F2}',
'\u{1D0F3}',
'\u{1D0F4}',
'\u{1D0F5}',
'\u{1D100}',
'\u{1D101}',
'\u{1D102}',
'\u{1D103}',
'\u{1D104}',
'\u{1D105}',
'\u{1D106}',
'\u{1D107}',
'\u{1D108}',
'\u{1D109}',
'\u{1D10A}',
'\u{1D10B}',
'\u{1D10C}',
'\u{1D10D}',
'\u{1D10E}',
'\u{1D10F}',
'\u{1D110}',
'\u{1D111}',
'\u{1D112}',
'\u{1D113}',
'\u{1D114}',
'\u{1D115}',
'\u{1D116}',
'\u{1D117}',
'\u{1D118}',
'\u{1D119}',
'\u{1D11A}',
'\u{1D11B}',
'\u{1D11C}',
'\u{1D11D}',
'\u{1D11E}',
'\u{1D11F}',
'\u{1D120}',
'\u{1D121}',
'\u{1D122}',
'\u{1D123}',
'\u{1D124}',
'\u{1D125}',
'\u{1D126}',
'\u{1D129}',
'\u{1D12A}',
'\u{1D12B}',
'\u{1D12C}',
'\u{1D12D}',
'\u{1D12E}',
'\u{1D12F}',
'\u{1D130}',
'\u{1D131}',
'\u{1D132}',
'\u{1D133}',
'\u{1D134}',
'\u{1D135}',
'\u{1D136}',
'\u{1D137}',
'\u{1D138}',
'\u{1D139}',
'\u{1D13A}',
'\u{1D13B}',
'\u{1D13C}',
'\u{1D13D}',
'\u{1D13E}',
'\u{1D13F}',
'\u{1D140}',
'\u{1D141}',
'\u{1D142}',
'\u{1D143}',
'\u{1D144}',
'\u{1D145}',
'\u{1D146}',
'\u{1D147}',
'\u{1D148}',
'\u{1D149}',
'\u{1D14A}',
'\u{1D14B}',
'\u{1D14C}',
'\u{1D14D}',
'\u{1D14E}',
'\u{1D14F}',
'\u{1D150}',
'\u{1D151}',
'\u{1D152}',
'\u{1D153}',
'\u{1D154}',
'\u{1D155}',
'\u{1D156}',
'\u{1D157}',
'\u{1D158}',
'\u{1D159}',
'\u{1D15A}',
'\u{1D15B}',
'\u{1D15C}',
'\u{1D15D}',
'\u{1D15E}',
'\u{1D15F}',
'\u{1D160}',
'\u{1D161}',
'\u{1D162}',
'\u{1D163}',
'\u{1D164}',
'\u{1D16A}',
'\u{1D16B}',
'\u{1D16C}',
'\u{1D183}',
'\u{1D184}',
'\u{1D18C}',
'\u{1D18D}',
'\u{1D18E}',
'\u{1D18F}',
'\u{1D190}',
'\u{1D191}',
'\u{1D192}',
'\u{1D193}',
'\u{1D194}',
'\u{1D195}',
'\u{1D196}',
'\u{1D197}',
'\u{1D198}',
'\u{1D199}',
'\u{1D19A}',
'\u{1D19B}',
'\u{1D19C}',
'\u{1D19D}',
'\u{1D19E}',
'\u{1D19F}',
'\u{1D1A0}',
'\u{1D1A1}',
'\u{1D1A2}',
'\u{1D1A3}',
'\u{1D1A4}',
'\u{1D1A5}',
'\u{1D1A6}',
'\u{1D1A7}',
'\u{1D1A8}',
'\u{1D1A9}',
'\u{1D1AE}',
'\u{1D1AF}',
'\u{1D1B0}',
'\u{1D1B1}',
'\u{1D1B2}',
'\u{1D1B3}',
'\u{1D1B4}',
'\u{1D1B5}',
'\u{1D1B6}',
'\u{1D1B7}',
'\u{1D1B8}',
'\u{1D1B9}',
'\u{1D1BA}',
'\u{1D1BB}',
'\u{1D1BC}',
'\u{1D1BD}',
'\u{1D1BE}',
'\u{1D1BF}',
'\u{1D1C0}',
'\u{1D1C1}',
'\u{1D1C2}',
'\u{1D1C3}',
'\u{1D1C4}',
'\u{1D1C5}',
'\u{1D1C6}',
'\u{1D1C7}',
'\u{1D1C8}',
'\u{1D1C9}',
'\u{1D1CA}',
'\u{1D1CB}',
'\u{1D1CC}',
'\u{1D1CD}',
'\u{1D1CE}',
'\u{1D1CF}',
'\u{1D1D0}',
'\u{1D1D1}',
'\u{1D1D2}',
'\u{1D1D3}',
'\u{1D1D4}',
'\u{1D1D5}',
'\u{1D1D6}',
'\u{1D1D7}',
'\u{1D1D8}',
'\u{1D1D9}',
'\u{1D1DA}',
'\u{1D1DB}',
'\u{1D1DC}',
'\u{1D1DD}',
'\u{1D1DE}',
'\u{1D1DF}',
'\u{1D1E0}',
'\u{1D1E1}',
'\u{1D1E2}',
'\u{1D1E3}',
'\u{1D1E4}',
'\u{1D1E5}',
'\u{1D1E6}',
'\u{1D1E7}',
'\u{1D1E8}',
'\u{1D1E9}',
'\u{1D1EA}',
'\u{1D200}',
'\u{1D201}',
'\u{1D202}',
'\u{1D203}',
'\u{1D204}',
'\u{1D205}',
'\u{1D206}',
'\u{1D207}',
'\u{1D208}',
'\u{1D209}',
'\u{1D20A}',
'\u{1D20B}',
'\u{1D20C}',
'\u{1D20D}',
'\u{1D20E}',
'\u{1D20F}',
'\u{1D210}',
'\u{1D211}',
'\u{1D212}',
'\u{1D213}',
'\u{1D214}',
'\u{1D215}',
'\u{1D216}',
'\u{1D217}',
'\u{1D218}',
'\u{1D219}',
'\u{1D21A}',
'\u{1D21B}',
'\u{1D21C}',
'\u{1D21D}',
'\u{1D21E}',
'\u{1D21F}',
'\u{1D220}',
'\u{1D221}',
'\u{1D222}',
'\u{1D223}',
'\u{1D224}',
'\u{1D225}',
'\u{1D226}',
'\u{1D227}',
'\u{1D228}',
'\u{1D229}',
'\u{1D22A}',
'\u{1D22B}',
'\u{1D22C}',
'\u{1D22D}',
'\u{1D22E}',
'\u{1D22F}',
'\u{1D230}',
'\u{1D231}',
'\u{1D232}',
'\u{1D233}',
'\u{1D234}',
'\u{1D235}',
'\u{1D236}',
'\u{1D237}',
'\u{1D238}',
'\u{1D239}',
'\u{1D23A}',
'\u{1D23B}',
'\u{1D23C}',
'\u{1D23D}',
'\u{1D23E}',
'\u{1D23F}',
'\u{1D240}',
'\u{1D241}',
'\u{1D245}',
'\u{1D300}',
'\u{1D301}',
'\u{1D302}',
'\u{1D303}',
'\u{1D304}',
'\u{1D305}',
'\u{1D306}',
'\u{1D307}',
'\u{1D308}',
'\u{1D309}',
'\u{1D30A}',
'\u{1D30B}',
'\u{1D30C}',
'\u{1D30D}',
'\u{1D30E}',
'\u{1D30F}',
'\u{1D310}',
'\u{1D311}',
'\u{1D312}',
'\u{1D313}',
'\u{1D314}',
'\u{1D315}',
'\u{1D316}',
'\u{1D317}',
'\u{1D318}',
'\u{1D319}',
'\u{1D31A}',
'\u{1D31B}',
'\u{1D31C}',
'\u{1D31D}',
'\u{1D31E}',
'\u{1D31F}',
'\u{1D320}',
'\u{1D321}',
'\u{1D322}',
'\u{1D323}',
'\u{1D324}',
'\u{1D325}',
'\u{1D326}',
'\u{1D327}',
'\u{1D328}',
'\u{1D329}',
'\u{1D32A}',
'\u{1D32B}',
'\u{1D32C}',
'\u{1D32D}',
'\u{1D32E}',
'\u{1D32F}',
'\u{1D330}',
'\u{1D331}',
'\u{1D332}',
'\u{1D333}',
'\u{1D334}',
'\u{1D335}',
'\u{1D336}',
'\u{1D337}',
'\u{1D338}',
'\u{1D339}',
'\u{1D33A}',
'\u{1D33B}',
'\u{1D33C}',
'\u{1D33D}',
'\u{1D33E}',
'\u{1D33F}',
'\u{1D340}',
'\u{1D341}',
'\u{1D342}',
'\u{1D343}',
'\u{1D344}',
'\u{1D345}',
'\u{1D346}',
'\u{1D347}',
'\u{1D348}',
'\u{1D349}',
'\u{1D34A}',
'\u{1D34B}',
'\u{1D34C}',
'\u{1D34D}',
'\u{1D34E}',
'\u{1D34F}',
'\u{1D350}',
'\u{1D351}',
'\u{1D352}',
'\u{1D353}',
'\u{1D354}',
'\u{1D355}',
'\u{1D356}',
'\u{1D6C1}',
'\u{1D6DB}',
'\u{1D6FB}',
'\u{1D715}',
'\u{1D735}',
'\u{1D74F}',
'\u{1D76F}',
'\u{1D789}',
'\u{1D7A9}',
'\u{1D7C3}',
'\u{1D800}',
'\u{1D801}',
'\u{1D802}',
'\u{1D803}',
'\u{1D804}',
'\u{1D805}',
'\u{1D806}',
'\u{1D807}',
'\u{1D808}',
'\u{1D809}',
'\u{1D80A}',
'\u{1D80B}',
'\u{1D80C}',
'\u{1D80D}',
'\u{1D80E}',
'\u{1D80F}',
'\u{1D810}',
'\u{1D811}',
'\u{1D812}',
'\u{1D813}',
'\u{1D814}',
'\u{1D815}',
'\u{1D816}',
'\u{1D817}',
'\u{1D818}',
'\u{1D819}',
'\u{1D81A}',
'\u{1D81B}',
'\u{1D81C}',
'\u{1D81D}',
'\u{1D81E}',
'\u{1D81F}',
'\u{1D820}',
'\u{1D821}',
'\u{1D822}',
'\u{1D823}',
'\u{1D824}',
'\u{1D825}',
'\u{1D826}',
'\u{1D827}',
'\u{1D828}',
'\u{1D829}',
'\u{1D82A}',
'\u{1D82B}',
'\u{1D82C}',
'\u{1D82D}',
'\u{1D82E}',
'\u{1D82F}',
'\u{1D830}',
'\u{1D831}',
'\u{1D832}',
'\u{1D833}',
'\u{1D834}',
'\u{1D835}',
'\u{1D836}',
'\u{1D837}',
'\u{1D838}',
'\u{1D839}',
'\u{1D83A}',
'\u{1D83B}',
'\u{1D83C}',
'\u{1D83D}',
'\u{1D83E}',
'\u{1D83F}',
'\u{1D840}',
'\u{1D841}',
'\u{1D842}',
'\u{1D843}',
'\u{1D844}',
'\u{1D845}',
'\u{1D846}',
'\u{1D847}',
'\u{1D848}',
'\u{1D849}',
'\u{1D84A}',
'\u{1D84B}',
'\u{1D84C}',
'\u{1D84D}',
'\u{1D84E}',
'\u{1D84F}',
'\u{1D850}',
'\u{1D851}',
'\u{1D852}',
'\u{1D853}',
'\u{1D854}',
'\u{1D855}',
'\u{1D856}',
'\u{1D857}',
'\u{1D858}',
'\u{1D859}',
'\u{1D85A}',
'\u{1D85B}',
'\u{1D85C}',
'\u{1D85D}',
'\u{1D85E}',
'\u{1D85F}',
'\u{1D860}',
'\u{1D861}',
'\u{1D862}',
'\u{1D863}',
'\u{1D864}',
'\u{1D865}',
'\u{1D866}',
'\u{1D867}',
'\u{1D868}',
'\u{1D869}',
'\u{1D86A}',
'\u{1D86B}',
'\u{1D86C}',
'\u{1D86D}',
'\u{1D86E}',
'\u{1D86F}',
'\u{1D870}',
'\u{1D871}',
'\u{1D872}',
'\u{1D873}',
'\u{1D874}',
'\u{1D875}',
'\u{1D876}',
'\u{1D877}',
'\u{1D878}',
'\u{1D879}',
'\u{1D87A}',
'\u{1D87B}',
'\u{1D87C}',
'\u{1D87D}',
'\u{1D87E}',
'\u{1D87F}',
'\u{1D880}',
'\u{1D881}',
'\u{1D882}',
'\u{1D883}',
'\u{1D884}',
'\u{1D885}',
'\u{1D886}',
'\u{1D887}',
'\u{1D888}',
'\u{1D889}',
'\u{1D88A}',
'\u{1D88B}',
'\u{1D88C}',
'\u{1D88D}',
'\u{1D88E}',
'\u{1D88F}',
'\u{1D890}',
'\u{1D891}',
'\u{1D892}',
'\u{1D893}',
'\u{1D894}',
'\u{1D895}',
'\u{1D896}',
'\u{1D897}',
'\u{1D898}',
'\u{1D899}',
'\u{1D89A}',
'\u{1D89B}',
'\u{1D89C}',
'\u{1D89D}',
'\u{1D89E}',
'\u{1D89F}',
'\u{1D8A0}',
'\u{1D8A1}',
'\u{1D8A2}',
'\u{1D8A3}',
'\u{1D8A4}',
'\u{1D8A5}',
'\u{1D8A6}',
'\u{1D8A7}',
'\u{1D8A8}',
'\u{1D8A9}',
'\u{1D8AA}',
'\u{1D8AB}',
'\u{1D8AC}',
'\u{1D8AD}',
'\u{1D8AE}',
'\u{1D8AF}',
'\u{1D8B0}',
'\u{1D8B1}',
'\u{1D8B2}',
'\u{1D8B3}',
'\u{1D8B4}',
'\u{1D8B5}',
'\u{1D8B6}',
'\u{1D8B7}',
'\u{1D8B8}',
'\u{1D8B9}',
'\u{1D8BA}',
'\u{1D8BB}',
'\u{1D8BC}',
'\u{1D8BD}',
'\u{1D8BE}',
'\u{1D8BF}',
'\u{1D8C0}',
'\u{1D8C1}',
'\u{1D8C2}',
'\u{1D8C3}',
'\u{1D8C4}',
'\u{1D8C5}',
'\u{1D8C6}',
'\u{1D8C7}',
'\u{1D8C8}',
'\u{1D8C9}',
'\u{1D8CA}',
'\u{1D8CB}',
'\u{1D8CC}',
'\u{1D8CD}',
'\u{1D8CE}',
'\u{1D8CF}',
'\u{1D8D0}',
'\u{1D8D1}',
'\u{1D8D2}',
'\u{1D8D3}',
'\u{1D8D4}',
'\u{1D8D5}',
'\u{1D8D6}',
'\u{1D8D7}',
'\u{1D8D8}',
'\u{1D8D9}',
'\u{1D8DA}',
'\u{1D8DB}',
'\u{1D8DC}',
'\u{1D8DD}',
'\u{1D8DE}',
'\u{1D8DF}',
'\u{1D8E0}',
'\u{1D8E1}',
'\u{1D8E2}',
'\u{1D8E3}',
'\u{1D8E4}',
'\u{1D8E5}',
'\u{1D8E6}',
'\u{1D8E7}',
'\u{1D8E8}',
'\u{1D8E9}',
'\u{1D8EA}',
'\u{1D8EB}',
'\u{1D8EC}',
'\u{1D8ED}',
'\u{1D8EE}',
'\u{1D8EF}',
'\u{1D8F0}',
'\u{1D8F1}',
'\u{1D8F2}',
'\u{1D8F3}',
'\u{1D8F4}',
'\u{1D8F5}',
'\u{1D8F6}',
'\u{1D8F7}',
'\u{1D8F8}',
'\u{1D8F9}',
'\u{1D8FA}',
'\u{1D8FB}',
'\u{1D8FC}',
'\u{1D8FD}',
'\u{1D8FE}',
'\u{1D8FF}',
'\u{1D900}',
'\u{1D901}',
'\u{1D902}',
'\u{1D903}',
'\u{1D904}',
'\u{1D905}',
'\u{1D906}',
'\u{1D907}',
'\u{1D908}',
'\u{1D909}',
'\u{1D90A}',
'\u{1D90B}',
'\u{1D90C}',
'\u{1D90D}',
'\u{1D90E}',
'\u{1D90F}',
'\u{1D910}',
'\u{1D911}',
'\u{1D912}',
'\u{1D913}',
'\u{1D914}',
'\u{1D915}',
'\u{1D916}',
'\u{1D917}',
'\u{1D918}',
'\u{1D919}',
'\u{1D91A}',
'\u{1D91B}',
'\u{1D91C}',
'\u{1D91D}',
'\u{1D91E}',
'\u{1D91F}',
'\u{1D920}',
'\u{1D921}',
'\u{1D922}',
'\u{1D923}',
'\u{1D924}',
'\u{1D925}',
'\u{1D926}',
'\u{1D927}',
'\u{1D928}',
'\u{1D929}',
'\u{1D92A}',
'\u{1D92B}',
'\u{1D92C}',
'\u{1D92D}',
'\u{1D92E}',
'\u{1D92F}',
'\u{1D930}',
'\u{1D931}',
'\u{1D932}',
'\u{1D933}',
'\u{1D934}',
'\u{1D935}',
'\u{1D936}',
'\u{1D937}',
'\u{1D938}',
'\u{1D939}',
'\u{1D93A}',
'\u{1D93B}',
'\u{1D93C}',
'\u{1D93D}',
'\u{1D93E}',
'\u{1D93F}',
'\u{1D940}',
'\u{1D941}',
'\u{1D942}',
'\u{1D943}',
'\u{1D944}',
'\u{1D945}',
'\u{1D946}',
'\u{1D947}',
'\u{1D948}',
'\u{1D949}',
'\u{1D94A}',
'\u{1D94B}',
'\u{1D94C}',
'\u{1D94D}',
'\u{1D94E}',
'\u{1D94F}',
'\u{1D950}',
'\u{1D951}',
'\u{1D952}',
'\u{1D953}',
'\u{1D954}',
'\u{1D955}',
'\u{1D956}',
'\u{1D957}',
'\u{1D958}',
'\u{1D959}',
'\u{1D95A}',
'\u{1D95B}',
'\u{1D95C}',
'\u{1D95D}',
'\u{1D95E}',
'\u{1D95F}',
'\u{1D960}',
'\u{1D961}',
'\u{1D962}',
'\u{1D963}',
'\u{1D964}',
'\u{1D965}',
'\u{1D966}',
'\u{1D967}',
'\u{1D968}',
'\u{1D969}',
'\u{1D96A}',
'\u{1D96B}',
'\u{1D96C}',
'\u{1D96D}',
'\u{1D96E}',
'\u{1D96F}',
'\u{1D970}',
'\u{1D971}',
'\u{1D972}',
'\u{1D973}',
'\u{1D974}',
'\u{1D975}',
'\u{1D976}',
'\u{1D977}',
'\u{1D978}',
'\u{1D979}',
'\u{1D97A}',
'\u{1D97B}',
'\u{1D97C}',
'\u{1D97D}',
'\u{1D97E}',
'\u{1D97F}',
'\u{1D980}',
'\u{1D981}',
'\u{1D982}',
'\u{1D983}',
'\u{1D984}',
'\u{1D985}',
'\u{1D986}',
'\u{1D987}',
'\u{1D988}',
'\u{1D989}',
'\u{1D98A}',
'\u{1D98B}',
'\u{1D98C}',
'\u{1D98D}',
'\u{1D98E}',
'\u{1D98F}',
'\u{1D990}',
'\u{1D991}',
'\u{1D992}',
'\u{1D993}',
'\u{1D994}',
'\u{1D995}',
'\u{1D996}',
'\u{1D997}',
'\u{1D998}',
'\u{1D999}',
'\u{1D99A}',
'\u{1D99B}',
'\u{1D99C}',
'\u{1D99D}',
'\u{1D99E}',
'\u{1D99F}',
'\u{1D9A0}',
'\u{1D9A1}',
'\u{1D9A2}',
'\u{1D9A3}',
'\u{1D9A4}',
'\u{1D9A5}',
'\u{1D9A6}',
'\u{1D9A7}',
'\u{1D9A8}',
'\u{1D9A9}',
'\u{1D9AA}',
'\u{1D9AB}',
'\u{1D9AC}',
'\u{1D9AD}',
'\u{1D9AE}',
'\u{1D9AF}',
'\u{1D9B0}',
'\u{1D9B1}',
'\u{1D9B2}',
'\u{1D9B3}',
'\u{1D9B4}',
'\u{1D9B5}',
'\u{1D9B6}',
'\u{1D9B7}',
'\u{1D9B8}',
'\u{1D9B9}',
'\u{1D9BA}',
'\u{1D9BB}',
'\u{1D9BC}',
'\u{1D9BD}',
'\u{1D9BE}',
'\u{1D9BF}',
'\u{1D9C0}',
'\u{1D9C1}',
'\u{1D9C2}',
'\u{1D9C3}',
'\u{1D9C4}',
'\u{1D9C5}',
'\u{1D9C6}',
'\u{1D9C7}',
'\u{1D9C8}',
'\u{1D9C9}',
'\u{1D9CA}',
'\u{1D9CB}',
'\u{1D9CC}',
'\u{1D9CD}',
'\u{1D9CE}',
'\u{1D9CF}',
'\u{1D9D0}',
'\u{1D9D1}',
'\u{1D9D2}',
'\u{1D9D3}',
'\u{1D9D4}',
'\u{1D9D5}',
'\u{1D9D6}',
'\u{1D9D7}',
'\u{1D9D8}',
'\u{1D9D9}',
'\u{1D9DA}',
'\u{1D9DB}',
'\u{1D9DC}',
'\u{1D9DD}',
'\u{1D9DE}',
'\u{1D9DF}',
'\u{1D9E0}',
'\u{1D9E1}',
'\u{1D9E2}',
'\u{1D9E3}',
'\u{1D9E4}',
'\u{1D9E5}',
'\u{1D9E6}',
'\u{1D9E7}',
'\u{1D9E8}',
'\u{1D9E9}',
'\u{1D9EA}',
'\u{1D9EB}',
'\u{1D9EC}',
'\u{1D9ED}',
'\u{1D9EE}',
'\u{1D9EF}',
'\u{1D9F0}',
'\u{1D9F1}',
'\u{1D9F2}',
'\u{1D9F3}',
'\u{1D9F4}',
'\u{1D9F5}',
'\u{1D9F6}',
'\u{1D9F7}',
'\u{1D9F8}',
'\u{1D9F9}',
'\u{1D9FA}',
'\u{1D9FB}',
'\u{1D9FC}',
'\u{1D9FD}',
'\u{1D9FE}',
'\u{1D9FF}',
'\u{1DA37}',
'\u{1DA38}',
'\u{1DA39}',
'\u{1DA3A}',
'\u{1DA6D}',
'\u{1DA6E}',
'\u{1DA6F}',
'\u{1DA70}',
'\u{1DA71}',
'\u{1DA72}',
'\u{1DA73}',
'\u{1DA74}',
'\u{1DA76}',
'\u{1DA77}',
'\u{1DA78}',
'\u{1DA79}',
'\u{1DA7A}',
'\u{1DA7B}',
'\u{1DA7C}',
'\u{1DA7D}',
'\u{1DA7E}',
'\u{1DA7F}',
'\u{1DA80}',
'\u{1DA81}',
'\u{1DA82}',
'\u{1DA83}',
'\u{1DA85}',
'\u{1DA86}',
'\u{1DA87}',
'\u{1DA88}',
'\u{1DA89}',
'\u{1DA8A}',
'\u{1DA8B}',
'\u{1E14F}',
'\u{1E2FF}',
'\u{1E5FF}',
'\u{1E95E}',
'\u{1E95F}',
'\u{1ECAC}',
'\u{1ECB0}',
'\u{1ED2E}',
'\u{1EEF0}',
'\u{1EEF1}',
'\u{1F000}',
'\u{1F001}',
'\u{1F002}',
'\u{1F003}',
'\u{1F004}',
'\u{1F005}',
'\u{1F006}',
'\u{1F007}',
'\u{1F008}',
'\u{1F009}',
'\u{1F00A}',
'\u{1F00B}',
'\u{1F00C}',
'\u{1F00D}',
'\u{1F00E}',
'\u{1F00F}',
'\u{1F010}',
'\u{1F011}',
'\u{1F012}',
'\u{1F013}',
'\u{1F014}',
'\u{1F015}',
'\u{1F016}',
'\u{1F017}',
'\u{1F018}',
'\u{1F019}',
'\u{1F01A}',
'\u{1F01B}',
'\u{1F01C}',
'\u{1F01D}',
'\u{1F01E}',
'\u{1F01F}',
'\u{1F020}',
'\u{1F021}',
'\u{1F022}',
'\u{1F023}',
'\u{1F024}',
'\u{1F025}',
'\u{1F026}',
'\u{1F027}',
'\u{1F028}',
'\u{1F029}',
'\u{1F02A}',
'\u{1F02B}',
'\u{1F030}',
'\u{1F031}',
'\u{1F032}',
'\u{1F033}',
'\u{1F034}',
'\u{1F035}',
'\u{1F036}',
'\u{1F037}',
'\u{1F038}',
'\u{1F039}',
'\u{1F03A}',
'\u{1F03B}',
'\u{1F03C}',
'\u{1F03D}',
'\u{1F03E}',
'\u{1F03F}',
'\u{1F040}',
'\u{1F041}',
'\u{1F042}',
'\u{1F043}',
'\u{1F044}',
'\u{1F045}',
'\u{1F046}',
'\u{1F047}',
'\u{1F048}',
'\u{1F049}',
'\u{1F04A}',
'\u{1F04B}',
'\u{1F04C}',
'\u{1F04D}',
'\u{1F04E}',
'\u{1F04F}',
'\u{1F050}',
'\u{1F051}',
'\u{1F052}',
'\u{1F053}',
'\u{1F054}',
'\u{1F055}',
'\u{1F056}',
'\u{1F057}',
'\u{1F058}',
'\u{1F059}',
'\u{1F05A}',
'\u{1F05B}',
'\u{1F05C}',
'\u{1F05D}',
'\u{1F05E}',
'\u{1F05F}',
'\u{1F060}',
'\u{1F061}',
'\u{1F062}',
'\u{1F063}',
'\u{1F064}',
'\u{1F065}',
'\u{1F066}',
'\u{1F067}',
'\u{1F068}',
'\u{1F069}',
'\u{1F06A}',
'\u{1F06B}',
'\u{1F06C}',
'\u{1F06D}',
'\u{1F06E}',
'\u{1F06F}',
'\u{1F070}',
'\u{1F071}',
'\u{1F072}',
'\u{1F073}',
'\u{1F074}',
'\u{1F075}',
'\u{1F076}',
'\u{1F077}',
'\u{1F078}',
'\u{1F079}',
'\u{1F07A}',
'\u{1F07B}',
'\u{1F07C}',
'\u{1F07D}',
'\u{1F07E}',
'\u{1F07F}',
'\u{1F080}',
'\u{1F081}',
'\u{1F082}',
'\u{1F083}',
'\u{1F084}',
'\u{1F085}',
'\u{1F086}',
'\u{1F087}',
'\u{1F088}',
'\u{1F089}',
'\u{1F08A}',
'\u{1F08B}',
'\u{1F08C}',
'\u{1F08D}',
'\u{1F08E}',
'\u{1F08F}',
'\u{1F090}',
'\u{1F091}',
'\u{1F092}',
'\u{1F093}',
'\u{1F0A0}',
'\u{1F0A1}',
'\u{1F0A2}',
'\u{1F0A3}',
'\u{1F0A4}',
'\u{1F0A5}',
'\u{1F0A6}',
'\u{1F0A7}',
'\u{1F0A8}',
'\u{1F0A9}',
'\u{1F0AA}',
'\u{1F0AB}',
'\u{1F0AC}',
'\u{1F0AD}',
'\u{1F0AE}',
'\u{1F0B1}',
'\u{1F0B2}',
'\u{1F0B3}',
'\u{1F0B4}',
'\u{1F0B5}',
'\u{1F0B6}',
'\u{1F0B7}',
'\u{1F0B8}',
'\u{1F0B9}',
'\u{1F0BA}',
'\u{1F0BB}',
'\u{1F0BC}',
'\u{1F0BD}',
'\u{1F0BE}',
'\u{1F0BF}',
'\u{1F0C1}',
'\u{1F0C2}',
'\u{1F0C3}',
'\u{1F0C4}',
'\u{1F0C5}',
'\u{1F0C6}',
'\u{1F0C7}',
'\u{1F0C8}',
'\u{1F0C9}',
'\u{1F0CA}',
'\u{1F0CB}',
'\u{1F0CC}',
'\u{1F0CD}',
'\u{1F0CE}',
'\u{1F0CF}',
'\u{1F0D1}',
'\u{1F0D2}',
'\u{1F0D3}',
'\u{1F0D4}',
'\u{1F0D5}',
'\u{1F0D6}',
'\u{1F0D7}',
'\u{1F0D8}',
'\u{1F0D9}',
'\u{1F0DA}',
'\u{1F0DB}',
'\u{1F0DC}',
'\u{1F0DD}',
'\u{1F0DE}',
'\u{1F0DF}',
'\u{1F0E0}',
'\u{1F0E1}',
'\u{1F0E2}',
'\u{1F0E3}',
'\u{1F0E4}',
'\u{1F0E5}',
'\u{1F0E6}',
'\u{1F0E7}',
'\u{1F0E8}',
'\u{1F0E9}',
'\u{1F0EA}',
'\u{1F0EB}',
'\u{1F0EC}',
'\u{1F0ED}',
'\u{1F0EE}',
'\u{1F0EF}',
'\u{1F0F0}',
'\u{1F0F1}',
'\u{1F0F2}',
'\u{1F0F3}',
'\u{1F0F4}',
'\u{1F0F5}',
'\u{1F10D}',
'\u{1F10E}',
'\u{1F10F}',
'\u{1F110}',
'\u{1F111}',
'\u{1F112}',
'\u{1F113}',
'\u{1F114}',
'\u{1F115}',
'\u{1F116}',
'\u{1F117}',
'\u{1F118}',
'\u{1F119}',
'\u{1F11A}',
'\u{1F11B}',
'\u{1F11C}',
'\u{1F11D}',
'\u{1F11E}',
'\u{1F11F}',
'\u{1F120}',
'\u{1F121}',
'\u{1F122}',
'\u{1F123}',
'\u{1F124}',
'\u{1F125}',
'\u{1F126}',
'\u{1F127}',
'\u{1F128}',
'\u{1F129}',
'\u{1F12A}',
'\u{1F12B}',
'\u{1F12C}',
'\u{1F12D}',
'\u{1F12E}',
'\u{1F12F}',
'\u{1F130}',
'\u{1F131}',
'\u{1F132}',
'\u{1F133}',
'\u{1F134}',
'\u{1F135}',
'\u{1F136}',
'\u{1F137}',
'\u{1F138}',
'\u{1F139}',
'\u{1F13A}',
'\u{1F13B}',
'\u{1F13C}',
'\u{1F13D}',
'\u{1F13E}',
'\u{1F13F}',
'\u{1F140}',
'\u{1F141}',
'\u{1F142}',
'\u{1F143}',
'\u{1F144}',
'\u{1F145}',
'\u{1F146}',
'\u{1F147}',
'\u{1F148}',
'\u{1F149}',
'\u{1F14A}',
'\u{1F14B}',
'\u{1F14C}',
'\u{1F14D}',
'\u{1F14E}',
'\u{1F14F}',
'\u{1F150}',
'\u{1F151}',
'\u{1F152}',
'\u{1F153}',
'\u{1F154}',
'\u{1F155}',
'\u{1F156}',
'\u{1F157}',
'\u{1F158}',
'\u{1F159}',
'\u{1F15A}',
'\u{1F15B}',
'\u{1F15C}',
'\u{1F15D}',
'\u{1F15E}',
'\u{1F15F}',
'\u{1F160}',
'\u{1F161}',
'\u{1F162}',
'\u{1F163}',
'\u{1F164}',
'\u{1F165}',
'\u{1F166}',
'\u{1F167}',
'\u{1F168}',
'\u{1F169}',
'\u{1F16A}',
'\u{1F16B}',
'\u{1F16C}',
'\u{1F16D}',
'\u{1F16E}',
'\u{1F16F}',
'\u{1F170}',
'\u{1F171}',
'\u{1F172}',
'\u{1F173}',
'\u{1F174}',
'\u{1F175}',
'\u{1F176}',
'\u{1F177}',
'\u{1F178}',
'\u{1F179}',
'\u{1F17A}',
'\u{1F17B}',
'\u{1F17C}',
'\u{1F17D}',
'\u{1F17E}',
'\u{1F17F}',
'\u{1F180}',
'\u{1F181}',
'\u{1F182}',
'\u{1F183}',
'\u{1F184}',
'\u{1F185}',
'\u{1F186}',
'\u{1F187}',
'\u{1F188}',
'\u{1F189}',
'\u{1F18A}',
'\u{1F18B}',
'\u{1F18C}',
'\u{1F18D}',
'\u{1F18E}',
'\u{1F18F}',
'\u{1F190}',
'\u{1F191}',
'\u{1F192}',
'\u{1F193}',
'\u{1F194}',
'\u{1F195}',
'\u{1F196}',
'\u{1F197}',
'\u{1F198}',
'\u{1F199}',
'\u{1F19A}',
'\u{1F19B}',
'\u{1F19C}',
'\u{1F19D}',
'\u{1F19E}',
'\u{1F19F}',
'\u{1F1A0}',
'\u{1F1A1}',
'\u{1F1A2}',
'\u{1F1A3}',
'\u{1F1A4}',
'\u{1F1A5}',
'\u{1F1A6}',
'\u{1F1A7}',
'\u{1F1A8}',
'\u{1F1A9}',
'\u{1F1AA}',
'\u{1F1AB}',
'\u{1F1AC}',
'\u{1F1AD}',
'\u{1F1E6}',
'\u{1F1E7}',
'\u{1F1E8}',
'\u{1F1E9}',
'\u{1F1EA}',
'\u{1F1EB}',
'\u{1F1EC}',
'\u{1F1ED}',
'\u{1F1EE}',
'\u{1F1EF}',
'\u{1F1F0}',
'\u{1F1F1}',
'\u{1F1F2}',
'\u{1F1F3}',
'\u{1F1F4}',
'\u{1F1F5}',
'\u{1F1F6}',
'\u{1F1F7}',
'\u{1F1F8}',
'\u{1F1F9}',
'\u{1F1FA}',
'\u{1F1FB}',
'\u{1F1FC}',
'\u{1F1FD}',
'\u{1F1FE}',
'\u{1F1FF}',
'\u{1F200}',
'\u{1F201}',
'\u{1F202}',
'\u{1F210}',
'\u{1F211}',
'\u{1F212}',
'\u{1F213}',
'\u{1F214}',
'\u{1F215}',
'\u{1F216}',
'\u{1F217}',
'\u{1F218}',
'\u{1F219}',
'\u{1F21A}',
'\u{1F21B}',
'\u{1F21C}',
'\u{1F21D}',
'\u{1F21E}',
'\u{1F21F}',
'\u{1F220}',
'\u{1F221}',
'\u{1F222}',
'\u{1F223}',
'\u{1F224}',
'\u{1F225}',
'\u{1F226}',
'\u{1F227}',
'\u{1F228}',
'\u{1F229}',
'\u{1F22A}',
'\u{1F22B}',
'\u{1F22C}',
'\u{1F22D}',
'\u{1F22E}',
'\u{1F22F}',
'\u{1F230}',
'\u{1F231}',
'\u{1F232}',
'\u{1F233}',
'\u{1F234}',
'\u{1F235}',
'\u{1F236}',
'\u{1F237}',
'\u{1F238}',
'\u{1F239}',
'\u{1F23A}',
'\u{1F23B}',
'\u{1F240}',
'\u{1F241}',
'\u{1F242}',
'\u{1F243}',
'\u{1F244}',
'\u{1F245}',
'\u{1F246}',
'\u{1F247}',
'\u{1F248}',
'\u{1F250}',
'\u{1F251}',
'\u{1F260}',
'\u{1F261}',
'\u{1F262}',
'\u{1F263}',
'\u{1F264}',
'\u{1F265}',
'\u{1F300}',
'\u{1F301}',
'\u{1F302}',
'\u{1F303}',
'\u{1F304}',
'\u{1F305}',
'\u{1F306}',
'\u{1F307}',
'\u{1F308}',
'\u{1F309}',
'\u{1F30A}',
'\u{1F30B}',
'\u{1F30C}',
'\u{1F30D}',
'\u{1F30E}',
'\u{1F30F}',
'\u{1F310}',
'\u{1F311}',
'\u{1F312}',
'\u{1F313}',
'\u{1F314}',
'\u{1F315}',
'\u{1F316}',
'\u{1F317}',
'\u{1F318}',
'\u{1F319}',
'\u{1F31A}',
'\u{1F31B}',
'\u{1F31C}',
'\u{1F31D}',
'\u{1F31E}',
'\u{1F31F}',
'\u{1F320}',
'\u{1F321}',
'\u{1F322}',
'\u{1F323}',
'\u{1F324}',
'\u{1F325}',
'\u{1F326}',
'\u{1F327}',
'\u{1F328}',
'\u{1F329}',
'\u{1F32A}',
'\u{1F32B}',
'\u{1F32C}',
'\u{1F32D}',
'\u{1F32E}',
'\u{1F32F}',
'\u{1F330}',
'\u{1F331}',
'\u{1F332}',
'\u{1F333}',
'\u{1F334}',
'\u{1F335}',
'\u{1F336}',
'\u{1F337}',
'\u{1F338}',
'\u{1F339}',
'\u{1F33A}',
'\u{1F33B}',
'\u{1F33C}',
'\u{1F33D}',
'\u{1F33E}',
'\u{1F33F}',
'\u{1F340}',
'\u{1F341}',
'\u{1F342}',
'\u{1F343}',
'\u{1F344}',
'\u{1F345}',
'\u{1F346}',
'\u{1F347}',
'\u{1F348}',
'\u{1F349}',
'\u{1F34A}',
'\u{1F34B}',
'\u{1F34C}',
'\u{1F34D}',
'\u{1F34E}',
'\u{1F34F}',
'\u{1F350}',
'\u{1F351}',
'\u{1F352}',
'\u{1F353}',
'\u{1F354}',
'\u{1F355}',
'\u{1F356}',
'\u{1F357}',
'\u{1F358}',
'\u{1F359}',
'\u{1F35A}',
'\u{1F35B}',
'\u{1F35C}',
'\u{1F35D}',
'\u{1F35E}',
'\u{1F35F}',
'\u{1F360}',
'\u{1F361}',
'\u{1F362}',
'\u{1F363}',
'\u{1F364}',
'\u{1F365}',
'\u{1F366}',
'\u{1F367}',
'\u{1F368}',
'\u{1F369}',
'\u{1F36A}',
'\u{1F36B}',
'\u{1F36C}',
'\u{1F36D}',
'\u{1F36E}',
'\u{1F36F}',
'\u{1F370}',
'\u{1F371}',
'\u{1F372}',
'\u{1F373}',
'\u{1F374}',
'\u{1F375}',
'\u{1F376}',
'\u{1F377}',
'\u{1F378}',
'\u{1F379}',
'\u{1F37A}',
'\u{1F37B}',
'\u{1F37C}',
'\u{1F37D}',
'\u{1F37E}',
'\u{1F37F}',
'\u{1F380}',
'\u{1F381}',
'\u{1F382}',
'\u{1F383}',
'\u{1F384}',
'\u{1F385}',
'\u{1F386}',
'\u{1F387}',
'\u{1F388}',
'\u{1F389}',
'\u{1F38A}',
'\u{1F38B}',
'\u{1F38C}',
'\u{1F38D}',
'\u{1F38E}',
'\u{1F38F}',
'\u{1F390}',
'\u{1F391}',
'\u{1F392}',
'\u{1F393}',
'\u{1F394}',
'\u{1F395}',
'\u{1F396}',
'\u{1F397}',
'\u{1F398}',
'\u{1F399}',
'\u{1F39A}',
'\u{1F39B}',
'\u{1F39C}',
'\u{1F39D}',
'\u{1F39E}',
'\u{1F39F}',
'\u{1F3A0}',
'\u{1F3A1}',
'\u{1F3A2}',
'\u{1F3A3}',
'\u{1F3A4}',
'\u{1F3A5}',
'\u{1F3A6}',
'\u{1F3A7}',
'\u{1F3A8}',
'\u{1F3A9}',
'\u{1F3AA}',
'\u{1F3AB}',
'\u{1F3AC}',
'\u{1F3AD}',
'\u{1F3AE}',
'\u{1F3AF}',
'\u{1F3B0}',
'\u{1F3B1}',
'\u{1F3B2}',
'\u{1F3B3}',
'\u{1F3B4}',
'\u{1F3B5}',
'\u{1F3B6}',
'\u{1F3B7}',
'\u{1F3B8}',
'\u{1F3B9}',
'\u{1F3BA}',
'\u{1F3BB}',
'\u{1F3BC}',
'\u{1F3BD}',
'\u{1F3BE}',
'\u{1F3BF}',
'\u{1F3C0}',
'\u{1F3C1}',
'\u{1F3C2}',
'\u{1F3C3}',
'\u{1F3C4}',
'\u{1F3C5}',
'\u{1F3C6}',
'\u{1F3C7}',
'\u{1F3C8}',
'\u{1F3C9}',
'\u{1F3CA}',
'\u{1F3CB}',
'\u{1F3CC}',
'\u{1F3CD}',
'\u{1F3CE}',
'\u{1F3CF}',
'\u{1F3D0}',
'\u{1F3D1}',
'\u{1F3D2}',
'\u{1F3D3}',
'\u{1F3D4}',
'\u{1F3D5}',
'\u{1F3D6}',
'\u{1F3D7}',
'\u{1F3D8}',
'\u{1F3D9}',
'\u{1F3DA}',
'\u{1F3DB}',
'\u{1F3DC}',
'\u{1F3DD}',
'\u{1F3DE}',
'\u{1F3DF}',
'\u{1F3E0}',
'\u{1F3E1}',
'\u{1F3E2}',
'\u{1F3E3}',
'\u{1F3E4}',
'\u{1F3E5}',
'\u{1F3E6}',
'\u{1F3E7}',
'\u{1F3E8}',
'\u{1F3E9}',
'\u{1F3EA}',
'\u{1F3EB}',
'\u{1F3EC}',
'\u{1F3ED}',
'\u{1F3EE}',
'\u{1F3EF}',
'\u{1F3F0}',
'\u{1F3F1}',
'\u{1F3F2}',
'\u{1F3F3}',
'\u{1F3F4}',
'\u{1F3F5}',
'\u{1F3F6}',
'\u{1F3F7}',
'\u{1F3F8}',
'\u{1F3F9}',
'\u{1F3FA}',
'\u{1F3FB}',
'\u{1F3FC}',
'\u{1F3FD}',
'\u{1F3FE}',
'\u{1F3FF}',
'\u{1F400}',
'\u{1F401}',
'\u{1F402}',
'\u{1F403}',
'\u{1F404}',
'\u{1F405}',
'\u{1F406}',
'\u{1F407}',
'\u{1F408}',
'\u{1F409}',
'\u{1F40A}',
'\u{1F40B}',
'\u{1F40C}',
'\u{1F40D}',
'\u{1F40E}',
'\u{1F40F}',
'\u{1F410}',
'\u{1F411}',
'\u{1F412}',
'\u{1F413}',
'\u{1F414}',
'\u{1F415}',
'\u{1F416}',
'\u{1F417}',
'\u{1F418}',
'\u{1F419}',
'\u{1F41A}',
'\u{1F41B}',
'\u{1F41C}',
'\u{1F41D}',
'\u{1F41E}',
'\u{1F41F}',
'\u{1F420}',
'\u{1F421}',
'\u{1F422}',
'\u{1F423}',
'\u{1F424}',
'\u{1F425}',
'\u{1F426}',
'\u{1F427}',
'\u{1F428}',
'\u{1F429}',
'\u{1F42A}',
'\u{1F42B}',
'\u{1F42C}',
'\u{1F42D}',
'\u{1F42E}',
'\u{1F42F}',
'\u{1F430}',
'\u{1F431}',
'\u{1F432}',
'\u{1F433}',
'\u{1F434}',
'\u{1F435}',
'\u{1F436}',
'\u{1F437}',
'\u{1F438}',
'\u{1F439}',
'\u{1F43A}',
'\u{1F43B}',
'\u{1F43C}',
'\u{1F43D}',
'\u{1F43E}',
'\u{1F43F}',
'\u{1F440}',
'\u{1F441}',
'\u{1F442}',
'\u{1F443}',
'\u{1F444}',
'\u{1F445}',
'\u{1F446}',
'\u{1F447}',
'\u{1F448}',
'\u{1F449}',
'\u{1F44A}',
'\u{1F44B}',
'\u{1F44C}',
'\u{1F44D}',
'\u{1F44E}',
'\u{1F44F}',
'\u{1F450}',
'\u{1F451}',
'\u{1F452}',
'\u{1F453}',
'\u{1F454}',
'\u{1F455}',
'\u{1F456}',
'\u{1F457}',
'\u{1F458}',
'\u{1F459}',
'\u{1F45A}',
'\u{1F45B}',
'\u{1F45C}',
'\u{1F45D}',
'\u{1F45E}',
'\u{1F45F}',
'\u{1F460}',
'\u{1F461}',
'\u{1F462}',
'\u{1F463}',
'\u{1F464}',
'\u{1F465}',
'\u{1F466}',
'\u{1F467}',
'\u{1F468}',
'\u{1F469}',
'\u{1F46A}',
'\u{1F46B}',
'\u{1F46C}',
'\u{1F46D}',
'\u{1F46E}',
'\u{1F46F}',
'\u{1F470}',
'\u{1F471}',
'\u{1F472}',
'\u{1F473}',
'\u{1F474}',
'\u{1F475}',
'\u{1F476}',
'\u{1F477}',
'\u{1F478}',
'\u{1F479}',
'\u{1F47A}',
'\u{1F47B}',
'\u{1F47C}',
'\u{1F47D}',
'\u{1F47E}',
'\u{1F47F}',
'\u{1F480}',
'\u{1F481}',
'\u{1F482}',
'\u{1F483}',
'\u{1F484}',
'\u{1F485}',
'\u{1F486}',
'\u{1F487}',
'\u{1F488}',
'\u{1F489}',
'\u{1F48A}',
'\u{1F48B}',
'\u{1F48C}',
'\u{1F48D}',
'\u{1F48E}',
'\u{1F48F}',
'\u{1F490}',
'\u{1F491}',
'\u{1F492}',
'\u{1F493}',
'\u{1F494}',
'\u{1F495}',
'\u{1F496}',
'\u{1F497}',
'\u{1F498}',
'\u{1F499}',
'\u{1F49A}',
'\u{1F49B}',
'\u{1F49C}',
'\u{1F49D}',
'\u{1F49E}',
'\u{1F49F}',
'\u{1F4A0}',
'\u{1F4A1}',
'\u{1F4A2}',
'\u{1F4A3}',
'\u{1F4A4}',
'\u{1F4A5}',
'\u{1F4A6}',
'\u{1F4A7}',
'\u{1F4A8}',
'\u{1F4A9}',
'\u{1F4AA}',
'\u{1F4AB}',
'\u{1F4AC}',
'\u{1F4AD}',
'\u{1F4AE}',
'\u{1F4AF}',
'\u{1F4B0}',
'\u{1F4B1}',
'\u{1F4B2}',
'\u{1F4B3}',
'\u{1F4B4}',
'\u{1F4B5}',
'\u{1F4B6}',
'\u{1F4B7}',
'\u{1F4B8}',
'\u{1F4B9}',
'\u{1F4BA}',
'\u{1F4BB}',
'\u{1F4BC}',
'\u{1F4BD}',
'\u{1F4BE}',
'\u{1F4BF}',
'\u{1F4C0}',
'\u{1F4C1}',
'\u{1F4C2}',
'\u{1F4C3}',
'\u{1F4C4}',
'\u{1F4C5}',
'\u{1F4C6}',
'\u{1F4C7}',
'\u{1F4C8}',
'\u{1F4C9}',
'\u{1F4CA}',
'\u{1F4CB}',
'\u{1F4CC}',
'\u{1F4CD}',
'\u{1F4CE}',
'\u{1F4CF}',
'\u{1F4D0}',
'\u{1F4D1}',
'\u{1F4D2}',
'\u{1F4D3}',
'\u{1F4D4}',
'\u{1F4D5}',
'\u{1F4D6}',
'\u{1F4D7}',
'\u{1F4D8}',
'\u{1F4D9}',
'\u{1F4DA}',
'\u{1F4DB}',
'\u{1F4DC}',
'\u{1F4DD}',
'\u{1F4DE}',
'\u{1F4DF}',
'\u{1F4E0}',
'\u{1F4E1}',
'\u{1F4E2}',
'\u{1F4E3}',
'\u{1F4E4}',
'\u{1F4E5}',
'\u{1F4E6}',
'\u{1F4E7}',
'\u{1F4E8}',
'\u{1F4E9}',
'\u{1F4EA}',
'\u{1F4EB}',
'\u{1F4EC}',
'\u{1F4ED}',
'\u{1F4EE}',
'\u{1F4EF}',
'\u{1F4F0}',
'\u{1F4F1}',
'\u{1F4F2}',
'\u{1F4F3}',
'\u{1F4F4}',
'\u{1F4F5}',
'\u{1F4F6}',
'\u{1F4F7}',
'\u{1F4F8}',
'\u{1F4F9}',
'\u{1F4FA}',
'\u{1F4FB}',
'\u{1F4FC}',
'\u{1F4FD}',
'\u{1F4FE}',
'\u{1F4FF}',
'\u{1F500}',
'\u{1F501}',
'\u{1F502}',
'\u{1F503}',
'\u{1F504}',
'\u{1F505}',
'\u{1F506}',
'\u{1F507}',
'\u{1F508}',
'\u{1F509}',
'\u{1F50A}',
'\u{1F50B}',
'\u{1F50C}',
'\u{1F50D}',
'\u{1F50E}',
'\u{1F50F}',
'\u{1F510}',
'\u{1F511}',
'\u{1F512}',
'\u{1F513}',
'\u{1F514}',
'\u{1F515}',
'\u{1F516}',
'\u{1F517}',
'\u{1F518}',
'\u{1F519}',
'\u{1F51A}',
'\u{1F51B}',
'\u{1F51C}',
'\u{1F51D}',
'\u{1F51E}',
'\u{1F51F}',
'\u{1F520}',
'\u{1F521}',
'\u{1F522}',
'\u{1F523}',
'\u{1F524}',
'\u{1F525}',
'\u{1F526}',
'\u{1F527}',
'\u{1F528}',
'\u{1F529}',
'\u{1F52A}',
'\u{1F52B}',
'\u{1F52C}',
'\u{1F52D}',
'\u{1F52E}',
'\u{1F52F}',
'\u{1F530}',
'\u{1F531}',
'\u{1F532}',
'\u{1F533}',
'\u{1F534}',
'\u{1F535}',
'\u{1F536}',
'\u{1F537}',
'\u{1F538}',
'\u{1F539}',
'\u{1F53A}',
'\u{1F53B}',
'\u{1F53C}',
'\u{1F53D}',
'\u{1F53E}',
'\u{1F53F}',
'\u{1F540}',
'\u{1F541}',
'\u{1F542}',
'\u{1F543}',
'\u{1F544}',
'\u{1F545}',
'\u{1F546}',
'\u{1F547}',
'\u{1F548}',
'\u{1F549}',
'\u{1F54A}',
'\u{1F54B}',
'\u{1F54C}',
'\u{1F54D}',
'\u{1F54E}',
'\u{1F54F}',
'\u{1F550}',
'\u{1F551}',
'\u{1F552}',
'\u{1F553}',
'\u{1F554}',
'\u{1F555}',
'\u{1F556}',
'\u{1F557}',
'\u{1F558}',
'\u{1F559}',
'\u{1F55A}',
'\u{1F55B}',
'\u{1F55C}',
'\u{1F55D}',
'\u{1F55E}',
'\u{1F55F}',
'\u{1F560}',
'\u{1F561}',
'\u{1F562}',
'\u{1F563}',
'\u{1F564}',
'\u{1F565}',
'\u{1F566}',
'\u{1F567}',
'\u{1F568}',
'\u{1F569}',
'\u{1F56A}',
'\u{1F56B}',
'\u{1F56C}',
'\u{1F56D}',
'\u{1F56E}',
'\u{1F56F}',
'\u{1F570}',
'\u{1F571}',
'\u{1F572}',
'\u{1F573}',
'\u{1F574}',
'\u{1F575}',
'\u{1F576}',
'\u{1F577}',
'\u{1F578}',
'\u{1F579}',
'\u{1F57A}',
'\u{1F57B}',
'\u{1F57C}',
'\u{1F57D}',
'\u{1F57E}',
'\u{1F57F}',
'\u{1F580}',
'\u{1F581}',
'\u{1F582}',
'\u{1F583}',
'\u{1F584}',
'\u{1F585}',
'\u{1F586}',
'\u{1F587}',
'\u{1F588}',
'\u{1F589}',
'\u{1F58A}',
'\u{1F58B}',
'\u{1F58C}',
'\u{1F58D}',
'\u{1F58E}',
'\u{1F58F}',
'\u{1F590}',
'\u{1F591}',
'\u{1F592}',
'\u{1F593}',
'\u{1F594}',
'\u{1F595}',
'\u{1F596}',
'\u{1F597}',
'\u{1F598}',
'\u{1F599}',
'\u{1F59A}',
'\u{1F59B}',
'\u{1F59C}',
'\u{1F59D}',
'\u{1F59E}',
'\u{1F59F}',
'\u{1F5A0}',
'\u{1F5A1}',
'\u{1F5A2}',
'\u{1F5A3}',
'\u{1F5A4}',
'\u{1F5A5}',
'\u{1F5A6}',
'\u{1F5A7}',
'\u{1F5A8}',
'\u{1F5A9}',
'\u{1F5AA}',
'\u{1F5AB}',
'\u{1F5AC}',
'\u{1F5AD}',
'\u{1F5AE}',
'\u{1F5AF}',
'\u{1F5B0}',
'\u{1F5B1}',
'\u{1F5B2}',
'\u{1F5B3}',
'\u{1F5B4}',
'\u{1F5B5}',
'\u{1F5B6}',
'\u{1F5B7}',
'\u{1F5B8}',
'\u{1F5B9}',
'\u{1F5BA}',
'\u{1F5BB}',
'\u{1F5BC}',
'\u{1F5BD}',
'\u{1F5BE}',
'\u{1F5BF}',
'\u{1F5C0}',
'\u{1F5C1}',
'\u{1F5C2}',
'\u{1F5C3}',
'\u{1F5C4}',
'\u{1F5C5}',
'\u{1F5C6}',
'\u{1F5C7}',
'\u{1F5C8}',
'\u{1F5C9}',
'\u{1F5CA}',
'\u{1F5CB}',
'\u{1F5CC}',
'\u{1F5CD}',
'\u{1F5CE}',
'\u{1F5CF}',
'\u{1F5D0}',
'\u{1F5D1}',
'\u{1F5D2}',
'\u{1F5D3}',
'\u{1F5D4}',
'\u{1F5D5}',
'\u{1F5D6}',
'\u{1F5D7}',
'\u{1F5D8}',
'\u{1F5D9}',
'\u{1F5DA}',
'\u{1F5DB}',
'\u{1F5DC}',
'\u{1F5DD}',
'\u{1F5DE}',
'\u{1F5DF}',
'\u{1F5E0}',
'\u{1F5E1}',
'\u{1F5E2}',
'\u{1F5E3}',
'\u{1F5E4}',
'\u{1F5E5}',
'\u{1F5E6}',
'\u{1F5E7}',
'\u{1F5E8}',
'\u{1F5E9}',
'\u{1F5EA}',
'\u{1F5EB}',
'\u{1F5EC}',
'\u{1F5ED}',
'\u{1F5EE}',
'\u{1F5EF}',
'\u{1F5F0}',
'\u{1F5F1}',
'\u{1F5F2}',
'\u{1F5F3}',
'\u{1F5F4}',
'\u{1F5F5}',
'\u{1F5F6}',
'\u{1F5F7}',
'\u{1F5F8}',
'\u{1F5F9}',
'\u{1F5FA}',
'\u{1F5FB}',
'\u{1F5FC}',
'\u{1F5FD}',
'\u{1F5FE}',
'\u{1F5FF}',
'\u{1F600}',
'\u{1F601}',
'\u{1F602}',
'\u{1F603}',
'\u{1F604}',
'\u{1F605}',
'\u{1F606}',
'\u{1F607}',
'\u{1F608}',
'\u{1F609}',
'\u{1F60A}',
'\u{1F60B}',
'\u{1F60C}',
'\u{1F60D}',
'\u{1F60E}',
'\u{1F60F}',
'\u{1F610}',
'\u{1F611}',
'\u{1F612}',
'\u{1F613}',
'\u{1F614}',
'\u{1F615}',
'\u{1F616}',
'\u{1F617}',
'\u{1F618}',
'\u{1F619}',
'\u{1F61A}',
'\u{1F61B}',
'\u{1F61C}',
'\u{1F61D}',
'\u{1F61E}',
'\u{1F61F}',
'\u{1F620}',
'\u{1F621}',
'\u{1F622}',
'\u{1F623}',
'\u{1F624}',
'\u{1F625}',
'\u{1F626}',
'\u{1F627}',
'\u{1F628}',
'\u{1F629}',
'\u{1F62A}',
'\u{1F62B}',
'\u{1F62C}',
'\u{1F62D}',
'\u{1F62E}',
'\u{1F62F}',
'\u{1F630}',
'\u{1F631}',
'\u{1F632}',
'\u{1F633}',
'\u{1F634}',
'\u{1F635}',
'\u{1F636}',
'\u{1F637}',
'\u{1F638}',
'\u{1F639}',
'\u{1F63A}',
'\u{1F63B}',
'\u{1F63C}',
'\u{1F63D}',
'\u{1F63E}',
'\u{1F63F}',
'\u{1F640}',
'\u{1F641}',
'\u{1F642}',
'\u{1F643}',
'\u{1F644}',
'\u{1F645}',
'\u{1F646}',
'\u{1F647}',
'\u{1F648}',
'\u{1F649}',
'\u{1F64A}',
'\u{1F64B}',
'\u{1F64C}',
'\u{1F64D}',
'\u{1F64E}',
'\u{1F64F}',
'\u{1F650}',
'\u{1F651}',
'\u{1F652}',
'\u{1F653}',
'\u{1F654}',
'\u{1F655}',
'\u{1F656}',
'\u{1F657}',
'\u{1F658}',
'\u{1F659}',
'\u{1F65A}',
'\u{1F65B}',
'\u{1F65C}',
'\u{1F65D}',
'\u{1F65E}',
'\u{1F65F}',
'\u{1F660}',
'\u{1F661}',
'\u{1F662}',
'\u{1F663}',
'\u{1F664}',
'\u{1F665}',
'\u{1F666}',
'\u{1F667}',
'\u{1F668}',
'\u{1F669}',
'\u{1F66A}',
'\u{1F66B}',
'\u{1F66C}',
'\u{1F66D}',
'\u{1F66E}',
'\u{1F66F}',
'\u{1F670}',
'\u{1F671}',
'\u{1F672}',
'\u{1F673}',
'\u{1F674}',
'\u{1F675}',
'\u{1F676}',
'\u{1F677}',
'\u{1F678}',
'\u{1F679}',
'\u{1F67A}',
'\u{1F67B}',
'\u{1F67C}',
'\u{1F67D}',
'\u{1F67E}',
'\u{1F67F}',
'\u{1F680}',
'\u{1F681}',
'\u{1F682}',
'\u{1F683}',
'\u{1F684}',
'\u{1F685}',
'\u{1F686}',
'\u{1F687}',
'\u{1F688}',
'\u{1F689}',
'\u{1F68A}',
'\u{1F68B}',
'\u{1F68C}',
'\u{1F68D}',
'\u{1F68E}',
'\u{1F68F}',
'\u{1F690}',
'\u{1F691}',
'\u{1F692}',
'\u{1F693}',
'\u{1F694}',
'\u{1F695}',
'\u{1F696}',
'\u{1F697}',
'\u{1F698}',
'\u{1F699}',
'\u{1F69A}',
'\u{1F69B}',
'\u{1F69C}',
'\u{1F69D}',
'\u{1F69E}',
'\u{1F69F}',
'\u{1F6A0}',
'\u{1F6A1}',
'\u{1F6A2}',
'\u{1F6A3}',
'\u{1F6A4}',
'\u{1F6A5}',
'\u{1F6A6}',
'\u{1F6A7}',
'\u{1F6A8}',
'\u{1F6A9}',
'\u{1F6AA}',
'\u{1F6AB}',
'\u{1F6AC}',
'\u{1F6AD}',
'\u{1F6AE}',
'\u{1F6AF}',
'\u{1F6B0}',
'\u{1F6B1}',
'\u{1F6B2}',
'\u{1F6B3}',
'\u{1F6B4}',
'\u{1F6B5}',
'\u{1F6B6}',
'\u{1F6B7}',
'\u{1F6B8}',
'\u{1F6B9}',
'\u{1F6BA}',
'\u{1F6BB}',
'\u{1F6BC}',
'\u{1F6BD}',
'\u{1F6BE}',
'\u{1F6BF}',
'\u{1F6C0}',
'\u{1F6C1}',
'\u{1F6C2}',
'\u{1F6C3}',
'\u{1F6C4}',
'\u{1F6C5}',
'\u{1F6C6}',
'\u{1F6C7}',
'\u{1F6C8}',
'\u{1F6C9}',
'\u{1F6CA}',
'\u{1F6CB}',
'\u{1F6CC}',
'\u{1F6CD}',
'\u{1F6CE}',
'\u{1F6CF}',
'\u{1F6D0}',
'\u{1F6D1}',
'\u{1F6D2}',
'\u{1F6D3}',
'\u{1F6D4}',
'\u{1F6D5}',
'\u{1F6D6}',
'\u{1F6D7}',
'\u{1F6DC}',
'\u{1F6DD}',
'\u{1F6DE}',
'\u{1F6DF}',
'\u{1F6E0}',
'\u{1F6E1}',
'\u{1F6E2}',
'\u{1F6E3}',
'\u{1F6E4}',
'\u{1F6E5}',
'\u{1F6E6}',
'\u{1F6E7}',
'\u{1F6E8}',
'\u{1F6E9}',
'\u{1F6EA}',
'\u{1F6EB}',
'\u{1F6EC}',
'\u{1F6F0}',
'\u{1F6F1}',
'\u{1F6F2}',
'\u{1F6F3}',
'\u{1F6F4}',
'\u{1F6F5}',
'\u{1F6F6}',
'\u{1F6F7}',
'\u{1F6F8}',
'\u{1F6F9}',
'\u{1F6FA}',
'\u{1F6FB}',
'\u{1F6FC}',
'\u{1F700}',
'\u{1F701}',
'\u{1F702}',
'\u{1F703}',
'\u{1F704}',
'\u{1F705}',
'\u{1F706}',
'\u{1F707}',
'\u{1F708}',
'\u{1F709}',
'\u{1F70A}',
'\u{1F70B}',
'\u{1F70C}',
'\u{1F70D}',
'\u{1F70E}',
'\u{1F70F}',
'\u{1F710}',
'\u{1F711}',
'\u{1F712}',
'\u{1F713}',
'\u{1F714}',
'\u{1F715}',
'\u{1F716}',
'\u{1F717}',
'\u{1F718}',
'\u{1F719}',
'\u{1F71A}',
'\u{1F71B}',
'\u{1F71C}',
'\u{1F71D}',
'\u{1F71E}',
'\u{1F71F}',
'\u{1F720}',
'\u{1F721}',
'\u{1F722}',
'\u{1F723}',
'\u{1F724}',
'\u{1F725}',
'\u{1F726}',
'\u{1F727}',
'\u{1F728}',
'\u{1F729}',
'\u{1F72A}',
'\u{1F72B}',
'\u{1F72C}',
'\u{1F72D}',
'\u{1F72E}',
'\u{1F72F}',
'\u{1F730}',
'\u{1F731}',
'\u{1F732}',
'\u{1F733}',
'\u{1F734}',
'\u{1F735}',
'\u{1F736}',
'\u{1F737}',
'\u{1F738}',
'\u{1F739}',
'\u{1F73A}',
'\u{1F73B}',
'\u{1F73C}',
'\u{1F73D}',
'\u{1F73E}',
'\u{1F73F}',
'\u{1F740}',
'\u{1F741}',
'\u{1F742}',
'\u{1F743}',
'\u{1F744}',
'\u{1F745}',
'\u{1F746}',
'\u{1F747}',
'\u{1F748}',
'\u{1F749}',
'\u{1F74A}',
'\u{1F74B}',
'\u{1F74C}',
'\u{1F74D}',
'\u{1F74E}',
'\u{1F74F}',
'\u{1F750}',
'\u{1F751}',
'\u{1F752}',
'\u{1F753}',
'\u{1F754}',
'\u{1F755}',
'\u{1F756}',
'\u{1F757}',
'\u{1F758}',
'\u{1F759}',
'\u{1F75A}',
'\u{1F75B}',
'\u{1F75C}',
'\u{1F75D}',
'\u{1F75E}',
'\u{1F75F}',
'\u{1F760}',
'\u{1F761}',
'\u{1F762}',
'\u{1F763}',
'\u{1F764}',
'\u{1F765}',
'\u{1F766}',
'\u{1F767}',
'\u{1F768}',
'\u{1F769}',
'\u{1F76A}',
'\u{1F76B}',
'\u{1F76C}',
'\u{1F76D}',
'\u{1F76E}',
'\u{1F76F}',
'\u{1F770}',
'\u{1F771}',
'\u{1F772}',
'\u{1F773}',
'\u{1F774}',
'\u{1F775}',
'\u{1F776}',
'\u{1F77B}',
'\u{1F77C}',
'\u{1F77D}',
'\u{1F77E}',
'\u{1F77F}',
'\u{1F780}',
'\u{1F781}',
'\u{1F782}',
'\u{1F783}',
'\u{1F784}',
'\u{1F785}',
'\u{1F786}',
'\u{1F787}',
'\u{1F788}',
'\u{1F789}',
'\u{1F78A}',
'\u{1F78B}',
'\u{1F78C}',
'\u{1F78D}',
'\u{1F78E}',
'\u{1F78F}',
'\u{1F790}',
'\u{1F791}',
'\u{1F792}',
'\u{1F793}',
'\u{1F794}',
'\u{1F795}',
'\u{1F796}',
'\u{1F797}',
'\u{1F798}',
'\u{1F799}',
'\u{1F79A}',
'\u{1F79B}',
'\u{1F79C}',
'\u{1F79D}',
'\u{1F79E}',
'\u{1F79F}',
'\u{1F7A0}',
'\u{1F7A1}',
'\u{1F7A2}',
'\u{1F7A3}',
'\u{1F7A4}',
'\u{1F7A5}',
'\u{1F7A6}',
'\u{1F7A7}',
'\u{1F7A8}',
'\u{1F7A9}',
'\u{1F7AA}',
'\u{1F7AB}',
'\u{1F7AC}',
'\u{1F7AD}',
'\u{1F7AE}',
'\u{1F7AF}',
'\u{1F7B0}',
'\u{1F7B1}',
'\u{1F7B2}',
'\u{1F7B3}',
'\u{1F7B4}',
'\u{1F7B5}',
'\u{1F7B6}',
'\u{1F7B7}',
'\u{1F7B8}',
'\u{1F7B9}',
'\u{1F7BA}',
'\u{1F7BB}',
'\u{1F7BC}',
'\u{1F7BD}',
'\u{1F7BE}',
'\u{1F7BF}',
'\u{1F7C0}',
'\u{1F7C1}',
'\u{1F7C2}',
'\u{1F7C3}',
'\u{1F7C4}',
'\u{1F7C5}',
'\u{1F7C6}',
'\u{1F7C7}',
'\u{1F7C8}',
'\u{1F7C9}',
'\u{1F7CA}',
'\u{1F7CB}',
'\u{1F7CC}',
'\u{1F7CD}',
'\u{1F7CE}',
'\u{1F7CF}',
'\u{1F7D0}',
'\u{1F7D1}',
'\u{1F7D2}',
'\u{1F7D3}',
'\u{1F7D4}',
'\u{1F7D5}',
'\u{1F7D6}',
'\u{1F7D7}',
'\u{1F7D8}',
'\u{1F7D9}',
'\u{1F7E0}',
'\u{1F7E1}',
'\u{1F7E2}',
'\u{1F7E3}',
'\u{1F7E4}',
'\u{1F7E5}',
'\u{1F7E6}',
'\u{1F7E7}',
'\u{1F7E8}',
'\u{1F7E9}',
'\u{1F7EA}',
'\u{1F7EB}',
'\u{1F7F0}',
'\u{1F800}',
'\u{1F801}',
'\u{1F802}',
'\u{1F803}',
'\u{1F804}',
'\u{1F805}',
'\u{1F806}',
'\u{1F807}',
'\u{1F808}',
'\u{1F809}',
'\u{1F80A}',
'\u{1F80B}',
'\u{1F810}',
'\u{1F811}',
'\u{1F812}',
'\u{1F813}',
'\u{1F814}',
'\u{1F815}',
'\u{1F816}',
'\u{1F817}',
'\u{1F818}',
'\u{1F819}',
'\u{1F81A}',
'\u{1F81B}',
'\u{1F81C}',
'\u{1F81D}',
'\u{1F81E}',
'\u{1F81F}',
'\u{1F820}',
'\u{1F821}',
'\u{1F822}',
'\u{1F823}',
'\u{1F824}',
'\u{1F825}',
'\u{1F826}',
'\u{1F827}',
'\u{1F828}',
'\u{1F829}',
'\u{1F82A}',
'\u{1F82B}',
'\u{1F82C}',
'\u{1F82D}',
'\u{1F82E}',
'\u{1F82F}',
'\u{1F830}',
'\u{1F831}',
'\u{1F832}',
'\u{1F833}',
'\u{1F834}',
'\u{1F835}',
'\u{1F836}',
'\u{1F837}',
'\u{1F838}',
'\u{1F839}',
'\u{1F83A}',
'\u{1F83B}',
'\u{1F83C}',
'\u{1F83D}',
'\u{1F83E}',
'\u{1F83F}',
'\u{1F840}',
'\u{1F841}',
'\u{1F842}',
'\u{1F843}',
'\u{1F844}',
'\u{1F845}',
'\u{1F846}',
'\u{1F847}',
'\u{1F850}',
'\u{1F851}',
'\u{1F852}',
'\u{1F853}',
'\u{1F854}',
'\u{1F855}',
'\u{1F856}',
'\u{1F857}',
'\u{1F858}',
'\u{1F859}',
'\u{1F860}',
'\u{1F861}',
'\u{1F862}',
'\u{1F863}',
'\u{1F864}',
'\u{1F865}',
'\u{1F866}',
'\u{1F867}',
'\u{1F868}',
'\u{1F869}',
'\u{1F86A}',
'\u{1F86B}',
'\u{1F86C}',
'\u{1F86D}',
'\u{1F86E}',
'\u{1F86F}',
'\u{1F870}',
'\u{1F871}',
'\u{1F872}',
'\u{1F873}',
'\u{1F874}',
'\u{1F875}',
'\u{1F876}',
'\u{1F877}',
'\u{1F878}',
'\u{1F879}',
'\u{1F87A}',
'\u{1F87B}',
'\u{1F87C}',
'\u{1F87D}',
'\u{1F87E}',
'\u{1F87F}',
'\u{1F880}',
'\u{1F881}',
'\u{1F882}',
'\u{1F883}',
'\u{1F884}',
'\u{1F885}',
'\u{1F886}',
'\u{1F887}',
'\u{1F890}',
'\u{1F891}',
'\u{1F892}',
'\u{1F893}',
'\u{1F894}',
'\u{1F895}',
'\u{1F896}',
'\u{1F897}',
'\u{1F898}',
'\u{1F899}',
'\u{1F89A}',
'\u{1F89B}',
'\u{1F89C}',
'\u{1F89D}',
'\u{1F89E}',
'\u{1F89F}',
'\u{1F8A0}',
'\u{1F8A1}',
'\u{1F8A2}',
'\u{1F8A3}',
'\u{1F8A4}',
'\u{1F8A5}',
'\u{1F8A6}',
'\u{1F8A7}',
'\u{1F8A8}',
'\u{1F8A9}',
'\u{1F8AA}',
'\u{1F8AB}',
'\u{1F8AC}',
'\u{1F8AD}',
'\u{1F8B0}',
'\u{1F8B1}',
'\u{1F8B2}',
'\u{1F8B3}',
'\u{1F8B4}',
'\u{1F8B5}',
'\u{1F8B6}',
'\u{1F8B7}',
'\u{1F8B8}',
'\u{1F8B9}',
'\u{1F8BA}',
'\u{1F8BB}',
'\u{1F8C0}',
'\u{1F8C1}',
'\u{1F900}',
'\u{1F901}',
'\u{1F902}',
'\u{1F903}',
'\u{1F904}',
'\u{1F905}',
'\u{1F906}',
'\u{1F907}',
'\u{1F908}',
'\u{1F909}',
'\u{1F90A}',
'\u{1F90B}',
'\u{1F90C}',
'\u{1F90D}',
'\u{1F90E}',
'\u{1F90F}',
'\u{1F910}',
'\u{1F911}',
'\u{1F912}',
'\u{1F913}',
'\u{1F914}',
'\u{1F915}',
'\u{1F916}',
'\u{1F917}',
'\u{1F918}',
'\u{1F919}',
'\u{1F91A}',
'\u{1F91B}',
'\u{1F91C}',
'\u{1F91D}',
'\u{1F91E}',
'\u{1F91F}',
'\u{1F920}',
'\u{1F921}',
'\u{1F922}',
'\u{1F923}',
'\u{1F924}',
'\u{1F925}',
'\u{1F926}',
'\u{1F927}',
'\u{1F928}',
'\u{1F929}',
'\u{1F92A}',
'\u{1F92B}',
'\u{1F92C}',
'\u{1F92D}',
'\u{1F92E}',
'\u{1F92F}',
'\u{1F930}',
'\u{1F931}',
'\u{1F932}',
'\u{1F933}',
'\u{1F934}',
'\u{1F935}',
'\u{1F936}',
'\u{1F937}',
'\u{1F938}',
'\u{1F939}',
'\u{1F93A}',
'\u{1F93B}',
'\u{1F93C}',
'\u{1F93D}',
'\u{1F93E}',
'\u{1F93F}',
'\u{1F940}',
'\u{1F941}',
'\u{1F942}',
'\u{1F943}',
'\u{1F944}',
'\u{1F945}',
'\u{1F946}',
'\u{1F947}',
'\u{1F948}',
'\u{1F949}',
'\u{1F94A}',
'\u{1F94B}',
'\u{1F94C}',
'\u{1F94D}',
'\u{1F94E}',
'\u{1F94F}',
'\u{1F950}',
'\u{1F951}',
'\u{1F952}',
'\u{1F953}',
'\u{1F954}',
'\u{1F955}',
'\u{1F956}',
'\u{1F957}',
'\u{1F958}',
'\u{1F959}',
'\u{1F95A}',
'\u{1F95B}',
'\u{1F95C}',
'\u{1F95D}',
'\u{1F95E}',
'\u{1F95F}',
'\u{1F960}',
'\u{1F961}',
'\u{1F962}',
'\u{1F963}',
'\u{1F964}',
'\u{1F965}',
'\u{1F966}',
'\u{1F967}',
'\u{1F968}',
'\u{1F969}',
'\u{1F96A}',
'\u{1F96B}',
'\u{1F96C}',
'\u{1F96D}',
'\u{1F96E}',
'\u{1F96F}',
'\u{1F970}',
'\u{1F971}',
'\u{1F972}',
'\u{1F973}',
'\u{1F974}',
'\u{1F975}',
'\u{1F976}',
'\u{1F977}',
'\u{1F978}',
'\u{1F979}',
'\u{1F97A}',
'\u{1F97B}',
'\u{1F97C}',
'\u{1F97D}',
'\u{1F97E}',
'\u{1F97F}',
'\u{1F980}',
'\u{1F981}',
'\u{1F982}',
'\u{1F983}',
'\u{1F984}',
'\u{1F985}',
'\u{1F986}',
'\u{1F987}',
'\u{1F988}',
'\u{1F989}',
'\u{1F98A}',
'\u{1F98B}',
'\u{1F98C}',
'\u{1F98D}',
'\u{1F98E}',
'\u{1F98F}',
'\u{1F990}',
'\u{1F991}',
'\u{1F992}',
'\u{1F993}',
'\u{1F994}',
'\u{1F995}',
'\u{1F996}',
'\u{1F997}',
'\u{1F998}',
'\u{1F999}',
'\u{1F99A}',
'\u{1F99B}',
'\u{1F99C}',
'\u{1F99D}',
'\u{1F99E}',
'\u{1F99F}',
'\u{1F9A0}',
'\u{1F9A1}',
'\u{1F9A2}',
'\u{1F9A3}',
'\u{1F9A4}',
'\u{1F9A5}',
'\u{1F9A6}',
'\u{1F9A7}',
'\u{1F9A8}',
'\u{1F9A9}',
'\u{1F9AA}',
'\u{1F9AB}',
'\u{1F9AC}',
'\u{1F9AD}',
'\u{1F9AE}',
'\u{1F9AF}',
'\u{1F9B0}',
'\u{1F9B1}',
'\u{1F9B2}',
'\u{1F9B3}',
'\u{1F9B4}',
'\u{1F9B5}',
'\u{1F9B6}',
'\u{1F9B7}',
'\u{1F9B8}',
'\u{1F9B9}',
'\u{1F9BA}',
'\u{1F9BB}',
'\u{1F9BC}',
'\u{1F9BD}',
'\u{1F9BE}',
'\u{1F9BF}',
'\u{1F9C0}',
'\u{1F9C1}',
'\u{1F9C2}',
'\u{1F9C3}',
'\u{1F9C4}',
'\u{1F9C5}',
'\u{1F9C6}',
'\u{1F9C7}',
'\u{1F9C8}',
'\u{1F9C9}',
'\u{1F9CA}',
'\u{1F9CB}',
'\u{1F9CC}',
'\u{1F9CD}',
'\u{1F9CE}',
'\u{1F9CF}',
'\u{1F9D0}',
'\u{1F9D1}',
'\u{1F9D2}',
'\u{1F9D3}',
'\u{1F9D4}',
'\u{1F9D5}',
'\u{1F9D6}',
'\u{1F9D7}',
'\u{1F9D8}',
'\u{1F9D9}',
'\u{1F9DA}',
'\u{1F9DB}',
'\u{1F9DC}',
'\u{1F9DD}',
'\u{1F9DE}',
'\u{1F9DF}',
'\u{1F9E0}',
'\u{1F9E1}',
'\u{1F9E2}',
'\u{1F9E3}',
'\u{1F9E4}',
'\u{1F9E5}',
'\u{1F9E6}',
'\u{1F9E7}',
'\u{1F9E8}',
'\u{1F9E9}',
'\u{1F9EA}',
'\u{1F9EB}',
'\u{1F9EC}',
'\u{1F9ED}',
'\u{1F9EE}',
'\u{1F9EF}',
'\u{1F9F0}',
'\u{1F9F1}',
'\u{1F9F2}',
'\u{1F9F3}',
'\u{1F9F4}',
'\u{1F9F5}',
'\u{1F9F6}',
'\u{1F9F7}',
'\u{1F9F8}',
'\u{1F9F9}',
'\u{1F9FA}',
'\u{1F9FB}',
'\u{1F9FC}',
'\u{1F9FD}',
'\u{1F9FE}',
'\u{1F9FF}',
'\u{1FA00}',
'\u{1FA01}',
'\u{1FA02}',
'\u{1FA03}',
'\u{1FA04}',
'\u{1FA05}',
'\u{1FA06}',
'\u{1FA07}',
'\u{1FA08}',
'\u{1FA09}',
'\u{1FA0A}',
'\u{1FA0B}',
'\u{1FA0C}',
'\u{1FA0D}',
'\u{1FA0E}',
'\u{1FA0F}',
'\u{1FA10}',
'\u{1FA11}',
'\u{1FA12}',
'\u{1FA13}',
'\u{1FA14}',
'\u{1FA15}',
'\u{1FA16}',
'\u{1FA17}',
'\u{1FA18}',
'\u{1FA19}',
'\u{1FA1A}',
'\u{1FA1B}',
'\u{1FA1C}',
'\u{1FA1D}',
'\u{1FA1E}',
'\u{1FA1F}',
'\u{1FA20}',
'\u{1FA21}',
'\u{1FA22}',
'\u{1FA23}',
'\u{1FA24}',
'\u{1FA25}',
'\u{1FA26}',
'\u{1FA27}',
'\u{1FA28}',
'\u{1FA29}',
'\u{1FA2A}',
'\u{1FA2B}',
'\u{1FA2C}',
'\u{1FA2D}',
'\u{1FA2E}',
'\u{1FA2F}',
'\u{1FA30}',
'\u{1FA31}',
'\u{1FA32}',
'\u{1FA33}',
'\u{1FA34}',
'\u{1FA35}',
'\u{1FA36}',
'\u{1FA37}',
'\u{1FA38}',
'\u{1FA39}',
'\u{1FA3A}',
'\u{1FA3B}',
'\u{1FA3C}',
'\u{1FA3D}',
'\u{1FA3E}',
'\u{1FA3F}',
'\u{1FA40}',
'\u{1FA41}',
'\u{1FA42}',
'\u{1FA43}',
'\u{1FA44}',
'\u{1FA45}',
'\u{1FA46}',
'\u{1FA47}',
'\u{1FA48}',
'\u{1FA49}',
'\u{1FA4A}',
'\u{1FA4B}',
'\u{1FA4C}',
'\u{1FA4D}',
'\u{1FA4E}',
'\u{1FA4F}',
'\u{1FA50}',
'\u{1FA51}',
'\u{1FA52}',
'\u{1FA53}',
'\u{1FA60}',
'\u{1FA61}',
'\u{1FA62}',
'\u{1FA63}',
'\u{1FA64}',
'\u{1FA65}',
'\u{1FA66}',
'\u{1FA67}',
'\u{1FA68}',
'\u{1FA69}',
'\u{1FA6A}',
'\u{1FA6B}',
'\u{1FA6C}',
'\u{1FA6D}',
'\u{1FA70}',
'\u{1FA71}',
'\u{1FA72}',
'\u{1FA73}',
'\u{1FA74}',
'\u{1FA75}',
'\u{1FA76}',
'\u{1FA77}',
'\u{1FA78}',
'\u{1FA79}',
'\u{1FA7A}',
'\u{1FA7B}',
'\u{1FA7C}',
'\u{1FA80}',
'\u{1FA81}',
'\u{1FA82}',
'\u{1FA83}',
'\u{1FA84}',
'\u{1FA85}',
'\u{1FA86}',
'\u{1FA87}',
'\u{1FA88}',
'\u{1FA89}',
'\u{1FA8F}',
'\u{1FA90}',
'\u{1FA91}',
'\u{1FA92}',
'\u{1FA93}',
'\u{1FA94}',
'\u{1FA95}',
'\u{1FA96}',
'\u{1FA97}',
'\u{1FA98}',
'\u{1FA99}',
'\u{1FA9A}',
'\u{1FA9B}',
'\u{1FA9C}',
'\u{1FA9D}',
'\u{1FA9E}',
'\u{1FA9F}',
'\u{1FAA0}',
'\u{1FAA1}',
'\u{1FAA2}',
'\u{1FAA3}',
'\u{1FAA4}',
'\u{1FAA5}',
'\u{1FAA6}',
'\u{1FAA7}',
'\u{1FAA8}',
'\u{1FAA9}',
'\u{1FAAA}',
'\u{1FAAB}',
'\u{1FAAC}',
'\u{1FAAD}',
'\u{1FAAE}',
'\u{1FAAF}',
'\u{1FAB0}',
'\u{1FAB1}',
'\u{1FAB2}',
'\u{1FAB3}',
'\u{1FAB4}',
'\u{1FAB5}',
'\u{1FAB6}',
'\u{1FAB7}',
'\u{1FAB8}',
'\u{1FAB9}',
'\u{1FABA}',
'\u{1FABB}',
'\u{1FABC}',
'\u{1FABD}',
'\u{1FABE}',
'\u{1FABF}',
'\u{1FAC0}',
'\u{1FAC1}',
'\u{1FAC2}',
'\u{1FAC3}',
'\u{1FAC4}',
'\u{1FAC5}',
'\u{1FAC6}',
'\u{1FACE}',
'\u{1FACF}',
'\u{1FAD0}',
'\u{1FAD1}',
'\u{1FAD2}',
'\u{1FAD3}',
'\u{1FAD4}',
'\u{1FAD5}',
'\u{1FAD6}',
'\u{1FAD7}',
'\u{1FAD8}',
'\u{1FAD9}',
'\u{1FADA}',
'\u{1FADB}',
'\u{1FADC}',
'\u{1FADF}',
'\u{1FAE0}',
'\u{1FAE1}',
'\u{1FAE2}',
'\u{1FAE3}',
'\u{1FAE4}',
'\u{1FAE5}',
'\u{1FAE6}',
'\u{1FAE7}',
'\u{1FAE8}',
'\u{1FAE9}',
'\u{1FAF0}',
'\u{1FAF1}',
'\u{1FAF2}',
'\u{1FAF3}',
'\u{1FAF4}',
'\u{1FAF5}',
'\u{1FAF6}',
'\u{1FAF7}',
'\u{1FAF8}',
'\u{1FB00}',
'\u{1FB01}',
'\u{1FB02}',
'\u{1FB03}',
'\u{1FB04}',
'\u{1FB05}',
'\u{1FB06}',
'\u{1FB07}',
'\u{1FB08}',
'\u{1FB09}',
'\u{1FB0A}',
'\u{1FB0B}',
'\u{1FB0C}',
'\u{1FB0D}',
'\u{1FB0E}',
'\u{1FB0F}',
'\u{1FB10}',
'\u{1FB11}',
'\u{1FB12}',
'\u{1FB13}',
'\u{1FB14}',
'\u{1FB15}',
'\u{1FB16}',
'\u{1FB17}',
'\u{1FB18}',
'\u{1FB19}',
'\u{1FB1A}',
'\u{1FB1B}',
'\u{1FB1C}',
'\u{1FB1D}',
'\u{1FB1E}',
'\u{1FB1F}',
'\u{1FB20}',
'\u{1FB21}',
'\u{1FB22}',
'\u{1FB23}',
'\u{1FB24}',
'\u{1FB25}',
'\u{1FB26}',
'\u{1FB27}',
'\u{1FB28}',
'\u{1FB29}',
'\u{1FB2A}',
'\u{1FB2B}',
'\u{1FB2C}',
'\u{1FB2D}',
'\u{1FB2E}',
'\u{1FB2F}',
'\u{1FB30}',
'\u{1FB31}',
'\u{1FB32}',
'\u{1FB33}',
'\u{1FB34}',
'\u{1FB35}',
'\u{1FB36}',
'\u{1FB37}',
'\u{1FB38}',
'\u{1FB39}',
'\u{1FB3A}',
'\u{1FB3B}',
'\u{1FB3C}',
'\u{1FB3D}',
'\u{1FB3E}',
'\u{1FB3F}',
'\u{1FB40}',
'\u{1FB41}',
'\u{1FB42}',
'\u{1FB43}',
'\u{1FB44}',
'\u{1FB45}',
'\u{1FB46}',
'\u{1FB47}',
'\u{1FB48}',
'\u{1FB49}',
'\u{1FB4A}',
'\u{1FB4B}',
'\u{1FB4C}',
'\u{1FB4D}',
'\u{1FB4E}',
'\u{1FB4F}',
'\u{1FB50}',
'\u{1FB51}',
'\u{1FB52}',
'\u{1FB53}',
'\u{1FB54}',
'\u{1FB55}',
'\u{1FB56}',
'\u{1FB57}',
'\u{1FB58}',
'\u{1FB59}',
'\u{1FB5A}',
'\u{1FB5B}',
'\u{1FB5C}',
'\u{1FB5D}',
'\u{1FB5E}',
'\u{1FB5F}',
'\u{1FB60}',
'\u{1FB61}',
'\u{1FB62}',
'\u{1FB63}',
'\u{1FB64}',
'\u{1FB65}',
'\u{1FB66}',
'\u{1FB67}',
'\u{1FB68}',
'\u{1FB69}',
'\u{1FB6A}',
'\u{1FB6B}',
'\u{1FB6C}',
'\u{1FB6D}',
'\u{1FB6E}',
'\u{1FB6F}',
'\u{1FB70}',
'\u{1FB71}',
'\u{1FB72}',
'\u{1FB73}',
'\u{1FB74}',
'\u{1FB75}',
'\u{1FB76}',
'\u{1FB77}',
'\u{1FB78}',
'\u{1FB79}',
'\u{1FB7A}',
'\u{1FB7B}',
'\u{1FB7C}',
'\u{1FB7D}',
'\u{1FB7E}',
'\u{1FB7F}',
'\u{1FB80}',
'\u{1FB81}',
'\u{1FB82}',
'\u{1FB83}',
'\u{1FB84}',
'\u{1FB85}',
'\u{1FB86}',
'\u{1FB87}',
'\u{1FB88}',
'\u{1FB89}',
'\u{1FB8A}',
'\u{1FB8B}',
'\u{1FB8C}',
'\u{1FB8D}',
'\u{1FB8E}',
'\u{1FB8F}',
'\u{1FB90}',
'\u{1FB91}',
'\u{1FB92}',
'\u{1FB94}',
'\u{1FB95}',
'\u{1FB96}',
'\u{1FB97}',
'\u{1FB98}',
'\u{1FB99}',
'\u{1FB9A}',
'\u{1FB9B}',
'\u{1FB9C}',
'\u{1FB9D}',
'\u{1FB9E}',
'\u{1FB9F}',
'\u{1FBA0}',
'\u{1FBA1}',
'\u{1FBA2}',
'\u{1FBA3}',
'\u{1FBA4}',
'\u{1FBA5}',
'\u{1FBA6}',
'\u{1FBA7}',
'\u{1FBA8}',
'\u{1FBA9}',
'\u{1FBAA}',
'\u{1FBAB}',
'\u{1FBAC}',
'\u{1FBAD}',
'\u{1FBAE}',
'\u{1FBAF}',
'\u{1FBB0}',
'\u{1FBB1}',
'\u{1FBB2}',
'\u{1FBB3}',
'\u{1FBB4}',
'\u{1FBB5}',
'\u{1FBB6}',
'\u{1FBB7}',
'\u{1FBB8}',
'\u{1FBB9}',
'\u{1FBBA}',
'\u{1FBBB}',
'\u{1FBBC}',
'\u{1FBBD}',
'\u{1FBBE}',
'\u{1FBBF}',
'\u{1FBC0}',
'\u{1FBC1}',
'\u{1FBC2}',
'\u{1FBC3}',
'\u{1FBC4}',
'\u{1FBC5}',
'\u{1FBC6}',
'\u{1FBC7}',
'\u{1FBC8}',
'\u{1FBC9}',
'\u{1FBCA}',
'\u{1FBCB}',
'\u{1FBCC}',
'\u{1FBCD}',
'\u{1FBCE}',
'\u{1FBCF}',
'\u{1FBD0}',
'\u{1FBD1}',
'\u{1FBD2}',
'\u{1FBD3}',
'\u{1FBD4}',
'\u{1FBD5}',
'\u{1FBD6}',
'\u{1FBD7}',
'\u{1FBD8}',
'\u{1FBD9}',
'\u{1FBDA}',
'\u{1FBDB}',
'\u{1FBDC}',
'\u{1FBDD}',
'\u{1FBDE}',
'\u{1FBDF}',
'\u{1FBE0}',
'\u{1FBE1}',
'\u{1FBE2}',
'\u{1FBE3}',
'\u{1FBE4}',
'\u{1FBE5}',
'\u{1FBE6}',
'\u{1FBE7}',
'\u{1FBE8}',
'\u{1FBE9}',
'\u{1FBEA}',
'\u{1FBEB}',
'\u{1FBEC}',
'\u{1FBED}',
'\u{1FBEE}',
'\u{1FBEF}',
];
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/attention.rs | Rust | use markdown::{
mdast::{Emphasis, Node, Paragraph, Root, Strong, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn attention() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
// Rule 1.
assert_eq!(
to_html("*foo bar*"),
"<p><em>foo bar</em></p>",
"should support emphasis w/ `*`"
);
assert_eq!(
to_html("a * foo bar*"),
"<p>a * foo bar*</p>",
"should not support emphasis if the opening is not left flanking (1)"
);
assert_eq!(
to_html("a*\"foo\"*"),
"<p>a*"foo"*</p>",
"should not support emphasis if the opening is not left flanking (2b)"
);
assert_eq!(
to_html("* a *"),
"<p>* a *</p>",
"should not support emphasis unicode whitespace either"
);
assert_eq!(
to_html("foo*bar*"),
"<p>foo<em>bar</em></p>",
"should support intraword emphasis w/ `*` (1)"
);
assert_eq!(
to_html("5*6*78"),
"<p>5<em>6</em>78</p>",
"should support intraword emphasis w/ `*` (2)"
);
// Rule 2.
assert_eq!(
to_html("_foo bar_"),
"<p><em>foo bar</em></p>",
"should support emphasis w/ `_`"
);
assert_eq!(
to_html("_ foo bar_"),
"<p>_ foo bar_</p>",
"should not support emphasis if the opening is followed by whitespace"
);
assert_eq!(
to_html("a_\"foo\"_"),
"<p>a_"foo"_</p>",
"should not support emphasis if the opening is preceded by something else and followed by punctuation"
);
assert_eq!(
to_html("foo_bar_"),
"<p>foo_bar_</p>",
"should not support intraword emphasis (1)"
);
assert_eq!(
to_html("5_6_78"),
"<p>5_6_78</p>",
"should not support intraword emphasis (2)"
);
assert_eq!(
to_html("пристаням_стремятся_"),
"<p>пристаням_стремятся_</p>",
"should not support intraword emphasis (3)"
);
assert_eq!(
to_html("aa_\"bb\"_cc"),
"<p>aa_"bb"_cc</p>",
"should not support emphasis if the opening is right flanking and the closing is left flanking"
);
assert_eq!(
to_html("foo-_(bar)_"),
"<p>foo-<em>(bar)</em></p>",
"should support emphasis if the opening is both left and right flanking, if it’s preceded by punctuation"
);
// Rule 3.
assert_eq!(
to_html("_foo*"),
"<p>_foo*</p>",
"should not support emphasis if opening and closing markers don’t match"
);
assert_eq!(
to_html("*foo bar *"),
"<p>*foo bar *</p>",
"should not support emphasis w/ `*` if the closing markers are preceded by whitespace"
);
assert_eq!(
to_html("*foo bar\n*"),
"<p>*foo bar\n*</p>",
"should not support emphasis w/ `*` if the closing markers are preceded by a line break (also whitespace)"
);
assert_eq!(
to_html("*(*foo)"),
"<p>*(*foo)</p>",
"should not support emphasis w/ `*` if the closing markers are not right flanking"
);
assert_eq!(
to_html("*(*foo*)*"),
"<p><em>(<em>foo</em>)</em></p>",
"should support nested emphasis"
);
// Rule 4.
assert_eq!(
to_html("_foo bar _"),
"<p>_foo bar _</p>",
"should not support emphasis if the closing `_` is preceded by whitespace"
);
assert_eq!(
to_html("_(_foo)"),
"<p>_(_foo)</p>",
"should not support emphasis w/ `_` if the closing markers are not right flanking"
);
assert_eq!(
to_html("_(_foo_)_"),
"<p><em>(<em>foo</em>)</em></p>",
"should support nested emphasis w/ `_`"
);
assert_eq!(
to_html("_foo_bar"),
"<p>_foo_bar</p>",
"should not support intraword emphasis w/ `_` (1)"
);
assert_eq!(
to_html("_пристаням_стремятся"),
"<p>_пристаням_стремятся</p>",
"should not support intraword emphasis w/ `_` (2)"
);
assert_eq!(
to_html("_foo_bar_baz_"),
"<p><em>foo_bar_baz</em></p>",
"should not support intraword emphasis w/ `_` (3)"
);
assert_eq!(
to_html("_(bar)_."),
"<p><em>(bar)</em>.</p>",
"should support emphasis if the opening is both left and right flanking, if it’s followed by punctuation"
);
// Rule 5.
assert_eq!(
to_html("**foo bar**"),
"<p><strong>foo bar</strong></p>",
"should support strong emphasis"
);
assert_eq!(
to_html("** foo bar**"),
"<p>** foo bar**</p>",
"should not support strong emphasis if the opening is followed by whitespace"
);
assert_eq!(
to_html("a**\"foo\"**"),
"<p>a**"foo"**</p>",
"should not support strong emphasis if the opening is preceded by something else and followed by punctuation"
);
assert_eq!(
to_html("foo**bar**"),
"<p>foo<strong>bar</strong></p>",
"should support strong intraword emphasis"
);
// Rule 6.
assert_eq!(
to_html("__foo bar__"),
"<p><strong>foo bar</strong></p>",
"should support strong emphasis w/ `_`"
);
assert_eq!(
to_html("__ foo bar__"),
"<p>__ foo bar__</p>",
"should not support strong emphasis if the opening is followed by whitespace"
);
assert_eq!(
to_html("__\nfoo bar__"),
"<p>__\nfoo bar__</p>",
"should not support strong emphasis if the opening is followed by a line ending (also whitespace)"
);
assert_eq!(
to_html("a__\"foo\"__"),
"<p>a__"foo"__</p>",
"should not support strong emphasis if the opening is preceded by something else and followed by punctuation"
);
assert_eq!(
to_html("foo__bar__"),
"<p>foo__bar__</p>",
"should not support strong intraword emphasis w/ `_` (1)"
);
assert_eq!(
to_html("5__6__78"),
"<p>5__6__78</p>",
"should not support strong intraword emphasis w/ `_` (2)"
);
assert_eq!(
to_html("пристаням__стремятся__"),
"<p>пристаням__стремятся__</p>",
"should not support strong intraword emphasis w/ `_` (3)"
);
assert_eq!(
to_html("__foo, __bar__, baz__"),
"<p><strong>foo, <strong>bar</strong>, baz</strong></p>",
"should support nested strong emphasis"
);
assert_eq!(
to_html("foo-__(bar)__"),
"<p>foo-<strong>(bar)</strong></p>",
"should support strong emphasis if the opening is both left and right flanking, if it’s preceded by punctuation"
);
// Rule 7.
assert_eq!(
to_html("**foo bar **"),
"<p>**foo bar **</p>",
"should not support strong emphasis w/ `*` if the closing is preceded by whitespace"
);
assert_eq!(
to_html("**(**foo)"),
"<p>**(**foo)</p>",
"should not support strong emphasis w/ `*` if the closing is preceded by punctuation and followed by something else"
);
assert_eq!(
to_html("*(**foo**)*"),
"<p><em>(<strong>foo</strong>)</em></p>",
"should support strong emphasis in emphasis"
);
assert_eq!(
to_html(
"**Gomphocarpus (*Gomphocarpus physocarpus*, syn.\n*Asclepias physocarpa*)**"
),
"<p><strong>Gomphocarpus (<em>Gomphocarpus physocarpus</em>, syn.\n<em>Asclepias physocarpa</em>)</strong></p>",
"should support emphasis in strong emphasis (1)"
);
assert_eq!(
to_html("**foo \"*bar*\" foo**"),
"<p><strong>foo "<em>bar</em>" foo</strong></p>",
"should support emphasis in strong emphasis (2)"
);
assert_eq!(
to_html("**foo**bar"),
"<p><strong>foo</strong>bar</p>",
"should support strong intraword emphasis"
);
// Rule 8.
assert_eq!(
to_html("__foo bar __"),
"<p>__foo bar __</p>",
"should not support strong emphasis w/ `_` if the closing is preceded by whitespace"
);
assert_eq!(
to_html("__(__foo)"),
"<p>__(__foo)</p>",
"should not support strong emphasis w/ `_` if the closing is preceded by punctuation and followed by something else"
);
assert_eq!(
to_html("_(__foo__)_"),
"<p><em>(<strong>foo</strong>)</em></p>",
"should support strong emphasis w/ `_` in emphasis"
);
assert_eq!(
to_html("__foo__bar"),
"<p>__foo__bar</p>",
"should not support strong intraword emphasis w/ `_` (1)"
);
assert_eq!(
to_html("__пристаням__стремятся"),
"<p>__пристаням__стремятся</p>",
"should not support strong intraword emphasis w/ `_` (2)"
);
assert_eq!(
to_html("__foo__bar__baz__"),
"<p><strong>foo__bar__baz</strong></p>",
"should not support strong intraword emphasis w/ `_` (3)"
);
assert_eq!(
to_html("__(bar)__."),
"<p><strong>(bar)</strong>.</p>",
"should support strong emphasis if the opening is both left and right flanking, if it’s followed by punctuation"
);
// Rule 9.
assert_eq!(
to_html("*foo [bar](/url)*"),
"<p><em>foo <a href=\"/url\">bar</a></em></p>",
"should support content in emphasis"
);
assert_eq!(
to_html("*foo\nbar*"),
"<p><em>foo\nbar</em></p>",
"should support line endings in emphasis"
);
assert_eq!(
to_html("_foo __bar__ baz_"),
"<p><em>foo <strong>bar</strong> baz</em></p>",
"should support nesting emphasis and strong (1)"
);
assert_eq!(
to_html("_foo _bar_ baz_"),
"<p><em>foo <em>bar</em> baz</em></p>",
"should support nesting emphasis and strong (2)"
);
assert_eq!(
to_html("__foo_ bar_"),
"<p><em><em>foo</em> bar</em></p>",
"should support nesting emphasis and strong (3)"
);
assert_eq!(
to_html("*foo *bar**"),
"<p><em>foo <em>bar</em></em></p>",
"should support nesting emphasis and strong (4)"
);
assert_eq!(
to_html("*foo **bar** baz*"),
"<p><em>foo <strong>bar</strong> baz</em></p>",
"should support nesting emphasis and strong (5)"
);
assert_eq!(
to_html("*foo**bar**baz*"),
"<p><em>foo<strong>bar</strong>baz</em></p>",
"should support nesting emphasis and strong (6)"
);
assert_eq!(
to_html("*foo**bar*"),
"<p><em>foo**bar</em></p>",
"should not support adjacent emphasis in certain cases"
);
assert_eq!(
to_html("***foo** bar*"),
"<p><em><strong>foo</strong> bar</em></p>",
"complex (1)"
);
assert_eq!(
to_html("*foo **bar***"),
"<p><em>foo <strong>bar</strong></em></p>",
"complex (2)"
);
assert_eq!(
to_html("*foo**bar***"),
"<p><em>foo<strong>bar</strong></em></p>",
"complex (3)"
);
assert_eq!(
to_html("foo***bar***baz"),
"<p>foo<em><strong>bar</strong></em>baz</p>",
"complex (a)"
);
assert_eq!(
to_html("foo******bar*********baz"),
"<p>foo<strong><strong><strong>bar</strong></strong></strong>***baz</p>",
"complex (b)"
);
assert_eq!(
to_html("*foo **bar *baz* bim** bop*"),
"<p><em>foo <strong>bar <em>baz</em> bim</strong> bop</em></p>",
"should support indefinite nesting of emphasis (1)"
);
assert_eq!(
to_html("*foo [*bar*](/url)*"),
"<p><em>foo <a href=\"/url\"><em>bar</em></a></em></p>",
"should support indefinite nesting of emphasis (2)"
);
assert_eq!(
to_html("** is not an empty emphasis"),
"<p>** is not an empty emphasis</p>",
"should not support empty emphasis"
);
assert_eq!(
to_html("**** is not an empty emphasis"),
"<p>**** is not an empty emphasis</p>",
"should not support empty strong emphasis"
);
// Rule 10.
assert_eq!(
to_html("**foo [bar](/url)**"),
"<p><strong>foo <a href=\"/url\">bar</a></strong></p>",
"should support content in strong emphasis"
);
assert_eq!(
to_html("**foo\nbar**"),
"<p><strong>foo\nbar</strong></p>",
"should support line endings in emphasis"
);
assert_eq!(
to_html("__foo _bar_ baz__"),
"<p><strong>foo <em>bar</em> baz</strong></p>",
"should support nesting emphasis and strong (1)"
);
assert_eq!(
to_html("__foo __bar__ baz__"),
"<p><strong>foo <strong>bar</strong> baz</strong></p>",
"should support nesting emphasis and strong (2)"
);
assert_eq!(
to_html("____foo__ bar__"),
"<p><strong><strong>foo</strong> bar</strong></p>",
"should support nesting emphasis and strong (3)"
);
assert_eq!(
to_html("**foo **bar****"),
"<p><strong>foo <strong>bar</strong></strong></p>",
"should support nesting emphasis and strong (4)"
);
assert_eq!(
to_html("**foo *bar* baz**"),
"<p><strong>foo <em>bar</em> baz</strong></p>",
"should support nesting emphasis and strong (5)"
);
assert_eq!(
to_html("**foo*bar*baz**"),
"<p><strong>foo<em>bar</em>baz</strong></p>",
"should support nesting emphasis and strong (6)"
);
assert_eq!(
to_html("***foo* bar**"),
"<p><strong><em>foo</em> bar</strong></p>",
"should support nesting emphasis and strong (7)"
);
assert_eq!(
to_html("**foo *bar***"),
"<p><strong>foo <em>bar</em></strong></p>",
"should support nesting emphasis and strong (8)"
);
assert_eq!(
to_html("**foo *bar **baz**\nbim* bop**"),
"<p><strong>foo <em>bar <strong>baz</strong>\nbim</em> bop</strong></p>",
"should support indefinite nesting of emphasis (1)"
);
assert_eq!(
to_html("**foo [*bar*](/url)**"),
"<p><strong>foo <a href=\"/url\"><em>bar</em></a></strong></p>",
"should support indefinite nesting of emphasis (2)"
);
assert_eq!(
to_html("__ is not an empty emphasis"),
"<p>__ is not an empty emphasis</p>",
"should not support empty emphasis"
);
assert_eq!(
to_html("____ is not an empty emphasis"),
"<p>____ is not an empty emphasis</p>",
"should not support empty strong emphasis"
);
// Rule 11.
assert_eq!(
to_html("foo ***"),
"<p>foo ***</p>",
"should not support emphasis around the same marker"
);
assert_eq!(
to_html("foo *\\**"),
"<p>foo <em>*</em></p>",
"should support emphasis around an escaped marker"
);
assert_eq!(
to_html("foo *_*"),
"<p>foo <em>_</em></p>",
"should support emphasis around the other marker"
);
assert_eq!(
to_html("foo *****"),
"<p>foo *****</p>",
"should not support strong emphasis around the same marker"
);
assert_eq!(
to_html("foo **\\***"),
"<p>foo <strong>*</strong></p>",
"should support strong emphasis around an escaped marker"
);
assert_eq!(
to_html("foo **_**"),
"<p>foo <strong>_</strong></p>",
"should support strong emphasis around the other marker"
);
assert_eq!(
to_html("**foo*"),
"<p>*<em>foo</em></p>",
"should support a superfluous marker at the start of emphasis"
);
assert_eq!(
to_html("*foo**"),
"<p><em>foo</em>*</p>",
"should support a superfluous marker at the end of emphasis"
);
assert_eq!(
to_html("***foo**"),
"<p>*<strong>foo</strong></p>",
"should support a superfluous marker at the start of strong"
);
assert_eq!(
to_html("****foo*"),
"<p>***<em>foo</em></p>",
"should support multiple superfluous markers at the start of strong"
);
assert_eq!(
to_html("**foo***"),
"<p><strong>foo</strong>*</p>",
"should support a superfluous marker at the end of strong"
);
assert_eq!(
to_html("*foo****"),
"<p><em>foo</em>***</p>",
"should support multiple superfluous markers at the end of strong"
);
// Rule 12.
assert_eq!(
to_html("foo ___"),
"<p>foo ___</p>",
"should not support emphasis around the same marker"
);
assert_eq!(
to_html("foo _\\__"),
"<p>foo <em>_</em></p>",
"should support emphasis around an escaped marker"
);
assert_eq!(
to_html("foo _X_"),
"<p>foo <em>X</em></p>",
"should support emphasis around the other marker"
);
assert_eq!(
to_html("foo _____"),
"<p>foo _____</p>",
"should not support strong emphasis around the same marker"
);
assert_eq!(
to_html("foo __\\___"),
"<p>foo <strong>_</strong></p>",
"should support strong emphasis around an escaped marker"
);
assert_eq!(
to_html("foo __X__"),
"<p>foo <strong>X</strong></p>",
"should support strong emphasis around the other marker"
);
assert_eq!(
to_html("__foo_"),
"<p>_<em>foo</em></p>",
"should support a superfluous marker at the start of emphasis"
);
assert_eq!(
to_html("_foo__"),
"<p><em>foo</em>_</p>",
"should support a superfluous marker at the end of emphasis"
);
assert_eq!(
to_html("___foo__"),
"<p>_<strong>foo</strong></p>",
"should support a superfluous marker at the start of strong"
);
assert_eq!(
to_html("____foo_"),
"<p>___<em>foo</em></p>",
"should support multiple superfluous markers at the start of strong"
);
assert_eq!(
to_html("__foo___"),
"<p><strong>foo</strong>_</p>",
"should support a superfluous marker at the end of strong"
);
assert_eq!(
to_html("_foo____"),
"<p><em>foo</em>___</p>",
"should support multiple superfluous markers at the end of strong"
);
// Rule 13.
assert_eq!(
to_html("**foo**"),
"<p><strong>foo</strong></p>",
"should support strong w/ `*`"
);
assert_eq!(
to_html("*_foo_*"),
"<p><em><em>foo</em></em></p>",
"should support emphasis directly in emphasis w/ `_` in `*`"
);
assert_eq!(
to_html("__foo__"),
"<p><strong>foo</strong></p>",
"should support strong w/ `_`"
);
assert_eq!(
to_html("_*foo*_"),
"<p><em><em>foo</em></em></p>",
"should support emphasis directly in emphasis w/ `*` in `_`"
);
assert_eq!(
to_html("****foo****"),
"<p><strong><strong>foo</strong></strong></p>",
"should support strong emphasis directly in strong emphasis w/ `*`"
);
assert_eq!(
to_html("____foo____"),
"<p><strong><strong>foo</strong></strong></p>",
"should support strong emphasis directly in strong emphasis w/ `_`"
);
assert_eq!(
to_html("******foo******"),
"<p><strong><strong><strong>foo</strong></strong></strong></p>",
"should support indefinite strong emphasis"
);
// Rule 14.
assert_eq!(
to_html("***foo***"),
"<p><em><strong>foo</strong></em></p>",
"should support strong directly in emphasis w/ `*`"
);
assert_eq!(
to_html("___foo___"),
"<p><em><strong>foo</strong></em></p>",
"should support strong directly in emphasis w/ `_`"
);
// Rule 15.
assert_eq!(
to_html("*foo _bar* baz_"),
"<p><em>foo _bar</em> baz_</p>",
"should not support mismatched emphasis"
);
assert_eq!(
to_html("*foo __bar *baz bim__ bam*"),
"<p><em>foo <strong>bar *baz bim</strong> bam</em></p>",
"should not support mismatched strong emphasis"
);
// Rule 16.
assert_eq!(
to_html("**foo **bar baz**"),
"<p>**foo <strong>bar baz</strong></p>",
"should not shortest strong possible"
);
assert_eq!(
to_html("*foo *bar baz*"),
"<p>*foo <em>bar baz</em></p>",
"should not shortest emphasis possible"
);
// Rule 17.
assert_eq!(
to_html("*[bar*](/url)"),
"<p>*<a href=\"/url\">bar*</a></p>",
"should not mismatch inside links (1)"
);
assert_eq!(
to_html("_[bar_](/url)"),
"<p>_<a href=\"/url\">bar_</a></p>",
"should not mismatch inside links (1)"
);
assert_eq!(
to_html_with_options("*<img src=\"foo\" title=\"*\"/>", &danger)?,
"<p>*<img src=\"foo\" title=\"*\"/></p>",
"should not end inside HTML"
);
assert_eq!(
to_html_with_options("*<img src=\"foo\" title=\"*\"/>", &danger)?,
"<p>*<img src=\"foo\" title=\"*\"/></p>",
"should not end emphasis inside HTML"
);
assert_eq!(
to_html_with_options("**<a href=\"**\">", &danger)?,
"<p>**<a href=\"**\"></p>",
"should not end strong inside HTML (1)"
);
assert_eq!(
to_html_with_options("__<a href=\"__\">", &danger)?,
"<p>__<a href=\"__\"></p>",
"should not end strong inside HTML (2)"
);
assert_eq!(
to_html("*a `*`*"),
"<p><em>a <code>*</code></em></p>",
"should not end emphasis inside code (1)"
);
assert_eq!(
to_html("_a `_`_"),
"<p><em>a <code>_</code></em></p>",
"should not end emphasis inside code (2)"
);
assert_eq!(
to_html("**a<http://foo.bar/?q=**>"),
"<p>**a<a href=\"http://foo.bar/?q=**\">http://foo.bar/?q=**</a></p>",
"should not end strong emphasis inside autolinks (1)"
);
assert_eq!(
to_html("__a<http://foo.bar/?q=__>"),
"<p>__a<a href=\"http://foo.bar/?q=__\">http://foo.bar/?q=__</a></p>",
"should not end strong emphasis inside autolinks (2)"
);
assert_eq!(
to_html_with_options(
"*a*",
&Options {
parse: ParseOptions {
constructs: Constructs {
attention: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>*a*</p>",
"should support turning off attention"
);
assert_eq!(
to_mdast("a *alpha* b **bravo** c.", &Default::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::Emphasis(Emphasis {
children: vec![Node::Text(Text {
value: "alpha".into(),
position: Some(Position::new(1, 4, 3, 1, 9, 8))
}),],
position: Some(Position::new(1, 3, 2, 1, 10, 9))
}),
Node::Text(Text {
value: " b ".into(),
position: Some(Position::new(1, 10, 9, 1, 13, 12))
}),
Node::Strong(Strong {
children: vec![Node::Text(Text {
value: "bravo".into(),
position: Some(Position::new(1, 15, 14, 1, 20, 19))
}),],
position: Some(Position::new(1, 13, 12, 1, 22, 21))
}),
Node::Text(Text {
value: " c.".into(),
position: Some(Position::new(1, 22, 21, 1, 25, 24))
})
],
position: Some(Position::new(1, 1, 0, 1, 25, 24))
})],
position: Some(Position::new(1, 1, 0, 1, 25, 24))
}),
"should support attention as `Emphasis`, `Strong`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/autolink.rs | Rust | use markdown::{
mdast::{Link, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn autolink() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("<http://foo.bar.baz>"),
"<p><a href=\"http://foo.bar.baz\">http://foo.bar.baz</a></p>",
"should support protocol autolinks (1)"
);
assert_eq!(
to_html("<http://foo.bar.baz/test?q=hello&id=22&boolean>"),
"<p><a href=\"http://foo.bar.baz/test?q=hello&id=22&boolean\">http://foo.bar.baz/test?q=hello&id=22&boolean</a></p>",
"should support protocol autolinks (2)"
);
assert_eq!(
to_html("<irc://foo.bar:2233/baz>"),
"<p><a href=\"irc://foo.bar:2233/baz\">irc://foo.bar:2233/baz</a></p>",
"should support protocol autolinks w/ non-HTTP schemes"
);
assert_eq!(
to_html("<MAILTO:FOO@BAR.BAZ>"),
"<p><a href=\"MAILTO:FOO@BAR.BAZ\">MAILTO:FOO@BAR.BAZ</a></p>",
"should support protocol autolinks in uppercase"
);
assert_eq!(
to_html("<a+b+c:d>"),
"<p><a href=\"\">a+b+c:d</a></p>",
"should support protocol autolinks w/ incorrect URIs (1, default)"
);
assert_eq!(
to_html_with_options("<a+b+c:d>", &danger)?,
"<p><a href=\"a+b+c:d\">a+b+c:d</a></p>",
"should support protocol autolinks w/ incorrect URIs (1, danger)"
);
assert_eq!(
to_html("<made-up-scheme://foo,bar>"),
"<p><a href=\"\">made-up-scheme://foo,bar</a></p>",
"should support protocol autolinks w/ incorrect URIs (2, default)"
);
assert_eq!(
to_html_with_options("<made-up-scheme://foo,bar>", &danger)?,
"<p><a href=\"made-up-scheme://foo,bar\">made-up-scheme://foo,bar</a></p>",
"should support protocol autolinks w/ incorrect URIs (2, danger)"
);
assert_eq!(
to_html("<http://../>"),
"<p><a href=\"http://../\">http://../</a></p>",
"should support protocol autolinks w/ incorrect URIs (3)"
);
assert_eq!(
to_html_with_options("<localhost:5001/foo>", &danger)?,
"<p><a href=\"localhost:5001/foo\">localhost:5001/foo</a></p>",
"should support protocol autolinks w/ incorrect URIs (4)"
);
assert_eq!(
to_html("<http://foo.bar/baz bim>"),
"<p><http://foo.bar/baz bim></p>",
"should not support protocol autolinks w/ spaces"
);
assert_eq!(
to_html("<http://example.com/\\[\\>"),
"<p><a href=\"http://example.com/%5C%5B%5C\">http://example.com/\\[\\</a></p>",
"should not support character escapes in protocol autolinks"
);
assert_eq!(
to_html("<foo@bar.example.com>"),
"<p><a href=\"mailto:foo@bar.example.com\">foo@bar.example.com</a></p>",
"should support email autolinks (1)"
);
assert_eq!(
to_html("<foo+special@Bar.baz-bar0.com>"),
"<p><a href=\"mailto:foo+special@Bar.baz-bar0.com\">foo+special@Bar.baz-bar0.com</a></p>",
"should support email autolinks (2)"
);
assert_eq!(
to_html("<a@b.c>"),
"<p><a href=\"mailto:a@b.c\">a@b.c</a></p>",
"should support email autolinks (3)"
);
assert_eq!(
to_html("<foo\\+@bar.example.com>"),
"<p><foo+@bar.example.com></p>",
"should not support character escapes in email autolinks"
);
assert_eq!(
to_html("<>"),
"<p><></p>",
"should not support empty autolinks"
);
assert_eq!(
to_html("< http://foo.bar >"),
"<p>< http://foo.bar ></p>",
"should not support autolinks w/ space"
);
assert_eq!(
to_html("<m:abc>"),
"<p><m:abc></p>",
"should not support autolinks w/ a single character for a scheme"
);
assert_eq!(
to_html("<foo.bar.baz>"),
"<p><foo.bar.baz></p>",
"should not support autolinks w/o a colon or at sign"
);
assert_eq!(
to_html("http://example.com"),
"<p>http://example.com</p>",
"should not support protocol autolinks w/o angle brackets"
);
assert_eq!(
to_html("foo@bar.example.com"),
"<p>foo@bar.example.com</p>",
"should not support email autolinks w/o angle brackets"
);
// Extra:
assert_eq!(
to_html("<*@example.com>"),
"<p><a href=\"mailto:*@example.com\">*@example.com</a></p>",
"should support autolinks w/ atext (1)"
);
assert_eq!(
to_html("<a*@example.com>"),
"<p><a href=\"mailto:a*@example.com\">a*@example.com</a></p>",
"should support autolinks w/ atext (2)"
);
assert_eq!(
to_html("<aa*@example.com>"),
"<p><a href=\"mailto:aa*@example.com\">aa*@example.com</a></p>",
"should support autolinks w/ atext (3)"
);
assert_eq!(
to_html("<aaa©@example.com>"),
"<p><aaa©@example.com></p>",
"should support non-atext in email autolinks local part (1)"
);
assert_eq!(
to_html("<a*a©@example.com>"),
"<p><a*a©@example.com></p>",
"should support non-atext in email autolinks local part (2)"
);
assert_eq!(
to_html("<asd@.example.com>"),
"<p><asd@.example.com></p>",
"should not support a dot after an at sign in email autolinks"
);
assert_eq!(
to_html("<asd@e..xample.com>"),
"<p><asd@e..xample.com></p>",
"should not support a dot after another dot in email autolinks"
);
assert_eq!(
to_html(
"<asd@012345678901234567890123456789012345678901234567890123456789012>"),
"<p><a href=\"mailto:asd@012345678901234567890123456789012345678901234567890123456789012\">asd@012345678901234567890123456789012345678901234567890123456789012</a></p>",
"should support 63 character in email autolinks domains"
);
assert_eq!(
to_html("<asd@0123456789012345678901234567890123456789012345678901234567890123>"),
"<p><asd@0123456789012345678901234567890123456789012345678901234567890123></p>",
"should not support 64 character in email autolinks domains"
);
assert_eq!(
to_html(
"<asd@012345678901234567890123456789012345678901234567890123456789012.a>"),
"<p><a href=\"mailto:asd@012345678901234567890123456789012345678901234567890123456789012.a\">asd@012345678901234567890123456789012345678901234567890123456789012.a</a></p>",
"should support a TLD after a 63 character domain in email autolinks"
);
assert_eq!(
to_html("<asd@0123456789012345678901234567890123456789012345678901234567890123.a>"),
"<p><asd@0123456789012345678901234567890123456789012345678901234567890123.a></p>",
"should not support a TLD after a 64 character domain in email autolinks"
);
assert_eq!(
to_html(
"<asd@a.012345678901234567890123456789012345678901234567890123456789012>"),
"<p><a href=\"mailto:asd@a.012345678901234567890123456789012345678901234567890123456789012\">asd@a.012345678901234567890123456789012345678901234567890123456789012</a></p>",
"should support a 63 character TLD in email autolinks"
);
assert_eq!(
to_html("<asd@a.0123456789012345678901234567890123456789012345678901234567890123>"),
"<p><asd@a.0123456789012345678901234567890123456789012345678901234567890123></p>",
"should not support a 64 character TLD in email autolinks"
);
assert_eq!(
to_html("<asd@-example.com>"),
"<p><asd@-example.com></p>",
"should not support a dash after `@` in email autolinks"
);
assert_eq!(
to_html("<asd@e-xample.com>"),
"<p><a href=\"mailto:asd@e-xample.com\">asd@e-xample.com</a></p>",
"should support a dash after other domain characters in email autolinks"
);
assert_eq!(
to_html("<asd@e--xample.com>"),
"<p><a href=\"mailto:asd@e--xample.com\">asd@e--xample.com</a></p>",
"should support a dash after another dash in email autolinks"
);
assert_eq!(
to_html("<asd@example-.com>"),
"<p><asd@example-.com></p>",
"should not support a dash before a dot in email autolinks"
);
assert_eq!(
to_html("<@example.com>"),
"<p><@example.com></p>",
"should not support an at sign at the start of email autolinks"
);
assert_eq!(
to_html_with_options(
"<a@b.co>",
&Options {
parse: ParseOptions {
constructs: Constructs {
autolink: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p><a@b.co></p>",
"should support turning off autolinks"
);
assert_eq!(
to_mdast(
"a <https://alpha.com> b <bravo@charlie.com> c.",
&Default::default()
)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::Link(Link {
url: "https://alpha.com".into(),
title: None,
children: vec![Node::Text(Text {
value: "https://alpha.com".into(),
position: Some(Position::new(1, 4, 3, 1, 21, 20))
}),],
position: Some(Position::new(1, 3, 2, 1, 22, 21))
}),
Node::Text(Text {
value: " b ".into(),
position: Some(Position::new(1, 22, 21, 1, 25, 24))
}),
Node::Link(Link {
url: "mailto:bravo@charlie.com".into(),
title: None,
children: vec![Node::Text(Text {
value: "bravo@charlie.com".into(),
position: Some(Position::new(1, 26, 25, 1, 43, 42))
}),],
position: Some(Position::new(1, 25, 24, 1, 44, 43))
}),
Node::Text(Text {
value: " c.".into(),
position: Some(Position::new(1, 44, 43, 1, 47, 46))
})
],
position: Some(Position::new(1, 1, 0, 1, 47, 46))
})],
position: Some(Position::new(1, 1, 0, 1, 47, 46))
}),
"should support autolinks as `Link`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/block_quote.rs | Rust | use markdown::{
mdast::{Blockquote, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn block_quote() -> Result<(), message::Message> {
assert_eq!(
to_html("> # a\n> b\n> c"),
"<blockquote>\n<h1>a</h1>\n<p>b\nc</p>\n</blockquote>",
"should support block quotes"
);
assert_eq!(
to_html("># a\n>b\n> c"),
"<blockquote>\n<h1>a</h1>\n<p>b\nc</p>\n</blockquote>",
"should support block quotes w/o space"
);
assert_eq!(
to_html(" > # a\n > b\n > c"),
"<blockquote>\n<h1>a</h1>\n<p>b\nc</p>\n</blockquote>",
"should support prefixing block quotes w/ spaces"
);
assert_eq!(
to_html(" > # a\n > b\n > c"),
"<pre><code>> # a\n> b\n> c\n</code></pre>",
"should not support block quotes w/ 4 spaces"
);
assert_eq!(
to_html("> # a\n> b\nc"),
"<blockquote>\n<h1>a</h1>\n<p>b\nc</p>\n</blockquote>",
"should support lazy content lines"
);
assert_eq!(
to_html("> a\nb\n> c"),
"<blockquote>\n<p>a\nb\nc</p>\n</blockquote>",
"should support lazy content lines inside block quotes"
);
assert_eq!(
to_html("> a\n> ---"),
"<blockquote>\n<h2>a</h2>\n</blockquote>",
"should support setext headings underlines in block quotes"
);
assert_eq!(
to_html("> a\n---"),
"<blockquote>\n<p>a</p>\n</blockquote>\n<hr />",
"should not support lazy setext headings underlines in block quotes"
);
assert_eq!(
to_html("> - a\n> - b"),
"<blockquote>\n<ul>\n<li>a</li>\n<li>b</li>\n</ul>\n</blockquote>",
"should support lists in block quotes"
);
assert_eq!(
to_html("> - a\n- b"),
"<blockquote>\n<ul>\n<li>a</li>\n</ul>\n</blockquote>\n<ul>\n<li>b</li>\n</ul>",
"should not support lazy lists in block quotes"
);
assert_eq!(
to_html("> a\n b"),
"<blockquote>\n<pre><code>a\n</code></pre>\n</blockquote>\n<pre><code>b\n</code></pre>",
"should not support lazy indented code in block quotes"
);
assert_eq!(
to_html("> ```\na\n```"),
"<blockquote>\n<pre><code></code></pre>\n</blockquote>\n<p>a</p>\n<pre><code></code></pre>\n",
"should not support lazy fenced code in block quotes (1)"
);
assert_eq!(
to_html("> a\n```\nb"),
"<blockquote>\n<p>a</p>\n</blockquote>\n<pre><code>b\n</code></pre>\n",
"should not support lazy fenced code in block quotes (2)"
);
assert_eq!(
to_html("> a\n - b"),
"<blockquote>\n<p>a\n- b</p>\n</blockquote>",
"should not support lazy indented code (or lazy list) in block quotes"
);
assert_eq!(
to_html("> [\na"),
"<blockquote>\n<p>[\na</p>\n</blockquote>",
"should support lazy, definition-like lines"
);
assert_eq!(
to_html("> [a]: b\nc"),
"<blockquote>\n<p>c</p>\n</blockquote>",
"should support a definition, followed by a lazy paragraph"
);
assert_eq!(
to_html(">"),
"<blockquote>\n</blockquote>",
"should support empty block quotes (1)"
);
assert_eq!(
to_html(">\n> \n> "),
"<blockquote>\n</blockquote>",
"should support empty block quotes (2)"
);
assert_eq!(
to_html(">\n> a\n> "),
"<blockquote>\n<p>a</p>\n</blockquote>",
"should support initial or final lazy empty block quote lines"
);
assert_eq!(
to_html("> a\n\n> b"),
"<blockquote>\n<p>a</p>\n</blockquote>\n<blockquote>\n<p>b</p>\n</blockquote>",
"should support adjacent block quotes"
);
assert_eq!(
to_html("> a\n> b"),
"<blockquote>\n<p>a\nb</p>\n</blockquote>",
"should support a paragraph in a block quote"
);
assert_eq!(
to_html("> a\n>\n> b"),
"<blockquote>\n<p>a</p>\n<p>b</p>\n</blockquote>",
"should support adjacent paragraphs in block quotes"
);
assert_eq!(
to_html("[a]\n\n> [a]: b"),
"<p><a href=\"b\">a</a></p>\n<blockquote>\n</blockquote>",
"should support a definition in a block quote (1)"
);
assert_eq!(
to_html("> [a]: b\n\n[a]"),
"<blockquote>\n</blockquote>\n<p><a href=\"b\">a</a></p>",
"should support a definition in a block quote (2)"
);
assert_eq!(
to_html("a\n> b"),
"<p>a</p>\n<blockquote>\n<p>b</p>\n</blockquote>",
"should support interrupting paragraphs w/ block quotes"
);
assert_eq!(
to_html("> a\n***\n> b"),
"<blockquote>\n<p>a</p>\n</blockquote>\n<hr />\n<blockquote>\n<p>b</p>\n</blockquote>",
"should support interrupting block quotes w/ thematic breaks"
);
assert_eq!(
to_html("> a\nb"),
"<blockquote>\n<p>a\nb</p>\n</blockquote>",
"should not support interrupting block quotes w/ paragraphs"
);
assert_eq!(
to_html("> a\n\nb"),
"<blockquote>\n<p>a</p>\n</blockquote>\n<p>b</p>",
"should support interrupting block quotes w/ blank lines"
);
assert_eq!(
to_html("> a\n>\nb"),
"<blockquote>\n<p>a</p>\n</blockquote>\n<p>b</p>",
"should not support interrupting a blank line in a block quotes w/ paragraphs"
);
assert_eq!(
to_html("> > > a\nb"),
"<blockquote>\n<blockquote>\n<blockquote>\n<p>a\nb</p>\n</blockquote>\n</blockquote>\n</blockquote>",
"should not support interrupting many block quotes w/ paragraphs (1)"
);
assert_eq!(
to_html(">>> a\n> b\n>>c"),
"<blockquote>\n<blockquote>\n<blockquote>\n<p>a\nb\nc</p>\n</blockquote>\n</blockquote>\n</blockquote>",
"should not support interrupting many block quotes w/ paragraphs (2)"
);
assert_eq!(
to_html("> a\n\n> b"),
"<blockquote>\n<pre><code>a\n</code></pre>\n</blockquote>\n<blockquote>\n<p>b</p>\n</blockquote>",
"should support 5 spaces for indented code, not 4"
);
assert_eq!(
to_html_with_options(
"> # a\n> b\n> c",
&Options {
parse: ParseOptions {
constructs: Constructs {
block_quote: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>> # a\n> b\n> c</p>",
"should support turning off block quotes"
);
assert_eq!(
to_mdast("> a", &Default::default())?,
Node::Root(Root {
children: vec![Node::Blockquote(Blockquote {
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "a".into(),
position: Some(Position::new(1, 3, 2, 1, 4, 3))
}),],
position: Some(Position::new(1, 3, 2, 1, 4, 3))
})],
position: Some(Position::new(1, 1, 0, 1, 4, 3))
})],
position: Some(Position::new(1, 1, 0, 1, 4, 3))
}),
"should support block quotes as `BlockQuote`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/character_escape.rs | Rust | use markdown::{
mdast::{Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn character_escape() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html(
"\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\-\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~"),
"<p>!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~</p>",
"should support escaped ascii punctuation"
);
assert_eq!(
to_html("\\→\\A\\a\\ \\3\\φ\\«"),
"<p>\\→\\A\\a\\ \\3\\φ\\«</p>",
"should not support other characters after a backslash"
);
assert_eq!(
to_html(
"\\*not emphasized*\n\\<br/> not a tag\n\\[not a link](/foo)\n\\`not code`\n1\\. not a list\n\\* not a list\n\\# not a heading\n\\[foo]: /url \"not a reference\"\n\\ö not a character entity"),
"<p>*not emphasized*\n<br/> not a tag\n[not a link](/foo)\n`not code`\n1. not a list\n* not a list\n# not a heading\n[foo]: /url "not a reference"\n&ouml; not a character entity</p>",
"should escape other constructs"
);
assert_eq!(
to_html("foo\\\nbar"),
"<p>foo<br />\nbar</p>",
"should escape a line break"
);
assert_eq!(
to_html("`` \\[\\` ``"),
"<p><code>\\[\\`</code></p>",
"should not escape in text code"
);
assert_eq!(
to_html(" \\[\\]"),
"<pre><code>\\[\\]\n</code></pre>",
"should not escape in indented code"
);
assert_eq!(
to_html("<http://example.com?find=\\*>"),
"<p><a href=\"http://example.com?find=%5C*\">http://example.com?find=\\*</a></p>",
"should not escape in autolink"
);
assert_eq!(
to_html_with_options("<a href=\"/bar\\/)\">", &danger)?,
"<a href=\"/bar\\/)\">",
"should not escape in flow html"
);
assert_eq!(
to_html("[foo](/bar\\* \"ti\\*tle\")"),
"<p><a href=\"/bar*\" title=\"ti*tle\">foo</a></p>",
"should escape in resource and title"
);
assert_eq!(
to_html("[foo]: /bar\\* \"ti\\*tle\"\n\n[foo]"),
"<p><a href=\"/bar*\" title=\"ti*tle\">foo</a></p>",
"should escape in definition resource and title"
);
assert_eq!(
to_html("``` foo\\+bar\nfoo\n```"),
"<pre><code class=\"language-foo+bar\">foo\n</code></pre>",
"should escape in fenced code info"
);
assert_eq!(
to_html_with_options(
"\\> a",
&Options {
parse: ParseOptions {
constructs: Constructs {
character_escape: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>\\> a</p>",
"should support turning off character escapes"
);
assert_eq!(
to_mdast("a \\* b", &Default::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "a * b".into(),
position: Some(Position::new(1, 1, 0, 1, 7, 6))
}),],
position: Some(Position::new(1, 1, 0, 1, 7, 6))
})],
position: Some(Position::new(1, 1, 0, 1, 7, 6))
}),
"should support character escapes as `Text`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/character_reference.rs | Rust | use markdown::{
mdast::{Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn character_reference() -> Result<(), message::Message> {
assert_eq!(
to_html(
" & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸"
),
"<p>\u{a0} & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸</p>",
"should support named character references"
);
assert_eq!(
to_html("# Ӓ Ϡ �"),
"<p># Ӓ Ϡ �</p>",
"should support decimal character references"
);
assert_eq!(
to_html("" ആ ಫ"),
"<p>" ആ ಫ</p>",
"should support hexadecimal character references"
);
assert_eq!(
to_html(
"  &x; &#; &#x;\n�\n&#abcdef0;\n&ThisIsNotDefined; &hi?;"),
"<p>&nbsp &x; &#; &#x;\n&#987654321;\n&#abcdef0;\n&ThisIsNotDefined; &hi?;</p>",
"should not support other things that look like character references"
);
assert_eq!(
to_html("©"),
"<p>&copy</p>",
"should not support character references w/o semicolon"
);
assert_eq!(
to_html("&MadeUpEntity;"),
"<p>&MadeUpEntity;</p>",
"should not support unknown named character references"
);
assert_eq!(
to_html_with_options(
"<a href=\"öö.html\">",
&Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
}
)?,
"<a href=\"öö.html\">",
"should not care about character references in html"
);
assert_eq!(
to_html("[foo](/föö \"föö\")"),
"<p><a href=\"/f%C3%B6%C3%B6\" title=\"föö\">foo</a></p>",
"should support character references in resource URLs and titles"
);
assert_eq!(
to_html("[foo]: /föö \"föö\"\n\n[foo]"),
"<p><a href=\"/f%C3%B6%C3%B6\" title=\"föö\">foo</a></p>",
"should support character references in definition URLs and titles"
);
assert_eq!(
to_html("``` föö\nfoo\n```"),
"<pre><code class=\"language-föö\">foo\n</code></pre>",
"should support character references in code language"
);
assert_eq!(
to_html("`föö`"),
"<p><code>f&ouml;&ouml;</code></p>",
"should not support character references in text code"
);
assert_eq!(
to_html(" föfö"),
"<pre><code>f&ouml;f&ouml;\n</code></pre>",
"should not support character references in indented code"
);
assert_eq!(
to_html("*foo*\n*foo*"),
"<p>*foo*\n<em>foo</em></p>",
"should not support character references as construct markers (1)"
);
assert_eq!(
to_html("* foo\n\n* foo"),
"<p>* foo</p>\n<ul>\n<li>foo</li>\n</ul>",
"should not support character references as construct markers (2)"
);
assert_eq!(
to_html("[a](url "tit")"),
"<p>[a](url "tit")</p>",
"should not support character references as construct markers (3)"
);
assert_eq!(
to_html("foo bar"),
"<p>foo\n\nbar</p>",
"should not support character references as whitespace (1)"
);
assert_eq!(
to_html("	foo"),
"<p>\tfoo</p>",
"should not support character references as whitespace (2)"
);
// Extra:
assert_eq!(
to_html("∳"),
"<p>∳</p>",
"should support the longest possible named character reference"
);
assert_eq!(
to_html("�"),
"<p>�</p>",
"should “support” a longest possible hexadecimal character reference"
);
assert_eq!(
to_html("�"),
"<p>�</p>",
"should “support” a longest possible decimal character reference"
);
assert_eq!(
to_html("&CounterClockwiseContourIntegrali;"),
"<p>&CounterClockwiseContourIntegrali;</p>",
"should not support the longest possible named character reference"
);
assert_eq!(
to_html("�"),
"<p>&#xff99999;</p>",
"should not support a longest possible hexadecimal character reference"
);
assert_eq!(
to_html("�"),
"<p>&#99999999;</p>",
"should not support a longest possible decimal character reference"
);
assert_eq!(
to_html("&-;"),
"<p>&-;</p>",
"should not support the other characters after `&`"
);
assert_eq!(
to_html("&#-;"),
"<p>&#-;</p>",
"should not support the other characters after `#`"
);
assert_eq!(
to_html("&#x-;"),
"<p>&#x-;</p>",
"should not support the other characters after `#x`"
);
assert_eq!(
to_html("<-;"),
"<p>&lt-;</p>",
"should not support the other characters inside a name"
);
assert_eq!(
to_html("	-;"),
"<p>&#9-;</p>",
"should not support the other characters inside a demical"
);
assert_eq!(
to_html("	-;"),
"<p>&#x9-;</p>",
"should not support the other characters inside a hexademical"
);
assert_eq!(
to_html_with_options(
"&",
&Options {
parse: ParseOptions {
constructs: Constructs {
character_reference: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>&amp;</p>",
"should support turning off character references"
);
assert_eq!(
to_mdast(" & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸\n# Ӓ Ϡ �\n" ആ ಫ", &Default::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "\u{a0} & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸\n# Ӓ Ϡ �\n\" ആ ಫ".into(),
position: Some(Position::new(1, 1, 0, 5, 23, 158))
}),],
position: Some(Position::new(1, 1, 0, 5, 23, 158))
})],
position: Some(Position::new(1, 1, 0, 5, 23, 158))
}),
"should support character references as `Text`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/code_fenced.rs | Rust | use markdown::{
mdast::{Code, Node, Root},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn code_fenced() -> Result<(), message::Message> {
assert_eq!(
to_html("```\n<\n >\n```"),
"<pre><code><\n >\n</code></pre>",
"should support fenced code w/ grave accents"
);
assert_eq!(
to_html("~~~\n<\n >\n~~~"),
"<pre><code><\n >\n</code></pre>",
"should support fenced code w/ tildes"
);
assert_eq!(
to_html("``\nfoo\n``"),
"<p><code>foo</code></p>",
"should not support fenced code w/ less than three markers"
);
assert_eq!(
to_html("```\naaa\n~~~\n```"),
"<pre><code>aaa\n~~~\n</code></pre>",
"should not support a tilde closing sequence for a grave accent opening sequence"
);
assert_eq!(
to_html("~~~\naaa\n```\n~~~"),
"<pre><code>aaa\n```\n</code></pre>",
"should not support a grave accent closing sequence for a tilde opening sequence"
);
assert_eq!(
to_html("````\naaa\n```\n``````"),
"<pre><code>aaa\n```\n</code></pre>",
"should support a closing sequence longer, but not shorter than, the opening"
);
assert_eq!(
to_html("~~~~\naaa\n~~~\n~~~~"),
"<pre><code>aaa\n~~~\n</code></pre>",
"should support a closing sequence equal to, but not shorter than, the opening"
);
assert_eq!(
to_html("```"),
"<pre><code></code></pre>\n",
"should support an eof right after an opening sequence"
);
assert_eq!(
to_html("`````\n\n```\naaa\n"),
"<pre><code>\n```\naaa\n</code></pre>\n",
"should support an eof somewhere in content"
);
assert_eq!(
to_html("> ```\n> aaa\n\nbbb"),
"<blockquote>\n<pre><code>aaa\n</code></pre>\n</blockquote>\n<p>bbb</p>",
"should support no closing sequence in a block quote"
);
assert_eq!(
to_html("```\n\n \n```"),
"<pre><code>\n \n</code></pre>",
"should support blank lines in fenced code"
);
assert_eq!(
to_html("```\n```"),
"<pre><code></code></pre>",
"should support empty fenced code"
);
assert_eq!(
to_html(" ```\n aaa\naaa\n```"),
"<pre><code>aaa\naaa\n</code></pre>",
"should remove up to one space from the content if the opening sequence is indented w/ 1 space"
);
assert_eq!(
to_html(" ```\naaa\n aaa\naaa\n ```"),
"<pre><code>aaa\naaa\naaa\n</code></pre>",
"should remove up to two space from the content if the opening sequence is indented w/ 2 spaces"
);
assert_eq!(
to_html(" ```\n aaa\n aaa\n aaa\n ```"),
"<pre><code>aaa\n aaa\naaa\n</code></pre>",
"should remove up to three space from the content if the opening sequence is indented w/ 3 spaces"
);
assert_eq!(
to_html(" ```\n aaa\n ```"),
"<pre><code>```\naaa\n```\n</code></pre>",
"should not support indenteding the opening sequence w/ 4 spaces"
);
assert_eq!(
to_html("```\naaa\n ```"),
"<pre><code>aaa\n</code></pre>",
"should support an indented closing sequence"
);
assert_eq!(
to_html(" ```\naaa\n ```"),
"<pre><code>aaa\n</code></pre>",
"should support a differently indented closing sequence than the opening sequence"
);
assert_eq!(
to_html("```\naaa\n ```\n"),
"<pre><code>aaa\n ```\n</code></pre>\n",
"should not support an indented closing sequence w/ 4 spaces"
);
assert_eq!(
to_html("``` ```\naaa"),
"<p><code> </code>\naaa</p>",
"should not support grave accents in the opening fence after the opening sequence"
);
assert_eq!(
to_html("~~~~~~\naaa\n~~~ ~~\n"),
"<pre><code>aaa\n~~~ ~~\n</code></pre>\n",
"should not support spaces in the closing sequence"
);
assert_eq!(
to_html("foo\n```\nbar\n```\nbaz"),
"<p>foo</p>\n<pre><code>bar\n</code></pre>\n<p>baz</p>",
"should support interrupting paragraphs"
);
assert_eq!(
to_html("foo\n---\n~~~\nbar\n~~~\n# baz"),
"<h2>foo</h2>\n<pre><code>bar\n</code></pre>\n<h1>baz</h1>",
"should support interrupting other content"
);
assert_eq!(
to_html("```ruby\ndef foo(x)\n return 3\nend\n```"),
"<pre><code class=\"language-ruby\">def foo(x)\n return 3\nend\n</code></pre>",
"should support the info string as a `language-` class (1)"
);
assert_eq!(
to_html("````;\n````"),
"<pre><code class=\"language-;\"></code></pre>",
"should support the info string as a `language-` class (2)"
);
assert_eq!(
to_html("~~~~ ruby startline=3 $%@#$\ndef foo(x)\n return 3\nend\n~~~~~~~"),
"<pre><code class=\"language-ruby\">def foo(x)\n return 3\nend\n</code></pre>",
"should support the info string as a `language-` class, but not the meta string"
);
assert_eq!(
to_html("``` aa ```\nfoo"),
"<p><code>aa</code>\nfoo</p>",
"should not support grave accents in the meta string"
);
assert_eq!(
to_html("~~~ aa ``` ~~~\nfoo\n~~~"),
"<pre><code class=\"language-aa\">foo\n</code></pre>",
"should support grave accents and tildes in the meta string of tilde fenced code"
);
assert_eq!(
to_html("```\n``` aaa\n```"),
"<pre><code>``` aaa\n</code></pre>",
"should not support info string on closing sequences"
);
// Our own:
assert_eq!(
to_html("``` "),
"<pre><code></code></pre>\n",
"should support an eof after whitespace, after the start fence sequence"
);
assert_eq!(
to_html("``` js\nalert(1)\n```"),
"<pre><code class=\"language-js\">alert(1)\n</code></pre>",
"should support whitespace between the sequence and the info string"
);
assert_eq!(
to_html("```js"),
"<pre><code class=\"language-js\"></code></pre>\n",
"should support an eof after the info string"
);
assert_eq!(
to_html("``` js \nalert(1)\n```"),
"<pre><code class=\"language-js\">alert(1)\n</code></pre>",
"should support whitespace after the info string"
);
assert_eq!(
to_html("```\n "),
"<pre><code> \n</code></pre>\n",
"should support an eof after whitespace in content"
);
assert_eq!(
to_html(" ```\n "),
"<pre><code></code></pre>\n",
"should support an eof in the prefix, in content"
);
assert_eq!(
to_html("```j\\+s©"),
"<pre><code class=\"language-j+s©\"></code></pre>\n",
"should support character escapes and character references in info strings"
);
assert_eq!(
to_html("```a\\&b\0c"),
"<pre><code class=\"language-a&b�c\"></code></pre>\n",
"should encode dangerous characters in languages"
);
assert_eq!(
to_html(" ```\naaa\n ```"),
"<pre><code>aaa\n ```\n</code></pre>\n",
"should not support a closing sequence w/ too much indent, regardless of opening sequence (1)"
);
assert_eq!(
to_html("> ```\n>\n>\n>\n\na"),
"<blockquote>\n<pre><code>\n\n\n</code></pre>\n</blockquote>\n<p>a</p>",
"should not support a closing sequence w/ too much indent, regardless of opening sequence (2)"
);
assert_eq!(
to_html("> ```a\nb"),
"<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<p>b</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html("> a\n```b"),
"<blockquote>\n<p>a</p>\n</blockquote>\n<pre><code class=\"language-b\"></code></pre>\n",
"should not support lazyness (2)"
);
assert_eq!(
to_html("> ```a\n```"),
"<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<pre><code></code></pre>\n",
"should not support lazyness (3)"
);
assert_eq!(
to_html_with_options(
"```",
&Options {
parse: ParseOptions {
constructs: Constructs {
code_fenced: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>```</p>",
"should support turning off code (fenced)"
);
assert_eq!(
to_mdast(
"```js extra\nconsole.log(1)\nconsole.log(2)\n```",
&Default::default()
)?,
Node::Root(Root {
children: vec![Node::Code(Code {
lang: Some("js".into()),
meta: Some("extra".into()),
value: "console.log(1)\nconsole.log(2)".into(),
position: Some(Position::new(1, 1, 0, 4, 4, 45))
})],
position: Some(Position::new(1, 1, 0, 4, 4, 45))
}),
"should support code (fenced) as `Code`s in mdast"
);
assert_eq!(
to_mdast("```\nasd", &Default::default())?,
Node::Root(Root {
children: vec![Node::Code(Code {
lang: None,
meta: None,
value: "asd".into(),
position: Some(Position::new(1, 1, 0, 2, 4, 7))
})],
position: Some(Position::new(1, 1, 0, 2, 4, 7))
}),
"should support code (fenced) w/o closing fence in mdast"
);
assert_eq!(
to_mdast("```\rasd\r```", &Default::default())?,
Node::Root(Root {
children: vec![Node::Code(Code {
lang: None,
meta: None,
value: "asd".into(),
position: Some(Position::new(1, 1, 0, 3, 4, 11))
})],
position: Some(Position::new(1, 1, 0, 3, 4, 11))
}),
"should support code (fenced) w/o CR line endings"
);
assert_eq!(
to_mdast("```\r\nasd\r\n```", &Default::default())?,
Node::Root(Root {
children: vec![Node::Code(Code {
lang: None,
meta: None,
value: "asd".into(),
position: Some(Position::new(1, 1, 0, 3, 4, 13))
})],
position: Some(Position::new(1, 1, 0, 3, 4, 13))
}),
"should support code (fenced) w/o CR+LF line endings"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/code_indented.rs | Rust | use markdown::{
mdast::{Code, Node, Root},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn code_indented() -> Result<(), message::Message> {
assert_eq!(
to_html(" a simple\n indented code block"),
"<pre><code>a simple\n indented code block\n</code></pre>",
"should support indented code"
);
assert_eq!(
to_html(" - foo\n\n bar"),
"<ul>\n<li>\n<p>foo</p>\n<p>bar</p>\n</li>\n</ul>",
"should prefer list item content over indented code (1)"
);
assert_eq!(
to_html("1. foo\n\n - bar"),
"<ol>\n<li>\n<p>foo</p>\n<ul>\n<li>bar</li>\n</ul>\n</li>\n</ol>",
"should prefer list item content over indented code (2)"
);
assert_eq!(
to_html(" <a/>\n *hi*\n\n - one"),
"<pre><code><a/>\n*hi*\n\n- one\n</code></pre>",
"should support blank lines in indented code (1)"
);
assert_eq!(
to_html(" chunk1\n\n chunk2\n \n \n \n chunk3"),
"<pre><code>chunk1\n\nchunk2\n\n\n\nchunk3\n</code></pre>",
"should support blank lines in indented code (2)"
);
assert_eq!(
to_html(" chunk1\n \n chunk2"),
"<pre><code>chunk1\n \n chunk2\n</code></pre>",
"should support blank lines in indented code (3)"
);
assert_eq!(
to_html("Foo\n bar"),
"<p>Foo\nbar</p>",
"should not support interrupting paragraphs"
);
assert_eq!(
to_html(" foo\nbar"),
"<pre><code>foo\n</code></pre>\n<p>bar</p>",
"should support paragraphs directly after indented code"
);
assert_eq!(
to_html("# Heading\n foo\nHeading\n------\n foo\n----"),
"<h1>Heading</h1>\n<pre><code>foo\n</code></pre>\n<h2>Heading</h2>\n<pre><code>foo\n</code></pre>\n<hr />",
"should mix w/ other content"
);
assert_eq!(
to_html(" foo\n bar"),
"<pre><code> foo\nbar\n</code></pre>",
"should support extra whitespace on the first line"
);
assert_eq!(
to_html("\n \n foo\n "),
"<pre><code>foo\n</code></pre>",
"should not support initial blank lines"
);
assert_eq!(
to_html(" foo "),
"<pre><code>foo \n</code></pre>",
"should support trailing whitespace"
);
assert_eq!(
to_html("> a\nb"),
"<blockquote>\n<pre><code>a\n</code></pre>\n</blockquote>\n<p>b</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html("> a\n b"),
"<blockquote>\n<p>a\nb</p>\n</blockquote>",
"should not support lazyness (2)"
);
assert_eq!(
to_html("> a\n b"),
"<blockquote>\n<p>a\nb</p>\n</blockquote>",
"should not support lazyness (3)"
);
assert_eq!(
to_html("> a\n b"),
"<blockquote>\n<p>a\nb</p>\n</blockquote>",
"should not support lazyness (4)"
);
assert_eq!(
to_html("> a\n b"),
"<blockquote>\n<pre><code>a\n</code></pre>\n</blockquote>\n<pre><code>b\n</code></pre>",
"should not support lazyness (5)"
);
assert_eq!(
to_html("> a\n b"),
"<blockquote>\n<pre><code>a\n</code></pre>\n</blockquote>\n<pre><code> b\n</code></pre>",
"should not support lazyness (6)"
);
assert_eq!(
to_html("> a\n b"),
"<blockquote>\n<pre><code>a\n</code></pre>\n</blockquote>\n<pre><code> b\n</code></pre>",
"should not support lazyness (7)"
);
let off = Options {
parse: ParseOptions {
constructs: Constructs {
code_indented: false,
..Default::default()
},
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options(" a", &off)?,
"<p>a</p>",
"should support turning off code (indented, 1)"
);
assert_eq!(
to_html_with_options("> a\n b", &off)?,
"<blockquote>\n<p>a\nb</p>\n</blockquote>",
"should support turning off code (indented, 2)"
);
assert_eq!(
to_html_with_options("- a\n b", &off)?,
"<ul>\n<li>a\nb</li>\n</ul>",
"should support turning off code (indented, 3)"
);
assert_eq!(
to_html_with_options("- a\n - b", &off)?,
"<ul>\n<li>a\n<ul>\n<li>b</li>\n</ul>\n</li>\n</ul>",
"should support turning off code (indented, 4)"
);
assert_eq!(
to_html_with_options("- a\n - b", &off)?,
"<ul>\n<li>a\n<ul>\n<li>b</li>\n</ul>\n</li>\n</ul>",
"should support turning off code (indented, 5)"
);
assert_eq!(
to_html_with_options("```\na\n ```", &off)?,
"<pre><code>a\n</code></pre>",
"should support turning off code (indented, 6)"
);
assert_eq!(
to_html_with_options(
"a <?\n ?>",
&Options {
parse: ParseOptions {
constructs: Constructs {
code_indented: false,
..Default::default()
},
..Default::default()
},
compile: CompileOptions {
allow_dangerous_html: true,
..Default::default()
}
}
)?,
"<p>a <?\n?></p>",
"should support turning off code (indented, 7)"
);
assert_eq!(
to_html_with_options("- Foo\n---", &off)?,
"<ul>\n<li>Foo</li>\n</ul>\n<hr />",
"should support turning off code (indented, 8)"
);
assert_eq!(
to_html_with_options("- Foo\n ---", &off)?,
"<ul>\n<li>\n<h2>Foo</h2>\n</li>\n</ul>",
"should support turning off code (indented, 9)"
);
assert_eq!(
to_mdast(
"\tconsole.log(1)\n console.log(2)\n",
&Default::default()
)?,
Node::Root(Root {
children: vec![Node::Code(Code {
lang: None,
meta: None,
value: "console.log(1)\nconsole.log(2)".into(),
position: Some(Position::new(1, 1, 0, 2, 19, 34))
})],
position: Some(Position::new(1, 1, 0, 3, 1, 35))
}),
"should support code (indented) as `Code`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/code_text.rs | Rust | use markdown::{
mdast::{InlineCode, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn code_text() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("`foo`"),
"<p><code>foo</code></p>",
"should support code"
);
assert_eq!(
to_html("`` foo ` bar ``"),
"<p><code>foo ` bar</code></p>",
"should support code w/ more accents"
);
assert_eq!(
to_html("` `` `"),
"<p><code>``</code></p>",
"should support code w/ fences inside, and padding"
);
assert_eq!(
to_html("` `` `"),
"<p><code> `` </code></p>",
"should support code w/ extra padding"
);
assert_eq!(
to_html("` a`"),
"<p><code> a</code></p>",
"should support code w/ unbalanced padding"
);
assert_eq!(
to_html("`\u{a0}b\u{a0}`"),
"<p><code>\u{a0}b\u{a0}</code></p>",
"should support code w/ non-padding whitespace"
);
assert_eq!(
to_html("` `\n` `"),
"<p><code> </code>\n<code> </code></p>",
"should support code w/o data"
);
assert_eq!(
to_html("``\nfoo\nbar \nbaz\n``"),
"<p><code>foo bar baz</code></p>",
"should support code w/o line endings (1)"
);
assert_eq!(
to_html("``\nfoo \n``"),
"<p><code>foo </code></p>",
"should support code w/o line endings (2)"
);
assert_eq!(
to_html("`foo bar \nbaz`"),
"<p><code>foo bar baz</code></p>",
"should not support whitespace collapsing"
);
assert_eq!(
to_html("`foo\\`bar`"),
"<p><code>foo\\</code>bar`</p>",
"should not support character escapes"
);
assert_eq!(
to_html("``foo`bar``"),
"<p><code>foo`bar</code></p>",
"should support more accents"
);
assert_eq!(
to_html("` foo `` bar `"),
"<p><code>foo `` bar</code></p>",
"should support less accents"
);
assert_eq!(
to_html("*foo`*`"),
"<p>*foo<code>*</code></p>",
"should precede over emphasis"
);
assert_eq!(
to_html("[not a `link](/foo`)"),
"<p>[not a <code>link](/foo</code>)</p>",
"should precede over links"
);
assert_eq!(
to_html("`<a href=\"`\">`"),
"<p><code><a href="</code>">`</p>",
"should have same precedence as HTML (1)"
);
assert_eq!(
to_html_with_options("<a href=\"`\">`", &danger)?,
"<p><a href=\"`\">`</p>",
"should have same precedence as HTML (2)"
);
assert_eq!(
to_html("`<http://foo.bar.`baz>`"),
"<p><code><http://foo.bar.</code>baz>`</p>",
"should have same precedence as autolinks (1)"
);
assert_eq!(
to_html("<http://foo.bar.`baz>`"),
"<p><a href=\"http://foo.bar.%60baz\">http://foo.bar.`baz</a>`</p>",
"should have same precedence as autolinks (2)"
);
assert_eq!(
to_html("```foo``"),
"<p>```foo``</p>",
"should not support more accents before a fence"
);
assert_eq!(
to_html("`foo"),
"<p>`foo</p>",
"should not support no closing fence (1)"
);
assert_eq!(
to_html("`foo``bar``"),
"<p>`foo<code>bar</code></p>",
"should not support no closing fence (2)"
);
// Extra:
assert_eq!(
to_html("`foo\t\tbar`"),
"<p><code>foo\t\tbar</code></p>",
"should support tabs in code"
);
assert_eq!(
to_html("\\``x`"),
"<p>`<code>x</code></p>",
"should support an escaped initial grave accent"
);
assert_eq!(
to_html_with_options(
"`a`",
&Options {
parse: ParseOptions {
constructs: Constructs {
code_text: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>`a`</p>",
"should support turning off code (text)"
);
assert_eq!(
to_mdast("a `alpha` b.", &Default::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::InlineCode(InlineCode {
value: "alpha".into(),
position: Some(Position::new(1, 3, 2, 1, 10, 9))
}),
Node::Text(Text {
value: " b.".into(),
position: Some(Position::new(1, 10, 9, 1, 13, 12))
})
],
position: Some(Position::new(1, 1, 0, 1, 13, 12))
})],
position: Some(Position::new(1, 1, 0, 1, 13, 12))
}),
"should support code (text) as `InlineCode`s in mdast"
);
assert_eq!(
to_mdast("` alpha `", &Default::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::InlineCode(InlineCode {
value: " alpha".into(),
position: Some(Position::new(1, 1, 0, 1, 11, 10))
}),],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
})],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
}),
"should strip one space from each side of `InlineCode` if the value starts and ends with space"
);
assert_eq!(
to_mdast("` `", &Default::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::InlineCode(InlineCode {
value: " ".into(),
position: Some(Position::new(1, 1, 0, 1, 6, 5))
}),],
position: Some(Position::new(1, 1, 0, 1, 6, 5))
})],
position: Some(Position::new(1, 1, 0, 1, 6, 5))
}),
"should not strip any whitespace if `InlineCode` is all whitespace"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/commonmark.rs | Rust | //! `CommonMark` test suite.
// > 👉 **Important**: this module is generated by `generate/src/main.rs`.
// > It is generate from the latest CommonMark website.
use markdown::{message, to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
#[rustfmt::skip]
#[test]
fn commonmark() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..CompileOptions::default()
},
..Options::default()
};
assert_eq!(
to_html_with_options(
r###" foo baz bim
"###,
&danger
)?,
r###"<pre><code>foo baz bim
</code></pre>
"###,
r###"Tabs (1)"###
);
assert_eq!(
to_html_with_options(
r###" foo baz bim
"###,
&danger
)?,
r###"<pre><code>foo baz bim
</code></pre>
"###,
r###"Tabs (2)"###
);
assert_eq!(
to_html_with_options(
r###" a a
ὐ a
"###,
&danger
)?,
r###"<pre><code>a a
ὐ a
</code></pre>
"###,
r###"Tabs (3)"###
);
assert_eq!(
to_html_with_options(
r###" - foo
bar
"###,
&danger
)?,
r###"<ul>
<li>
<p>foo</p>
<p>bar</p>
</li>
</ul>
"###,
r###"Tabs (4)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
bar
"###,
&danger
)?,
r###"<ul>
<li>
<p>foo</p>
<pre><code> bar
</code></pre>
</li>
</ul>
"###,
r###"Tabs (5)"###
);
assert_eq!(
to_html_with_options(
r###"> foo
"###,
&danger
)?,
r###"<blockquote>
<pre><code> foo
</code></pre>
</blockquote>
"###,
r###"Tabs (6)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
"###,
&danger
)?,
r###"<ul>
<li>
<pre><code> foo
</code></pre>
</li>
</ul>
"###,
r###"Tabs (7)"###
);
assert_eq!(
to_html_with_options(
r###" foo
bar
"###,
&danger
)?,
r###"<pre><code>foo
bar
</code></pre>
"###,
r###"Tabs (8)"###
);
assert_eq!(
to_html_with_options(
r###" - foo
- bar
- baz
"###,
&danger
)?,
r###"<ul>
<li>foo
<ul>
<li>bar
<ul>
<li>baz</li>
</ul>
</li>
</ul>
</li>
</ul>
"###,
r###"Tabs (9)"###
);
assert_eq!(
to_html_with_options(
r###"# Foo
"###,
&danger
)?,
r###"<h1>Foo</h1>
"###,
r###"Tabs (10)"###
);
assert_eq!(
to_html_with_options(
r###"* * *
"###,
&danger
)?,
r###"<hr />
"###,
r###"Tabs (11)"###
);
assert_eq!(
to_html_with_options(
r###"\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~
"###,
&danger
)?,
r###"<p>!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~</p>
"###,
r###"Backslash escapes (12)"###
);
assert_eq!(
to_html_with_options(
r###"\ \A\a\ \3\φ\«
"###,
&danger
)?,
r###"<p>\ \A\a\ \3\φ\«</p>
"###,
r###"Backslash escapes (13)"###
);
assert_eq!(
to_html_with_options(
r###"\*not emphasized*
\<br/> not a tag
\[not a link](/foo)
\`not code`
1\. not a list
\* not a list
\# not a heading
\[foo]: /url "not a reference"
\ö not a character entity
"###,
&danger
)?,
r###"<p>*not emphasized*
<br/> not a tag
[not a link](/foo)
`not code`
1. not a list
* not a list
# not a heading
[foo]: /url "not a reference"
&ouml; not a character entity</p>
"###,
r###"Backslash escapes (14)"###
);
assert_eq!(
to_html_with_options(
r###"\\*emphasis*
"###,
&danger
)?,
r###"<p>\<em>emphasis</em></p>
"###,
r###"Backslash escapes (15)"###
);
assert_eq!(
to_html_with_options(
r###"foo\
bar
"###,
&danger
)?,
r###"<p>foo<br />
bar</p>
"###,
r###"Backslash escapes (16)"###
);
assert_eq!(
to_html_with_options(
r###"`` \[\` ``
"###,
&danger
)?,
r###"<p><code>\[\`</code></p>
"###,
r###"Backslash escapes (17)"###
);
assert_eq!(
to_html_with_options(
r###" \[\]
"###,
&danger
)?,
r###"<pre><code>\[\]
</code></pre>
"###,
r###"Backslash escapes (18)"###
);
assert_eq!(
to_html_with_options(
r###"~~~
\[\]
~~~
"###,
&danger
)?,
r###"<pre><code>\[\]
</code></pre>
"###,
r###"Backslash escapes (19)"###
);
assert_eq!(
to_html_with_options(
r###"<https://example.com?find=\*>
"###,
&danger
)?,
r###"<p><a href="https://example.com?find=%5C*">https://example.com?find=\*</a></p>
"###,
r###"Backslash escapes (20)"###
);
assert_eq!(
to_html_with_options(
r###"<a href="/bar\/)">
"###,
&danger
)?,
r###"<a href="/bar\/)">
"###,
r###"Backslash escapes (21)"###
);
assert_eq!(
to_html_with_options(
r###"[foo](/bar\* "ti\*tle")
"###,
&danger
)?,
r###"<p><a href="/bar*" title="ti*tle">foo</a></p>
"###,
r###"Backslash escapes (22)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]
[foo]: /bar\* "ti\*tle"
"###,
&danger
)?,
r###"<p><a href="/bar*" title="ti*tle">foo</a></p>
"###,
r###"Backslash escapes (23)"###
);
assert_eq!(
to_html_with_options(
r###"``` foo\+bar
foo
```
"###,
&danger
)?,
r###"<pre><code class="language-foo+bar">foo
</code></pre>
"###,
r###"Backslash escapes (24)"###
);
assert_eq!(
to_html_with_options(
r###" & © Æ Ď
¾ ℋ ⅆ
∲ ≧̸
"###,
&danger
)?,
r###"<p> & © Æ Ď
¾ ℋ ⅆ
∲ ≧̸</p>
"###,
r###"Entity and numeric character references (25)"###
);
assert_eq!(
to_html_with_options(
r###"# Ӓ Ϡ �
"###,
&danger
)?,
r###"<p># Ӓ Ϡ �</p>
"###,
r###"Entity and numeric character references (26)"###
);
assert_eq!(
to_html_with_options(
r###"" ആ ಫ
"###,
&danger
)?,
r###"<p>" ആ ಫ</p>
"###,
r###"Entity and numeric character references (27)"###
);
assert_eq!(
to_html_with_options(
r###"  &x; &#; &#x;
�
&#abcdef0;
&ThisIsNotDefined; &hi?;
"###,
&danger
)?,
r###"<p>&nbsp &x; &#; &#x;
&#87654321;
&#abcdef0;
&ThisIsNotDefined; &hi?;</p>
"###,
r###"Entity and numeric character references (28)"###
);
assert_eq!(
to_html_with_options(
r###"©
"###,
&danger
)?,
r###"<p>&copy</p>
"###,
r###"Entity and numeric character references (29)"###
);
assert_eq!(
to_html_with_options(
r###"&MadeUpEntity;
"###,
&danger
)?,
r###"<p>&MadeUpEntity;</p>
"###,
r###"Entity and numeric character references (30)"###
);
assert_eq!(
to_html_with_options(
r###"<a href="öö.html">
"###,
&danger
)?,
r###"<a href="öö.html">
"###,
r###"Entity and numeric character references (31)"###
);
assert_eq!(
to_html_with_options(
r###"[foo](/föö "föö")
"###,
&danger
)?,
r###"<p><a href="/f%C3%B6%C3%B6" title="föö">foo</a></p>
"###,
r###"Entity and numeric character references (32)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]
[foo]: /föö "föö"
"###,
&danger
)?,
r###"<p><a href="/f%C3%B6%C3%B6" title="föö">foo</a></p>
"###,
r###"Entity and numeric character references (33)"###
);
assert_eq!(
to_html_with_options(
r###"``` föö
foo
```
"###,
&danger
)?,
r###"<pre><code class="language-föö">foo
</code></pre>
"###,
r###"Entity and numeric character references (34)"###
);
assert_eq!(
to_html_with_options(
r###"`föö`
"###,
&danger
)?,
r###"<p><code>f&ouml;&ouml;</code></p>
"###,
r###"Entity and numeric character references (35)"###
);
assert_eq!(
to_html_with_options(
r###" föfö
"###,
&danger
)?,
r###"<pre><code>f&ouml;f&ouml;
</code></pre>
"###,
r###"Entity and numeric character references (36)"###
);
assert_eq!(
to_html_with_options(
r###"*foo*
*foo*
"###,
&danger
)?,
r###"<p>*foo*
<em>foo</em></p>
"###,
r###"Entity and numeric character references (37)"###
);
assert_eq!(
to_html_with_options(
r###"* foo
* foo
"###,
&danger
)?,
r###"<p>* foo</p>
<ul>
<li>foo</li>
</ul>
"###,
r###"Entity and numeric character references (38)"###
);
assert_eq!(
to_html_with_options(
r###"foo bar
"###,
&danger
)?,
r###"<p>foo
bar</p>
"###,
r###"Entity and numeric character references (39)"###
);
assert_eq!(
to_html_with_options(
r###"	foo
"###,
&danger
)?,
r###"<p> foo</p>
"###,
r###"Entity and numeric character references (40)"###
);
assert_eq!(
to_html_with_options(
r###"[a](url "tit")
"###,
&danger
)?,
r###"<p>[a](url "tit")</p>
"###,
r###"Entity and numeric character references (41)"###
);
assert_eq!(
to_html_with_options(
r###"- `one
- two`
"###,
&danger
)?,
r###"<ul>
<li>`one</li>
<li>two`</li>
</ul>
"###,
r###"Precedence (42)"###
);
assert_eq!(
to_html_with_options(
r###"***
---
___
"###,
&danger
)?,
r###"<hr />
<hr />
<hr />
"###,
r###"Thematic breaks (43)"###
);
assert_eq!(
to_html_with_options(
r###"+++
"###,
&danger
)?,
r###"<p>+++</p>
"###,
r###"Thematic breaks (44)"###
);
assert_eq!(
to_html_with_options(
r###"===
"###,
&danger
)?,
r###"<p>===</p>
"###,
r###"Thematic breaks (45)"###
);
assert_eq!(
to_html_with_options(
r###"--
**
__
"###,
&danger
)?,
r###"<p>--
**
__</p>
"###,
r###"Thematic breaks (46)"###
);
assert_eq!(
to_html_with_options(
r###" ***
***
***
"###,
&danger
)?,
r###"<hr />
<hr />
<hr />
"###,
r###"Thematic breaks (47)"###
);
assert_eq!(
to_html_with_options(
r###" ***
"###,
&danger
)?,
r###"<pre><code>***
</code></pre>
"###,
r###"Thematic breaks (48)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
***
"###,
&danger
)?,
r###"<p>Foo
***</p>
"###,
r###"Thematic breaks (49)"###
);
assert_eq!(
to_html_with_options(
r###"_____________________________________
"###,
&danger
)?,
r###"<hr />
"###,
r###"Thematic breaks (50)"###
);
assert_eq!(
to_html_with_options(
r###" - - -
"###,
&danger
)?,
r###"<hr />
"###,
r###"Thematic breaks (51)"###
);
assert_eq!(
to_html_with_options(
r###" ** * ** * ** * **
"###,
&danger
)?,
r###"<hr />
"###,
r###"Thematic breaks (52)"###
);
assert_eq!(
to_html_with_options(
r###"- - - -
"###,
&danger
)?,
r###"<hr />
"###,
r###"Thematic breaks (53)"###
);
assert_eq!(
to_html_with_options(
r###"- - - -
"###,
&danger
)?,
r###"<hr />
"###,
r###"Thematic breaks (54)"###
);
assert_eq!(
to_html_with_options(
r###"_ _ _ _ a
a------
---a---
"###,
&danger
)?,
r###"<p>_ _ _ _ a</p>
<p>a------</p>
<p>---a---</p>
"###,
r###"Thematic breaks (55)"###
);
assert_eq!(
to_html_with_options(
r###" *-*
"###,
&danger
)?,
r###"<p><em>-</em></p>
"###,
r###"Thematic breaks (56)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
***
- bar
"###,
&danger
)?,
r###"<ul>
<li>foo</li>
</ul>
<hr />
<ul>
<li>bar</li>
</ul>
"###,
r###"Thematic breaks (57)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
***
bar
"###,
&danger
)?,
r###"<p>Foo</p>
<hr />
<p>bar</p>
"###,
r###"Thematic breaks (58)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
---
bar
"###,
&danger
)?,
r###"<h2>Foo</h2>
<p>bar</p>
"###,
r###"Thematic breaks (59)"###
);
assert_eq!(
to_html_with_options(
r###"* Foo
* * *
* Bar
"###,
&danger
)?,
r###"<ul>
<li>Foo</li>
</ul>
<hr />
<ul>
<li>Bar</li>
</ul>
"###,
r###"Thematic breaks (60)"###
);
assert_eq!(
to_html_with_options(
r###"- Foo
- * * *
"###,
&danger
)?,
r###"<ul>
<li>Foo</li>
<li>
<hr />
</li>
</ul>
"###,
r###"Thematic breaks (61)"###
);
assert_eq!(
to_html_with_options(
r###"# foo
## foo
### foo
#### foo
##### foo
###### foo
"###,
&danger
)?,
r###"<h1>foo</h1>
<h2>foo</h2>
<h3>foo</h3>
<h4>foo</h4>
<h5>foo</h5>
<h6>foo</h6>
"###,
r###"ATX headings (62)"###
);
assert_eq!(
to_html_with_options(
r###"####### foo
"###,
&danger
)?,
r###"<p>####### foo</p>
"###,
r###"ATX headings (63)"###
);
assert_eq!(
to_html_with_options(
r###"#5 bolt
#hashtag
"###,
&danger
)?,
r###"<p>#5 bolt</p>
<p>#hashtag</p>
"###,
r###"ATX headings (64)"###
);
assert_eq!(
to_html_with_options(
r###"\## foo
"###,
&danger
)?,
r###"<p>## foo</p>
"###,
r###"ATX headings (65)"###
);
assert_eq!(
to_html_with_options(
r###"# foo *bar* \*baz\*
"###,
&danger
)?,
r###"<h1>foo <em>bar</em> *baz*</h1>
"###,
r###"ATX headings (66)"###
);
assert_eq!(
to_html_with_options(
r###"# foo
"###,
&danger
)?,
r###"<h1>foo</h1>
"###,
r###"ATX headings (67)"###
);
assert_eq!(
to_html_with_options(
r###" ### foo
## foo
# foo
"###,
&danger
)?,
r###"<h3>foo</h3>
<h2>foo</h2>
<h1>foo</h1>
"###,
r###"ATX headings (68)"###
);
assert_eq!(
to_html_with_options(
r###" # foo
"###,
&danger
)?,
r###"<pre><code># foo
</code></pre>
"###,
r###"ATX headings (69)"###
);
assert_eq!(
to_html_with_options(
r###"foo
# bar
"###,
&danger
)?,
r###"<p>foo
# bar</p>
"###,
r###"ATX headings (70)"###
);
assert_eq!(
to_html_with_options(
r###"## foo ##
### bar ###
"###,
&danger
)?,
r###"<h2>foo</h2>
<h3>bar</h3>
"###,
r###"ATX headings (71)"###
);
assert_eq!(
to_html_with_options(
r###"# foo ##################################
##### foo ##
"###,
&danger
)?,
r###"<h1>foo</h1>
<h5>foo</h5>
"###,
r###"ATX headings (72)"###
);
assert_eq!(
to_html_with_options(
r###"### foo ###
"###,
&danger
)?,
r###"<h3>foo</h3>
"###,
r###"ATX headings (73)"###
);
assert_eq!(
to_html_with_options(
r###"### foo ### b
"###,
&danger
)?,
r###"<h3>foo ### b</h3>
"###,
r###"ATX headings (74)"###
);
assert_eq!(
to_html_with_options(
r###"# foo#
"###,
&danger
)?,
r###"<h1>foo#</h1>
"###,
r###"ATX headings (75)"###
);
assert_eq!(
to_html_with_options(
r###"### foo \###
## foo #\##
# foo \#
"###,
&danger
)?,
r###"<h3>foo ###</h3>
<h2>foo ###</h2>
<h1>foo #</h1>
"###,
r###"ATX headings (76)"###
);
assert_eq!(
to_html_with_options(
r###"****
## foo
****
"###,
&danger
)?,
r###"<hr />
<h2>foo</h2>
<hr />
"###,
r###"ATX headings (77)"###
);
assert_eq!(
to_html_with_options(
r###"Foo bar
# baz
Bar foo
"###,
&danger
)?,
r###"<p>Foo bar</p>
<h1>baz</h1>
<p>Bar foo</p>
"###,
r###"ATX headings (78)"###
);
assert_eq!(
to_html_with_options(
r###"##
#
### ###
"###,
&danger
)?,
r###"<h2></h2>
<h1></h1>
<h3></h3>
"###,
r###"ATX headings (79)"###
);
assert_eq!(
to_html_with_options(
r###"Foo *bar*
=========
Foo *bar*
---------
"###,
&danger
)?,
r###"<h1>Foo <em>bar</em></h1>
<h2>Foo <em>bar</em></h2>
"###,
r###"Setext headings (80)"###
);
assert_eq!(
to_html_with_options(
r###"Foo *bar
baz*
====
"###,
&danger
)?,
r###"<h1>Foo <em>bar
baz</em></h1>
"###,
r###"Setext headings (81)"###
);
assert_eq!(
to_html_with_options(
r###" Foo *bar
baz*
====
"###,
&danger
)?,
r###"<h1>Foo <em>bar
baz</em></h1>
"###,
r###"Setext headings (82)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
-------------------------
Foo
=
"###,
&danger
)?,
r###"<h2>Foo</h2>
<h1>Foo</h1>
"###,
r###"Setext headings (83)"###
);
assert_eq!(
to_html_with_options(
r###" Foo
---
Foo
-----
Foo
===
"###,
&danger
)?,
r###"<h2>Foo</h2>
<h2>Foo</h2>
<h1>Foo</h1>
"###,
r###"Setext headings (84)"###
);
assert_eq!(
to_html_with_options(
r###" Foo
---
Foo
---
"###,
&danger
)?,
r###"<pre><code>Foo
---
Foo
</code></pre>
<hr />
"###,
r###"Setext headings (85)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
----
"###,
&danger
)?,
r###"<h2>Foo</h2>
"###,
r###"Setext headings (86)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
---
"###,
&danger
)?,
r###"<p>Foo
---</p>
"###,
r###"Setext headings (87)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
= =
Foo
--- -
"###,
&danger
)?,
r###"<p>Foo
= =</p>
<p>Foo</p>
<hr />
"###,
r###"Setext headings (88)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
-----
"###,
&danger
)?,
r###"<h2>Foo</h2>
"###,
r###"Setext headings (89)"###
);
assert_eq!(
to_html_with_options(
r###"Foo\
----
"###,
&danger
)?,
r###"<h2>Foo\</h2>
"###,
r###"Setext headings (90)"###
);
assert_eq!(
to_html_with_options(
r###"`Foo
----
`
<a title="a lot
---
of dashes"/>
"###,
&danger
)?,
r###"<h2>`Foo</h2>
<p>`</p>
<h2><a title="a lot</h2>
<p>of dashes"/></p>
"###,
r###"Setext headings (91)"###
);
assert_eq!(
to_html_with_options(
r###"> Foo
---
"###,
&danger
)?,
r###"<blockquote>
<p>Foo</p>
</blockquote>
<hr />
"###,
r###"Setext headings (92)"###
);
assert_eq!(
to_html_with_options(
r###"> foo
bar
===
"###,
&danger
)?,
r###"<blockquote>
<p>foo
bar
===</p>
</blockquote>
"###,
r###"Setext headings (93)"###
);
assert_eq!(
to_html_with_options(
r###"- Foo
---
"###,
&danger
)?,
r###"<ul>
<li>Foo</li>
</ul>
<hr />
"###,
r###"Setext headings (94)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
Bar
---
"###,
&danger
)?,
r###"<h2>Foo
Bar</h2>
"###,
r###"Setext headings (95)"###
);
assert_eq!(
to_html_with_options(
r###"---
Foo
---
Bar
---
Baz
"###,
&danger
)?,
r###"<hr />
<h2>Foo</h2>
<h2>Bar</h2>
<p>Baz</p>
"###,
r###"Setext headings (96)"###
);
assert_eq!(
to_html_with_options(
r###"
====
"###,
&danger
)?,
r###"<p>====</p>
"###,
r###"Setext headings (97)"###
);
assert_eq!(
to_html_with_options(
r###"---
---
"###,
&danger
)?,
r###"<hr />
<hr />
"###,
r###"Setext headings (98)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
-----
"###,
&danger
)?,
r###"<ul>
<li>foo</li>
</ul>
<hr />
"###,
r###"Setext headings (99)"###
);
assert_eq!(
to_html_with_options(
r###" foo
---
"###,
&danger
)?,
r###"<pre><code>foo
</code></pre>
<hr />
"###,
r###"Setext headings (100)"###
);
assert_eq!(
to_html_with_options(
r###"> foo
-----
"###,
&danger
)?,
r###"<blockquote>
<p>foo</p>
</blockquote>
<hr />
"###,
r###"Setext headings (101)"###
);
assert_eq!(
to_html_with_options(
r###"\> foo
------
"###,
&danger
)?,
r###"<h2>> foo</h2>
"###,
r###"Setext headings (102)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
bar
---
baz
"###,
&danger
)?,
r###"<p>Foo</p>
<h2>bar</h2>
<p>baz</p>
"###,
r###"Setext headings (103)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
bar
---
baz
"###,
&danger
)?,
r###"<p>Foo
bar</p>
<hr />
<p>baz</p>
"###,
r###"Setext headings (104)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
bar
* * *
baz
"###,
&danger
)?,
r###"<p>Foo
bar</p>
<hr />
<p>baz</p>
"###,
r###"Setext headings (105)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
bar
\---
baz
"###,
&danger
)?,
r###"<p>Foo
bar
---
baz</p>
"###,
r###"Setext headings (106)"###
);
assert_eq!(
to_html_with_options(
r###" a simple
indented code block
"###,
&danger
)?,
r###"<pre><code>a simple
indented code block
</code></pre>
"###,
r###"Indented code blocks (107)"###
);
assert_eq!(
to_html_with_options(
r###" - foo
bar
"###,
&danger
)?,
r###"<ul>
<li>
<p>foo</p>
<p>bar</p>
</li>
</ul>
"###,
r###"Indented code blocks (108)"###
);
assert_eq!(
to_html_with_options(
r###"1. foo
- bar
"###,
&danger
)?,
r###"<ol>
<li>
<p>foo</p>
<ul>
<li>bar</li>
</ul>
</li>
</ol>
"###,
r###"Indented code blocks (109)"###
);
assert_eq!(
to_html_with_options(
r###" <a/>
*hi*
- one
"###,
&danger
)?,
r###"<pre><code><a/>
*hi*
- one
</code></pre>
"###,
r###"Indented code blocks (110)"###
);
assert_eq!(
to_html_with_options(
r###" chunk1
chunk2
chunk3
"###,
&danger
)?,
r###"<pre><code>chunk1
chunk2
chunk3
</code></pre>
"###,
r###"Indented code blocks (111)"###
);
assert_eq!(
to_html_with_options(
r###" chunk1
chunk2
"###,
&danger
)?,
r###"<pre><code>chunk1
chunk2
</code></pre>
"###,
r###"Indented code blocks (112)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
bar
"###,
&danger
)?,
r###"<p>Foo
bar</p>
"###,
r###"Indented code blocks (113)"###
);
assert_eq!(
to_html_with_options(
r###" foo
bar
"###,
&danger
)?,
r###"<pre><code>foo
</code></pre>
<p>bar</p>
"###,
r###"Indented code blocks (114)"###
);
assert_eq!(
to_html_with_options(
r###"# Heading
foo
Heading
------
foo
----
"###,
&danger
)?,
r###"<h1>Heading</h1>
<pre><code>foo
</code></pre>
<h2>Heading</h2>
<pre><code>foo
</code></pre>
<hr />
"###,
r###"Indented code blocks (115)"###
);
assert_eq!(
to_html_with_options(
r###" foo
bar
"###,
&danger
)?,
r###"<pre><code> foo
bar
</code></pre>
"###,
r###"Indented code blocks (116)"###
);
assert_eq!(
to_html_with_options(
r###"
foo
"###,
&danger
)?,
r###"<pre><code>foo
</code></pre>
"###,
r###"Indented code blocks (117)"###
);
assert_eq!(
to_html_with_options(
r###" foo
"###,
&danger
)?,
r###"<pre><code>foo
</code></pre>
"###,
r###"Indented code blocks (118)"###
);
assert_eq!(
to_html_with_options(
r###"```
<
>
```
"###,
&danger
)?,
r###"<pre><code><
>
</code></pre>
"###,
r###"Fenced code blocks (119)"###
);
assert_eq!(
to_html_with_options(
r###"~~~
<
>
~~~
"###,
&danger
)?,
r###"<pre><code><
>
</code></pre>
"###,
r###"Fenced code blocks (120)"###
);
assert_eq!(
to_html_with_options(
r###"``
foo
``
"###,
&danger
)?,
r###"<p><code>foo</code></p>
"###,
r###"Fenced code blocks (121)"###
);
assert_eq!(
to_html_with_options(
r###"```
aaa
~~~
```
"###,
&danger
)?,
r###"<pre><code>aaa
~~~
</code></pre>
"###,
r###"Fenced code blocks (122)"###
);
assert_eq!(
to_html_with_options(
r###"~~~
aaa
```
~~~
"###,
&danger
)?,
r###"<pre><code>aaa
```
</code></pre>
"###,
r###"Fenced code blocks (123)"###
);
assert_eq!(
to_html_with_options(
r###"````
aaa
```
``````
"###,
&danger
)?,
r###"<pre><code>aaa
```
</code></pre>
"###,
r###"Fenced code blocks (124)"###
);
assert_eq!(
to_html_with_options(
r###"~~~~
aaa
~~~
~~~~
"###,
&danger
)?,
r###"<pre><code>aaa
~~~
</code></pre>
"###,
r###"Fenced code blocks (125)"###
);
assert_eq!(
to_html_with_options(
r###"```
"###,
&danger
)?,
r###"<pre><code></code></pre>
"###,
r###"Fenced code blocks (126)"###
);
assert_eq!(
to_html_with_options(
r###"`````
```
aaa
"###,
&danger
)?,
r###"<pre><code>
```
aaa
</code></pre>
"###,
r###"Fenced code blocks (127)"###
);
assert_eq!(
to_html_with_options(
r###"> ```
> aaa
bbb
"###,
&danger
)?,
r###"<blockquote>
<pre><code>aaa
</code></pre>
</blockquote>
<p>bbb</p>
"###,
r###"Fenced code blocks (128)"###
);
assert_eq!(
to_html_with_options(
r###"```
```
"###,
&danger
)?,
r###"<pre><code>
</code></pre>
"###,
r###"Fenced code blocks (129)"###
);
assert_eq!(
to_html_with_options(
r###"```
```
"###,
&danger
)?,
r###"<pre><code></code></pre>
"###,
r###"Fenced code blocks (130)"###
);
assert_eq!(
to_html_with_options(
r###" ```
aaa
aaa
```
"###,
&danger
)?,
r###"<pre><code>aaa
aaa
</code></pre>
"###,
r###"Fenced code blocks (131)"###
);
assert_eq!(
to_html_with_options(
r###" ```
aaa
aaa
aaa
```
"###,
&danger
)?,
r###"<pre><code>aaa
aaa
aaa
</code></pre>
"###,
r###"Fenced code blocks (132)"###
);
assert_eq!(
to_html_with_options(
r###" ```
aaa
aaa
aaa
```
"###,
&danger
)?,
r###"<pre><code>aaa
aaa
aaa
</code></pre>
"###,
r###"Fenced code blocks (133)"###
);
assert_eq!(
to_html_with_options(
r###" ```
aaa
```
"###,
&danger
)?,
r###"<pre><code>```
aaa
```
</code></pre>
"###,
r###"Fenced code blocks (134)"###
);
assert_eq!(
to_html_with_options(
r###"```
aaa
```
"###,
&danger
)?,
r###"<pre><code>aaa
</code></pre>
"###,
r###"Fenced code blocks (135)"###
);
assert_eq!(
to_html_with_options(
r###" ```
aaa
```
"###,
&danger
)?,
r###"<pre><code>aaa
</code></pre>
"###,
r###"Fenced code blocks (136)"###
);
assert_eq!(
to_html_with_options(
r###"```
aaa
```
"###,
&danger
)?,
r###"<pre><code>aaa
```
</code></pre>
"###,
r###"Fenced code blocks (137)"###
);
assert_eq!(
to_html_with_options(
r###"``` ```
aaa
"###,
&danger
)?,
r###"<p><code> </code>
aaa</p>
"###,
r###"Fenced code blocks (138)"###
);
assert_eq!(
to_html_with_options(
r###"~~~~~~
aaa
~~~ ~~
"###,
&danger
)?,
r###"<pre><code>aaa
~~~ ~~
</code></pre>
"###,
r###"Fenced code blocks (139)"###
);
assert_eq!(
to_html_with_options(
r###"foo
```
bar
```
baz
"###,
&danger
)?,
r###"<p>foo</p>
<pre><code>bar
</code></pre>
<p>baz</p>
"###,
r###"Fenced code blocks (140)"###
);
assert_eq!(
to_html_with_options(
r###"foo
---
~~~
bar
~~~
# baz
"###,
&danger
)?,
r###"<h2>foo</h2>
<pre><code>bar
</code></pre>
<h1>baz</h1>
"###,
r###"Fenced code blocks (141)"###
);
assert_eq!(
to_html_with_options(
r###"```ruby
def foo(x)
return 3
end
```
"###,
&danger
)?,
r###"<pre><code class="language-ruby">def foo(x)
return 3
end
</code></pre>
"###,
r###"Fenced code blocks (142)"###
);
assert_eq!(
to_html_with_options(
r###"~~~~ ruby startline=3 $%@#$
def foo(x)
return 3
end
~~~~~~~
"###,
&danger
)?,
r###"<pre><code class="language-ruby">def foo(x)
return 3
end
</code></pre>
"###,
r###"Fenced code blocks (143)"###
);
assert_eq!(
to_html_with_options(
r###"````;
````
"###,
&danger
)?,
r###"<pre><code class="language-;"></code></pre>
"###,
r###"Fenced code blocks (144)"###
);
assert_eq!(
to_html_with_options(
r###"``` aa ```
foo
"###,
&danger
)?,
r###"<p><code>aa</code>
foo</p>
"###,
r###"Fenced code blocks (145)"###
);
assert_eq!(
to_html_with_options(
r###"~~~ aa ``` ~~~
foo
~~~
"###,
&danger
)?,
r###"<pre><code class="language-aa">foo
</code></pre>
"###,
r###"Fenced code blocks (146)"###
);
assert_eq!(
to_html_with_options(
r###"```
``` aaa
```
"###,
&danger
)?,
r###"<pre><code>``` aaa
</code></pre>
"###,
r###"Fenced code blocks (147)"###
);
assert_eq!(
to_html_with_options(
r###"<table><tr><td>
<pre>
**Hello**,
_world_.
</pre>
</td></tr></table>
"###,
&danger
)?,
r###"<table><tr><td>
<pre>
**Hello**,
<p><em>world</em>.
</pre></p>
</td></tr></table>
"###,
r###"HTML blocks (148)"###
);
assert_eq!(
to_html_with_options(
r###"<table>
<tr>
<td>
hi
</td>
</tr>
</table>
okay.
"###,
&danger
)?,
r###"<table>
<tr>
<td>
hi
</td>
</tr>
</table>
<p>okay.</p>
"###,
r###"HTML blocks (149)"###
);
assert_eq!(
to_html_with_options(
r###" <div>
*hello*
<foo><a>
"###,
&danger
)?,
r###" <div>
*hello*
<foo><a>
"###,
r###"HTML blocks (150)"###
);
assert_eq!(
to_html_with_options(
r###"</div>
*foo*
"###,
&danger
)?,
r###"</div>
*foo*
"###,
r###"HTML blocks (151)"###
);
assert_eq!(
to_html_with_options(
r###"<DIV CLASS="foo">
*Markdown*
</DIV>
"###,
&danger
)?,
r###"<DIV CLASS="foo">
<p><em>Markdown</em></p>
</DIV>
"###,
r###"HTML blocks (152)"###
);
assert_eq!(
to_html_with_options(
r###"<div id="foo"
class="bar">
</div>
"###,
&danger
)?,
r###"<div id="foo"
class="bar">
</div>
"###,
r###"HTML blocks (153)"###
);
assert_eq!(
to_html_with_options(
r###"<div id="foo" class="bar
baz">
</div>
"###,
&danger
)?,
r###"<div id="foo" class="bar
baz">
</div>
"###,
r###"HTML blocks (154)"###
);
assert_eq!(
to_html_with_options(
r###"<div>
*foo*
*bar*
"###,
&danger
)?,
r###"<div>
*foo*
<p><em>bar</em></p>
"###,
r###"HTML blocks (155)"###
);
assert_eq!(
to_html_with_options(
r###"<div id="foo"
*hi*
"###,
&danger
)?,
r###"<div id="foo"
*hi*
"###,
r###"HTML blocks (156)"###
);
assert_eq!(
to_html_with_options(
r###"<div class
foo
"###,
&danger
)?,
r###"<div class
foo
"###,
r###"HTML blocks (157)"###
);
assert_eq!(
to_html_with_options(
r###"<div *???-&&&-<---
*foo*
"###,
&danger
)?,
r###"<div *???-&&&-<---
*foo*
"###,
r###"HTML blocks (158)"###
);
assert_eq!(
to_html_with_options(
r###"<div><a href="bar">*foo*</a></div>
"###,
&danger
)?,
r###"<div><a href="bar">*foo*</a></div>
"###,
r###"HTML blocks (159)"###
);
assert_eq!(
to_html_with_options(
r###"<table><tr><td>
foo
</td></tr></table>
"###,
&danger
)?,
r###"<table><tr><td>
foo
</td></tr></table>
"###,
r###"HTML blocks (160)"###
);
assert_eq!(
to_html_with_options(
r###"<div></div>
``` c
int x = 33;
```
"###,
&danger
)?,
r###"<div></div>
``` c
int x = 33;
```
"###,
r###"HTML blocks (161)"###
);
assert_eq!(
to_html_with_options(
r###"<a href="foo">
*bar*
</a>
"###,
&danger
)?,
r###"<a href="foo">
*bar*
</a>
"###,
r###"HTML blocks (162)"###
);
assert_eq!(
to_html_with_options(
r###"<Warning>
*bar*
</Warning>
"###,
&danger
)?,
r###"<Warning>
*bar*
</Warning>
"###,
r###"HTML blocks (163)"###
);
assert_eq!(
to_html_with_options(
r###"<i class="foo">
*bar*
</i>
"###,
&danger
)?,
r###"<i class="foo">
*bar*
</i>
"###,
r###"HTML blocks (164)"###
);
assert_eq!(
to_html_with_options(
r###"</ins>
*bar*
"###,
&danger
)?,
r###"</ins>
*bar*
"###,
r###"HTML blocks (165)"###
);
assert_eq!(
to_html_with_options(
r###"<del>
*foo*
</del>
"###,
&danger
)?,
r###"<del>
*foo*
</del>
"###,
r###"HTML blocks (166)"###
);
assert_eq!(
to_html_with_options(
r###"<del>
*foo*
</del>
"###,
&danger
)?,
r###"<del>
<p><em>foo</em></p>
</del>
"###,
r###"HTML blocks (167)"###
);
assert_eq!(
to_html_with_options(
r###"<del>*foo*</del>
"###,
&danger
)?,
r###"<p><del><em>foo</em></del></p>
"###,
r###"HTML blocks (168)"###
);
assert_eq!(
to_html_with_options(
r###"<pre language="haskell"><code>
import Text.HTML.TagSoup
main :: IO ()
main = print $ parseTags tags
</code></pre>
okay
"###,
&danger
)?,
r###"<pre language="haskell"><code>
import Text.HTML.TagSoup
main :: IO ()
main = print $ parseTags tags
</code></pre>
<p>okay</p>
"###,
r###"HTML blocks (169)"###
);
assert_eq!(
to_html_with_options(
r###"<script type="text/javascript">
// JavaScript example
document.getElementById("demo").innerHTML = "Hello JavaScript!";
</script>
okay
"###,
&danger
)?,
r###"<script type="text/javascript">
// JavaScript example
document.getElementById("demo").innerHTML = "Hello JavaScript!";
</script>
<p>okay</p>
"###,
r###"HTML blocks (170)"###
);
assert_eq!(
to_html_with_options(
r###"<textarea>
*foo*
_bar_
</textarea>
"###,
&danger
)?,
r###"<textarea>
*foo*
_bar_
</textarea>
"###,
r###"HTML blocks (171)"###
);
assert_eq!(
to_html_with_options(
r###"<style
type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
okay
"###,
&danger
)?,
r###"<style
type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
<p>okay</p>
"###,
r###"HTML blocks (172)"###
);
assert_eq!(
to_html_with_options(
r###"<style
type="text/css">
foo
"###,
&danger
)?,
r###"<style
type="text/css">
foo
"###,
r###"HTML blocks (173)"###
);
assert_eq!(
to_html_with_options(
r###"> <div>
> foo
bar
"###,
&danger
)?,
r###"<blockquote>
<div>
foo
</blockquote>
<p>bar</p>
"###,
r###"HTML blocks (174)"###
);
assert_eq!(
to_html_with_options(
r###"- <div>
- foo
"###,
&danger
)?,
r###"<ul>
<li>
<div>
</li>
<li>foo</li>
</ul>
"###,
r###"HTML blocks (175)"###
);
assert_eq!(
to_html_with_options(
r###"<style>p{color:red;}</style>
*foo*
"###,
&danger
)?,
r###"<style>p{color:red;}</style>
<p><em>foo</em></p>
"###,
r###"HTML blocks (176)"###
);
assert_eq!(
to_html_with_options(
r###"<!-- foo -->*bar*
*baz*
"###,
&danger
)?,
r###"<!-- foo -->*bar*
<p><em>baz</em></p>
"###,
r###"HTML blocks (177)"###
);
assert_eq!(
to_html_with_options(
r###"<script>
foo
</script>1. *bar*
"###,
&danger
)?,
r###"<script>
foo
</script>1. *bar*
"###,
r###"HTML blocks (178)"###
);
assert_eq!(
to_html_with_options(
r###"<!-- Foo
bar
baz -->
okay
"###,
&danger
)?,
r###"<!-- Foo
bar
baz -->
<p>okay</p>
"###,
r###"HTML blocks (179)"###
);
assert_eq!(
to_html_with_options(
r###"<?php
echo '>';
?>
okay
"###,
&danger
)?,
r###"<?php
echo '>';
?>
<p>okay</p>
"###,
r###"HTML blocks (180)"###
);
assert_eq!(
to_html_with_options(
r###"<!DOCTYPE html>
"###,
&danger
)?,
r###"<!DOCTYPE html>
"###,
r###"HTML blocks (181)"###
);
assert_eq!(
to_html_with_options(
r###"<![CDATA[
function matchwo(a,b)
{
if (a < b && a < 0) then {
return 1;
} else {
return 0;
}
}
]]>
okay
"###,
&danger
)?,
r###"<![CDATA[
function matchwo(a,b)
{
if (a < b && a < 0) then {
return 1;
} else {
return 0;
}
}
]]>
<p>okay</p>
"###,
r###"HTML blocks (182)"###
);
assert_eq!(
to_html_with_options(
r###" <!-- foo -->
<!-- foo -->
"###,
&danger
)?,
r###" <!-- foo -->
<pre><code><!-- foo -->
</code></pre>
"###,
r###"HTML blocks (183)"###
);
assert_eq!(
to_html_with_options(
r###" <div>
<div>
"###,
&danger
)?,
r###" <div>
<pre><code><div>
</code></pre>
"###,
r###"HTML blocks (184)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
<div>
bar
</div>
"###,
&danger
)?,
r###"<p>Foo</p>
<div>
bar
</div>
"###,
r###"HTML blocks (185)"###
);
assert_eq!(
to_html_with_options(
r###"<div>
bar
</div>
*foo*
"###,
&danger
)?,
r###"<div>
bar
</div>
*foo*
"###,
r###"HTML blocks (186)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
<a href="bar">
baz
"###,
&danger
)?,
r###"<p>Foo
<a href="bar">
baz</p>
"###,
r###"HTML blocks (187)"###
);
assert_eq!(
to_html_with_options(
r###"<div>
*Emphasized* text.
</div>
"###,
&danger
)?,
r###"<div>
<p><em>Emphasized</em> text.</p>
</div>
"###,
r###"HTML blocks (188)"###
);
assert_eq!(
to_html_with_options(
r###"<div>
*Emphasized* text.
</div>
"###,
&danger
)?,
r###"<div>
*Emphasized* text.
</div>
"###,
r###"HTML blocks (189)"###
);
assert_eq!(
to_html_with_options(
r###"<table>
<tr>
<td>
Hi
</td>
</tr>
</table>
"###,
&danger
)?,
r###"<table>
<tr>
<td>
Hi
</td>
</tr>
</table>
"###,
r###"HTML blocks (190)"###
);
assert_eq!(
to_html_with_options(
r###"<table>
<tr>
<td>
Hi
</td>
</tr>
</table>
"###,
&danger
)?,
r###"<table>
<tr>
<pre><code><td>
Hi
</td>
</code></pre>
</tr>
</table>
"###,
r###"HTML blocks (191)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /url "title"
[foo]
"###,
&danger
)?,
r###"<p><a href="/url" title="title">foo</a></p>
"###,
r###"Link reference definitions (192)"###
);
assert_eq!(
to_html_with_options(
r###" [foo]:
/url
'the title'
[foo]
"###,
&danger
)?,
r###"<p><a href="/url" title="the title">foo</a></p>
"###,
r###"Link reference definitions (193)"###
);
assert_eq!(
to_html_with_options(
r###"[Foo*bar\]]:my_(url) 'title (with parens)'
[Foo*bar\]]
"###,
&danger
)?,
r###"<p><a href="my_(url)" title="title (with parens)">Foo*bar]</a></p>
"###,
r###"Link reference definitions (194)"###
);
assert_eq!(
to_html_with_options(
r###"[Foo bar]:
<my url>
'title'
[Foo bar]
"###,
&danger
)?,
r###"<p><a href="my%20url" title="title">Foo bar</a></p>
"###,
r###"Link reference definitions (195)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /url '
title
line1
line2
'
[foo]
"###,
&danger
)?,
r###"<p><a href="/url" title="
title
line1
line2
">foo</a></p>
"###,
r###"Link reference definitions (196)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /url 'title
with blank line'
[foo]
"###,
&danger
)?,
r###"<p>[foo]: /url 'title</p>
<p>with blank line'</p>
<p>[foo]</p>
"###,
r###"Link reference definitions (197)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]:
/url
[foo]
"###,
&danger
)?,
r###"<p><a href="/url">foo</a></p>
"###,
r###"Link reference definitions (198)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]:
[foo]
"###,
&danger
)?,
r###"<p>[foo]:</p>
<p>[foo]</p>
"###,
r###"Link reference definitions (199)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: <>
[foo]
"###,
&danger
)?,
r###"<p><a href="">foo</a></p>
"###,
r###"Link reference definitions (200)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: <bar>(baz)
[foo]
"###,
&danger
)?,
r###"<p>[foo]: <bar>(baz)</p>
<p>[foo]</p>
"###,
r###"Link reference definitions (201)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /url\bar\*baz "foo\"bar\baz"
[foo]
"###,
&danger
)?,
r###"<p><a href="/url%5Cbar*baz" title="foo"bar\baz">foo</a></p>
"###,
r###"Link reference definitions (202)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]
[foo]: url
"###,
&danger
)?,
r###"<p><a href="url">foo</a></p>
"###,
r###"Link reference definitions (203)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]
[foo]: first
[foo]: second
"###,
&danger
)?,
r###"<p><a href="first">foo</a></p>
"###,
r###"Link reference definitions (204)"###
);
assert_eq!(
to_html_with_options(
r###"[FOO]: /url
[Foo]
"###,
&danger
)?,
r###"<p><a href="/url">Foo</a></p>
"###,
r###"Link reference definitions (205)"###
);
assert_eq!(
to_html_with_options(
r###"[ΑΓΩ]: /φου
[αγω]
"###,
&danger
)?,
r###"<p><a href="/%CF%86%CE%BF%CF%85">αγω</a></p>
"###,
r###"Link reference definitions (206)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /url
"###,
&danger
)?,
r###""###,
r###"Link reference definitions (207)"###
);
assert_eq!(
to_html_with_options(
r###"[
foo
]: /url
bar
"###,
&danger
)?,
r###"<p>bar</p>
"###,
r###"Link reference definitions (208)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /url "title" ok
"###,
&danger
)?,
r###"<p>[foo]: /url "title" ok</p>
"###,
r###"Link reference definitions (209)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /url
"title" ok
"###,
&danger
)?,
r###"<p>"title" ok</p>
"###,
r###"Link reference definitions (210)"###
);
assert_eq!(
to_html_with_options(
r###" [foo]: /url "title"
[foo]
"###,
&danger
)?,
r###"<pre><code>[foo]: /url "title"
</code></pre>
<p>[foo]</p>
"###,
r###"Link reference definitions (211)"###
);
assert_eq!(
to_html_with_options(
r###"```
[foo]: /url
```
[foo]
"###,
&danger
)?,
r###"<pre><code>[foo]: /url
</code></pre>
<p>[foo]</p>
"###,
r###"Link reference definitions (212)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
[bar]: /baz
[bar]
"###,
&danger
)?,
r###"<p>Foo
[bar]: /baz</p>
<p>[bar]</p>
"###,
r###"Link reference definitions (213)"###
);
assert_eq!(
to_html_with_options(
r###"# [Foo]
[foo]: /url
> bar
"###,
&danger
)?,
r###"<h1><a href="/url">Foo</a></h1>
<blockquote>
<p>bar</p>
</blockquote>
"###,
r###"Link reference definitions (214)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /url
bar
===
[foo]
"###,
&danger
)?,
r###"<h1>bar</h1>
<p><a href="/url">foo</a></p>
"###,
r###"Link reference definitions (215)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /url
===
[foo]
"###,
&danger
)?,
r###"<p>===
<a href="/url">foo</a></p>
"###,
r###"Link reference definitions (216)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /foo-url "foo"
[bar]: /bar-url
"bar"
[baz]: /baz-url
[foo],
[bar],
[baz]
"###,
&danger
)?,
r###"<p><a href="/foo-url" title="foo">foo</a>,
<a href="/bar-url" title="bar">bar</a>,
<a href="/baz-url">baz</a></p>
"###,
r###"Link reference definitions (217)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]
> [foo]: /url
"###,
&danger
)?,
r###"<p><a href="/url">foo</a></p>
<blockquote>
</blockquote>
"###,
r###"Link reference definitions (218)"###
);
assert_eq!(
to_html_with_options(
r###"aaa
bbb
"###,
&danger
)?,
r###"<p>aaa</p>
<p>bbb</p>
"###,
r###"Paragraphs (219)"###
);
assert_eq!(
to_html_with_options(
r###"aaa
bbb
ccc
ddd
"###,
&danger
)?,
r###"<p>aaa
bbb</p>
<p>ccc
ddd</p>
"###,
r###"Paragraphs (220)"###
);
assert_eq!(
to_html_with_options(
r###"aaa
bbb
"###,
&danger
)?,
r###"<p>aaa</p>
<p>bbb</p>
"###,
r###"Paragraphs (221)"###
);
assert_eq!(
to_html_with_options(
r###" aaa
bbb
"###,
&danger
)?,
r###"<p>aaa
bbb</p>
"###,
r###"Paragraphs (222)"###
);
assert_eq!(
to_html_with_options(
r###"aaa
bbb
ccc
"###,
&danger
)?,
r###"<p>aaa
bbb
ccc</p>
"###,
r###"Paragraphs (223)"###
);
assert_eq!(
to_html_with_options(
r###" aaa
bbb
"###,
&danger
)?,
r###"<p>aaa
bbb</p>
"###,
r###"Paragraphs (224)"###
);
assert_eq!(
to_html_with_options(
r###" aaa
bbb
"###,
&danger
)?,
r###"<pre><code>aaa
</code></pre>
<p>bbb</p>
"###,
r###"Paragraphs (225)"###
);
assert_eq!(
to_html_with_options(
r###"aaa
bbb
"###,
&danger
)?,
r###"<p>aaa<br />
bbb</p>
"###,
r###"Paragraphs (226)"###
);
assert_eq!(
to_html_with_options(
r###"
aaa
# aaa
"###,
&danger
)?,
r###"<p>aaa</p>
<h1>aaa</h1>
"###,
r###"Blank lines (227)"###
);
assert_eq!(
to_html_with_options(
r###"> # Foo
> bar
> baz
"###,
&danger
)?,
r###"<blockquote>
<h1>Foo</h1>
<p>bar
baz</p>
</blockquote>
"###,
r###"Block quotes (228)"###
);
assert_eq!(
to_html_with_options(
r###"># Foo
>bar
> baz
"###,
&danger
)?,
r###"<blockquote>
<h1>Foo</h1>
<p>bar
baz</p>
</blockquote>
"###,
r###"Block quotes (229)"###
);
assert_eq!(
to_html_with_options(
r###" > # Foo
> bar
> baz
"###,
&danger
)?,
r###"<blockquote>
<h1>Foo</h1>
<p>bar
baz</p>
</blockquote>
"###,
r###"Block quotes (230)"###
);
assert_eq!(
to_html_with_options(
r###" > # Foo
> bar
> baz
"###,
&danger
)?,
r###"<pre><code>> # Foo
> bar
> baz
</code></pre>
"###,
r###"Block quotes (231)"###
);
assert_eq!(
to_html_with_options(
r###"> # Foo
> bar
baz
"###,
&danger
)?,
r###"<blockquote>
<h1>Foo</h1>
<p>bar
baz</p>
</blockquote>
"###,
r###"Block quotes (232)"###
);
assert_eq!(
to_html_with_options(
r###"> bar
baz
> foo
"###,
&danger
)?,
r###"<blockquote>
<p>bar
baz
foo</p>
</blockquote>
"###,
r###"Block quotes (233)"###
);
assert_eq!(
to_html_with_options(
r###"> foo
---
"###,
&danger
)?,
r###"<blockquote>
<p>foo</p>
</blockquote>
<hr />
"###,
r###"Block quotes (234)"###
);
assert_eq!(
to_html_with_options(
r###"> - foo
- bar
"###,
&danger
)?,
r###"<blockquote>
<ul>
<li>foo</li>
</ul>
</blockquote>
<ul>
<li>bar</li>
</ul>
"###,
r###"Block quotes (235)"###
);
assert_eq!(
to_html_with_options(
r###"> foo
bar
"###,
&danger
)?,
r###"<blockquote>
<pre><code>foo
</code></pre>
</blockquote>
<pre><code>bar
</code></pre>
"###,
r###"Block quotes (236)"###
);
assert_eq!(
to_html_with_options(
r###"> ```
foo
```
"###,
&danger
)?,
r###"<blockquote>
<pre><code></code></pre>
</blockquote>
<p>foo</p>
<pre><code></code></pre>
"###,
r###"Block quotes (237)"###
);
assert_eq!(
to_html_with_options(
r###"> foo
- bar
"###,
&danger
)?,
r###"<blockquote>
<p>foo
- bar</p>
</blockquote>
"###,
r###"Block quotes (238)"###
);
assert_eq!(
to_html_with_options(
r###">
"###,
&danger
)?,
r###"<blockquote>
</blockquote>
"###,
r###"Block quotes (239)"###
);
assert_eq!(
to_html_with_options(
r###">
>
>
"###,
&danger
)?,
r###"<blockquote>
</blockquote>
"###,
r###"Block quotes (240)"###
);
assert_eq!(
to_html_with_options(
r###">
> foo
>
"###,
&danger
)?,
r###"<blockquote>
<p>foo</p>
</blockquote>
"###,
r###"Block quotes (241)"###
);
assert_eq!(
to_html_with_options(
r###"> foo
> bar
"###,
&danger
)?,
r###"<blockquote>
<p>foo</p>
</blockquote>
<blockquote>
<p>bar</p>
</blockquote>
"###,
r###"Block quotes (242)"###
);
assert_eq!(
to_html_with_options(
r###"> foo
> bar
"###,
&danger
)?,
r###"<blockquote>
<p>foo
bar</p>
</blockquote>
"###,
r###"Block quotes (243)"###
);
assert_eq!(
to_html_with_options(
r###"> foo
>
> bar
"###,
&danger
)?,
r###"<blockquote>
<p>foo</p>
<p>bar</p>
</blockquote>
"###,
r###"Block quotes (244)"###
);
assert_eq!(
to_html_with_options(
r###"foo
> bar
"###,
&danger
)?,
r###"<p>foo</p>
<blockquote>
<p>bar</p>
</blockquote>
"###,
r###"Block quotes (245)"###
);
assert_eq!(
to_html_with_options(
r###"> aaa
***
> bbb
"###,
&danger
)?,
r###"<blockquote>
<p>aaa</p>
</blockquote>
<hr />
<blockquote>
<p>bbb</p>
</blockquote>
"###,
r###"Block quotes (246)"###
);
assert_eq!(
to_html_with_options(
r###"> bar
baz
"###,
&danger
)?,
r###"<blockquote>
<p>bar
baz</p>
</blockquote>
"###,
r###"Block quotes (247)"###
);
assert_eq!(
to_html_with_options(
r###"> bar
baz
"###,
&danger
)?,
r###"<blockquote>
<p>bar</p>
</blockquote>
<p>baz</p>
"###,
r###"Block quotes (248)"###
);
assert_eq!(
to_html_with_options(
r###"> bar
>
baz
"###,
&danger
)?,
r###"<blockquote>
<p>bar</p>
</blockquote>
<p>baz</p>
"###,
r###"Block quotes (249)"###
);
assert_eq!(
to_html_with_options(
r###"> > > foo
bar
"###,
&danger
)?,
r###"<blockquote>
<blockquote>
<blockquote>
<p>foo
bar</p>
</blockquote>
</blockquote>
</blockquote>
"###,
r###"Block quotes (250)"###
);
assert_eq!(
to_html_with_options(
r###">>> foo
> bar
>>baz
"###,
&danger
)?,
r###"<blockquote>
<blockquote>
<blockquote>
<p>foo
bar
baz</p>
</blockquote>
</blockquote>
</blockquote>
"###,
r###"Block quotes (251)"###
);
assert_eq!(
to_html_with_options(
r###"> code
> not code
"###,
&danger
)?,
r###"<blockquote>
<pre><code>code
</code></pre>
</blockquote>
<blockquote>
<p>not code</p>
</blockquote>
"###,
r###"Block quotes (252)"###
);
assert_eq!(
to_html_with_options(
r###"A paragraph
with two lines.
indented code
> A block quote.
"###,
&danger
)?,
r###"<p>A paragraph
with two lines.</p>
<pre><code>indented code
</code></pre>
<blockquote>
<p>A block quote.</p>
</blockquote>
"###,
r###"List items (253)"###
);
assert_eq!(
to_html_with_options(
r###"1. A paragraph
with two lines.
indented code
> A block quote.
"###,
&danger
)?,
r###"<ol>
<li>
<p>A paragraph
with two lines.</p>
<pre><code>indented code
</code></pre>
<blockquote>
<p>A block quote.</p>
</blockquote>
</li>
</ol>
"###,
r###"List items (254)"###
);
assert_eq!(
to_html_with_options(
r###"- one
two
"###,
&danger
)?,
r###"<ul>
<li>one</li>
</ul>
<p>two</p>
"###,
r###"List items (255)"###
);
assert_eq!(
to_html_with_options(
r###"- one
two
"###,
&danger
)?,
r###"<ul>
<li>
<p>one</p>
<p>two</p>
</li>
</ul>
"###,
r###"List items (256)"###
);
assert_eq!(
to_html_with_options(
r###" - one
two
"###,
&danger
)?,
r###"<ul>
<li>one</li>
</ul>
<pre><code> two
</code></pre>
"###,
r###"List items (257)"###
);
assert_eq!(
to_html_with_options(
r###" - one
two
"###,
&danger
)?,
r###"<ul>
<li>
<p>one</p>
<p>two</p>
</li>
</ul>
"###,
r###"List items (258)"###
);
assert_eq!(
to_html_with_options(
r###" > > 1. one
>>
>> two
"###,
&danger
)?,
r###"<blockquote>
<blockquote>
<ol>
<li>
<p>one</p>
<p>two</p>
</li>
</ol>
</blockquote>
</blockquote>
"###,
r###"List items (259)"###
);
assert_eq!(
to_html_with_options(
r###">>- one
>>
> > two
"###,
&danger
)?,
r###"<blockquote>
<blockquote>
<ul>
<li>one</li>
</ul>
<p>two</p>
</blockquote>
</blockquote>
"###,
r###"List items (260)"###
);
assert_eq!(
to_html_with_options(
r###"-one
2.two
"###,
&danger
)?,
r###"<p>-one</p>
<p>2.two</p>
"###,
r###"List items (261)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
bar
"###,
&danger
)?,
r###"<ul>
<li>
<p>foo</p>
<p>bar</p>
</li>
</ul>
"###,
r###"List items (262)"###
);
assert_eq!(
to_html_with_options(
r###"1. foo
```
bar
```
baz
> bam
"###,
&danger
)?,
r###"<ol>
<li>
<p>foo</p>
<pre><code>bar
</code></pre>
<p>baz</p>
<blockquote>
<p>bam</p>
</blockquote>
</li>
</ol>
"###,
r###"List items (263)"###
);
assert_eq!(
to_html_with_options(
r###"- Foo
bar
baz
"###,
&danger
)?,
r###"<ul>
<li>
<p>Foo</p>
<pre><code>bar
baz
</code></pre>
</li>
</ul>
"###,
r###"List items (264)"###
);
assert_eq!(
to_html_with_options(
r###"123456789. ok
"###,
&danger
)?,
r###"<ol start="123456789">
<li>ok</li>
</ol>
"###,
r###"List items (265)"###
);
assert_eq!(
to_html_with_options(
r###"1234567890. not ok
"###,
&danger
)?,
r###"<p>1234567890. not ok</p>
"###,
r###"List items (266)"###
);
assert_eq!(
to_html_with_options(
r###"0. ok
"###,
&danger
)?,
r###"<ol start="0">
<li>ok</li>
</ol>
"###,
r###"List items (267)"###
);
assert_eq!(
to_html_with_options(
r###"003. ok
"###,
&danger
)?,
r###"<ol start="3">
<li>ok</li>
</ol>
"###,
r###"List items (268)"###
);
assert_eq!(
to_html_with_options(
r###"-1. not ok
"###,
&danger
)?,
r###"<p>-1. not ok</p>
"###,
r###"List items (269)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
bar
"###,
&danger
)?,
r###"<ul>
<li>
<p>foo</p>
<pre><code>bar
</code></pre>
</li>
</ul>
"###,
r###"List items (270)"###
);
assert_eq!(
to_html_with_options(
r###" 10. foo
bar
"###,
&danger
)?,
r###"<ol start="10">
<li>
<p>foo</p>
<pre><code>bar
</code></pre>
</li>
</ol>
"###,
r###"List items (271)"###
);
assert_eq!(
to_html_with_options(
r###" indented code
paragraph
more code
"###,
&danger
)?,
r###"<pre><code>indented code
</code></pre>
<p>paragraph</p>
<pre><code>more code
</code></pre>
"###,
r###"List items (272)"###
);
assert_eq!(
to_html_with_options(
r###"1. indented code
paragraph
more code
"###,
&danger
)?,
r###"<ol>
<li>
<pre><code>indented code
</code></pre>
<p>paragraph</p>
<pre><code>more code
</code></pre>
</li>
</ol>
"###,
r###"List items (273)"###
);
assert_eq!(
to_html_with_options(
r###"1. indented code
paragraph
more code
"###,
&danger
)?,
r###"<ol>
<li>
<pre><code> indented code
</code></pre>
<p>paragraph</p>
<pre><code>more code
</code></pre>
</li>
</ol>
"###,
r###"List items (274)"###
);
assert_eq!(
to_html_with_options(
r###" foo
bar
"###,
&danger
)?,
r###"<p>foo</p>
<p>bar</p>
"###,
r###"List items (275)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
bar
"###,
&danger
)?,
r###"<ul>
<li>foo</li>
</ul>
<p>bar</p>
"###,
r###"List items (276)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
bar
"###,
&danger
)?,
r###"<ul>
<li>
<p>foo</p>
<p>bar</p>
</li>
</ul>
"###,
r###"List items (277)"###
);
assert_eq!(
to_html_with_options(
r###"-
foo
-
```
bar
```
-
baz
"###,
&danger
)?,
r###"<ul>
<li>foo</li>
<li>
<pre><code>bar
</code></pre>
</li>
<li>
<pre><code>baz
</code></pre>
</li>
</ul>
"###,
r###"List items (278)"###
);
assert_eq!(
to_html_with_options(
r###"-
foo
"###,
&danger
)?,
r###"<ul>
<li>foo</li>
</ul>
"###,
r###"List items (279)"###
);
assert_eq!(
to_html_with_options(
r###"-
foo
"###,
&danger
)?,
r###"<ul>
<li></li>
</ul>
<p>foo</p>
"###,
r###"List items (280)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
-
- bar
"###,
&danger
)?,
r###"<ul>
<li>foo</li>
<li></li>
<li>bar</li>
</ul>
"###,
r###"List items (281)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
-
- bar
"###,
&danger
)?,
r###"<ul>
<li>foo</li>
<li></li>
<li>bar</li>
</ul>
"###,
r###"List items (282)"###
);
assert_eq!(
to_html_with_options(
r###"1. foo
2.
3. bar
"###,
&danger
)?,
r###"<ol>
<li>foo</li>
<li></li>
<li>bar</li>
</ol>
"###,
r###"List items (283)"###
);
assert_eq!(
to_html_with_options(
r###"*
"###,
&danger
)?,
r###"<ul>
<li></li>
</ul>
"###,
r###"List items (284)"###
);
assert_eq!(
to_html_with_options(
r###"foo
*
foo
1.
"###,
&danger
)?,
r###"<p>foo
*</p>
<p>foo
1.</p>
"###,
r###"List items (285)"###
);
assert_eq!(
to_html_with_options(
r###" 1. A paragraph
with two lines.
indented code
> A block quote.
"###,
&danger
)?,
r###"<ol>
<li>
<p>A paragraph
with two lines.</p>
<pre><code>indented code
</code></pre>
<blockquote>
<p>A block quote.</p>
</blockquote>
</li>
</ol>
"###,
r###"List items (286)"###
);
assert_eq!(
to_html_with_options(
r###" 1. A paragraph
with two lines.
indented code
> A block quote.
"###,
&danger
)?,
r###"<ol>
<li>
<p>A paragraph
with two lines.</p>
<pre><code>indented code
</code></pre>
<blockquote>
<p>A block quote.</p>
</blockquote>
</li>
</ol>
"###,
r###"List items (287)"###
);
assert_eq!(
to_html_with_options(
r###" 1. A paragraph
with two lines.
indented code
> A block quote.
"###,
&danger
)?,
r###"<ol>
<li>
<p>A paragraph
with two lines.</p>
<pre><code>indented code
</code></pre>
<blockquote>
<p>A block quote.</p>
</blockquote>
</li>
</ol>
"###,
r###"List items (288)"###
);
assert_eq!(
to_html_with_options(
r###" 1. A paragraph
with two lines.
indented code
> A block quote.
"###,
&danger
)?,
r###"<pre><code>1. A paragraph
with two lines.
indented code
> A block quote.
</code></pre>
"###,
r###"List items (289)"###
);
assert_eq!(
to_html_with_options(
r###" 1. A paragraph
with two lines.
indented code
> A block quote.
"###,
&danger
)?,
r###"<ol>
<li>
<p>A paragraph
with two lines.</p>
<pre><code>indented code
</code></pre>
<blockquote>
<p>A block quote.</p>
</blockquote>
</li>
</ol>
"###,
r###"List items (290)"###
);
assert_eq!(
to_html_with_options(
r###" 1. A paragraph
with two lines.
"###,
&danger
)?,
r###"<ol>
<li>A paragraph
with two lines.</li>
</ol>
"###,
r###"List items (291)"###
);
assert_eq!(
to_html_with_options(
r###"> 1. > Blockquote
continued here.
"###,
&danger
)?,
r###"<blockquote>
<ol>
<li>
<blockquote>
<p>Blockquote
continued here.</p>
</blockquote>
</li>
</ol>
</blockquote>
"###,
r###"List items (292)"###
);
assert_eq!(
to_html_with_options(
r###"> 1. > Blockquote
> continued here.
"###,
&danger
)?,
r###"<blockquote>
<ol>
<li>
<blockquote>
<p>Blockquote
continued here.</p>
</blockquote>
</li>
</ol>
</blockquote>
"###,
r###"List items (293)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
- bar
- baz
- boo
"###,
&danger
)?,
r###"<ul>
<li>foo
<ul>
<li>bar
<ul>
<li>baz
<ul>
<li>boo</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
"###,
r###"List items (294)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
- bar
- baz
- boo
"###,
&danger
)?,
r###"<ul>
<li>foo</li>
<li>bar</li>
<li>baz</li>
<li>boo</li>
</ul>
"###,
r###"List items (295)"###
);
assert_eq!(
to_html_with_options(
r###"10) foo
- bar
"###,
&danger
)?,
r###"<ol start="10">
<li>foo
<ul>
<li>bar</li>
</ul>
</li>
</ol>
"###,
r###"List items (296)"###
);
assert_eq!(
to_html_with_options(
r###"10) foo
- bar
"###,
&danger
)?,
r###"<ol start="10">
<li>foo</li>
</ol>
<ul>
<li>bar</li>
</ul>
"###,
r###"List items (297)"###
);
assert_eq!(
to_html_with_options(
r###"- - foo
"###,
&danger
)?,
r###"<ul>
<li>
<ul>
<li>foo</li>
</ul>
</li>
</ul>
"###,
r###"List items (298)"###
);
assert_eq!(
to_html_with_options(
r###"1. - 2. foo
"###,
&danger
)?,
r###"<ol>
<li>
<ul>
<li>
<ol start="2">
<li>foo</li>
</ol>
</li>
</ul>
</li>
</ol>
"###,
r###"List items (299)"###
);
assert_eq!(
to_html_with_options(
r###"- # Foo
- Bar
---
baz
"###,
&danger
)?,
r###"<ul>
<li>
<h1>Foo</h1>
</li>
<li>
<h2>Bar</h2>
baz</li>
</ul>
"###,
r###"List items (300)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
- bar
+ baz
"###,
&danger
)?,
r###"<ul>
<li>foo</li>
<li>bar</li>
</ul>
<ul>
<li>baz</li>
</ul>
"###,
r###"Lists (301)"###
);
assert_eq!(
to_html_with_options(
r###"1. foo
2. bar
3) baz
"###,
&danger
)?,
r###"<ol>
<li>foo</li>
<li>bar</li>
</ol>
<ol start="3">
<li>baz</li>
</ol>
"###,
r###"Lists (302)"###
);
assert_eq!(
to_html_with_options(
r###"Foo
- bar
- baz
"###,
&danger
)?,
r###"<p>Foo</p>
<ul>
<li>bar</li>
<li>baz</li>
</ul>
"###,
r###"Lists (303)"###
);
assert_eq!(
to_html_with_options(
r###"The number of windows in my house is
14. The number of doors is 6.
"###,
&danger
)?,
r###"<p>The number of windows in my house is
14. The number of doors is 6.</p>
"###,
r###"Lists (304)"###
);
assert_eq!(
to_html_with_options(
r###"The number of windows in my house is
1. The number of doors is 6.
"###,
&danger
)?,
r###"<p>The number of windows in my house is</p>
<ol>
<li>The number of doors is 6.</li>
</ol>
"###,
r###"Lists (305)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
- bar
- baz
"###,
&danger
)?,
r###"<ul>
<li>
<p>foo</p>
</li>
<li>
<p>bar</p>
</li>
<li>
<p>baz</p>
</li>
</ul>
"###,
r###"Lists (306)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
- bar
- baz
bim
"###,
&danger
)?,
r###"<ul>
<li>foo
<ul>
<li>bar
<ul>
<li>
<p>baz</p>
<p>bim</p>
</li>
</ul>
</li>
</ul>
</li>
</ul>
"###,
r###"Lists (307)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
- bar
<!-- -->
- baz
- bim
"###,
&danger
)?,
r###"<ul>
<li>foo</li>
<li>bar</li>
</ul>
<!-- -->
<ul>
<li>baz</li>
<li>bim</li>
</ul>
"###,
r###"Lists (308)"###
);
assert_eq!(
to_html_with_options(
r###"- foo
notcode
- foo
<!-- -->
code
"###,
&danger
)?,
r###"<ul>
<li>
<p>foo</p>
<p>notcode</p>
</li>
<li>
<p>foo</p>
</li>
</ul>
<!-- -->
<pre><code>code
</code></pre>
"###,
r###"Lists (309)"###
);
assert_eq!(
to_html_with_options(
r###"- a
- b
- c
- d
- e
- f
- g
"###,
&danger
)?,
r###"<ul>
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
<li>e</li>
<li>f</li>
<li>g</li>
</ul>
"###,
r###"Lists (310)"###
);
assert_eq!(
to_html_with_options(
r###"1. a
2. b
3. c
"###,
&danger
)?,
r###"<ol>
<li>
<p>a</p>
</li>
<li>
<p>b</p>
</li>
<li>
<p>c</p>
</li>
</ol>
"###,
r###"Lists (311)"###
);
assert_eq!(
to_html_with_options(
r###"- a
- b
- c
- d
- e
"###,
&danger
)?,
r###"<ul>
<li>a</li>
<li>b</li>
<li>c</li>
<li>d
- e</li>
</ul>
"###,
r###"Lists (312)"###
);
assert_eq!(
to_html_with_options(
r###"1. a
2. b
3. c
"###,
&danger
)?,
r###"<ol>
<li>
<p>a</p>
</li>
<li>
<p>b</p>
</li>
</ol>
<pre><code>3. c
</code></pre>
"###,
r###"Lists (313)"###
);
assert_eq!(
to_html_with_options(
r###"- a
- b
- c
"###,
&danger
)?,
r###"<ul>
<li>
<p>a</p>
</li>
<li>
<p>b</p>
</li>
<li>
<p>c</p>
</li>
</ul>
"###,
r###"Lists (314)"###
);
assert_eq!(
to_html_with_options(
r###"* a
*
* c
"###,
&danger
)?,
r###"<ul>
<li>
<p>a</p>
</li>
<li></li>
<li>
<p>c</p>
</li>
</ul>
"###,
r###"Lists (315)"###
);
assert_eq!(
to_html_with_options(
r###"- a
- b
c
- d
"###,
&danger
)?,
r###"<ul>
<li>
<p>a</p>
</li>
<li>
<p>b</p>
<p>c</p>
</li>
<li>
<p>d</p>
</li>
</ul>
"###,
r###"Lists (316)"###
);
assert_eq!(
to_html_with_options(
r###"- a
- b
[ref]: /url
- d
"###,
&danger
)?,
r###"<ul>
<li>
<p>a</p>
</li>
<li>
<p>b</p>
</li>
<li>
<p>d</p>
</li>
</ul>
"###,
r###"Lists (317)"###
);
assert_eq!(
to_html_with_options(
r###"- a
- ```
b
```
- c
"###,
&danger
)?,
r###"<ul>
<li>a</li>
<li>
<pre><code>b
</code></pre>
</li>
<li>c</li>
</ul>
"###,
r###"Lists (318)"###
);
assert_eq!(
to_html_with_options(
r###"- a
- b
c
- d
"###,
&danger
)?,
r###"<ul>
<li>a
<ul>
<li>
<p>b</p>
<p>c</p>
</li>
</ul>
</li>
<li>d</li>
</ul>
"###,
r###"Lists (319)"###
);
assert_eq!(
to_html_with_options(
r###"* a
> b
>
* c
"###,
&danger
)?,
r###"<ul>
<li>a
<blockquote>
<p>b</p>
</blockquote>
</li>
<li>c</li>
</ul>
"###,
r###"Lists (320)"###
);
assert_eq!(
to_html_with_options(
r###"- a
> b
```
c
```
- d
"###,
&danger
)?,
r###"<ul>
<li>a
<blockquote>
<p>b</p>
</blockquote>
<pre><code>c
</code></pre>
</li>
<li>d</li>
</ul>
"###,
r###"Lists (321)"###
);
assert_eq!(
to_html_with_options(
r###"- a
"###,
&danger
)?,
r###"<ul>
<li>a</li>
</ul>
"###,
r###"Lists (322)"###
);
assert_eq!(
to_html_with_options(
r###"- a
- b
"###,
&danger
)?,
r###"<ul>
<li>a
<ul>
<li>b</li>
</ul>
</li>
</ul>
"###,
r###"Lists (323)"###
);
assert_eq!(
to_html_with_options(
r###"1. ```
foo
```
bar
"###,
&danger
)?,
r###"<ol>
<li>
<pre><code>foo
</code></pre>
<p>bar</p>
</li>
</ol>
"###,
r###"Lists (324)"###
);
assert_eq!(
to_html_with_options(
r###"* foo
* bar
baz
"###,
&danger
)?,
r###"<ul>
<li>
<p>foo</p>
<ul>
<li>bar</li>
</ul>
<p>baz</p>
</li>
</ul>
"###,
r###"Lists (325)"###
);
assert_eq!(
to_html_with_options(
r###"- a
- b
- c
- d
- e
- f
"###,
&danger
)?,
r###"<ul>
<li>
<p>a</p>
<ul>
<li>b</li>
<li>c</li>
</ul>
</li>
<li>
<p>d</p>
<ul>
<li>e</li>
<li>f</li>
</ul>
</li>
</ul>
"###,
r###"Lists (326)"###
);
assert_eq!(
to_html_with_options(
r###"`hi`lo`
"###,
&danger
)?,
r###"<p><code>hi</code>lo`</p>
"###,
r###"Inlines (327)"###
);
assert_eq!(
to_html_with_options(
r###"`foo`
"###,
&danger
)?,
r###"<p><code>foo</code></p>
"###,
r###"Code spans (328)"###
);
assert_eq!(
to_html_with_options(
r###"`` foo ` bar ``
"###,
&danger
)?,
r###"<p><code>foo ` bar</code></p>
"###,
r###"Code spans (329)"###
);
assert_eq!(
to_html_with_options(
r###"` `` `
"###,
&danger
)?,
r###"<p><code>``</code></p>
"###,
r###"Code spans (330)"###
);
assert_eq!(
to_html_with_options(
r###"` `` `
"###,
&danger
)?,
r###"<p><code> `` </code></p>
"###,
r###"Code spans (331)"###
);
assert_eq!(
to_html_with_options(
r###"` a`
"###,
&danger
)?,
r###"<p><code> a</code></p>
"###,
r###"Code spans (332)"###
);
assert_eq!(
to_html_with_options(
r###"` b `
"###,
&danger
)?,
r###"<p><code> b </code></p>
"###,
r###"Code spans (333)"###
);
assert_eq!(
to_html_with_options(
r###"` `
` `
"###,
&danger
)?,
r###"<p><code> </code>
<code> </code></p>
"###,
r###"Code spans (334)"###
);
assert_eq!(
to_html_with_options(
r###"``
foo
bar
baz
``
"###,
&danger
)?,
r###"<p><code>foo bar baz</code></p>
"###,
r###"Code spans (335)"###
);
assert_eq!(
to_html_with_options(
r###"``
foo
``
"###,
&danger
)?,
r###"<p><code>foo </code></p>
"###,
r###"Code spans (336)"###
);
assert_eq!(
to_html_with_options(
r###"`foo bar
baz`
"###,
&danger
)?,
r###"<p><code>foo bar baz</code></p>
"###,
r###"Code spans (337)"###
);
assert_eq!(
to_html_with_options(
r###"`foo\`bar`
"###,
&danger
)?,
r###"<p><code>foo\</code>bar`</p>
"###,
r###"Code spans (338)"###
);
assert_eq!(
to_html_with_options(
r###"``foo`bar``
"###,
&danger
)?,
r###"<p><code>foo`bar</code></p>
"###,
r###"Code spans (339)"###
);
assert_eq!(
to_html_with_options(
r###"` foo `` bar `
"###,
&danger
)?,
r###"<p><code>foo `` bar</code></p>
"###,
r###"Code spans (340)"###
);
assert_eq!(
to_html_with_options(
r###"*foo`*`
"###,
&danger
)?,
r###"<p>*foo<code>*</code></p>
"###,
r###"Code spans (341)"###
);
assert_eq!(
to_html_with_options(
r###"[not a `link](/foo`)
"###,
&danger
)?,
r###"<p>[not a <code>link](/foo</code>)</p>
"###,
r###"Code spans (342)"###
);
assert_eq!(
to_html_with_options(
r###"`<a href="`">`
"###,
&danger
)?,
r###"<p><code><a href="</code>">`</p>
"###,
r###"Code spans (343)"###
);
assert_eq!(
to_html_with_options(
r###"<a href="`">`
"###,
&danger
)?,
r###"<p><a href="`">`</p>
"###,
r###"Code spans (344)"###
);
assert_eq!(
to_html_with_options(
r###"`<https://foo.bar.`baz>`
"###,
&danger
)?,
r###"<p><code><https://foo.bar.</code>baz>`</p>
"###,
r###"Code spans (345)"###
);
assert_eq!(
to_html_with_options(
r###"<https://foo.bar.`baz>`
"###,
&danger
)?,
r###"<p><a href="https://foo.bar.%60baz">https://foo.bar.`baz</a>`</p>
"###,
r###"Code spans (346)"###
);
assert_eq!(
to_html_with_options(
r###"```foo``
"###,
&danger
)?,
r###"<p>```foo``</p>
"###,
r###"Code spans (347)"###
);
assert_eq!(
to_html_with_options(
r###"`foo
"###,
&danger
)?,
r###"<p>`foo</p>
"###,
r###"Code spans (348)"###
);
assert_eq!(
to_html_with_options(
r###"`foo``bar``
"###,
&danger
)?,
r###"<p>`foo<code>bar</code></p>
"###,
r###"Code spans (349)"###
);
assert_eq!(
to_html_with_options(
r###"*foo bar*
"###,
&danger
)?,
r###"<p><em>foo bar</em></p>
"###,
r###"Emphasis and strong emphasis (350)"###
);
assert_eq!(
to_html_with_options(
r###"a * foo bar*
"###,
&danger
)?,
r###"<p>a * foo bar*</p>
"###,
r###"Emphasis and strong emphasis (351)"###
);
assert_eq!(
to_html_with_options(
r###"a*"foo"*
"###,
&danger
)?,
r###"<p>a*"foo"*</p>
"###,
r###"Emphasis and strong emphasis (352)"###
);
assert_eq!(
to_html_with_options(
r###"* a *
"###,
&danger
)?,
r###"<p>* a *</p>
"###,
r###"Emphasis and strong emphasis (353)"###
);
assert_eq!(
to_html_with_options(
r###"*$*alpha.
*£*bravo.
*€*charlie.
"###,
&danger
)?,
r###"<p>*$*alpha.</p>
<p>*£*bravo.</p>
<p>*€*charlie.</p>
"###,
r###"Emphasis and strong emphasis (354)"###
);
assert_eq!(
to_html_with_options(
r###"foo*bar*
"###,
&danger
)?,
r###"<p>foo<em>bar</em></p>
"###,
r###"Emphasis and strong emphasis (355)"###
);
assert_eq!(
to_html_with_options(
r###"5*6*78
"###,
&danger
)?,
r###"<p>5<em>6</em>78</p>
"###,
r###"Emphasis and strong emphasis (356)"###
);
assert_eq!(
to_html_with_options(
r###"_foo bar_
"###,
&danger
)?,
r###"<p><em>foo bar</em></p>
"###,
r###"Emphasis and strong emphasis (357)"###
);
assert_eq!(
to_html_with_options(
r###"_ foo bar_
"###,
&danger
)?,
r###"<p>_ foo bar_</p>
"###,
r###"Emphasis and strong emphasis (358)"###
);
assert_eq!(
to_html_with_options(
r###"a_"foo"_
"###,
&danger
)?,
r###"<p>a_"foo"_</p>
"###,
r###"Emphasis and strong emphasis (359)"###
);
assert_eq!(
to_html_with_options(
r###"foo_bar_
"###,
&danger
)?,
r###"<p>foo_bar_</p>
"###,
r###"Emphasis and strong emphasis (360)"###
);
assert_eq!(
to_html_with_options(
r###"5_6_78
"###,
&danger
)?,
r###"<p>5_6_78</p>
"###,
r###"Emphasis and strong emphasis (361)"###
);
assert_eq!(
to_html_with_options(
r###"пристаням_стремятся_
"###,
&danger
)?,
r###"<p>пристаням_стремятся_</p>
"###,
r###"Emphasis and strong emphasis (362)"###
);
assert_eq!(
to_html_with_options(
r###"aa_"bb"_cc
"###,
&danger
)?,
r###"<p>aa_"bb"_cc</p>
"###,
r###"Emphasis and strong emphasis (363)"###
);
assert_eq!(
to_html_with_options(
r###"foo-_(bar)_
"###,
&danger
)?,
r###"<p>foo-<em>(bar)</em></p>
"###,
r###"Emphasis and strong emphasis (364)"###
);
assert_eq!(
to_html_with_options(
r###"_foo*
"###,
&danger
)?,
r###"<p>_foo*</p>
"###,
r###"Emphasis and strong emphasis (365)"###
);
assert_eq!(
to_html_with_options(
r###"*foo bar *
"###,
&danger
)?,
r###"<p>*foo bar *</p>
"###,
r###"Emphasis and strong emphasis (366)"###
);
assert_eq!(
to_html_with_options(
r###"*foo bar
*
"###,
&danger
)?,
r###"<p>*foo bar
*</p>
"###,
r###"Emphasis and strong emphasis (367)"###
);
assert_eq!(
to_html_with_options(
r###"*(*foo)
"###,
&danger
)?,
r###"<p>*(*foo)</p>
"###,
r###"Emphasis and strong emphasis (368)"###
);
assert_eq!(
to_html_with_options(
r###"*(*foo*)*
"###,
&danger
)?,
r###"<p><em>(<em>foo</em>)</em></p>
"###,
r###"Emphasis and strong emphasis (369)"###
);
assert_eq!(
to_html_with_options(
r###"*foo*bar
"###,
&danger
)?,
r###"<p><em>foo</em>bar</p>
"###,
r###"Emphasis and strong emphasis (370)"###
);
assert_eq!(
to_html_with_options(
r###"_foo bar _
"###,
&danger
)?,
r###"<p>_foo bar _</p>
"###,
r###"Emphasis and strong emphasis (371)"###
);
assert_eq!(
to_html_with_options(
r###"_(_foo)
"###,
&danger
)?,
r###"<p>_(_foo)</p>
"###,
r###"Emphasis and strong emphasis (372)"###
);
assert_eq!(
to_html_with_options(
r###"_(_foo_)_
"###,
&danger
)?,
r###"<p><em>(<em>foo</em>)</em></p>
"###,
r###"Emphasis and strong emphasis (373)"###
);
assert_eq!(
to_html_with_options(
r###"_foo_bar
"###,
&danger
)?,
r###"<p>_foo_bar</p>
"###,
r###"Emphasis and strong emphasis (374)"###
);
assert_eq!(
to_html_with_options(
r###"_пристаням_стремятся
"###,
&danger
)?,
r###"<p>_пристаням_стремятся</p>
"###,
r###"Emphasis and strong emphasis (375)"###
);
assert_eq!(
to_html_with_options(
r###"_foo_bar_baz_
"###,
&danger
)?,
r###"<p><em>foo_bar_baz</em></p>
"###,
r###"Emphasis and strong emphasis (376)"###
);
assert_eq!(
to_html_with_options(
r###"_(bar)_.
"###,
&danger
)?,
r###"<p><em>(bar)</em>.</p>
"###,
r###"Emphasis and strong emphasis (377)"###
);
assert_eq!(
to_html_with_options(
r###"**foo bar**
"###,
&danger
)?,
r###"<p><strong>foo bar</strong></p>
"###,
r###"Emphasis and strong emphasis (378)"###
);
assert_eq!(
to_html_with_options(
r###"** foo bar**
"###,
&danger
)?,
r###"<p>** foo bar**</p>
"###,
r###"Emphasis and strong emphasis (379)"###
);
assert_eq!(
to_html_with_options(
r###"a**"foo"**
"###,
&danger
)?,
r###"<p>a**"foo"**</p>
"###,
r###"Emphasis and strong emphasis (380)"###
);
assert_eq!(
to_html_with_options(
r###"foo**bar**
"###,
&danger
)?,
r###"<p>foo<strong>bar</strong></p>
"###,
r###"Emphasis and strong emphasis (381)"###
);
assert_eq!(
to_html_with_options(
r###"__foo bar__
"###,
&danger
)?,
r###"<p><strong>foo bar</strong></p>
"###,
r###"Emphasis and strong emphasis (382)"###
);
assert_eq!(
to_html_with_options(
r###"__ foo bar__
"###,
&danger
)?,
r###"<p>__ foo bar__</p>
"###,
r###"Emphasis and strong emphasis (383)"###
);
assert_eq!(
to_html_with_options(
r###"__
foo bar__
"###,
&danger
)?,
r###"<p>__
foo bar__</p>
"###,
r###"Emphasis and strong emphasis (384)"###
);
assert_eq!(
to_html_with_options(
r###"a__"foo"__
"###,
&danger
)?,
r###"<p>a__"foo"__</p>
"###,
r###"Emphasis and strong emphasis (385)"###
);
assert_eq!(
to_html_with_options(
r###"foo__bar__
"###,
&danger
)?,
r###"<p>foo__bar__</p>
"###,
r###"Emphasis and strong emphasis (386)"###
);
assert_eq!(
to_html_with_options(
r###"5__6__78
"###,
&danger
)?,
r###"<p>5__6__78</p>
"###,
r###"Emphasis and strong emphasis (387)"###
);
assert_eq!(
to_html_with_options(
r###"пристаням__стремятся__
"###,
&danger
)?,
r###"<p>пристаням__стремятся__</p>
"###,
r###"Emphasis and strong emphasis (388)"###
);
assert_eq!(
to_html_with_options(
r###"__foo, __bar__, baz__
"###,
&danger
)?,
r###"<p><strong>foo, <strong>bar</strong>, baz</strong></p>
"###,
r###"Emphasis and strong emphasis (389)"###
);
assert_eq!(
to_html_with_options(
r###"foo-__(bar)__
"###,
&danger
)?,
r###"<p>foo-<strong>(bar)</strong></p>
"###,
r###"Emphasis and strong emphasis (390)"###
);
assert_eq!(
to_html_with_options(
r###"**foo bar **
"###,
&danger
)?,
r###"<p>**foo bar **</p>
"###,
r###"Emphasis and strong emphasis (391)"###
);
assert_eq!(
to_html_with_options(
r###"**(**foo)
"###,
&danger
)?,
r###"<p>**(**foo)</p>
"###,
r###"Emphasis and strong emphasis (392)"###
);
assert_eq!(
to_html_with_options(
r###"*(**foo**)*
"###,
&danger
)?,
r###"<p><em>(<strong>foo</strong>)</em></p>
"###,
r###"Emphasis and strong emphasis (393)"###
);
assert_eq!(
to_html_with_options(
r###"**Gomphocarpus (*Gomphocarpus physocarpus*, syn.
*Asclepias physocarpa*)**
"###,
&danger
)?,
r###"<p><strong>Gomphocarpus (<em>Gomphocarpus physocarpus</em>, syn.
<em>Asclepias physocarpa</em>)</strong></p>
"###,
r###"Emphasis and strong emphasis (394)"###
);
assert_eq!(
to_html_with_options(
r###"**foo "*bar*" foo**
"###,
&danger
)?,
r###"<p><strong>foo "<em>bar</em>" foo</strong></p>
"###,
r###"Emphasis and strong emphasis (395)"###
);
assert_eq!(
to_html_with_options(
r###"**foo**bar
"###,
&danger
)?,
r###"<p><strong>foo</strong>bar</p>
"###,
r###"Emphasis and strong emphasis (396)"###
);
assert_eq!(
to_html_with_options(
r###"__foo bar __
"###,
&danger
)?,
r###"<p>__foo bar __</p>
"###,
r###"Emphasis and strong emphasis (397)"###
);
assert_eq!(
to_html_with_options(
r###"__(__foo)
"###,
&danger
)?,
r###"<p>__(__foo)</p>
"###,
r###"Emphasis and strong emphasis (398)"###
);
assert_eq!(
to_html_with_options(
r###"_(__foo__)_
"###,
&danger
)?,
r###"<p><em>(<strong>foo</strong>)</em></p>
"###,
r###"Emphasis and strong emphasis (399)"###
);
assert_eq!(
to_html_with_options(
r###"__foo__bar
"###,
&danger
)?,
r###"<p>__foo__bar</p>
"###,
r###"Emphasis and strong emphasis (400)"###
);
assert_eq!(
to_html_with_options(
r###"__пристаням__стремятся
"###,
&danger
)?,
r###"<p>__пристаням__стремятся</p>
"###,
r###"Emphasis and strong emphasis (401)"###
);
assert_eq!(
to_html_with_options(
r###"__foo__bar__baz__
"###,
&danger
)?,
r###"<p><strong>foo__bar__baz</strong></p>
"###,
r###"Emphasis and strong emphasis (402)"###
);
assert_eq!(
to_html_with_options(
r###"__(bar)__.
"###,
&danger
)?,
r###"<p><strong>(bar)</strong>.</p>
"###,
r###"Emphasis and strong emphasis (403)"###
);
assert_eq!(
to_html_with_options(
r###"*foo [bar](/url)*
"###,
&danger
)?,
r###"<p><em>foo <a href="/url">bar</a></em></p>
"###,
r###"Emphasis and strong emphasis (404)"###
);
assert_eq!(
to_html_with_options(
r###"*foo
bar*
"###,
&danger
)?,
r###"<p><em>foo
bar</em></p>
"###,
r###"Emphasis and strong emphasis (405)"###
);
assert_eq!(
to_html_with_options(
r###"_foo __bar__ baz_
"###,
&danger
)?,
r###"<p><em>foo <strong>bar</strong> baz</em></p>
"###,
r###"Emphasis and strong emphasis (406)"###
);
assert_eq!(
to_html_with_options(
r###"_foo _bar_ baz_
"###,
&danger
)?,
r###"<p><em>foo <em>bar</em> baz</em></p>
"###,
r###"Emphasis and strong emphasis (407)"###
);
assert_eq!(
to_html_with_options(
r###"__foo_ bar_
"###,
&danger
)?,
r###"<p><em><em>foo</em> bar</em></p>
"###,
r###"Emphasis and strong emphasis (408)"###
);
assert_eq!(
to_html_with_options(
r###"*foo *bar**
"###,
&danger
)?,
r###"<p><em>foo <em>bar</em></em></p>
"###,
r###"Emphasis and strong emphasis (409)"###
);
assert_eq!(
to_html_with_options(
r###"*foo **bar** baz*
"###,
&danger
)?,
r###"<p><em>foo <strong>bar</strong> baz</em></p>
"###,
r###"Emphasis and strong emphasis (410)"###
);
assert_eq!(
to_html_with_options(
r###"*foo**bar**baz*
"###,
&danger
)?,
r###"<p><em>foo<strong>bar</strong>baz</em></p>
"###,
r###"Emphasis and strong emphasis (411)"###
);
assert_eq!(
to_html_with_options(
r###"*foo**bar*
"###,
&danger
)?,
r###"<p><em>foo**bar</em></p>
"###,
r###"Emphasis and strong emphasis (412)"###
);
assert_eq!(
to_html_with_options(
r###"***foo** bar*
"###,
&danger
)?,
r###"<p><em><strong>foo</strong> bar</em></p>
"###,
r###"Emphasis and strong emphasis (413)"###
);
assert_eq!(
to_html_with_options(
r###"*foo **bar***
"###,
&danger
)?,
r###"<p><em>foo <strong>bar</strong></em></p>
"###,
r###"Emphasis and strong emphasis (414)"###
);
assert_eq!(
to_html_with_options(
r###"*foo**bar***
"###,
&danger
)?,
r###"<p><em>foo<strong>bar</strong></em></p>
"###,
r###"Emphasis and strong emphasis (415)"###
);
assert_eq!(
to_html_with_options(
r###"foo***bar***baz
"###,
&danger
)?,
r###"<p>foo<em><strong>bar</strong></em>baz</p>
"###,
r###"Emphasis and strong emphasis (416)"###
);
assert_eq!(
to_html_with_options(
r###"foo******bar*********baz
"###,
&danger
)?,
r###"<p>foo<strong><strong><strong>bar</strong></strong></strong>***baz</p>
"###,
r###"Emphasis and strong emphasis (417)"###
);
assert_eq!(
to_html_with_options(
r###"*foo **bar *baz* bim** bop*
"###,
&danger
)?,
r###"<p><em>foo <strong>bar <em>baz</em> bim</strong> bop</em></p>
"###,
r###"Emphasis and strong emphasis (418)"###
);
assert_eq!(
to_html_with_options(
r###"*foo [*bar*](/url)*
"###,
&danger
)?,
r###"<p><em>foo <a href="/url"><em>bar</em></a></em></p>
"###,
r###"Emphasis and strong emphasis (419)"###
);
assert_eq!(
to_html_with_options(
r###"** is not an empty emphasis
"###,
&danger
)?,
r###"<p>** is not an empty emphasis</p>
"###,
r###"Emphasis and strong emphasis (420)"###
);
assert_eq!(
to_html_with_options(
r###"**** is not an empty strong emphasis
"###,
&danger
)?,
r###"<p>**** is not an empty strong emphasis</p>
"###,
r###"Emphasis and strong emphasis (421)"###
);
assert_eq!(
to_html_with_options(
r###"**foo [bar](/url)**
"###,
&danger
)?,
r###"<p><strong>foo <a href="/url">bar</a></strong></p>
"###,
r###"Emphasis and strong emphasis (422)"###
);
assert_eq!(
to_html_with_options(
r###"**foo
bar**
"###,
&danger
)?,
r###"<p><strong>foo
bar</strong></p>
"###,
r###"Emphasis and strong emphasis (423)"###
);
assert_eq!(
to_html_with_options(
r###"__foo _bar_ baz__
"###,
&danger
)?,
r###"<p><strong>foo <em>bar</em> baz</strong></p>
"###,
r###"Emphasis and strong emphasis (424)"###
);
assert_eq!(
to_html_with_options(
r###"__foo __bar__ baz__
"###,
&danger
)?,
r###"<p><strong>foo <strong>bar</strong> baz</strong></p>
"###,
r###"Emphasis and strong emphasis (425)"###
);
assert_eq!(
to_html_with_options(
r###"____foo__ bar__
"###,
&danger
)?,
r###"<p><strong><strong>foo</strong> bar</strong></p>
"###,
r###"Emphasis and strong emphasis (426)"###
);
assert_eq!(
to_html_with_options(
r###"**foo **bar****
"###,
&danger
)?,
r###"<p><strong>foo <strong>bar</strong></strong></p>
"###,
r###"Emphasis and strong emphasis (427)"###
);
assert_eq!(
to_html_with_options(
r###"**foo *bar* baz**
"###,
&danger
)?,
r###"<p><strong>foo <em>bar</em> baz</strong></p>
"###,
r###"Emphasis and strong emphasis (428)"###
);
assert_eq!(
to_html_with_options(
r###"**foo*bar*baz**
"###,
&danger
)?,
r###"<p><strong>foo<em>bar</em>baz</strong></p>
"###,
r###"Emphasis and strong emphasis (429)"###
);
assert_eq!(
to_html_with_options(
r###"***foo* bar**
"###,
&danger
)?,
r###"<p><strong><em>foo</em> bar</strong></p>
"###,
r###"Emphasis and strong emphasis (430)"###
);
assert_eq!(
to_html_with_options(
r###"**foo *bar***
"###,
&danger
)?,
r###"<p><strong>foo <em>bar</em></strong></p>
"###,
r###"Emphasis and strong emphasis (431)"###
);
assert_eq!(
to_html_with_options(
r###"**foo *bar **baz**
bim* bop**
"###,
&danger
)?,
r###"<p><strong>foo <em>bar <strong>baz</strong>
bim</em> bop</strong></p>
"###,
r###"Emphasis and strong emphasis (432)"###
);
assert_eq!(
to_html_with_options(
r###"**foo [*bar*](/url)**
"###,
&danger
)?,
r###"<p><strong>foo <a href="/url"><em>bar</em></a></strong></p>
"###,
r###"Emphasis and strong emphasis (433)"###
);
assert_eq!(
to_html_with_options(
r###"__ is not an empty emphasis
"###,
&danger
)?,
r###"<p>__ is not an empty emphasis</p>
"###,
r###"Emphasis and strong emphasis (434)"###
);
assert_eq!(
to_html_with_options(
r###"____ is not an empty strong emphasis
"###,
&danger
)?,
r###"<p>____ is not an empty strong emphasis</p>
"###,
r###"Emphasis and strong emphasis (435)"###
);
assert_eq!(
to_html_with_options(
r###"foo ***
"###,
&danger
)?,
r###"<p>foo ***</p>
"###,
r###"Emphasis and strong emphasis (436)"###
);
assert_eq!(
to_html_with_options(
r###"foo *\**
"###,
&danger
)?,
r###"<p>foo <em>*</em></p>
"###,
r###"Emphasis and strong emphasis (437)"###
);
assert_eq!(
to_html_with_options(
r###"foo *_*
"###,
&danger
)?,
r###"<p>foo <em>_</em></p>
"###,
r###"Emphasis and strong emphasis (438)"###
);
assert_eq!(
to_html_with_options(
r###"foo *****
"###,
&danger
)?,
r###"<p>foo *****</p>
"###,
r###"Emphasis and strong emphasis (439)"###
);
assert_eq!(
to_html_with_options(
r###"foo **\***
"###,
&danger
)?,
r###"<p>foo <strong>*</strong></p>
"###,
r###"Emphasis and strong emphasis (440)"###
);
assert_eq!(
to_html_with_options(
r###"foo **_**
"###,
&danger
)?,
r###"<p>foo <strong>_</strong></p>
"###,
r###"Emphasis and strong emphasis (441)"###
);
assert_eq!(
to_html_with_options(
r###"**foo*
"###,
&danger
)?,
r###"<p>*<em>foo</em></p>
"###,
r###"Emphasis and strong emphasis (442)"###
);
assert_eq!(
to_html_with_options(
r###"*foo**
"###,
&danger
)?,
r###"<p><em>foo</em>*</p>
"###,
r###"Emphasis and strong emphasis (443)"###
);
assert_eq!(
to_html_with_options(
r###"***foo**
"###,
&danger
)?,
r###"<p>*<strong>foo</strong></p>
"###,
r###"Emphasis and strong emphasis (444)"###
);
assert_eq!(
to_html_with_options(
r###"****foo*
"###,
&danger
)?,
r###"<p>***<em>foo</em></p>
"###,
r###"Emphasis and strong emphasis (445)"###
);
assert_eq!(
to_html_with_options(
r###"**foo***
"###,
&danger
)?,
r###"<p><strong>foo</strong>*</p>
"###,
r###"Emphasis and strong emphasis (446)"###
);
assert_eq!(
to_html_with_options(
r###"*foo****
"###,
&danger
)?,
r###"<p><em>foo</em>***</p>
"###,
r###"Emphasis and strong emphasis (447)"###
);
assert_eq!(
to_html_with_options(
r###"foo ___
"###,
&danger
)?,
r###"<p>foo ___</p>
"###,
r###"Emphasis and strong emphasis (448)"###
);
assert_eq!(
to_html_with_options(
r###"foo _\__
"###,
&danger
)?,
r###"<p>foo <em>_</em></p>
"###,
r###"Emphasis and strong emphasis (449)"###
);
assert_eq!(
to_html_with_options(
r###"foo _*_
"###,
&danger
)?,
r###"<p>foo <em>*</em></p>
"###,
r###"Emphasis and strong emphasis (450)"###
);
assert_eq!(
to_html_with_options(
r###"foo _____
"###,
&danger
)?,
r###"<p>foo _____</p>
"###,
r###"Emphasis and strong emphasis (451)"###
);
assert_eq!(
to_html_with_options(
r###"foo __\___
"###,
&danger
)?,
r###"<p>foo <strong>_</strong></p>
"###,
r###"Emphasis and strong emphasis (452)"###
);
assert_eq!(
to_html_with_options(
r###"foo __*__
"###,
&danger
)?,
r###"<p>foo <strong>*</strong></p>
"###,
r###"Emphasis and strong emphasis (453)"###
);
assert_eq!(
to_html_with_options(
r###"__foo_
"###,
&danger
)?,
r###"<p>_<em>foo</em></p>
"###,
r###"Emphasis and strong emphasis (454)"###
);
assert_eq!(
to_html_with_options(
r###"_foo__
"###,
&danger
)?,
r###"<p><em>foo</em>_</p>
"###,
r###"Emphasis and strong emphasis (455)"###
);
assert_eq!(
to_html_with_options(
r###"___foo__
"###,
&danger
)?,
r###"<p>_<strong>foo</strong></p>
"###,
r###"Emphasis and strong emphasis (456)"###
);
assert_eq!(
to_html_with_options(
r###"____foo_
"###,
&danger
)?,
r###"<p>___<em>foo</em></p>
"###,
r###"Emphasis and strong emphasis (457)"###
);
assert_eq!(
to_html_with_options(
r###"__foo___
"###,
&danger
)?,
r###"<p><strong>foo</strong>_</p>
"###,
r###"Emphasis and strong emphasis (458)"###
);
assert_eq!(
to_html_with_options(
r###"_foo____
"###,
&danger
)?,
r###"<p><em>foo</em>___</p>
"###,
r###"Emphasis and strong emphasis (459)"###
);
assert_eq!(
to_html_with_options(
r###"**foo**
"###,
&danger
)?,
r###"<p><strong>foo</strong></p>
"###,
r###"Emphasis and strong emphasis (460)"###
);
assert_eq!(
to_html_with_options(
r###"*_foo_*
"###,
&danger
)?,
r###"<p><em><em>foo</em></em></p>
"###,
r###"Emphasis and strong emphasis (461)"###
);
assert_eq!(
to_html_with_options(
r###"__foo__
"###,
&danger
)?,
r###"<p><strong>foo</strong></p>
"###,
r###"Emphasis and strong emphasis (462)"###
);
assert_eq!(
to_html_with_options(
r###"_*foo*_
"###,
&danger
)?,
r###"<p><em><em>foo</em></em></p>
"###,
r###"Emphasis and strong emphasis (463)"###
);
assert_eq!(
to_html_with_options(
r###"****foo****
"###,
&danger
)?,
r###"<p><strong><strong>foo</strong></strong></p>
"###,
r###"Emphasis and strong emphasis (464)"###
);
assert_eq!(
to_html_with_options(
r###"____foo____
"###,
&danger
)?,
r###"<p><strong><strong>foo</strong></strong></p>
"###,
r###"Emphasis and strong emphasis (465)"###
);
assert_eq!(
to_html_with_options(
r###"******foo******
"###,
&danger
)?,
r###"<p><strong><strong><strong>foo</strong></strong></strong></p>
"###,
r###"Emphasis and strong emphasis (466)"###
);
assert_eq!(
to_html_with_options(
r###"***foo***
"###,
&danger
)?,
r###"<p><em><strong>foo</strong></em></p>
"###,
r###"Emphasis and strong emphasis (467)"###
);
assert_eq!(
to_html_with_options(
r###"_____foo_____
"###,
&danger
)?,
r###"<p><em><strong><strong>foo</strong></strong></em></p>
"###,
r###"Emphasis and strong emphasis (468)"###
);
assert_eq!(
to_html_with_options(
r###"*foo _bar* baz_
"###,
&danger
)?,
r###"<p><em>foo _bar</em> baz_</p>
"###,
r###"Emphasis and strong emphasis (469)"###
);
assert_eq!(
to_html_with_options(
r###"*foo __bar *baz bim__ bam*
"###,
&danger
)?,
r###"<p><em>foo <strong>bar *baz bim</strong> bam</em></p>
"###,
r###"Emphasis and strong emphasis (470)"###
);
assert_eq!(
to_html_with_options(
r###"**foo **bar baz**
"###,
&danger
)?,
r###"<p>**foo <strong>bar baz</strong></p>
"###,
r###"Emphasis and strong emphasis (471)"###
);
assert_eq!(
to_html_with_options(
r###"*foo *bar baz*
"###,
&danger
)?,
r###"<p>*foo <em>bar baz</em></p>
"###,
r###"Emphasis and strong emphasis (472)"###
);
assert_eq!(
to_html_with_options(
r###"*[bar*](/url)
"###,
&danger
)?,
r###"<p>*<a href="/url">bar*</a></p>
"###,
r###"Emphasis and strong emphasis (473)"###
);
assert_eq!(
to_html_with_options(
r###"_foo [bar_](/url)
"###,
&danger
)?,
r###"<p>_foo <a href="/url">bar_</a></p>
"###,
r###"Emphasis and strong emphasis (474)"###
);
assert_eq!(
to_html_with_options(
r###"*<img src="foo" title="*"/>
"###,
&danger
)?,
r###"<p>*<img src="foo" title="*"/></p>
"###,
r###"Emphasis and strong emphasis (475)"###
);
assert_eq!(
to_html_with_options(
r###"**<a href="**">
"###,
&danger
)?,
r###"<p>**<a href="**"></p>
"###,
r###"Emphasis and strong emphasis (476)"###
);
assert_eq!(
to_html_with_options(
r###"__<a href="__">
"###,
&danger
)?,
r###"<p>__<a href="__"></p>
"###,
r###"Emphasis and strong emphasis (477)"###
);
assert_eq!(
to_html_with_options(
r###"*a `*`*
"###,
&danger
)?,
r###"<p><em>a <code>*</code></em></p>
"###,
r###"Emphasis and strong emphasis (478)"###
);
assert_eq!(
to_html_with_options(
r###"_a `_`_
"###,
&danger
)?,
r###"<p><em>a <code>_</code></em></p>
"###,
r###"Emphasis and strong emphasis (479)"###
);
assert_eq!(
to_html_with_options(
r###"**a<https://foo.bar/?q=**>
"###,
&danger
)?,
r###"<p>**a<a href="https://foo.bar/?q=**">https://foo.bar/?q=**</a></p>
"###,
r###"Emphasis and strong emphasis (480)"###
);
assert_eq!(
to_html_with_options(
r###"__a<https://foo.bar/?q=__>
"###,
&danger
)?,
r###"<p>__a<a href="https://foo.bar/?q=__">https://foo.bar/?q=__</a></p>
"###,
r###"Emphasis and strong emphasis (481)"###
);
assert_eq!(
to_html_with_options(
r###"[link](/uri "title")
"###,
&danger
)?,
r###"<p><a href="/uri" title="title">link</a></p>
"###,
r###"Links (482)"###
);
assert_eq!(
to_html_with_options(
r###"[link](/uri)
"###,
&danger
)?,
r###"<p><a href="/uri">link</a></p>
"###,
r###"Links (483)"###
);
assert_eq!(
to_html_with_options(
r###"[](./target.md)
"###,
&danger
)?,
r###"<p><a href="./target.md"></a></p>
"###,
r###"Links (484)"###
);
assert_eq!(
to_html_with_options(
r###"[link]()
"###,
&danger
)?,
r###"<p><a href="">link</a></p>
"###,
r###"Links (485)"###
);
assert_eq!(
to_html_with_options(
r###"[link](<>)
"###,
&danger
)?,
r###"<p><a href="">link</a></p>
"###,
r###"Links (486)"###
);
assert_eq!(
to_html_with_options(
r###"[]()
"###,
&danger
)?,
r###"<p><a href=""></a></p>
"###,
r###"Links (487)"###
);
assert_eq!(
to_html_with_options(
r###"[link](/my uri)
"###,
&danger
)?,
r###"<p>[link](/my uri)</p>
"###,
r###"Links (488)"###
);
assert_eq!(
to_html_with_options(
r###"[link](</my uri>)
"###,
&danger
)?,
r###"<p><a href="/my%20uri">link</a></p>
"###,
r###"Links (489)"###
);
assert_eq!(
to_html_with_options(
r###"[link](foo
bar)
"###,
&danger
)?,
r###"<p>[link](foo
bar)</p>
"###,
r###"Links (490)"###
);
assert_eq!(
to_html_with_options(
r###"[link](<foo
bar>)
"###,
&danger
)?,
r###"<p>[link](<foo
bar>)</p>
"###,
r###"Links (491)"###
);
assert_eq!(
to_html_with_options(
r###"[a](<b)c>)
"###,
&danger
)?,
r###"<p><a href="b)c">a</a></p>
"###,
r###"Links (492)"###
);
assert_eq!(
to_html_with_options(
r###"[link](<foo\>)
"###,
&danger
)?,
r###"<p>[link](<foo>)</p>
"###,
r###"Links (493)"###
);
assert_eq!(
to_html_with_options(
r###"[a](<b)c
[a](<b)c>
[a](<b>c)
"###,
&danger
)?,
r###"<p>[a](<b)c
[a](<b)c>
[a](<b>c)</p>
"###,
r###"Links (494)"###
);
assert_eq!(
to_html_with_options(
r###"[link](\(foo\))
"###,
&danger
)?,
r###"<p><a href="(foo)">link</a></p>
"###,
r###"Links (495)"###
);
assert_eq!(
to_html_with_options(
r###"[link](foo(and(bar)))
"###,
&danger
)?,
r###"<p><a href="foo(and(bar))">link</a></p>
"###,
r###"Links (496)"###
);
assert_eq!(
to_html_with_options(
r###"[link](foo(and(bar))
"###,
&danger
)?,
r###"<p>[link](foo(and(bar))</p>
"###,
r###"Links (497)"###
);
assert_eq!(
to_html_with_options(
r###"[link](foo\(and\(bar\))
"###,
&danger
)?,
r###"<p><a href="foo(and(bar)">link</a></p>
"###,
r###"Links (498)"###
);
assert_eq!(
to_html_with_options(
r###"[link](<foo(and(bar)>)
"###,
&danger
)?,
r###"<p><a href="foo(and(bar)">link</a></p>
"###,
r###"Links (499)"###
);
assert_eq!(
to_html_with_options(
r###"[link](foo\)\:)
"###,
&danger
)?,
r###"<p><a href="foo):">link</a></p>
"###,
r###"Links (500)"###
);
assert_eq!(
to_html_with_options(
r###"[link](#fragment)
[link](https://example.com#fragment)
[link](https://example.com?foo=3#frag)
"###,
&danger
)?,
r###"<p><a href="#fragment">link</a></p>
<p><a href="https://example.com#fragment">link</a></p>
<p><a href="https://example.com?foo=3#frag">link</a></p>
"###,
r###"Links (501)"###
);
assert_eq!(
to_html_with_options(
r###"[link](foo\bar)
"###,
&danger
)?,
r###"<p><a href="foo%5Cbar">link</a></p>
"###,
r###"Links (502)"###
);
assert_eq!(
to_html_with_options(
r###"[link](foo%20bä)
"###,
&danger
)?,
r###"<p><a href="foo%20b%C3%A4">link</a></p>
"###,
r###"Links (503)"###
);
assert_eq!(
to_html_with_options(
r###"[link]("title")
"###,
&danger
)?,
r###"<p><a href="%22title%22">link</a></p>
"###,
r###"Links (504)"###
);
assert_eq!(
to_html_with_options(
r###"[link](/url "title")
[link](/url 'title')
[link](/url (title))
"###,
&danger
)?,
r###"<p><a href="/url" title="title">link</a>
<a href="/url" title="title">link</a>
<a href="/url" title="title">link</a></p>
"###,
r###"Links (505)"###
);
assert_eq!(
to_html_with_options(
r###"[link](/url "title \""")
"###,
&danger
)?,
r###"<p><a href="/url" title="title """>link</a></p>
"###,
r###"Links (506)"###
);
assert_eq!(
to_html_with_options(
r###"[link](/url "title")
"###,
&danger
)?,
r###"<p><a href="/url%C2%A0%22title%22">link</a></p>
"###,
r###"Links (507)"###
);
assert_eq!(
to_html_with_options(
r###"[link](/url "title "and" title")
"###,
&danger
)?,
r###"<p>[link](/url "title "and" title")</p>
"###,
r###"Links (508)"###
);
assert_eq!(
to_html_with_options(
r###"[link](/url 'title "and" title')
"###,
&danger
)?,
r###"<p><a href="/url" title="title "and" title">link</a></p>
"###,
r###"Links (509)"###
);
assert_eq!(
to_html_with_options(
r###"[link]( /uri
"title" )
"###,
&danger
)?,
r###"<p><a href="/uri" title="title">link</a></p>
"###,
r###"Links (510)"###
);
assert_eq!(
to_html_with_options(
r###"[link] (/uri)
"###,
&danger
)?,
r###"<p>[link] (/uri)</p>
"###,
r###"Links (511)"###
);
assert_eq!(
to_html_with_options(
r###"[link [foo [bar]]](/uri)
"###,
&danger
)?,
r###"<p><a href="/uri">link [foo [bar]]</a></p>
"###,
r###"Links (512)"###
);
assert_eq!(
to_html_with_options(
r###"[link] bar](/uri)
"###,
&danger
)?,
r###"<p>[link] bar](/uri)</p>
"###,
r###"Links (513)"###
);
assert_eq!(
to_html_with_options(
r###"[link [bar](/uri)
"###,
&danger
)?,
r###"<p>[link <a href="/uri">bar</a></p>
"###,
r###"Links (514)"###
);
assert_eq!(
to_html_with_options(
r###"[link \[bar](/uri)
"###,
&danger
)?,
r###"<p><a href="/uri">link [bar</a></p>
"###,
r###"Links (515)"###
);
assert_eq!(
to_html_with_options(
r###"[link *foo **bar** `#`*](/uri)
"###,
&danger
)?,
r###"<p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>
"###,
r###"Links (516)"###
);
assert_eq!(
to_html_with_options(
r###"[](/uri)
"###,
&danger
)?,
r###"<p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p>
"###,
r###"Links (517)"###
);
assert_eq!(
to_html_with_options(
r###"[foo [bar](/uri)](/uri)
"###,
&danger
)?,
r###"<p>[foo <a href="/uri">bar</a>](/uri)</p>
"###,
r###"Links (518)"###
);
assert_eq!(
to_html_with_options(
r###"[foo *[bar [baz](/uri)](/uri)*](/uri)
"###,
&danger
)?,
r###"<p>[foo <em>[bar <a href="/uri">baz</a>](/uri)</em>](/uri)</p>
"###,
r###"Links (519)"###
);
assert_eq!(
to_html_with_options(
r###"](uri2)](uri3)
"###,
&danger
)?,
r###"<p><img src="uri3" alt="[foo](uri2)" /></p>
"###,
r###"Links (520)"###
);
assert_eq!(
to_html_with_options(
r###"*[foo*](/uri)
"###,
&danger
)?,
r###"<p>*<a href="/uri">foo*</a></p>
"###,
r###"Links (521)"###
);
assert_eq!(
to_html_with_options(
r###"[foo *bar](baz*)
"###,
&danger
)?,
r###"<p><a href="baz*">foo *bar</a></p>
"###,
r###"Links (522)"###
);
assert_eq!(
to_html_with_options(
r###"*foo [bar* baz]
"###,
&danger
)?,
r###"<p><em>foo [bar</em> baz]</p>
"###,
r###"Links (523)"###
);
assert_eq!(
to_html_with_options(
r###"[foo <bar attr="](baz)">
"###,
&danger
)?,
r###"<p>[foo <bar attr="](baz)"></p>
"###,
r###"Links (524)"###
);
assert_eq!(
to_html_with_options(
r###"[foo`](/uri)`
"###,
&danger
)?,
r###"<p>[foo<code>](/uri)</code></p>
"###,
r###"Links (525)"###
);
assert_eq!(
to_html_with_options(
r###"[foo<https://example.com/?search=](uri)>
"###,
&danger
)?,
r###"<p>[foo<a href="https://example.com/?search=%5D(uri)">https://example.com/?search=](uri)</a></p>
"###,
r###"Links (526)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][bar]
[bar]: /url "title"
"###,
&danger
)?,
r###"<p><a href="/url" title="title">foo</a></p>
"###,
r###"Links (527)"###
);
assert_eq!(
to_html_with_options(
r###"[link [foo [bar]]][ref]
[ref]: /uri
"###,
&danger
)?,
r###"<p><a href="/uri">link [foo [bar]]</a></p>
"###,
r###"Links (528)"###
);
assert_eq!(
to_html_with_options(
r###"[link \[bar][ref]
[ref]: /uri
"###,
&danger
)?,
r###"<p><a href="/uri">link [bar</a></p>
"###,
r###"Links (529)"###
);
assert_eq!(
to_html_with_options(
r###"[link *foo **bar** `#`*][ref]
[ref]: /uri
"###,
&danger
)?,
r###"<p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>
"###,
r###"Links (530)"###
);
assert_eq!(
to_html_with_options(
r###"[][ref]
[ref]: /uri
"###,
&danger
)?,
r###"<p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p>
"###,
r###"Links (531)"###
);
assert_eq!(
to_html_with_options(
r###"[foo [bar](/uri)][ref]
[ref]: /uri
"###,
&danger
)?,
r###"<p>[foo <a href="/uri">bar</a>]<a href="/uri">ref</a></p>
"###,
r###"Links (532)"###
);
assert_eq!(
to_html_with_options(
r###"[foo *bar [baz][ref]*][ref]
[ref]: /uri
"###,
&danger
)?,
r###"<p>[foo <em>bar <a href="/uri">baz</a></em>]<a href="/uri">ref</a></p>
"###,
r###"Links (533)"###
);
assert_eq!(
to_html_with_options(
r###"*[foo*][ref]
[ref]: /uri
"###,
&danger
)?,
r###"<p>*<a href="/uri">foo*</a></p>
"###,
r###"Links (534)"###
);
assert_eq!(
to_html_with_options(
r###"[foo *bar][ref]*
[ref]: /uri
"###,
&danger
)?,
r###"<p><a href="/uri">foo *bar</a>*</p>
"###,
r###"Links (535)"###
);
assert_eq!(
to_html_with_options(
r###"[foo <bar attr="][ref]">
[ref]: /uri
"###,
&danger
)?,
r###"<p>[foo <bar attr="][ref]"></p>
"###,
r###"Links (536)"###
);
assert_eq!(
to_html_with_options(
r###"[foo`][ref]`
[ref]: /uri
"###,
&danger
)?,
r###"<p>[foo<code>][ref]</code></p>
"###,
r###"Links (537)"###
);
assert_eq!(
to_html_with_options(
r###"[foo<https://example.com/?search=][ref]>
[ref]: /uri
"###,
&danger
)?,
r###"<p>[foo<a href="https://example.com/?search=%5D%5Bref%5D">https://example.com/?search=][ref]</a></p>
"###,
r###"Links (538)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][BaR]
[bar]: /url "title"
"###,
&danger
)?,
r###"<p><a href="/url" title="title">foo</a></p>
"###,
r###"Links (539)"###
);
assert_eq!(
to_html_with_options(
r###"[ẞ]
[SS]: /url
"###,
&danger
)?,
r###"<p><a href="/url">ẞ</a></p>
"###,
r###"Links (540)"###
);
assert_eq!(
to_html_with_options(
r###"[Foo
bar]: /url
[Baz][Foo bar]
"###,
&danger
)?,
r###"<p><a href="/url">Baz</a></p>
"###,
r###"Links (541)"###
);
assert_eq!(
to_html_with_options(
r###"[foo] [bar]
[bar]: /url "title"
"###,
&danger
)?,
r###"<p>[foo] <a href="/url" title="title">bar</a></p>
"###,
r###"Links (542)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]
[bar]
[bar]: /url "title"
"###,
&danger
)?,
r###"<p>[foo]
<a href="/url" title="title">bar</a></p>
"###,
r###"Links (543)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]: /url1
[foo]: /url2
[bar][foo]
"###,
&danger
)?,
r###"<p><a href="/url1">bar</a></p>
"###,
r###"Links (544)"###
);
assert_eq!(
to_html_with_options(
r###"[bar][foo\!]
[foo!]: /url
"###,
&danger
)?,
r###"<p>[bar][foo!]</p>
"###,
r###"Links (545)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][ref[]
[ref[]: /uri
"###,
&danger
)?,
r###"<p>[foo][ref[]</p>
<p>[ref[]: /uri</p>
"###,
r###"Links (546)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][ref[bar]]
[ref[bar]]: /uri
"###,
&danger
)?,
r###"<p>[foo][ref[bar]]</p>
<p>[ref[bar]]: /uri</p>
"###,
r###"Links (547)"###
);
assert_eq!(
to_html_with_options(
r###"[[[foo]]]
[[[foo]]]: /url
"###,
&danger
)?,
r###"<p>[[[foo]]]</p>
<p>[[[foo]]]: /url</p>
"###,
r###"Links (548)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][ref\[]
[ref\[]: /uri
"###,
&danger
)?,
r###"<p><a href="/uri">foo</a></p>
"###,
r###"Links (549)"###
);
assert_eq!(
to_html_with_options(
r###"[bar\\]: /uri
[bar\\]
"###,
&danger
)?,
r###"<p><a href="/uri">bar\</a></p>
"###,
r###"Links (550)"###
);
assert_eq!(
to_html_with_options(
r###"[]
[]: /uri
"###,
&danger
)?,
r###"<p>[]</p>
<p>[]: /uri</p>
"###,
r###"Links (551)"###
);
assert_eq!(
to_html_with_options(
r###"[
]
[
]: /uri
"###,
&danger
)?,
r###"<p>[
]</p>
<p>[
]: /uri</p>
"###,
r###"Links (552)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p><a href="/url" title="title">foo</a></p>
"###,
r###"Links (553)"###
);
assert_eq!(
to_html_with_options(
r###"[*foo* bar][]
[*foo* bar]: /url "title"
"###,
&danger
)?,
r###"<p><a href="/url" title="title"><em>foo</em> bar</a></p>
"###,
r###"Links (554)"###
);
assert_eq!(
to_html_with_options(
r###"[Foo][]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p><a href="/url" title="title">Foo</a></p>
"###,
r###"Links (555)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]
[]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p><a href="/url" title="title">foo</a>
[]</p>
"###,
r###"Links (556)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p><a href="/url" title="title">foo</a></p>
"###,
r###"Links (557)"###
);
assert_eq!(
to_html_with_options(
r###"[*foo* bar]
[*foo* bar]: /url "title"
"###,
&danger
)?,
r###"<p><a href="/url" title="title"><em>foo</em> bar</a></p>
"###,
r###"Links (558)"###
);
assert_eq!(
to_html_with_options(
r###"[[*foo* bar]]
[*foo* bar]: /url "title"
"###,
&danger
)?,
r###"<p>[<a href="/url" title="title"><em>foo</em> bar</a>]</p>
"###,
r###"Links (559)"###
);
assert_eq!(
to_html_with_options(
r###"[[bar [foo]
[foo]: /url
"###,
&danger
)?,
r###"<p>[[bar <a href="/url">foo</a></p>
"###,
r###"Links (560)"###
);
assert_eq!(
to_html_with_options(
r###"[Foo]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p><a href="/url" title="title">Foo</a></p>
"###,
r###"Links (561)"###
);
assert_eq!(
to_html_with_options(
r###"[foo] bar
[foo]: /url
"###,
&danger
)?,
r###"<p><a href="/url">foo</a> bar</p>
"###,
r###"Links (562)"###
);
assert_eq!(
to_html_with_options(
r###"\[foo]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p>[foo]</p>
"###,
r###"Links (563)"###
);
assert_eq!(
to_html_with_options(
r###"[foo*]: /url
*[foo*]
"###,
&danger
)?,
r###"<p>*<a href="/url">foo*</a></p>
"###,
r###"Links (564)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][bar]
[foo]: /url1
[bar]: /url2
"###,
&danger
)?,
r###"<p><a href="/url2">foo</a></p>
"###,
r###"Links (565)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][]
[foo]: /url1
"###,
&danger
)?,
r###"<p><a href="/url1">foo</a></p>
"###,
r###"Links (566)"###
);
assert_eq!(
to_html_with_options(
r###"[foo]()
[foo]: /url1
"###,
&danger
)?,
r###"<p><a href="">foo</a></p>
"###,
r###"Links (567)"###
);
assert_eq!(
to_html_with_options(
r###"[foo](not a link)
[foo]: /url1
"###,
&danger
)?,
r###"<p><a href="/url1">foo</a>(not a link)</p>
"###,
r###"Links (568)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][bar][baz]
[baz]: /url
"###,
&danger
)?,
r###"<p>[foo]<a href="/url">bar</a></p>
"###,
r###"Links (569)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][bar][baz]
[baz]: /url1
[bar]: /url2
"###,
&danger
)?,
r###"<p><a href="/url2">foo</a><a href="/url1">baz</a></p>
"###,
r###"Links (570)"###
);
assert_eq!(
to_html_with_options(
r###"[foo][bar][baz]
[baz]: /url1
[foo]: /url2
"###,
&danger
)?,
r###"<p>[foo]<a href="/url1">bar</a></p>
"###,
r###"Links (571)"###
);
assert_eq!(
to_html_with_options(
r###"
"###,
&danger
)?,
r###"<p><img src="/url" alt="foo" title="title" /></p>
"###,
r###"Images (572)"###
);
assert_eq!(
to_html_with_options(
r###"![foo *bar*]
[foo *bar*]: train.jpg "train & tracks"
"###,
&danger
)?,
r###"<p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p>
"###,
r###"Images (573)"###
);
assert_eq!(
to_html_with_options(
r###"](/url2)
"###,
&danger
)?,
r###"<p><img src="/url2" alt="foo bar" /></p>
"###,
r###"Images (574)"###
);
assert_eq!(
to_html_with_options(
r###"](/url2)
"###,
&danger
)?,
r###"<p><img src="/url2" alt="foo bar" /></p>
"###,
r###"Images (575)"###
);
assert_eq!(
to_html_with_options(
r###"![foo *bar*][]
[foo *bar*]: train.jpg "train & tracks"
"###,
&danger
)?,
r###"<p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p>
"###,
r###"Images (576)"###
);
assert_eq!(
to_html_with_options(
r###"![foo *bar*][foobar]
[FOOBAR]: train.jpg "train & tracks"
"###,
&danger
)?,
r###"<p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p>
"###,
r###"Images (577)"###
);
assert_eq!(
to_html_with_options(
r###"
"###,
&danger
)?,
r###"<p><img src="train.jpg" alt="foo" /></p>
"###,
r###"Images (578)"###
);
assert_eq!(
to_html_with_options(
r###"My 
"###,
&danger
)?,
r###"<p>My <img src="/path/to/train.jpg" alt="foo bar" title="title" /></p>
"###,
r###"Images (579)"###
);
assert_eq!(
to_html_with_options(
r###"
"###,
&danger
)?,
r###"<p><img src="url" alt="foo" /></p>
"###,
r###"Images (580)"###
);
assert_eq!(
to_html_with_options(
r###"
"###,
&danger
)?,
r###"<p><img src="/url" alt="" /></p>
"###,
r###"Images (581)"###
);
assert_eq!(
to_html_with_options(
r###"![foo][bar]
[bar]: /url
"###,
&danger
)?,
r###"<p><img src="/url" alt="foo" /></p>
"###,
r###"Images (582)"###
);
assert_eq!(
to_html_with_options(
r###"![foo][bar]
[BAR]: /url
"###,
&danger
)?,
r###"<p><img src="/url" alt="foo" /></p>
"###,
r###"Images (583)"###
);
assert_eq!(
to_html_with_options(
r###"![foo][]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p><img src="/url" alt="foo" title="title" /></p>
"###,
r###"Images (584)"###
);
assert_eq!(
to_html_with_options(
r###"![*foo* bar][]
[*foo* bar]: /url "title"
"###,
&danger
)?,
r###"<p><img src="/url" alt="foo bar" title="title" /></p>
"###,
r###"Images (585)"###
);
assert_eq!(
to_html_with_options(
r###"![Foo][]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p><img src="/url" alt="Foo" title="title" /></p>
"###,
r###"Images (586)"###
);
assert_eq!(
to_html_with_options(
r###"![foo]
[]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p><img src="/url" alt="foo" title="title" />
[]</p>
"###,
r###"Images (587)"###
);
assert_eq!(
to_html_with_options(
r###"![foo]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p><img src="/url" alt="foo" title="title" /></p>
"###,
r###"Images (588)"###
);
assert_eq!(
to_html_with_options(
r###"![*foo* bar]
[*foo* bar]: /url "title"
"###,
&danger
)?,
r###"<p><img src="/url" alt="foo bar" title="title" /></p>
"###,
r###"Images (589)"###
);
assert_eq!(
to_html_with_options(
r###"![[foo]]
[[foo]]: /url "title"
"###,
&danger
)?,
r###"<p>![[foo]]</p>
<p>[[foo]]: /url "title"</p>
"###,
r###"Images (590)"###
);
assert_eq!(
to_html_with_options(
r###"![Foo]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p><img src="/url" alt="Foo" title="title" /></p>
"###,
r###"Images (591)"###
);
assert_eq!(
to_html_with_options(
r###"!\[foo]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p>![foo]</p>
"###,
r###"Images (592)"###
);
assert_eq!(
to_html_with_options(
r###"\![foo]
[foo]: /url "title"
"###,
&danger
)?,
r###"<p>!<a href="/url" title="title">foo</a></p>
"###,
r###"Images (593)"###
);
assert_eq!(
to_html_with_options(
r###"<http://foo.bar.baz>
"###,
&danger
)?,
r###"<p><a href="http://foo.bar.baz">http://foo.bar.baz</a></p>
"###,
r###"Autolinks (594)"###
);
assert_eq!(
to_html_with_options(
r###"<https://foo.bar.baz/test?q=hello&id=22&boolean>
"###,
&danger
)?,
r###"<p><a href="https://foo.bar.baz/test?q=hello&id=22&boolean">https://foo.bar.baz/test?q=hello&id=22&boolean</a></p>
"###,
r###"Autolinks (595)"###
);
assert_eq!(
to_html_with_options(
r###"<irc://foo.bar:2233/baz>
"###,
&danger
)?,
r###"<p><a href="irc://foo.bar:2233/baz">irc://foo.bar:2233/baz</a></p>
"###,
r###"Autolinks (596)"###
);
assert_eq!(
to_html_with_options(
r###"<MAILTO:FOO@BAR.BAZ>
"###,
&danger
)?,
r###"<p><a href="MAILTO:FOO@BAR.BAZ">MAILTO:FOO@BAR.BAZ</a></p>
"###,
r###"Autolinks (597)"###
);
assert_eq!(
to_html_with_options(
r###"<a+b+c:d>
"###,
&danger
)?,
r###"<p><a href="a+b+c:d">a+b+c:d</a></p>
"###,
r###"Autolinks (598)"###
);
assert_eq!(
to_html_with_options(
r###"<made-up-scheme://foo,bar>
"###,
&danger
)?,
r###"<p><a href="made-up-scheme://foo,bar">made-up-scheme://foo,bar</a></p>
"###,
r###"Autolinks (599)"###
);
assert_eq!(
to_html_with_options(
r###"<https://../>
"###,
&danger
)?,
r###"<p><a href="https://../">https://../</a></p>
"###,
r###"Autolinks (600)"###
);
assert_eq!(
to_html_with_options(
r###"<localhost:5001/foo>
"###,
&danger
)?,
r###"<p><a href="localhost:5001/foo">localhost:5001/foo</a></p>
"###,
r###"Autolinks (601)"###
);
assert_eq!(
to_html_with_options(
r###"<https://foo.bar/baz bim>
"###,
&danger
)?,
r###"<p><https://foo.bar/baz bim></p>
"###,
r###"Autolinks (602)"###
);
assert_eq!(
to_html_with_options(
r###"<https://example.com/\[\>
"###,
&danger
)?,
r###"<p><a href="https://example.com/%5C%5B%5C">https://example.com/\[\</a></p>
"###,
r###"Autolinks (603)"###
);
assert_eq!(
to_html_with_options(
r###"<foo@bar.example.com>
"###,
&danger
)?,
r###"<p><a href="mailto:foo@bar.example.com">foo@bar.example.com</a></p>
"###,
r###"Autolinks (604)"###
);
assert_eq!(
to_html_with_options(
r###"<foo+special@Bar.baz-bar0.com>
"###,
&danger
)?,
r###"<p><a href="mailto:foo+special@Bar.baz-bar0.com">foo+special@Bar.baz-bar0.com</a></p>
"###,
r###"Autolinks (605)"###
);
assert_eq!(
to_html_with_options(
r###"<foo\+@bar.example.com>
"###,
&danger
)?,
r###"<p><foo+@bar.example.com></p>
"###,
r###"Autolinks (606)"###
);
assert_eq!(
to_html_with_options(
r###"<>
"###,
&danger
)?,
r###"<p><></p>
"###,
r###"Autolinks (607)"###
);
assert_eq!(
to_html_with_options(
r###"< https://foo.bar >
"###,
&danger
)?,
r###"<p>< https://foo.bar ></p>
"###,
r###"Autolinks (608)"###
);
assert_eq!(
to_html_with_options(
r###"<m:abc>
"###,
&danger
)?,
r###"<p><m:abc></p>
"###,
r###"Autolinks (609)"###
);
assert_eq!(
to_html_with_options(
r###"<foo.bar.baz>
"###,
&danger
)?,
r###"<p><foo.bar.baz></p>
"###,
r###"Autolinks (610)"###
);
assert_eq!(
to_html_with_options(
r###"https://example.com
"###,
&danger
)?,
r###"<p>https://example.com</p>
"###,
r###"Autolinks (611)"###
);
assert_eq!(
to_html_with_options(
r###"foo@bar.example.com
"###,
&danger
)?,
r###"<p>foo@bar.example.com</p>
"###,
r###"Autolinks (612)"###
);
assert_eq!(
to_html_with_options(
r###"<a><bab><c2c>
"###,
&danger
)?,
r###"<p><a><bab><c2c></p>
"###,
r###"Raw HTML (613)"###
);
assert_eq!(
to_html_with_options(
r###"<a/><b2/>
"###,
&danger
)?,
r###"<p><a/><b2/></p>
"###,
r###"Raw HTML (614)"###
);
assert_eq!(
to_html_with_options(
r###"<a /><b2
data="foo" >
"###,
&danger
)?,
r###"<p><a /><b2
data="foo" ></p>
"###,
r###"Raw HTML (615)"###
);
assert_eq!(
to_html_with_options(
r###"<a foo="bar" bam = 'baz <em>"</em>'
_boolean zoop:33=zoop:33 />
"###,
&danger
)?,
r###"<p><a foo="bar" bam = 'baz <em>"</em>'
_boolean zoop:33=zoop:33 /></p>
"###,
r###"Raw HTML (616)"###
);
assert_eq!(
to_html_with_options(
r###"Foo <responsive-image src="foo.jpg" />
"###,
&danger
)?,
r###"<p>Foo <responsive-image src="foo.jpg" /></p>
"###,
r###"Raw HTML (617)"###
);
assert_eq!(
to_html_with_options(
r###"<33> <__>
"###,
&danger
)?,
r###"<p><33> <__></p>
"###,
r###"Raw HTML (618)"###
);
assert_eq!(
to_html_with_options(
r###"<a h*#ref="hi">
"###,
&danger
)?,
r###"<p><a h*#ref="hi"></p>
"###,
r###"Raw HTML (619)"###
);
assert_eq!(
to_html_with_options(
r###"<a href="hi'> <a href=hi'>
"###,
&danger
)?,
r###"<p><a href="hi'> <a href=hi'></p>
"###,
r###"Raw HTML (620)"###
);
assert_eq!(
to_html_with_options(
r###"< a><
foo><bar/ >
<foo bar=baz
bim!bop />
"###,
&danger
)?,
r###"<p>< a><
foo><bar/ >
<foo bar=baz
bim!bop /></p>
"###,
r###"Raw HTML (621)"###
);
assert_eq!(
to_html_with_options(
r###"<a href='bar'title=title>
"###,
&danger
)?,
r###"<p><a href='bar'title=title></p>
"###,
r###"Raw HTML (622)"###
);
assert_eq!(
to_html_with_options(
r###"</a></foo >
"###,
&danger
)?,
r###"<p></a></foo ></p>
"###,
r###"Raw HTML (623)"###
);
assert_eq!(
to_html_with_options(
r###"</a href="foo">
"###,
&danger
)?,
r###"<p></a href="foo"></p>
"###,
r###"Raw HTML (624)"###
);
assert_eq!(
to_html_with_options(
r###"foo <!-- this is a --
comment - with hyphens -->
"###,
&danger
)?,
r###"<p>foo <!-- this is a --
comment - with hyphens --></p>
"###,
r###"Raw HTML (625)"###
);
assert_eq!(
to_html_with_options(
r###"foo <!--> foo -->
foo <!---> foo -->
"###,
&danger
)?,
r###"<p>foo <!--> foo --></p>
<p>foo <!---> foo --></p>
"###,
r###"Raw HTML (626)"###
);
assert_eq!(
to_html_with_options(
r###"foo <?php echo $a; ?>
"###,
&danger
)?,
r###"<p>foo <?php echo $a; ?></p>
"###,
r###"Raw HTML (627)"###
);
assert_eq!(
to_html_with_options(
r###"foo <!ELEMENT br EMPTY>
"###,
&danger
)?,
r###"<p>foo <!ELEMENT br EMPTY></p>
"###,
r###"Raw HTML (628)"###
);
assert_eq!(
to_html_with_options(
r###"foo <![CDATA[>&<]]>
"###,
&danger
)?,
r###"<p>foo <![CDATA[>&<]]></p>
"###,
r###"Raw HTML (629)"###
);
assert_eq!(
to_html_with_options(
r###"foo <a href="ö">
"###,
&danger
)?,
r###"<p>foo <a href="ö"></p>
"###,
r###"Raw HTML (630)"###
);
assert_eq!(
to_html_with_options(
r###"foo <a href="\*">
"###,
&danger
)?,
r###"<p>foo <a href="\*"></p>
"###,
r###"Raw HTML (631)"###
);
assert_eq!(
to_html_with_options(
r###"<a href="\"">
"###,
&danger
)?,
r###"<p><a href="""></p>
"###,
r###"Raw HTML (632)"###
);
assert_eq!(
to_html_with_options(
r###"foo
baz
"###,
&danger
)?,
r###"<p>foo<br />
baz</p>
"###,
r###"Hard line breaks (633)"###
);
assert_eq!(
to_html_with_options(
r###"foo\
baz
"###,
&danger
)?,
r###"<p>foo<br />
baz</p>
"###,
r###"Hard line breaks (634)"###
);
assert_eq!(
to_html_with_options(
r###"foo
baz
"###,
&danger
)?,
r###"<p>foo<br />
baz</p>
"###,
r###"Hard line breaks (635)"###
);
assert_eq!(
to_html_with_options(
r###"foo
bar
"###,
&danger
)?,
r###"<p>foo<br />
bar</p>
"###,
r###"Hard line breaks (636)"###
);
assert_eq!(
to_html_with_options(
r###"foo\
bar
"###,
&danger
)?,
r###"<p>foo<br />
bar</p>
"###,
r###"Hard line breaks (637)"###
);
assert_eq!(
to_html_with_options(
r###"*foo
bar*
"###,
&danger
)?,
r###"<p><em>foo<br />
bar</em></p>
"###,
r###"Hard line breaks (638)"###
);
assert_eq!(
to_html_with_options(
r###"*foo\
bar*
"###,
&danger
)?,
r###"<p><em>foo<br />
bar</em></p>
"###,
r###"Hard line breaks (639)"###
);
assert_eq!(
to_html_with_options(
r###"`code
span`
"###,
&danger
)?,
r###"<p><code>code span</code></p>
"###,
r###"Hard line breaks (640)"###
);
assert_eq!(
to_html_with_options(
r###"`code\
span`
"###,
&danger
)?,
r###"<p><code>code\ span</code></p>
"###,
r###"Hard line breaks (641)"###
);
assert_eq!(
to_html_with_options(
r###"<a href="foo
bar">
"###,
&danger
)?,
r###"<p><a href="foo
bar"></p>
"###,
r###"Hard line breaks (642)"###
);
assert_eq!(
to_html_with_options(
r###"<a href="foo\
bar">
"###,
&danger
)?,
r###"<p><a href="foo\
bar"></p>
"###,
r###"Hard line breaks (643)"###
);
assert_eq!(
to_html_with_options(
r###"foo\
"###,
&danger
)?,
r###"<p>foo\</p>
"###,
r###"Hard line breaks (644)"###
);
assert_eq!(
to_html_with_options(
r###"foo
"###,
&danger
)?,
r###"<p>foo</p>
"###,
r###"Hard line breaks (645)"###
);
assert_eq!(
to_html_with_options(
r###"### foo\
"###,
&danger
)?,
r###"<h3>foo\</h3>
"###,
r###"Hard line breaks (646)"###
);
assert_eq!(
to_html_with_options(
r###"### foo
"###,
&danger
)?,
r###"<h3>foo</h3>
"###,
r###"Hard line breaks (647)"###
);
assert_eq!(
to_html_with_options(
r###"foo
baz
"###,
&danger
)?,
r###"<p>foo
baz</p>
"###,
r###"Soft line breaks (648)"###
);
assert_eq!(
to_html_with_options(
r###"foo
baz
"###,
&danger
)?,
r###"<p>foo
baz</p>
"###,
r###"Soft line breaks (649)"###
);
assert_eq!(
to_html_with_options(
r###"hello $.;'there
"###,
&danger
)?,
r###"<p>hello $.;'there</p>
"###,
r###"Textual content (650)"###
);
assert_eq!(
to_html_with_options(
r###"Foo χρῆν
"###,
&danger
)?,
r###"<p>Foo χρῆν</p>
"###,
r###"Textual content (651)"###
);
assert_eq!(
to_html_with_options(
r###"Multiple spaces
"###,
&danger
)?,
r###"<p>Multiple spaces</p>
"###,
r###"Textual content (652)"###
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/definition.rs | Rust | use markdown::{
mdast::{Definition, Node, Root},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn definition() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("[foo]: /url \"title\"\n\n[foo]"),
"<p><a href=\"/url\" title=\"title\">foo</a></p>",
"should support link definitions"
);
assert_eq!(
to_html("[foo]:\n\n/url\n\n[foo]"),
"<p>[foo]:</p>\n<p>/url</p>\n<p>[foo]</p>",
"should not support blank lines before destination"
);
assert_eq!(
to_html(" [foo]: \n /url \n 'the title' \n\n[foo]"),
"<p><a href=\"/url\" title=\"the title\">foo</a></p>",
"should support whitespace and line endings in definitions"
);
assert_eq!(
to_html("[a]:b 'c'\n\n[a]"),
"<p><a href=\"b\" title=\"c\">a</a></p>",
"should support no whitespace after `:` in definitions"
);
assert_eq!(
to_html("[Foo*bar\\]]:my_(url) 'title (with parens)'\n\n[Foo*bar\\]]"),
"<p><a href=\"my_(url)\" title=\"title (with parens)\">Foo*bar]</a></p>",
"should support complex definitions (1)"
);
assert_eq!(
to_html("[Foo bar]:\n<my url>\n'title'\n\n[Foo bar]"),
"<p><a href=\"my%20url\" title=\"title\">Foo bar</a></p>",
"should support complex definitions (2)"
);
assert_eq!(
to_html("[foo]: /url '\ntitle\nline1\nline2\n'\n\n[foo]"),
"<p><a href=\"/url\" title=\"\ntitle\nline1\nline2\n\">foo</a></p>",
"should support line endings in titles"
);
assert_eq!(
to_html("[foo]: /url 'title\n\nwith blank line'\n\n[foo]"),
"<p>[foo]: /url 'title</p>\n<p>with blank line'</p>\n<p>[foo]</p>",
"should not support blank lines in titles"
);
assert_eq!(
to_html("[foo]:\n/url\n\n[foo]"),
"<p><a href=\"/url\">foo</a></p>",
"should support definitions w/o title"
);
assert_eq!(
to_html("[foo]:\n\n[foo]"),
"<p>[foo]:</p>\n<p>[foo]</p>",
"should not support definitions w/o destination"
);
assert_eq!(
to_html("[foo]: <>\n\n[foo]"),
"<p><a href=\"\">foo</a></p>",
"should support definitions w/ explicit empty destinations"
);
assert_eq!(
to_html_with_options("[foo]: <bar>(baz)\n\n[foo]", &danger)?,
"<p>[foo]: <bar>(baz)</p>\n<p>[foo]</p>",
"should not support definitions w/ no whitespace between destination and title"
);
assert_eq!(
to_html("[foo]: /url\\bar\\*baz \"foo\\\"bar\\baz\"\n\n[foo]"),
"<p><a href=\"/url%5Cbar*baz\" title=\"foo"bar\\baz\">foo</a></p>",
"should support character escapes in destinations and titles"
);
assert_eq!(
to_html("[foo]\n\n[foo]: url"),
"<p><a href=\"url\">foo</a></p>\n",
"should support a link before a definition"
);
assert_eq!(
to_html("[foo]: first\n[foo]: second\n\n[foo]"),
"<p><a href=\"first\">foo</a></p>",
"should match w/ the first definition"
);
assert_eq!(
to_html("[FOO]: /url\n\n[Foo]"),
"<p><a href=\"/url\">Foo</a></p>",
"should match w/ case-insensitive (1)"
);
assert_eq!(
to_html("[ΑΓΩ]: /φου\n\n[αγω]"),
"<p><a href=\"/%CF%86%CE%BF%CF%85\">αγω</a></p>",
"should match w/ case-insensitive (2)"
);
assert_eq!(
to_html("[ı]: a\n\n[I]"),
"<p><a href=\"a\">I</a></p>",
"should match w/ undotted turkish i (1)"
);
assert_eq!(
to_html("[I]: a\n\n[ı]"),
"<p><a href=\"a\">ı</a></p>",
"should match w/ undotted turkish i (2)"
);
// Ref: <https://spec.commonmark.org/dingus/?text=%5Bi%5D%3A%20a%0A%0A%5Bİ%5D>
// GFM parses the same (last checked: 2022-07-11).
assert_eq!(
to_html("[i]: a\n\n[İ]"),
"<p>[İ]</p>",
"should *not* match w/ dotted turkish i (1)"
);
// Ref: <https://spec.commonmark.org/dingus/?text=%5Bİ%5D%3A%20a%0A%0A%5Bi%5D>
// GFM parses the same (last checked: 2022-07-11).
assert_eq!(
to_html("[İ]: a\n\n[i]"),
"<p>[i]</p>",
"should *not* match w/ dotted turkish i (2)"
);
assert_eq!(
to_html("[foo]: /url"),
"",
"should not contribute anything w/o reference (1)"
);
assert_eq!(
to_html("[\nfoo\n]: /url\nbar"),
"<p>bar</p>",
"should not contribute anything w/o reference (2)"
);
assert_eq!(
to_html("[foo]: /url \"title\" \n\n[foo]"),
"<p><a href=\"/url\" title=\"title\">foo</a></p>",
"should support whitespace after title"
);
assert_eq!(
to_html("[foo]: /url\n\"title\" \n\n[foo]"),
"<p><a href=\"/url\" title=\"title\">foo</a></p>",
"should support whitespace after title on a separate line"
);
assert_eq!(
to_html("[foo]: /url \"title\" ok"),
"<p>[foo]: /url "title" ok</p>",
"should not support non-whitespace content after definitions (1)"
);
assert_eq!(
to_html("[foo]: /url\n\"title\" ok"),
"<p>"title" ok</p>",
"should not support non-whitespace content after definitions (2)"
);
assert_eq!(
to_html(" [foo]: /url \"title\"\n\n[foo]"),
"<pre><code>[foo]: /url "title"\n</code></pre>\n<p>[foo]</p>",
"should prefer indented code over definitions"
);
assert_eq!(
to_html("```\n[foo]: /url\n```\n\n[foo]"),
"<pre><code>[foo]: /url\n</code></pre>\n<p>[foo]</p>",
"should not support definitions in fenced code"
);
assert_eq!(
to_html("Foo\n[bar]: /baz\n\n[bar]"),
"<p>Foo\n[bar]: /baz</p>\n<p>[bar]</p>",
"should not support definitions in paragraphs"
);
assert_eq!(
to_html("# [Foo]\n[foo]: /url\n> bar"),
"<h1><a href=\"/url\">Foo</a></h1>\n<blockquote>\n<p>bar</p>\n</blockquote>",
"should not support definitions in headings"
);
assert_eq!(
to_html("[foo]: /url\nbar\n===\n[foo]"),
"<h1>bar</h1>\n<p><a href=\"/url\">foo</a></p>",
"should support setext headings after definitions"
);
assert_eq!(
to_html("[a]: b\n="),
"<p>=</p>",
"should not support setext heading underlines after definitions (1)"
);
assert_eq!(
to_html("[foo]: /url\n===\n[foo]"),
"<p>===\n<a href=\"/url\">foo</a></p>",
"should not support setext heading underlines after definitions (2)"
);
assert_eq!(
to_html(
"[foo]: /foo-url \"foo\"\n[bar]: /bar-url\n \"bar\"\n[baz]: /baz-url\n\n[foo],\n[bar],\n[baz]"),
"<p><a href=\"/foo-url\" title=\"foo\">foo</a>,\n<a href=\"/bar-url\" title=\"bar\">bar</a>,\n<a href=\"/baz-url\">baz</a></p>",
"should support definitions after definitions"
);
assert_eq!(
to_html("> [foo]: /url\n\n[foo]"),
"<blockquote>\n</blockquote>\n<p><a href=\"/url\">foo</a></p>",
"should support definitions in block quotes (1)"
);
assert_eq!(
to_html("> [a]: <> 'b\n> c'"),
"<blockquote>\n</blockquote>",
"should support definitions in block quotes (2)"
);
assert_eq!(
to_html("> [a]\n\n[a]: b (c\n)"),
"<blockquote>\n<p><a href=\"b\" title=\"c\n\">a</a></p>\n</blockquote>\n",
"should support definitions in block quotes (3)"
);
// Extra
assert_eq!(
to_html("[\\[\\+\\]]: example.com\n\nLink: [\\[\\+\\]]."),
"<p>Link: <a href=\"example.com\">[+]</a>.</p>",
"should match w/ character escapes"
);
assert_eq!(
to_html("[x]: \\\" \\(\\)\\\"\n\n[x]"),
"<p><a href=\"%22%20()%22\">x</a></p>",
"should support character escapes & references in unenclosed destinations"
);
assert_eq!(
to_html("[x]: <\\> \\+\\>>\n\n[x]"),
"<p><a href=\"%3E%20+%3E\">x</a></p>",
"should support character escapes & references in enclosed destinations"
);
assert_eq!(
to_html("[x]: <\n\n[x]"),
"<p>[x]: <</p>\n<p>[x]</p>",
"should not support a line ending at start of enclosed destination"
);
assert_eq!(
to_html("[x]: <x\n\n[x]"),
"<p>[x]: <x</p>\n<p>[x]</p>",
"should not support a line ending in enclosed destination"
);
assert_eq!(
to_html("[x]: \u{000b}a\n\n[x]"),
"<p>[x]: \u{000b}a</p>\n<p>[x]</p>",
"should not support ascii control characters at the start of destination"
);
assert_eq!(
to_html("[x]: a\u{000b}b\n\n[x]"),
"<p>[x]: a\u{000b}b</p>\n<p>[x]</p>",
"should not support ascii control characters in destination"
);
assert_eq!(
to_html("[x]: <\u{000b}a>\n\n[x]"),
"<p><a href=\"%0Ba\">x</a></p>",
"should support ascii control characters at the start of enclosed destination"
);
assert_eq!(
to_html("[x]: <a\u{000b}b>\n\n[x]"),
"<p><a href=\"a%0Bb\">x</a></p>",
"should support ascii control characters in enclosed destinations"
);
assert_eq!(
to_html("[x]: a \"\\\"\"\n\n[x]"),
"<p><a href=\"a\" title=\""\">x</a></p>",
"should support character escapes at the start of a title"
);
assert_eq!(
to_html("[x]: a \"'\"\n\n[x]"),
"<p><a href=\"a\" title=\"'\">x</a></p>",
"should support double quoted titles"
);
assert_eq!(
to_html("[x]: a '\"'\n\n[x]"),
"<p><a href=\"a\" title=\""\">x</a></p>",
"should support single quoted titles"
);
assert_eq!(
to_html("[x]: a (\"')\n\n[x]"),
"<p><a href=\"a\" title=\""'\">x</a></p>",
"should support paren enclosed titles"
);
assert_eq!(
to_html("[x]: a(()\n\n[x]"),
"<p>[x]: a(()</p>\n<p>[x]</p>",
"should not support more opening than closing parens in the destination"
);
assert_eq!(
to_html("[x]: a(())\n\n[x]"),
"<p><a href=\"a(())\">x</a></p>",
"should support balanced opening and closing parens in the destination"
);
assert_eq!(
to_html("[x]: a())\n\n[x]"),
"<p>[x]: a())</p>\n<p>[x]</p>",
"should not support more closing than opening parens in the destination"
);
assert_eq!(
to_html("[x]: a \t\n\n[x]"),
"<p><a href=\"a\">x</a></p>",
"should support trailing whitespace after a destination"
);
assert_eq!(
to_html("[x]: a \"X\" \t\n\n[x]"),
"<p><a href=\"a\" title=\"X\">x</a></p>",
"should support trailing whitespace after a title"
);
assert_eq!(
to_html("[&©&]: example.com/&©& \"&©&\"\n\n[&©&]"),
"<p><a href=\"example.com/&%C2%A9&\" title=\"&©&\">&©&</a></p>",
"should support character references in definitions"
);
assert_eq!(
to_html("[x]:\nexample.com\n\n[x]"),
"<p><a href=\"example.com\">x</a></p>",
"should support a line ending before a destination"
);
assert_eq!(
to_html("[x]: \t\nexample.com\n\n[x]"),
"<p><a href=\"example.com\">x</a></p>",
"should support whitespace before a destination"
);
// See: <https://github.com/commonmark/commonmark.js/issues/192>
assert_eq!(
to_html("[x]: <> \"\"\n[][x]"),
"<p><a href=\"\"></a></p>",
"should ignore an empty title"
);
assert_eq!(
to_html_with_options("[a]\n\n[a]: <b<c>", &danger)?,
"<p>[a]</p>\n<p>[a]: <b<c></p>",
"should not support a less than in an enclosed destination"
);
assert_eq!(
to_html("[a]\n\n[a]: b(c"),
"<p>[a]</p>\n<p>[a]: b(c</p>",
"should not support an extra left paren (`(`) in a raw destination"
);
assert_eq!(
to_html("[a]\n\n[a]: b)c"),
"<p>[a]</p>\n<p>[a]: b)c</p>",
"should not support an extra right paren (`)`) in a raw destination"
);
assert_eq!(
to_html("[a]\n\n[a]: b)c"),
"<p>[a]</p>\n<p>[a]: b)c</p>",
"should not support an extra right paren (`)`) in a raw destination"
);
assert_eq!(
to_html("[a]\n\n[a]: a(1(2(3(4()))))b"),
"<p><a href=\"a(1(2(3(4()))))b\">a</a></p>\n",
"should support 4 or more sets of parens in a raw destination (link resources don’t)"
);
assert_eq!(
to_html("[a]\n\n[a]: aaa)"),
"<p>[a]</p>\n<p>[a]: aaa)</p>",
"should not support a final (unbalanced) right paren in a raw destination"
);
assert_eq!(
to_html("[a]\n\n[a]: aaa) \"a\""),
"<p>[a]</p>\n<p>[a]: aaa) "a"</p>",
"should not support a final (unbalanced) right paren in a raw destination “before” a title"
);
assert_eq!(
to_html(" [a]: b \"c\"\n [d]: e\n [f]: g \"h\"\n [i]: j\n\t[k]: l (m)\n\t n [k] o"),
"<p>n <a href=\"l\" title=\"m\">k</a> o</p>",
"should support subsequent indented definitions"
);
assert_eq!(
to_html("[a\n b]: c\n\n[a\n b]"),
"<p><a href=\"c\">a\nb</a></p>",
"should support line prefixes in definition labels"
);
assert_eq!(
to_html("[a]: )\n\n[a]"),
"<p>[a]: )</p>\n<p>[a]</p>",
"should not support definitions w/ only a closing paren as a raw destination"
);
assert_eq!(
to_html("[a]: )b\n\n[a]"),
"<p>[a]: )b</p>\n<p>[a]</p>",
"should not support definitions w/ closing paren + more text as a raw destination"
);
assert_eq!(
to_html("[a]: b)\n\n[a]"),
"<p>[a]: b)</p>\n<p>[a]</p>",
"should not support definitions w/ text + a closing paren as a raw destination"
);
assert_eq!(
to_html("[\na\n=\n]: b"),
"<h1>[\na</h1>\n<p>]: b</p>",
"should prefer setext headings over definition labels"
);
assert_eq!(
to_html("[a]: b '\nc\n=\n'"),
"<h1>[a]: b '\nc</h1>\n<p>'</p>",
"should prefer setext headings over definition titles"
);
assert_eq!(
to_html("[\n***\n]: b"),
"<p>[</p>\n<hr />\n<p>]: b</p>",
"should prefer thematic breaks over definition labels"
);
assert_eq!(
to_html("[a]: b '\n***\n'"),
"<p>[a]: b '</p>\n<hr />\n<p>'</p>",
"should prefer thematic breaks over definition titles"
);
assert_eq!(
to_html("[\n```\n]: b"),
"<p>[</p>\n<pre><code>]: b\n</code></pre>\n",
"should prefer code (fenced) over definition labels"
);
assert_eq!(
to_html("[a]: b '\n```\n'"),
"<p>[a]: b '</p>\n<pre><code>'\n</code></pre>\n",
"should prefer code (fenced) over definition titles"
);
assert_eq!(
to_html_with_options(
"[foo]: /url \"title\"",
&Options {
parse: ParseOptions {
constructs: Constructs {
definition: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>[foo]: /url "title"</p>",
"should support turning off definitions"
);
assert_eq!(
to_mdast("[a]: <b> 'c'", &Default::default())?,
Node::Root(Root {
children: vec![Node::Definition(Definition {
url: "b".into(),
identifier: "a".into(),
label: Some("a".into()),
title: Some("c".into()),
position: Some(Position::new(1, 1, 0, 1, 13, 12))
})],
position: Some(Position::new(1, 1, 0, 1, 13, 12))
}),
"should support definitions as `Definition`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/frontmatter.rs | Rust | use markdown::{
mdast::{Node, Root, Toml, Yaml},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn frontmatter() -> Result<(), message::Message> {
let frontmatter = Options {
parse: ParseOptions {
constructs: Constructs {
frontmatter: true,
..Default::default()
},
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("---\ntitle: Jupyter\n---"),
"<hr />\n<h2>title: Jupyter</h2>",
"should not support frontmatter by default"
);
assert_eq!(
to_html_with_options("---\ntitle: Jupyter\n---", &frontmatter)?,
"",
"should support frontmatter (yaml)"
);
assert_eq!(
to_html_with_options("+++\ntitle = \"Jupyter\"\n+++", &frontmatter)?,
"",
"should support frontmatter (toml)"
);
assert_eq!(
to_html_with_options("---\n---", &frontmatter)?,
"",
"should support empty frontmatter"
);
assert_eq!(
to_html_with_options("--\n---", &frontmatter)?,
"<h2>--</h2>",
"should not support 2 markers in an opening fence"
);
assert_eq!(
to_html_with_options("----\n---", &frontmatter)?,
"<hr />\n<hr />",
"should not support 4 markers in an opening fence"
);
assert_eq!(
to_html_with_options("---\n--", &frontmatter)?,
"<hr />\n<p>--</p>",
"should not support 2 markers in a closing fence"
);
assert_eq!(
to_html_with_options("---\n--\n", &frontmatter)?,
"<hr />\n<p>--</p>\n",
"should not panic if newline after 2 marker closing fence"
);
assert_eq!(
to_html_with_options("---\n----", &frontmatter)?,
"<hr />\n<hr />",
"should not support 4 markers in a closing fence"
);
assert_eq!(
to_html_with_options("---\n---\n## Neptune", &frontmatter)?,
"<h2>Neptune</h2>",
"should support content after frontmatter"
);
assert_eq!(
to_html_with_options("--- \t\n---", &frontmatter)?,
"",
"should support spaces and tabs after opening fence"
);
assert_eq!(
to_html_with_options("---\n---\t ", &frontmatter)?,
"",
"should support spaces and tabs after closing fence"
);
assert_eq!(
to_html_with_options("---\n---\na\nb", &frontmatter)?,
"<p>a\nb</p>",
"should support line endings after frontmatter"
);
assert_eq!(
to_html_with_options("--- a\n---", &frontmatter)?,
"<h2>--- a</h2>",
"should not support content after opening fence"
);
assert_eq!(
to_html_with_options("---\n--- b", &frontmatter)?,
"<hr />\n<p>--- b</p>",
"should not support content after closing fence"
);
assert_eq!(
to_html_with_options("## Neptune\n---\n---", &frontmatter)?,
"<h2>Neptune</h2>\n<hr />\n<hr />",
"should not support frontmatter after content"
);
assert_eq!(
to_html_with_options("> ---\n> ---\n> ## Neptune", &frontmatter)?,
"<blockquote>\n<hr />\n<hr />\n<h2>Neptune</h2>\n</blockquote>",
"should not support frontmatter in a container"
);
assert_eq!(
to_html_with_options("---", &frontmatter)?,
"<hr />",
"should not support just an opening fence"
);
assert_eq!(
to_html_with_options("---\ntitle: Neptune", &frontmatter)?,
"<hr />\n<p>title: Neptune</p>",
"should not support a missing closing fence"
);
assert_eq!(
to_html_with_options("---\na\n\nb\n \t\nc\n---", &frontmatter)?,
"",
"should support blank lines in frontmatter"
);
assert_eq!(
to_mdast("---\na: b\n---", &frontmatter.parse)?,
Node::Root(Root {
children: vec![Node::Yaml(Yaml {
value: "a: b".into(),
position: Some(Position::new(1, 1, 0, 3, 4, 12))
})],
position: Some(Position::new(1, 1, 0, 3, 4, 12))
}),
"should support yaml as `Yaml`s in mdast"
);
assert_eq!(
to_mdast("+++\ntitle = \"Jupyter\"\n+++", &frontmatter.parse)?,
Node::Root(Root {
children: vec![Node::Toml(Toml {
value: "title = \"Jupyter\"".into(),
position: Some(Position::new(1, 1, 0, 3, 4, 25))
})],
position: Some(Position::new(1, 1, 0, 3, 4, 25))
}),
"should support toml as `Toml`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/fuzz.rs | Rust | use markdown::{mdast, message, to_html, to_html_with_options, to_mdast, Options};
use pretty_assertions::assert_eq;
#[test]
fn fuzz() -> Result<(), message::Message> {
assert_eq!(
to_html("[\n~\na\n-\n\n"),
"<h2>[\n~\na</h2>\n",
"1: label, blank lines, and code"
);
// The first link is stopped by the `+` (so it’s `a@b.c`), but the next
// link overlaps it (`b.c+d@e.f`).
assert_eq!(
to_html_with_options("a@b.c+d@e.f", &Options::gfm())?,
"<p><a href=\"mailto:a@b.c\">a@b.c</a><a href=\"mailto:+d@e.f\">+d@e.f</a></p>",
"2: gfm: email autolink literals running into each other"
);
assert_eq!(
to_html(" x\n* "),
"<pre><code>x\n</code></pre>\n<ul>\n<li></li>\n</ul>",
"3-a: containers should not pierce into indented code"
);
assert_eq!(
to_html(" a\n* b"),
"<pre><code>a\n</code></pre>\n<ul>\n<li>\n<pre><code>b\n</code></pre>\n</li>\n</ul>",
"3-b: containers should not pierce into indented code"
);
assert_eq!(
to_html("a * "),
"<p>a *</p>",
"4-a: trailing whitespace and broken data"
);
assert_eq!(
to_html("_ "),
"<p>_</p>",
"4-b: trailing whitespace and broken data (GH-13)"
);
assert_eq!(
to_html_with_options("a ~ ", &Options::gfm())?,
"<p>a ~</p>",
"4-c: trailing whitespace and broken data (GH-14)"
);
assert!(
matches!(
to_mdast("123456789. ok", &Default::default()),
Ok(mdast::Node::Root(_))
),
"5: lists should support high start numbers (GH-17)"
);
assert_eq!(
to_html("> ```\n"),
"<blockquote>\n<pre><code>\n</code></pre>\n</blockquote>",
"6-a: container close after unclosed fenced code, with eol (block quote, GH-16)"
);
assert_eq!(
to_html("- ```\n"),
"<ul>\n<li>\n<pre><code>\n</code></pre>\n</li>\n</ul>",
"6-b: container close after unclosed fenced code, with eol (list, GH-16)"
);
assert_eq!(
to_html_with_options("> x\n``", &Options::gfm()),
Ok("<blockquote>\n<p>x</p>\n</blockquote>\n<p>``</p>".into()),
"7: lazy container lines almost starting fenced code (GH-19)"
);
assert_eq!(
to_html_with_options("a\tb@c.d", &Options::gfm()),
Ok("<p>a\t<a href=\"mailto:b@c.d\">b@c.d</a></p>".into()),
"8-a: autolink literals after tabs (GH-18)"
);
assert_eq!(
to_html_with_options("aa\tb@c.d", &Options::gfm()),
Ok("<p>aa\t<a href=\"mailto:b@c.d\">b@c.d</a></p>".into()),
"8-b: autolink literals after tabs (GH-18)"
);
assert_eq!(
to_html_with_options("aaa\tb@c.d", &Options::gfm()),
Ok("<p>aaa\t<a href=\"mailto:b@c.d\">b@c.d</a></p>".into()),
"8-c: autolink literals after tabs (GH-18)"
);
assert_eq!(
to_html_with_options("aaaa\tb@c.d", &Options::gfm()),
Ok("<p>aaaa\t<a href=\"mailto:b@c.d\">b@c.d</a></p>".into()),
"8-d: autolink literals after tabs (GH-18)"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n| www.a|", &Options::gfm()),
Ok("<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"http://www.a\">www.a</a></td>\n</tr>\n</tbody>\n</table>".into()),
"9: autolink literals that end in table cell delimiter (GH-20)"
);
assert_eq!(
to_html_with_options("[*]() [*]()", &Options::gfm()),
Ok("<p><a href=\"\">*</a> <a href=\"\">*</a></p>".into()),
"10: attention in different links (GH-21)"
);
assert!(
matches!(
to_mdast("* [ ]\na", &Default::default()),
Ok(mdast::Node::Root(_))
),
"11: gfm task list items followed by eols (GH-24)"
);
assert_eq!(
markdown::to_html_with_options(
"<",
&markdown::Options {
parse: markdown::ParseOptions::mdx(),
..Default::default()
}
),
Ok("<p><</p>".to_string()),
"12: mdx: handle invalid mdx without panic (GH-26)"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/gfm_autolink_literal.rs | Rust | #![allow(clippy::needless_raw_string_hashes)]
// To do: clippy introduced this in 1.72 but breaks when it fixes it.
// Remove when solved.
use markdown::{
mdast::{Link, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn gfm_autolink_literal() -> Result<(), message::Message> {
assert_eq!(
to_html("https://example.com"),
"<p>https://example.com</p>",
"should ignore protocol urls by default"
);
assert_eq!(
to_html("www.example.com"),
"<p>www.example.com</p>",
"should ignore www urls by default"
);
assert_eq!(
to_html("user@example.com"),
"<p>user@example.com</p>",
"should ignore email urls by default"
);
assert_eq!(
to_html_with_options("https://example.com", &Options::gfm())?,
"<p><a href=\"https://example.com\">https://example.com</a></p>",
"should support protocol urls if enabled"
);
assert_eq!(
to_html_with_options("www.example.com", &Options::gfm())?,
"<p><a href=\"http://www.example.com\">www.example.com</a></p>",
"should support www urls if enabled"
);
assert_eq!(
to_html_with_options("user@example.com", &Options::gfm())?,
"<p><a href=\"mailto:user@example.com\">user@example.com</a></p>",
"should support email urls if enabled"
);
assert_eq!(
to_html_with_options("[https://example.com](xxx)", &Options::gfm())?,
"<p><a href=\"xxx\">https://example.com</a></p>",
"should not link protocol urls in links"
);
assert_eq!(
to_html_with_options("[www.example.com](xxx)", &Options::gfm())?,
"<p><a href=\"xxx\">www.example.com</a></p>",
"should not link www urls in links"
);
assert_eq!(
to_html_with_options("[user@example.com](xxx)", &Options::gfm())?,
"<p><a href=\"xxx\">user@example.com</a></p>",
"should not link email urls in links"
);
assert_eq!(
to_html_with_options("user@example.com", &Options::gfm())?,
"<p><a href=\"mailto:user@example.com\">user@example.com</a></p>",
"should support a closing paren at TLD (email)"
);
assert_eq!(
to_html_with_options("www.a.)", &Options::gfm())?,
"<p><a href=\"http://www.a\">www.a</a>.)</p>",
"should support a closing paren at TLD (www)"
);
assert_eq!(
to_html_with_options("www.a b", &Options::gfm())?,
"<p><a href=\"http://www.a\">www.a</a> b</p>",
"should support no TLD"
);
assert_eq!(
to_html_with_options("www.a/b c", &Options::gfm())?,
"<p><a href=\"http://www.a/b\">www.a/b</a> c</p>",
"should support a path instead of TLD"
);
assert_eq!(
to_html_with_options("www.�a", &Options::gfm())?,
"<p><a href=\"http://www.%EF%BF%BDa\">www.�a</a></p>",
"should support a replacement character in a domain"
);
assert_eq!(
to_html_with_options("http://點看.com", &Options::gfm())?,
"<p><a href=\"http://%E9%BB%9E%E7%9C%8B.com\">http://點看.com</a></p>",
"should support non-ascii characters in a domain (http)"
);
assert_eq!(
to_html_with_options("www.點看.com", &Options::gfm())?,
"<p><a href=\"http://www.%E9%BB%9E%E7%9C%8B.com\">www.點看.com</a></p>",
"should support non-ascii characters in a domain (www)"
);
assert_eq!(
to_html_with_options("點看@example.com", &Options::gfm())?,
"<p>點看@example.com</p>",
"should *not* support non-ascii characters in atext (email)"
);
assert_eq!(
to_html_with_options("example@點看.com", &Options::gfm())?,
"<p>example@點看.com</p>",
"should *not* support non-ascii characters in a domain (email)"
);
assert_eq!(
to_html_with_options("www.a.com/點看", &Options::gfm())?,
"<p><a href=\"http://www.a.com/%E9%BB%9E%E7%9C%8B\">www.a.com/點看</a></p>",
"should support non-ascii characters in a path"
);
assert_eq!(
to_html_with_options("www.-a.b", &Options::gfm())?,
"<p><a href=\"http://www.-a.b\">www.-a.b</a></p>",
"should support a dash to start a domain"
);
assert_eq!(
to_html_with_options("www.$", &Options::gfm())?,
"<p><a href=\"http://www.$\">www.$</a></p>",
"should support a dollar as a domain name"
);
assert_eq!(
to_html_with_options("www.a..b.c", &Options::gfm())?,
"<p><a href=\"http://www.a..b.c\">www.a..b.c</a></p>",
"should support adjacent dots in a domain name"
);
assert_eq!(
to_html_with_options("www.a&a;", &Options::gfm())?,
"<p><a href=\"http://www.a\">www.a</a>&a;</p>",
"should support named character references in domains"
);
assert_eq!(
to_html_with_options("https://a.bc/d/e/).", &Options::gfm())?,
"<p><a href=\"https://a.bc/d/e/\">https://a.bc/d/e/</a>).</p>",
"should support a closing paren and period after a path"
);
assert_eq!(
to_html_with_options("https://a.bc/d/e/.)", &Options::gfm())?,
"<p><a href=\"https://a.bc/d/e/\">https://a.bc/d/e/</a>.)</p>",
"should support a period and closing paren after a path"
);
assert_eq!(
to_html_with_options("https://a.bc).", &Options::gfm())?,
"<p><a href=\"https://a.bc\">https://a.bc</a>).</p>",
"should support a closing paren and period after a domain"
);
assert_eq!(
to_html_with_options("https://a.bc.)", &Options::gfm())?,
"<p><a href=\"https://a.bc\">https://a.bc</a>.)</p>",
"should support a period and closing paren after a domain"
);
assert_eq!(
to_html_with_options("https://a.bc).d", &Options::gfm())?,
"<p><a href=\"https://a.bc).d\">https://a.bc).d</a></p>",
"should support a closing paren and period in a path"
);
assert_eq!(
to_html_with_options("https://a.bc.)d", &Options::gfm())?,
"<p><a href=\"https://a.bc.)d\">https://a.bc.)d</a></p>",
"should support a period and closing paren in a path"
);
assert_eq!(
to_html_with_options("https://a.bc/))d", &Options::gfm())?,
"<p><a href=\"https://a.bc/))d\">https://a.bc/))d</a></p>",
"should support two closing parens in a path"
);
assert_eq!(
to_html_with_options("ftp://a/b/c.txt", &Options::gfm())?,
"<p>ftp://a/b/c.txt</p>",
"should not support ftp links"
);
// Note: GH comments/issues/PRs do not link this, but Gists/readmes do.
// Fixing it would mean deviating from `cmark-gfm`:
// Source: <https://github.com/github/cmark-gfm/blob/ef1cfcb/extensions/autolink.c#L156>.
// assert_eq!(
// to_html_with_options(",www.example.com", &Options::gfm())?,
// "<p>,<a href=\"http://www.example.com\">www.example.com</a></p>",
// "should support www links after Unicode punctuation",
// );
assert_eq!(
to_html_with_options(",https://example.com", &Options::gfm())?,
"<p>,<a href=\"https://example.com\">https://example.com</a></p>",
"should support http links after Unicode punctuation"
);
assert_eq!(
to_html_with_options(",example@example.com", &Options::gfm())?,
"<p>,<a href=\"mailto:example@example.com\">example@example.com</a></p>",
"should support email links after Unicode punctuation"
);
assert_eq!(
to_html_with_options(
"http://user:password@host:port/path?key=value#fragment",
&Options::gfm()
)?,
"<p>http://user:password@host:port/path?key=value#fragment</p>",
"should not link character reference for `:`"
);
assert_eq!(
to_html_with_options("http://example.com/ab<cd", &Options::gfm())?,
"<p><a href=\"http://example.com/ab\">http://example.com/ab</a><cd</p>",
"should stop domains/paths at `<`"
);
assert_eq!(
to_html_with_options(
r###"
mailto:scyther@pokemon.com
This is a mailto:scyther@pokemon.com
mailto:scyther@pokemon.com.
mmmmailto:scyther@pokemon.com
mailto:scyther@pokemon.com/
mailto:scyther@pokemon.com/message
mailto:scyther@pokemon.com/mailto:beedrill@pokemon.com
xmpp:scyther@pokemon.com
xmpp:scyther@pokemon.com.
xmpp:scyther@pokemon.com/message
xmpp:scyther@pokemon.com/message.
Email me at:scyther@pokemon.com"###,
&Options::gfm()
)?,
r###"<p><a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a></p>
<p>This is a <a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a></p>
<p><a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a>.</p>
<p>mmmmailto:<a href="mailto:scyther@pokemon.com">scyther@pokemon.com</a></p>
<p><a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a>/</p>
<p><a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a>/message</p>
<p><a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a>/<a href="mailto:beedrill@pokemon.com">mailto:beedrill@pokemon.com</a></p>
<p><a href="xmpp:scyther@pokemon.com">xmpp:scyther@pokemon.com</a></p>
<p><a href="xmpp:scyther@pokemon.com">xmpp:scyther@pokemon.com</a>.</p>
<p><a href="xmpp:scyther@pokemon.com/message">xmpp:scyther@pokemon.com/message</a></p>
<p><a href="xmpp:scyther@pokemon.com/message">xmpp:scyther@pokemon.com/message</a>.</p>
<p>Email me at:<a href="mailto:scyther@pokemon.com">scyther@pokemon.com</a></p>"###,
"should support `mailto:` and `xmpp:` protocols"
);
assert_eq!(
to_html_with_options(
r###"
a www.example.com&xxx;b c
a www.example.com&xxx;. b
a www.example.com&xxxxxxxxx;. b
a www.example.com&xxxxxxxxxx;. b
a www.example.com&xxxxxxxxxxx;. b
a www.example.com&xxx. b
a www.example.com{. b
a www.example.com&123. b
a www.example.com&x. b
a www.example.com. b
a www.example.com&1. b
a www.example.com&. b
a www.example.com& b
"###,
&Options::gfm()
)?,
r###"<p>a <a href="http://www.example.com&xxx;b">www.example.com&xxx;b</a> c</p>
<p>a <a href="http://www.example.com">www.example.com</a>&xxx;. b</p>
<p>a <a href="http://www.example.com">www.example.com</a>&xxxxxxxxx;. b</p>
<p>a <a href="http://www.example.com">www.example.com</a>&xxxxxxxxxx;. b</p>
<p>a <a href="http://www.example.com">www.example.com</a>&xxxxxxxxxxx;. b</p>
<p>a <a href="http://www.example.com&xxx">www.example.com&xxx</a>. b</p>
<p>a <a href="http://www.example.com&#123">www.example.com&#123</a>. b</p>
<p>a <a href="http://www.example.com&123">www.example.com&123</a>. b</p>
<p>a <a href="http://www.example.com&x">www.example.com&x</a>. b</p>
<p>a <a href="http://www.example.com&#1">www.example.com&#1</a>. b</p>
<p>a <a href="http://www.example.com&1">www.example.com&1</a>. b</p>
<p>a <a href="http://www.example.com&">www.example.com&</a>. b</p>
<p>a <a href="http://www.example.com&">www.example.com&</a> b</p>
"###,
"should match “character references” like GitHub does"
);
// Note: this deviates from GFM, as <https://github.com/github/cmark-gfm/issues/278> is fixed.
assert_eq!(
to_html_with_options(
r###"
[ www.example.com
[ https://example.com
[ contact@example.com
[ www.example.com ]
[ https://example.com ]
[ contact@example.com ]
[ www.example.com ](#)
[ https://example.com ](#)
[ contact@example.com ](#)



"###,
&Options::gfm()
)?,
r###"<p>[ <a href="http://www.example.com">www.example.com</a></p>
<p>[ <a href="https://example.com">https://example.com</a></p>
<p>[ <a href="mailto:contact@example.com">contact@example.com</a></p>
<p>[ <a href="http://www.example.com">www.example.com</a> ]</p>
<p>[ <a href="https://example.com">https://example.com</a> ]</p>
<p>[ <a href="mailto:contact@example.com">contact@example.com</a> ]</p>
<p><a href="#"> www.example.com </a></p>
<p><a href="#"> https://example.com </a></p>
<p><a href="#"> contact@example.com </a></p>
<p><img src="#" alt=" www.example.com " /></p>
<p><img src="#" alt=" https://example.com " /></p>
<p><img src="#" alt=" contact@example.com " /></p>
"###,
"should match interplay with brackets, links, and images, like GitHub does (but without the bugs)"
);
assert_eq!(
to_html_with_options(
r###"
www.example.com/?=a(b)cccccc
www.example.com/?=a(b(c)ccccc
www.example.com/?=a(b(c)c)cccc
www.example.com/?=a(b(c)c)c)ccc
www.example.com/?q=a(business)
www.example.com/?q=a(business)))
(www.example.com/?q=a(business))
(www.example.com/?q=a(business)
www.example.com/?q=a(business)".
www.example.com/?q=a(business)))
(www.example.com/?q=a(business))".
(www.example.com/?q=a(business)".)
(www.example.com/?q=a(business)".
"###,
&Options::gfm()
)?,
r###"<p><a href="http://www.example.com/?=a(b)cccccc">www.example.com/?=a(b)cccccc</a></p>
<p><a href="http://www.example.com/?=a(b(c)ccccc">www.example.com/?=a(b(c)ccccc</a></p>
<p><a href="http://www.example.com/?=a(b(c)c)cccc">www.example.com/?=a(b(c)c)cccc</a></p>
<p><a href="http://www.example.com/?=a(b(c)c)c)ccc">www.example.com/?=a(b(c)c)c)ccc</a></p>
<p><a href="http://www.example.com/?q=a(business)">www.example.com/?q=a(business)</a></p>
<p><a href="http://www.example.com/?q=a(business)">www.example.com/?q=a(business)</a>))</p>
<p>(<a href="http://www.example.com/?q=a(business)">www.example.com/?q=a(business)</a>)</p>
<p>(<a href="http://www.example.com/?q=a(business)">www.example.com/?q=a(business)</a></p>
<p><a href="http://www.example.com/?q=a(business)">www.example.com/?q=a(business)</a>".</p>
<p><a href="http://www.example.com/?q=a(business)">www.example.com/?q=a(business)</a>))</p>
<p>(<a href="http://www.example.com/?q=a(business)">www.example.com/?q=a(business)</a>)".</p>
<p>(<a href="http://www.example.com/?q=a(business)">www.example.com/?q=a(business)</a>".)</p>
<p>(<a href="http://www.example.com/?q=a(business)">www.example.com/?q=a(business)</a>".</p>
"###,
"should match parens like GitHub does"
);
// Note: this deviates from GFM.
// Here, the following issues are fixed:
// - <https://github.com/github/cmark-gfm/issues/280>
assert_eq!(
to_html_with_options(
r###"
# Literal autolinks
## WWW autolinks
w.commonmark.org
ww.commonmark.org
www.commonmark.org
Www.commonmark.org
wWw.commonmark.org
wwW.commonmark.org
WWW.COMMONMARK.ORG
Visit www.commonmark.org/help for more information.
Visit www.commonmark.org.
Visit www.commonmark.org/a.b.
www.aaa.bbb.ccc_ccc
www.aaa_bbb.ccc
www.aaa.bbb.ccc.ddd_ddd
www.aaa.bbb.ccc_ccc.ddd
www.aaa.bbb_bbb.ccc.ddd
www.aaa_aaa.bbb.ccc.ddd
Visit www.commonmark.org.
Visit www.commonmark.org/a.b.
www.google.com/search?q=Markup+(business)
www.google.com/search?q=Markup+(business)))
(www.google.com/search?q=Markup+(business))
(www.google.com/search?q=Markup+(business)
www.google.com/search?q=(business))+ok
www.google.com/search?q=commonmark&hl=en
www.google.com/search?q=commonmark&hl;en
www.google.com/search?q=commonmark&hl;
www.commonmark.org/he<lp
## HTTP autolinks
hexample.com
htexample.com
httexample.com
httpexample.com
http:example.com
http:/example.com
https:/example.com
http://example.com
https://example.com
https://example
http://commonmark.org
(Visit https://encrypted.google.com/search?q=Markup+(business))
## Email autolinks
No dot: foo@barbaz
No dot: foo@barbaz.
foo@bar.baz
hello@mail+xyz.example isn’t valid, but hello+xyz@mail.example is.
a.b-c_d@a.b
a.b-c_d@a.b.
a.b-c_d@a.b-
a.b-c_d@a.b_
a@a_b.c
a@a-b.c
Can’t end in an underscore followed by a period: aaa@a.b_.
Can contain an underscore followed by a period: aaa@a.b_.c
## Link text should not be expanded
[Visit www.example.com](http://www.example.com) please.
[Visit http://www.example.com](http://www.example.com) please.
[Mail example@example.com](mailto:example@example.com) please.
[link]() <http://autolink> should still be expanded.
"###,
&Options::gfm()
)?,
r###"<h1>Literal autolinks</h1>
<h2>WWW autolinks</h2>
<p>w.commonmark.org</p>
<p>ww.commonmark.org</p>
<p><a href="http://www.commonmark.org">www.commonmark.org</a></p>
<p><a href="http://Www.commonmark.org">Www.commonmark.org</a></p>
<p><a href="http://wWw.commonmark.org">wWw.commonmark.org</a></p>
<p><a href="http://wwW.commonmark.org">wwW.commonmark.org</a></p>
<p><a href="http://WWW.COMMONMARK.ORG">WWW.COMMONMARK.ORG</a></p>
<p>Visit <a href="http://www.commonmark.org/help">www.commonmark.org/help</a> for more information.</p>
<p>Visit <a href="http://www.commonmark.org">www.commonmark.org</a>.</p>
<p>Visit <a href="http://www.commonmark.org/a.b">www.commonmark.org/a.b</a>.</p>
<p>www.aaa.bbb.ccc_ccc</p>
<p>www.aaa_bbb.ccc</p>
<p>www.aaa.bbb.ccc.ddd_ddd</p>
<p>www.aaa.bbb.ccc_ccc.ddd</p>
<p><a href="http://www.aaa.bbb_bbb.ccc.ddd">www.aaa.bbb_bbb.ccc.ddd</a></p>
<p><a href="http://www.aaa_aaa.bbb.ccc.ddd">www.aaa_aaa.bbb.ccc.ddd</a></p>
<p>Visit <a href="http://www.commonmark.org">www.commonmark.org</a>.</p>
<p>Visit <a href="http://www.commonmark.org/a.b">www.commonmark.org/a.b</a>.</p>
<p><a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a></p>
<p><a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a>))</p>
<p>(<a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a>)</p>
<p>(<a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a></p>
<p><a href="http://www.google.com/search?q=(business))+ok">www.google.com/search?q=(business))+ok</a></p>
<p><a href="http://www.google.com/search?q=commonmark&hl=en">www.google.com/search?q=commonmark&hl=en</a></p>
<p><a href="http://www.google.com/search?q=commonmark&hl;en">www.google.com/search?q=commonmark&hl;en</a></p>
<p><a href="http://www.google.com/search?q=commonmark">www.google.com/search?q=commonmark</a>&hl;</p>
<p><a href="http://www.commonmark.org/he">www.commonmark.org/he</a><lp</p>
<h2>HTTP autolinks</h2>
<p>hexample.com</p>
<p>htexample.com</p>
<p>httexample.com</p>
<p>httpexample.com</p>
<p>http:example.com</p>
<p>http:/example.com</p>
<p>https:/example.com</p>
<p><a href="http://example.com">http://example.com</a></p>
<p><a href="https://example.com">https://example.com</a></p>
<p><a href="https://example">https://example</a></p>
<p><a href="http://commonmark.org">http://commonmark.org</a></p>
<p>(Visit <a href="https://encrypted.google.com/search?q=Markup+(business)">https://encrypted.google.com/search?q=Markup+(business)</a>)</p>
<h2>Email autolinks</h2>
<p>No dot: foo@barbaz</p>
<p>No dot: foo@barbaz.</p>
<p><a href="mailto:foo@bar.baz">foo@bar.baz</a></p>
<p>hello@mail+xyz.example isn’t valid, but <a href="mailto:hello+xyz@mail.example">hello+xyz@mail.example</a> is.</p>
<p><a href="mailto:a.b-c_d@a.b">a.b-c_d@a.b</a></p>
<p><a href="mailto:a.b-c_d@a.b">a.b-c_d@a.b</a>.</p>
<p>a.b-c_d@a.b-</p>
<p>a.b-c_d@a.b_</p>
<p><a href="mailto:a@a_b.c">a@a_b.c</a></p>
<p><a href="mailto:a@a-b.c">a@a-b.c</a></p>
<p>Can’t end in an underscore followed by a period: aaa@a.b_.</p>
<p>Can contain an underscore followed by a period: <a href="mailto:aaa@a.b_.c">aaa@a.b_.c</a></p>
<h2>Link text should not be expanded</h2>
<p><a href="http://www.example.com">Visit www.example.com</a> please.</p>
<p><a href="http://www.example.com">Visit http://www.example.com</a> please.</p>
<p><a href="mailto:example@example.com">Mail example@example.com</a> please.</p>
<p><a href="">link</a> <a href="http://autolink">http://autolink</a> should still be expanded.</p>
"###,
"should match base like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"H0.
[https://a.com©b
[www.a.com©b
H1.
[]https://a.com©b
[]www.a.com©b
H2.
[] https://a.com©b
[] www.a.com©b
H3.
[[https://a.com©b
[[www.a.com©b
H4.
[[]https://a.com©b
[[]www.a.com©b
H5.
[[]]https://a.com©b
[[]]www.a.com©b
"###,
&Options::gfm()
)?,
r###"<p>H0.</p>
<p>[<a href="https://a.com&copy;b">https://a.com&copy;b</a></p>
<p>[<a href="http://www.a.com&copy;b">www.a.com&copy;b</a></p>
<p>H1.</p>
<p>[]<a href="https://a.com&copy;b">https://a.com&copy;b</a></p>
<p>[]<a href="http://www.a.com&copy;b">www.a.com&copy;b</a></p>
<p>H2.</p>
<p>[] <a href="https://a.com&copy;b">https://a.com&copy;b</a></p>
<p>[] <a href="http://www.a.com&copy;b">www.a.com&copy;b</a></p>
<p>H3.</p>
<p>[[<a href="https://a.com&copy;b">https://a.com&copy;b</a></p>
<p>[[<a href="http://www.a.com&copy;b">www.a.com&copy;b</a></p>
<p>H4.</p>
<p>[[]<a href="https://a.com&copy;b">https://a.com&copy;b</a></p>
<p>[[]<a href="http://www.a.com&copy;b">www.a.com&copy;b</a></p>
<p>H5.</p>
<p>[[]]<a href="https://a.com&copy;b">https://a.com&copy;b</a></p>
<p>[[]]<a href="http://www.a.com&copy;b">www.a.com&copy;b</a></p>
"###,
"should match brackets like GitHub does (except for the bracket bug)"
);
assert_eq!(
to_html_with_options(r###"Image start.
![https://a.com
![http://a.com
![www.a.com
![a@b.c
Image start and label end.
![https://a.com]
![http://a.com]
![www.a.com]
![a@b.c]
Image label with reference (note: GH cleans hashes here, but we keep them in).
![https://a.com][x]
![http://a.com][x]
![www.a.com][x]
![a@b.c][x]
[x]: #
Image label with resource.
![https://a.com]()
![http://a.com]()
![www.a.com]()
![a@b.c]()
Autolink literal after image.
![a]() https://a.com
![a]() http://a.com
![a]() www.a.com
![a]() a@b.c
"###, &Options::gfm())?,
r###"<p>Image start.</p>
<p>![<a href="https://a.com">https://a.com</a></p>
<p>![<a href="http://a.com">http://a.com</a></p>
<p>![<a href="http://www.a.com">www.a.com</a></p>
<p>![<a href="mailto:a@b.c">a@b.c</a></p>
<p>Image start and label end.</p>
<p>![<a href="https://a.com">https://a.com</a>]</p>
<p>![<a href="http://a.com">http://a.com</a>]</p>
<p>![<a href="http://www.a.com">www.a.com</a>]</p>
<p>![<a href="mailto:a@b.c">a@b.c</a>]</p>
<p>Image label with reference (note: GH cleans hashes here, but we keep them in).</p>
<p><img src="#" alt="https://a.com" /></p>
<p><img src="#" alt="http://a.com" /></p>
<p><img src="#" alt="www.a.com" /></p>
<p><img src="#" alt="a@b.c" /></p>
<p>Image label with resource.</p>
<p><img src="" alt="https://a.com" /></p>
<p><img src="" alt="http://a.com" /></p>
<p><img src="" alt="www.a.com" /></p>
<p><img src="" alt="a@b.c" /></p>
<p>Autolink literal after image.</p>
<p><img src="" alt="a" /> <a href="https://a.com">https://a.com</a></p>
<p><img src="" alt="a" /> <a href="http://a.com">http://a.com</a></p>
<p><img src="" alt="a" /> <a href="http://www.a.com">www.a.com</a></p>
<p><img src="" alt="a" /> <a href="mailto:a@b.c">a@b.c</a></p>
"###,
"should match autolink literals combined w/ images like GitHub does (except for the bracket bug)"
);
assert_eq!(
to_html_with_options(r###"Link start.
[https://a.com
[http://a.com
[www.a.com
[a@b.c
Label end.
https://a.com]
http://a.com]
www.a.com]
a@b.c]
Link start and label end.
[https://a.com]
[http://a.com]
[www.a.com]
[a@b.c]
What naïvely seems like a label end (A).
https://a.com`]`
http://a.com`]`
www.a.com`]`
a@b.c`]`
Link start and what naïvely seems like a balanced brace (B).
[https://a.com`]`
[http://a.com`]`
[www.a.com`]`
[a@b.c`]`
What naïvely seems like a label end (C).
https://a.com `]`
http://a.com `]`
www.a.com `]`
a@b.c `]`
Link start and what naïvely seems like a balanced brace (D).
[https://a.com `]`
[http://a.com `]`
[www.a.com `]`
[a@b.c `]`
Link label with reference.
[https://a.com][x]
[http://a.com][x]
[www.a.com][x]
[a@b.c][x]
[x]: #
Link label with resource.
[https://a.com]()
[http://a.com]()
[www.a.com]()
[a@b.c]()
More in link.
[a https://b.com c]()
[a http://b.com c]()
[a www.b.com c]()
[a b@c.d e]()
Autolink literal after link.
[a]() https://a.com
[a]() http://a.com
[a]() www.a.com
[a]() a@b.c
"###, &Options::gfm())?,
r###"<p>Link start.</p>
<p>[<a href="https://a.com">https://a.com</a></p>
<p>[<a href="http://a.com">http://a.com</a></p>
<p>[<a href="http://www.a.com">www.a.com</a></p>
<p>[<a href="mailto:a@b.c">a@b.c</a></p>
<p>Label end.</p>
<p><a href="https://a.com">https://a.com</a>]</p>
<p><a href="http://a.com">http://a.com</a>]</p>
<p><a href="http://www.a.com">www.a.com</a>]</p>
<p><a href="mailto:a@b.c">a@b.c</a>]</p>
<p>Link start and label end.</p>
<p>[<a href="https://a.com">https://a.com</a>]</p>
<p>[<a href="http://a.com">http://a.com</a>]</p>
<p>[<a href="http://www.a.com">www.a.com</a>]</p>
<p>[<a href="mailto:a@b.c">a@b.c</a>]</p>
<p>What naïvely seems like a label end (A).</p>
<p><a href="https://a.com%60%5D%60">https://a.com`]`</a></p>
<p><a href="http://a.com%60%5D%60">http://a.com`]`</a></p>
<p><a href="http://www.a.com%60%5D%60">www.a.com`]`</a></p>
<p><a href="mailto:a@b.c">a@b.c</a><code>]</code></p>
<p>Link start and what naïvely seems like a balanced brace (B).</p>
<p>[<a href="https://a.com%60%5D%60">https://a.com`]`</a></p>
<p>[<a href="http://a.com%60%5D%60">http://a.com`]`</a></p>
<p>[<a href="http://www.a.com%60%5D%60">www.a.com`]`</a></p>
<p>[<a href="mailto:a@b.c">a@b.c</a><code>]</code></p>
<p>What naïvely seems like a label end (C).</p>
<p><a href="https://a.com">https://a.com</a> <code>]</code></p>
<p><a href="http://a.com">http://a.com</a> <code>]</code></p>
<p><a href="http://www.a.com">www.a.com</a> <code>]</code></p>
<p><a href="mailto:a@b.c">a@b.c</a> <code>]</code></p>
<p>Link start and what naïvely seems like a balanced brace (D).</p>
<p>[<a href="https://a.com">https://a.com</a> <code>]</code></p>
<p>[<a href="http://a.com">http://a.com</a> <code>]</code></p>
<p>[<a href="http://www.a.com">www.a.com</a> <code>]</code></p>
<p>[<a href="mailto:a@b.c">a@b.c</a> <code>]</code></p>
<p>Link label with reference.</p>
<p><a href="#">https://a.com</a></p>
<p><a href="#">http://a.com</a></p>
<p><a href="#">www.a.com</a></p>
<p><a href="#">a@b.c</a></p>
<p>Link label with resource.</p>
<p><a href="">https://a.com</a></p>
<p><a href="">http://a.com</a></p>
<p><a href="">www.a.com</a></p>
<p><a href="">a@b.c</a></p>
<p>More in link.</p>
<p><a href="">a https://b.com c</a></p>
<p><a href="">a http://b.com c</a></p>
<p><a href="">a www.b.com c</a></p>
<p><a href="">a b@c.d e</a></p>
<p>Autolink literal after link.</p>
<p><a href="">a</a> <a href="https://a.com">https://a.com</a></p>
<p><a href="">a</a> <a href="http://a.com">http://a.com</a></p>
<p><a href="">a</a> <a href="http://www.a.com">www.a.com</a></p>
<p><a href="">a</a> <a href="mailto:a@b.c">a@b.c</a></p>
"###,
"should match autolink literals combined w/ links like GitHub does (except for the bracket bug)"
);
assert_eq!(
to_html_with_options(
r###"# “character reference”
www.a&b (space)
www.a&b!
www.a&b"
www.a&b#
www.a&b$
www.a&b%
www.a&b&
www.a&b'
www.a&b(
www.a&b)
www.a&b*
www.a&b+
www.a&b,
www.a&b-
www.a&b
www.a&b.
www.a&b/
www.a&b:
www.a&b;
www.a&b<
www.a&b=
www.a&b>
www.a&b?
www.a&b@
www.a&b[
www.a&b\
www.a&b]
www.a&b^
www.a&b_
www.a&b`
www.a&b{
www.a&b|
www.a&b}
www.a&b~
"###,
&Options::gfm()
)?,
r###"<h1>“character reference”</h1>
<p><a href="http://www.a&b">www.a&b</a> (space)</p>
<p><a href="http://www.a&b">www.a&b</a>!</p>
<p><a href="http://www.a&b">www.a&b</a>"</p>
<p><a href="http://www.a&b#">www.a&b#</a></p>
<p><a href="http://www.a&b$">www.a&b$</a></p>
<p><a href="http://www.a&b%25">www.a&b%</a></p>
<p><a href="http://www.a&b&">www.a&b&</a></p>
<p><a href="http://www.a&b">www.a&b</a>'</p>
<p><a href="http://www.a&b(">www.a&b(</a></p>
<p><a href="http://www.a&b">www.a&b</a>)</p>
<p><a href="http://www.a&b">www.a&b</a>*</p>
<p><a href="http://www.a&b+">www.a&b+</a></p>
<p><a href="http://www.a&b">www.a&b</a>,</p>
<p><a href="http://www.a&b-">www.a&b-</a></p>
<p><a href="http://www.a&b">www.a&b</a></p>
<p><a href="http://www.a&b">www.a&b</a>.</p>
<p><a href="http://www.a&b/">www.a&b/</a></p>
<p><a href="http://www.a&b">www.a&b</a>:</p>
<p><a href="http://www.a">www.a</a>&b;</p>
<p><a href="http://www.a&b">www.a&b</a><</p>
<p><a href="http://www.a&b=">www.a&b=</a></p>
<p><a href="http://www.a&b%3E">www.a&b></a></p>
<p><a href="http://www.a&b">www.a&b</a>?</p>
<p><a href="http://www.a&b@">www.a&b@</a></p>
<p><a href="http://www.a&b%5B">www.a&b[</a></p>
<p><a href="http://www.a&b%5C">www.a&b\</a></p>
<p><a href="http://www.a&b">www.a&b</a>]</p>
<p><a href="http://www.a&b%5E">www.a&b^</a></p>
<p><a href="http://www.a&b">www.a&b</a>_</p>
<p><a href="http://www.a&b%60">www.a&b`</a></p>
<p><a href="http://www.a&b%7B">www.a&b{</a></p>
<p><a href="http://www.a&b%7C">www.a&b|</a></p>
<p><a href="http://www.a&b%7D">www.a&b}</a></p>
<p><a href="http://www.a&b">www.a&b</a>~</p>
"###,
"should match “character references (named)” like GitHub does (except for the bracket bug)"
);
assert_eq!(
to_html_with_options(r###"# “character reference”
www.a# (space)
www.a#!
www.a#"
www.a##
www.a#$
www.a#%
www.a#&
www.a#'
www.a#(
www.a#)
www.a#*
www.a#+
www.a#,
www.a#-
www.a#
www.a#.
www.a#/
www.a#:
www.a#
www.a#<
www.a#=
www.a#>
www.a#?
www.a#@
www.a#[
www.a#\
www.a#]
www.a#^
www.a#_
www.a#`
www.a#{
www.a#|
www.a#}
www.a#~
"###, &Options::gfm())?,
r###"<h1>“character reference”</h1>
<p><a href="http://www.a&#35">www.a&#35</a> (space)</p>
<p><a href="http://www.a&#35">www.a&#35</a>!</p>
<p><a href="http://www.a&#35">www.a&#35</a>"</p>
<p><a href="http://www.a&#35#">www.a&#35#</a></p>
<p><a href="http://www.a&#35$">www.a&#35$</a></p>
<p><a href="http://www.a&#35%25">www.a&#35%</a></p>
<p><a href="http://www.a&#35&">www.a&#35&</a></p>
<p><a href="http://www.a&#35">www.a&#35</a>'</p>
<p><a href="http://www.a&#35(">www.a&#35(</a></p>
<p><a href="http://www.a&#35">www.a&#35</a>)</p>
<p><a href="http://www.a&#35">www.a&#35</a>*</p>
<p><a href="http://www.a&#35+">www.a&#35+</a></p>
<p><a href="http://www.a&#35">www.a&#35</a>,</p>
<p><a href="http://www.a&#35-">www.a&#35-</a></p>
<p><a href="http://www.a&#35">www.a&#35</a></p>
<p><a href="http://www.a&#35">www.a&#35</a>.</p>
<p><a href="http://www.a&#35/">www.a&#35/</a></p>
<p><a href="http://www.a&#35">www.a&#35</a>:</p>
<p><a href="http://www.a&#35">www.a&#35</a>;</p>
<p><a href="http://www.a&#35">www.a&#35</a><</p>
<p><a href="http://www.a&#35=">www.a&#35=</a></p>
<p><a href="http://www.a&#35%3E">www.a&#35></a></p>
<p><a href="http://www.a&#35">www.a&#35</a>?</p>
<p><a href="http://www.a&#35@">www.a&#35@</a></p>
<p><a href="http://www.a&#35%5B">www.a&#35[</a></p>
<p><a href="http://www.a&#35%5C">www.a&#35\</a></p>
<p><a href="http://www.a&#35">www.a&#35</a>]</p>
<p><a href="http://www.a&#35%5E">www.a&#35^</a></p>
<p><a href="http://www.a&#35">www.a&#35</a>_</p>
<p><a href="http://www.a&#35%60">www.a&#35`</a></p>
<p><a href="http://www.a&#35%7B">www.a&#35{</a></p>
<p><a href="http://www.a&#35%7C">www.a&#35|</a></p>
<p><a href="http://www.a&#35%7D">www.a&#35}</a></p>
<p><a href="http://www.a&#35">www.a&#35</a>~</p>
"###,
"should match “character references (numeric)” like GitHub does (except for the bracket bug)"
);
assert_eq!(
to_html_with_options(
r###"a@0.0
a@0.b
a@a.29
a@a.b
a@0.0.c
react@0.11.1
react@0.12.0-rc1
react@0.14.0-alpha1
react@16.7.0-alpha.2
react@0.0.0-experimental-aae83a4b9
[ react@0.11.1
[ react@0.12.0-rc1
[ react@0.14.0-alpha1
[ react@16.7.0-alpha.2
[ react@0.0.0-experimental-aae83a4b9
"###,
&Options::gfm()
)?,
r###"<p>a@0.0</p>
<p><a href="mailto:a@0.b">a@0.b</a></p>
<p>a@a.29</p>
<p><a href="mailto:a@a.b">a@a.b</a></p>
<p><a href="mailto:a@0.0.c">a@0.0.c</a></p>
<p>react@0.11.1</p>
<p>react@0.12.0-rc1</p>
<p>react@0.14.0-alpha1</p>
<p>react@16.7.0-alpha.2</p>
<p>react@0.0.0-experimental-aae83a4b9</p>
<p>[ react@0.11.1</p>
<p>[ react@0.12.0-rc1</p>
<p>[ react@0.14.0-alpha1</p>
<p>[ react@16.7.0-alpha.2</p>
<p>[ react@0.0.0-experimental-aae83a4b9</p>
"###,
"should match email TLD digits like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"# httpshhh? (2)
http://a (space)
http://a!
http://a"
http://a#
http://a$
http://a%
http://a&
http://a'
http://a(
http://a)
http://a*
http://a+
http://a,
http://a-
http://a
http://a.
http://a/
http://a:
http://a;
http://a<
http://a=
http://a>
http://a?
http://a@
http://a[
http://a\
http://a]
http://a^
http://a_
http://a`
http://a{
http://a|
http://a}
http://a~
"###,
&Options::gfm()
)?,
r###"<h1>httpshhh? (2)</h1>
<p><a href="http://a">http://a</a> (space)</p>
<p><a href="http://a">http://a</a>!</p>
<p><a href="http://a">http://a</a>"</p>
<p><a href="http://a#">http://a#</a></p>
<p><a href="http://a$">http://a$</a></p>
<p><a href="http://a%25">http://a%</a></p>
<p><a href="http://a&">http://a&</a></p>
<p><a href="http://a">http://a</a>'</p>
<p><a href="http://a(">http://a(</a></p>
<p><a href="http://a">http://a</a>)</p>
<p><a href="http://a">http://a</a>*</p>
<p><a href="http://a+">http://a+</a></p>
<p><a href="http://a">http://a</a>,</p>
<p><a href="http://a-">http://a-</a></p>
<p><a href="http://a">http://a</a></p>
<p><a href="http://a">http://a</a>.</p>
<p><a href="http://a/">http://a/</a></p>
<p><a href="http://a">http://a</a>:</p>
<p><a href="http://a">http://a</a>;</p>
<p><a href="http://a">http://a</a><</p>
<p><a href="http://a=">http://a=</a></p>
<p><a href="http://a%3E">http://a></a></p>
<p><a href="http://a">http://a</a>?</p>
<p><a href="http://a@">http://a@</a></p>
<p><a href="http://a%5B">http://a[</a></p>
<p><a href="http://a%5C">http://a\</a></p>
<p><a href="http://a">http://a</a>]</p>
<p><a href="http://a%5E">http://a^</a></p>
<p><a href="http://a">http://a</a>_</p>
<p><a href="http://a%60">http://a`</a></p>
<p><a href="http://a%7B">http://a{</a></p>
<p><a href="http://a%7C">http://a|</a></p>
<p><a href="http://a%7D">http://a}</a></p>
<p><a href="http://a">http://a</a>~</p>
"###,
"should match protocol domain continue like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"# httpshhh? (1)
http:// (space)
http://!
http://"
http://#
http://$
http://%
http://&
http://'
http://(
http://)
http://*
http://+
http://,
http://-
http://
http://.
http:///
http://:
http://;
http://<
http://=
http://>
http://?
http://@
http://[
http://\
http://]
http://^
http://_
http://`
http://{
http://|
http://}
http://~
"###,
&Options::gfm()
)?,
r###"<h1>httpshhh? (1)</h1>
<p>http:// (space)</p>
<p>http://!</p>
<p>http://"</p>
<p>http://#</p>
<p>http://$</p>
<p>http://%</p>
<p>http://&</p>
<p>http://'</p>
<p>http://(</p>
<p>http://)</p>
<p>http://*</p>
<p>http://+</p>
<p>http://,</p>
<p>http://-</p>
<p>http://</p>
<p>http://.</p>
<p>http:///</p>
<p>http://:</p>
<p>http://;</p>
<p>http://<</p>
<p>http://=</p>
<p>http://></p>
<p>http://?</p>
<p>http://@</p>
<p>http://[</p>
<p>http://\</p>
<p>http://]</p>
<p>http://^</p>
<p>http://_</p>
<p>http://`</p>
<p>http://{</p>
<p>http://|</p>
<p>http://}</p>
<p>http://~</p>
"###,
"should match protocol domain start like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"# httpshhh? (4)
http://a/b (space)
http://a/b!
http://a/b"
http://a/b#
http://a/b$
http://a/b%
http://a/b&
http://a/b'
http://a/b(
http://a/b)
http://a/b*
http://a/b+
http://a/b,
http://a/b-
http://a/b
http://a/b.
http://a/b/
http://a/b:
http://a/b;
http://a/b<
http://a/b=
http://a/b>
http://a/b?
http://a/b@
http://a/b[
http://a/b\
http://a/b]
http://a/b^
http://a/b_
http://a/b`
http://a/b{
http://a/b|
http://a/b}
http://a/b~
"###,
&Options::gfm()
)?,
r###"<h1>httpshhh? (4)</h1>
<p><a href="http://a/b">http://a/b</a> (space)</p>
<p><a href="http://a/b">http://a/b</a>!</p>
<p><a href="http://a/b">http://a/b</a>"</p>
<p><a href="http://a/b#">http://a/b#</a></p>
<p><a href="http://a/b$">http://a/b$</a></p>
<p><a href="http://a/b%25">http://a/b%</a></p>
<p><a href="http://a/b&">http://a/b&</a></p>
<p><a href="http://a/b">http://a/b</a>'</p>
<p><a href="http://a/b(">http://a/b(</a></p>
<p><a href="http://a/b">http://a/b</a>)</p>
<p><a href="http://a/b">http://a/b</a>*</p>
<p><a href="http://a/b+">http://a/b+</a></p>
<p><a href="http://a/b">http://a/b</a>,</p>
<p><a href="http://a/b-">http://a/b-</a></p>
<p><a href="http://a/b">http://a/b</a></p>
<p><a href="http://a/b">http://a/b</a>.</p>
<p><a href="http://a/b/">http://a/b/</a></p>
<p><a href="http://a/b">http://a/b</a>:</p>
<p><a href="http://a/b">http://a/b</a>;</p>
<p><a href="http://a/b">http://a/b</a><</p>
<p><a href="http://a/b=">http://a/b=</a></p>
<p><a href="http://a/b%3E">http://a/b></a></p>
<p><a href="http://a/b">http://a/b</a>?</p>
<p><a href="http://a/b@">http://a/b@</a></p>
<p><a href="http://a/b%5B">http://a/b[</a></p>
<p><a href="http://a/b%5C">http://a/b\</a></p>
<p><a href="http://a/b">http://a/b</a>]</p>
<p><a href="http://a/b%5E">http://a/b^</a></p>
<p><a href="http://a/b">http://a/b</a>_</p>
<p><a href="http://a/b%60">http://a/b`</a></p>
<p><a href="http://a/b%7B">http://a/b{</a></p>
<p><a href="http://a/b%7C">http://a/b|</a></p>
<p><a href="http://a/b%7D">http://a/b}</a></p>
<p><a href="http://a/b">http://a/b</a>~</p>
"###,
"should match protocol path continue like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"# httpshhh? (3)
http://a/ (space)
http://a/!
http://a/"
http://a/#
http://a/$
http://a/%
http://a/&
http://a/'
http://a/(
http://a/)
http://a/*
http://a/+
http://a/,
http://a/-
http://a/
http://a/.
http://a//
http://a/:
http://a/;
http://a/<
http://a/=
http://a/>
http://a/?
http://a/@
http://a/[
http://a/\
http://a/]
http://a/^
http://a/_
http://a/`
http://a/{
http://a/|
http://a/}
http://a/~
"###,
&Options::gfm()
)?,
r###"<h1>httpshhh? (3)</h1>
<p><a href="http://a/">http://a/</a> (space)</p>
<p><a href="http://a/">http://a/</a>!</p>
<p><a href="http://a/">http://a/</a>"</p>
<p><a href="http://a/#">http://a/#</a></p>
<p><a href="http://a/$">http://a/$</a></p>
<p><a href="http://a/%25">http://a/%</a></p>
<p><a href="http://a/&">http://a/&</a></p>
<p><a href="http://a/">http://a/</a>'</p>
<p><a href="http://a/(">http://a/(</a></p>
<p><a href="http://a/">http://a/</a>)</p>
<p><a href="http://a/">http://a/</a>*</p>
<p><a href="http://a/+">http://a/+</a></p>
<p><a href="http://a/">http://a/</a>,</p>
<p><a href="http://a/-">http://a/-</a></p>
<p><a href="http://a/">http://a/</a></p>
<p><a href="http://a/">http://a/</a>.</p>
<p><a href="http://a//">http://a//</a></p>
<p><a href="http://a/">http://a/</a>:</p>
<p><a href="http://a/">http://a/</a>;</p>
<p><a href="http://a/">http://a/</a><</p>
<p><a href="http://a/=">http://a/=</a></p>
<p><a href="http://a/%3E">http://a/></a></p>
<p><a href="http://a/">http://a/</a>?</p>
<p><a href="http://a/@">http://a/@</a></p>
<p><a href="http://a/%5B">http://a/[</a></p>
<p><a href="http://a/%5C">http://a/\</a></p>
<p><a href="http://a/">http://a/</a>]</p>
<p><a href="http://a/%5E">http://a/^</a></p>
<p><a href="http://a/">http://a/</a>_</p>
<p><a href="http://a/%60">http://a/`</a></p>
<p><a href="http://a/%7B">http://a/{</a></p>
<p><a href="http://a/%7C">http://a/|</a></p>
<p><a href="http://a/%7D">http://a/}</a></p>
<p><a href="http://a/">http://a/</a>~</p>
"###,
"should match protocol path start like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"[www.example.com/a©](#)
www.example.com/a©
[www.example.com/a&bogus;](#)
www.example.com/a&bogus;
[www.example.com/a\.](#)
www.example.com/a\.
"###,
&Options::gfm()
)?,
r###"<p><a href="#">www.example.com/a©</a></p>
<p><a href="http://www.example.com/a">www.example.com/a</a>©</p>
<p><a href="#">www.example.com/a&bogus;</a></p>
<p><a href="http://www.example.com/a">www.example.com/a</a>&bogus;</p>
<p><a href="#">www.example.com/a\.</a></p>
<p><a href="http://www.example.com/a%5C">www.example.com/a\</a>.</p>
"###,
"should match links, autolink literals, and characters like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"# “character reference”
www.a/b&c (space)
www.a/b&c!
www.a/b&c"
www.a/b&c#
www.a/b&c$
www.a/b&c%
www.a/b&c&
www.a/b&c'
www.a/b&c(
www.a/b&c)
www.a/b&c*
www.a/b&c+
www.a/b&c,
www.a/b&c-
www.a/b&c
www.a/b&c.
www.a/b&c/
www.a/b&c:
www.a/b&c;
www.a/b&c<
www.a/b&c=
www.a/b&c>
www.a/b&c?
www.a/b&c@
www.a/b&c[
www.a/b&c\
www.a/b&c]
www.a/b&c^
www.a/b&c_
www.a/b&c`
www.a/b&c{
www.a/b&c|
www.a/b&c}
www.a/b&c~
"###,
&Options::gfm()
)?,
r###"<h1>“character reference”</h1>
<p><a href="http://www.a/b&c">www.a/b&c</a> (space)</p>
<p><a href="http://www.a/b&c">www.a/b&c</a>!</p>
<p><a href="http://www.a/b&c">www.a/b&c</a>"</p>
<p><a href="http://www.a/b&c#">www.a/b&c#</a></p>
<p><a href="http://www.a/b&c$">www.a/b&c$</a></p>
<p><a href="http://www.a/b&c%25">www.a/b&c%</a></p>
<p><a href="http://www.a/b&c&">www.a/b&c&</a></p>
<p><a href="http://www.a/b&c">www.a/b&c</a>'</p>
<p><a href="http://www.a/b&c(">www.a/b&c(</a></p>
<p><a href="http://www.a/b&c">www.a/b&c</a>)</p>
<p><a href="http://www.a/b&c">www.a/b&c</a>*</p>
<p><a href="http://www.a/b&c+">www.a/b&c+</a></p>
<p><a href="http://www.a/b&c">www.a/b&c</a>,</p>
<p><a href="http://www.a/b&c-">www.a/b&c-</a></p>
<p><a href="http://www.a/b&c">www.a/b&c</a></p>
<p><a href="http://www.a/b&c">www.a/b&c</a>.</p>
<p><a href="http://www.a/b&c/">www.a/b&c/</a></p>
<p><a href="http://www.a/b&c">www.a/b&c</a>:</p>
<p><a href="http://www.a/b">www.a/b</a>&c;</p>
<p><a href="http://www.a/b&c">www.a/b&c</a><</p>
<p><a href="http://www.a/b&c=">www.a/b&c=</a></p>
<p><a href="http://www.a/b&c%3E">www.a/b&c></a></p>
<p><a href="http://www.a/b&c">www.a/b&c</a>?</p>
<p><a href="http://www.a/b&c@">www.a/b&c@</a></p>
<p><a href="http://www.a/b&c%5B">www.a/b&c[</a></p>
<p><a href="http://www.a/b&c%5C">www.a/b&c\</a></p>
<p><a href="http://www.a/b&c">www.a/b&c</a>]</p>
<p><a href="http://www.a/b&c%5E">www.a/b&c^</a></p>
<p><a href="http://www.a/b&c">www.a/b&c</a>_</p>
<p><a href="http://www.a/b&c%60">www.a/b&c`</a></p>
<p><a href="http://www.a/b&c%7B">www.a/b&c{</a></p>
<p><a href="http://www.a/b&c%7C">www.a/b&c|</a></p>
<p><a href="http://www.a/b&c%7D">www.a/b&c}</a></p>
<p><a href="http://www.a/b&c">www.a/b&c</a>~</p>
"###,
"should match character reference-like (named) things in paths like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"# “character reference”
www.a/b# (space)
www.a/b#!
www.a/b#"
www.a/b##
www.a/b#$
www.a/b#%
www.a/b#&
www.a/b#'
www.a/b#(
www.a/b#)
www.a/b#*
www.a/b#+
www.a/b#,
www.a/b#-
www.a/b#
www.a/b#.
www.a/b#/
www.a/b#:
www.a/b#
www.a/b#<
www.a/b#=
www.a/b#>
www.a/b#?
www.a/b#@
www.a/b#[
www.a/b#\
www.a/b#]
www.a/b#^
www.a/b#_
www.a/b#`
www.a/b#{
www.a/b#|
www.a/b#}
www.a/b#~
"###,
&Options::gfm()
)?,
r###"<h1>“character reference”</h1>
<p><a href="http://www.a/b&#35">www.a/b&#35</a> (space)</p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>!</p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>"</p>
<p><a href="http://www.a/b&#35#">www.a/b&#35#</a></p>
<p><a href="http://www.a/b&#35$">www.a/b&#35$</a></p>
<p><a href="http://www.a/b&#35%25">www.a/b&#35%</a></p>
<p><a href="http://www.a/b&#35&">www.a/b&#35&</a></p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>'</p>
<p><a href="http://www.a/b&#35(">www.a/b&#35(</a></p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>)</p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>*</p>
<p><a href="http://www.a/b&#35+">www.a/b&#35+</a></p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>,</p>
<p><a href="http://www.a/b&#35-">www.a/b&#35-</a></p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a></p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>.</p>
<p><a href="http://www.a/b&#35/">www.a/b&#35/</a></p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>:</p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>;</p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a><</p>
<p><a href="http://www.a/b&#35=">www.a/b&#35=</a></p>
<p><a href="http://www.a/b&#35%3E">www.a/b&#35></a></p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>?</p>
<p><a href="http://www.a/b&#35@">www.a/b&#35@</a></p>
<p><a href="http://www.a/b&#35%5B">www.a/b&#35[</a></p>
<p><a href="http://www.a/b&#35%5C">www.a/b&#35\</a></p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>]</p>
<p><a href="http://www.a/b&#35%5E">www.a/b&#35^</a></p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>_</p>
<p><a href="http://www.a/b&#35%60">www.a/b&#35`</a></p>
<p><a href="http://www.a/b&#35%7B">www.a/b&#35{</a></p>
<p><a href="http://www.a/b&#35%7C">www.a/b&#35|</a></p>
<p><a href="http://www.a/b&#35%7D">www.a/b&#35}</a></p>
<p><a href="http://www.a/b&#35">www.a/b&#35</a>~</p>
"###,
"should match character reference-like (numeric) things in paths like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"In autolink literal path or link end?
[https://a.com/d]()
[http://a.com/d]()
[www.a.com/d]()
https://a.com/d]()
http://a.com/d]()
www.a.com/d]()
In autolink literal search or link end?
[https://a.com?d]()
[http://a.com?d]()
[www.a.com?d]()
https://a.com?d]()
http://a.com?d]()
www.a.com?d]()
In autolink literal hash or link end?
[https://a.com#d]()
[http://a.com#d]()
[www.a.com#d]()
https://a.com#d]()
http://a.com#d]()
www.a.com#d]()
"###,
&Options::gfm()
)?,
r###"<p>In autolink literal path or link end?</p>
<p><a href="">https://a.com/d</a></p>
<p><a href="">http://a.com/d</a></p>
<p><a href="">www.a.com/d</a></p>
<p><a href="https://a.com/d">https://a.com/d</a>]()</p>
<p><a href="http://a.com/d">http://a.com/d</a>]()</p>
<p><a href="http://www.a.com/d">www.a.com/d</a>]()</p>
<p>In autolink literal search or link end?</p>
<p><a href="">https://a.com?d</a></p>
<p><a href="">http://a.com?d</a></p>
<p><a href="">www.a.com?d</a></p>
<p><a href="https://a.com?d">https://a.com?d</a>]()</p>
<p><a href="http://a.com?d">http://a.com?d</a>]()</p>
<p><a href="http://www.a.com?d">www.a.com?d</a>]()</p>
<p>In autolink literal hash or link end?</p>
<p><a href="">https://a.com#d</a></p>
<p><a href="">http://a.com#d</a></p>
<p><a href="">www.a.com#d</a></p>
<p><a href="https://a.com#d">https://a.com#d</a>]()</p>
<p><a href="http://a.com#d">http://a.com#d</a>]()</p>
<p><a href="http://www.a.com#d">www.a.com#d</a>]()</p>
"###,
"should match path or link end like GitHub does (except for the bracket bug)"
);
assert_eq!(
to_html_with_options(
r###"Last non-markdown ASCII whitespace (FF): noreply@example.com, http://example.com, https://example.com, www.example.com
Last non-whitespace ASCII control (US): noreply@example.com, http://example.com, https://example.com, www.example.com
First punctuation after controls: !noreply@example.com, !http://example.com, !https://example.com, !www.example.com
Last punctuation before digits: /noreply@example.com, /http://example.com, /https://example.com, /www.example.com
First digit: 0noreply@example.com, 0http://example.com, 0https://example.com, 0www.example.com
First punctuation after digits: :noreply@example.com, :http://example.com, :https://example.com, :www.example.com
Last punctuation before caps: @noreply@example.com, @http://example.com, @https://example.com, @www.example.com
First uppercase: Anoreply@example.com, Ahttp://example.com, Ahttps://example.com, Awww.example.com
Punctuation after uppercase: \noreply@example.com, \http://example.com, \https://example.com, \www.example.com
Last punctuation before lowercase (1): `noreply@example.com;
(2) `http://example.com;
(3) `https://example.com;
(4) `www.example.com; (broken up to prevent code from forming)
First lowercase: anoreply@example.com, ahttp://example.com, ahttps://example.com, awww.example.com
First punctuation after lowercase: {noreply@example.com, {http://example.com, {https://example.com, {www.example.com
Last punctuation: ~noreply@example.com, ~http://example.com, ~https://example.com, ~www.example.com
First non-ASCII unicode whitespace (0x80):
noreply@example.com,
http://example.com,
https://example.com,
www.example.com
Last non-ASCII unicode whitespace (0x3000): noreply@example.com, http://example.com, https://example.com, www.example.com
First non-ASCII punctuation: ¡noreply@example.com, ¡http://example.com, ¡https://example.com, ¡www.example.com
Last non-ASCII punctuation: ・noreply@example.com, ・http://example.com, ・https://example.com, ・www.example.com
Some non-ascii: 中noreply@example.com, 中http://example.com, 中https://example.com, 中www.example.com
Some more non-ascii: 🤷noreply@example.com, 🤷http://example.com, 🤷https://example.com, 🤷www.example.com
"###,
&Options::gfm()
)?,
r###"<p>Last non-markdown ASCII whitespace (FF): <a href="mailto:noreply@example.com">noreply@example.com</a>, <a href="http://example.com">http://example.com</a>, <a href="https://example.com">https://example.com</a>, www.example.com</p>
<p>Last non-whitespace ASCII control (US): <a href="mailto:noreply@example.com">noreply@example.com</a>, <a href="http://example.com">http://example.com</a>, <a href="https://example.com">https://example.com</a>, www.example.com</p>
<p>First punctuation after controls: !<a href="mailto:noreply@example.com">noreply@example.com</a>, !<a href="http://example.com">http://example.com</a>, !<a href="https://example.com">https://example.com</a>, !www.example.com</p>
<p>Last punctuation before digits: /noreply@example.com, /<a href="http://example.com">http://example.com</a>, /<a href="https://example.com">https://example.com</a>, /www.example.com</p>
<p>First digit: <a href="mailto:0noreply@example.com">0noreply@example.com</a>, 0<a href="http://example.com">http://example.com</a>, 0<a href="https://example.com">https://example.com</a>, 0www.example.com</p>
<p>First punctuation after digits: :<a href="mailto:noreply@example.com">noreply@example.com</a>, :<a href="http://example.com">http://example.com</a>, :<a href="https://example.com">https://example.com</a>, :www.example.com</p>
<p>Last punctuation before caps: @<a href="mailto:noreply@example.com">noreply@example.com</a>, @<a href="http://example.com">http://example.com</a>, @<a href="https://example.com">https://example.com</a>, @www.example.com</p>
<p>First uppercase: <a href="mailto:Anoreply@example.com">Anoreply@example.com</a>, Ahttp://example.com, Ahttps://example.com, Awww.example.com</p>
<p>Punctuation after uppercase: \<a href="mailto:noreply@example.com">noreply@example.com</a>, \<a href="http://example.com">http://example.com</a>, \<a href="https://example.com">https://example.com</a>, \www.example.com</p>
<p>Last punctuation before lowercase (1): `<a href="mailto:noreply@example.com">noreply@example.com</a>;</p>
<p>(2) `<a href="http://example.com">http://example.com</a>;</p>
<p>(3) `<a href="https://example.com">https://example.com</a>;</p>
<p>(4) `www.example.com; (broken up to prevent code from forming)</p>
<p>First lowercase: <a href="mailto:anoreply@example.com">anoreply@example.com</a>, ahttp://example.com, ahttps://example.com, awww.example.com</p>
<p>First punctuation after lowercase: {<a href="mailto:noreply@example.com">noreply@example.com</a>, {<a href="http://example.com">http://example.com</a>, {<a href="https://example.com">https://example.com</a>, {www.example.com</p>
<p>Last punctuation: ~<a href="mailto:noreply@example.com">noreply@example.com</a>, ~<a href="http://example.com">http://example.com</a>, ~<a href="https://example.com">https://example.com</a>, ~<a href="http://www.example.com">www.example.com</a></p>
<p>First non-ASCII unicode whitespace (0x80):
<a href="mailto:noreply@example.com">noreply@example.com</a>,
<a href="http://example.com">http://example.com</a>,
<a href="https://example.com">https://example.com</a>,
www.example.com</p>
<p>Last non-ASCII unicode whitespace (0x3000): <a href="mailto:noreply@example.com">noreply@example.com</a>, <a href="http://example.com">http://example.com</a>, <a href="https://example.com">https://example.com</a>, www.example.com</p>
<p>First non-ASCII punctuation: ¡<a href="mailto:noreply@example.com">noreply@example.com</a>, ¡<a href="http://example.com">http://example.com</a>, ¡<a href="https://example.com">https://example.com</a>, ¡www.example.com</p>
<p>Last non-ASCII punctuation: ・<a href="mailto:noreply@example.com">noreply@example.com</a>, ・<a href="http://example.com">http://example.com</a>, ・<a href="https://example.com">https://example.com</a>, ・www.example.com</p>
<p>Some non-ascii: 中<a href="mailto:noreply@example.com">noreply@example.com</a>, 中<a href="http://example.com">http://example.com</a>, 中<a href="https://example.com">https://example.com</a>, 中www.example.com</p>
<p>Some more non-ascii: 🤷<a href="mailto:noreply@example.com">noreply@example.com</a>, 🤷<a href="http://example.com">http://example.com</a>, 🤷<a href="https://example.com">https://example.com</a>, 🤷www.example.com</p>
"###,
"should match previous (complex) like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"# HTTP
https://a.b can start after EOF
Can start after EOL:
https://a.b
Can start after tab: https://a.b.
Can start after space: https://a.b.
Can start after left paren (https://a.b.
Can start after asterisk *https://a.b.
Can start after underscore *_https://a.b.
Can start after tilde ~https://a.b.
# www
www.a.b can start after EOF
Can start after EOL:
www.a.b
Can start after tab: www.a.b.
Can start after space: www.a.b.
Can start after left paren (www.a.b.
Can start after asterisk *www.a.b.
Can start after underscore *_www.a.b.
Can start after tilde ~www.a.b.
# Email
## Correct character before
a@b.c can start after EOF
Can start after EOL:
a@b.c
Can start after tab: a@b.c.
Can start after space: a@b.c.
Can start after left paren(a@b.c.
Can start after asterisk*a@b.c.
While theoretically it’s possible to start at an underscore, that underscore
is part of the email, so it’s in fact part of the link: _a@b.c.
Can start after tilde~a@b.c.
## Others characters before
While other characters before the email aren’t allowed by GFM, they work on
github.com: !a@b.c, "a@b.c, #a@b.c, $a@b.c, &a@b.c, 'a@b.c, )a@b.c, +a@b.c,
,a@b.c, -a@b.c, .a@b.c, /a@b.c, :a@b.c, ;a@b.c, <a@b.c, =a@b.c, >a@b.c, ?a@b.c,
@a@b.c, \a@b.c, ]a@b.c, ^a@b.c, `a@b.c, {a@b.c, }a@b.c.
## Commas
See `https://github.com/remarkjs/remark/discussions/678`.
,https://github.com
[ ,https://github.com
[asd] ,https://github.com
"###,
&Options::gfm()
)?,
r###"<h1>HTTP</h1>
<p><a href="https://a.b">https://a.b</a> can start after EOF</p>
<p>Can start after EOL:
<a href="https://a.b">https://a.b</a></p>
<p>Can start after tab: <a href="https://a.b">https://a.b</a>.</p>
<p>Can start after space: <a href="https://a.b">https://a.b</a>.</p>
<p>Can start after left paren (<a href="https://a.b">https://a.b</a>.</p>
<p>Can start after asterisk *<a href="https://a.b">https://a.b</a>.</p>
<p>Can start after underscore *_<a href="https://a.b">https://a.b</a>.</p>
<p>Can start after tilde ~<a href="https://a.b">https://a.b</a>.</p>
<h1>www</h1>
<p><a href="http://www.a.b">www.a.b</a> can start after EOF</p>
<p>Can start after EOL:
<a href="http://www.a.b">www.a.b</a></p>
<p>Can start after tab: <a href="http://www.a.b">www.a.b</a>.</p>
<p>Can start after space: <a href="http://www.a.b">www.a.b</a>.</p>
<p>Can start after left paren (<a href="http://www.a.b">www.a.b</a>.</p>
<p>Can start after asterisk *<a href="http://www.a.b">www.a.b</a>.</p>
<p>Can start after underscore *_<a href="http://www.a.b">www.a.b</a>.</p>
<p>Can start after tilde ~<a href="http://www.a.b">www.a.b</a>.</p>
<h1>Email</h1>
<h2>Correct character before</h2>
<p><a href="mailto:a@b.c">a@b.c</a> can start after EOF</p>
<p>Can start after EOL:
<a href="mailto:a@b.c">a@b.c</a></p>
<p>Can start after tab: <a href="mailto:a@b.c">a@b.c</a>.</p>
<p>Can start after space: <a href="mailto:a@b.c">a@b.c</a>.</p>
<p>Can start after left paren(<a href="mailto:a@b.c">a@b.c</a>.</p>
<p>Can start after asterisk*<a href="mailto:a@b.c">a@b.c</a>.</p>
<p>While theoretically it’s possible to start at an underscore, that underscore
is part of the email, so it’s in fact part of the link: <a href="mailto:_a@b.c">_a@b.c</a>.</p>
<p>Can start after tilde~<a href="mailto:a@b.c">a@b.c</a>.</p>
<h2>Others characters before</h2>
<p>While other characters before the email aren’t allowed by GFM, they work on
github.com: !<a href="mailto:a@b.c">a@b.c</a>, "<a href="mailto:a@b.c">a@b.c</a>, #<a href="mailto:a@b.c">a@b.c</a>, $<a href="mailto:a@b.c">a@b.c</a>, &<a href="mailto:a@b.c">a@b.c</a>, '<a href="mailto:a@b.c">a@b.c</a>, )<a href="mailto:a@b.c">a@b.c</a>, <a href="mailto:+a@b.c">+a@b.c</a>,
,<a href="mailto:a@b.c">a@b.c</a>, <a href="mailto:-a@b.c">-a@b.c</a>, <a href="mailto:.a@b.c">.a@b.c</a>, /a@b.c, :<a href="mailto:a@b.c">a@b.c</a>, ;<a href="mailto:a@b.c">a@b.c</a>, <<a href="mailto:a@b.c">a@b.c</a>, =<a href="mailto:a@b.c">a@b.c</a>, ><a href="mailto:a@b.c">a@b.c</a>, ?<a href="mailto:a@b.c">a@b.c</a>,
@<a href="mailto:a@b.c">a@b.c</a>, \<a href="mailto:a@b.c">a@b.c</a>, ]<a href="mailto:a@b.c">a@b.c</a>, ^<a href="mailto:a@b.c">a@b.c</a>, `<a href="mailto:a@b.c">a@b.c</a>, {<a href="mailto:a@b.c">a@b.c</a>, }<a href="mailto:a@b.c">a@b.c</a>.</p>
<h2>Commas</h2>
<p>See <code>https://github.com/remarkjs/remark/discussions/678</code>.</p>
<p>,<a href="https://github.com">https://github.com</a></p>
<p>[ ,<a href="https://github.com">https://github.com</a></p>
<p>[asd] ,<a href="https://github.com">https://github.com</a></p>
"###,
"should match previous like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"# wwwtf 2?
www.a (space)
www.a!
www.a"
www.a#
www.a$
www.a%
www.a&
www.a'
www.a(
www.a)
www.a*
www.a+
www.a,
www.a-
www.a
www.a.
www.a/
www.a:
www.a;
www.a<
www.a=
www.a>
www.a?
www.a@
www.a[
www.a\
www.a]
www.a^
www.a_
www.a`
www.a{
www.a|
www.a}
www.a~
"###,
&Options::gfm()
)?,
r###"<h1>wwwtf 2?</h1>
<p><a href="http://www.a">www.a</a> (space)</p>
<p><a href="http://www.a">www.a</a>!</p>
<p><a href="http://www.a">www.a</a>"</p>
<p><a href="http://www.a#">www.a#</a></p>
<p><a href="http://www.a$">www.a$</a></p>
<p><a href="http://www.a%25">www.a%</a></p>
<p><a href="http://www.a&">www.a&</a></p>
<p><a href="http://www.a">www.a</a>'</p>
<p><a href="http://www.a(">www.a(</a></p>
<p><a href="http://www.a">www.a</a>)</p>
<p><a href="http://www.a">www.a</a>*</p>
<p><a href="http://www.a+">www.a+</a></p>
<p><a href="http://www.a">www.a</a>,</p>
<p><a href="http://www.a-">www.a-</a></p>
<p><a href="http://www.a">www.a</a></p>
<p><a href="http://www.a">www.a</a>.</p>
<p><a href="http://www.a/">www.a/</a></p>
<p><a href="http://www.a">www.a</a>:</p>
<p><a href="http://www.a">www.a</a>;</p>
<p><a href="http://www.a">www.a</a><</p>
<p><a href="http://www.a=">www.a=</a></p>
<p><a href="http://www.a%3E">www.a></a></p>
<p><a href="http://www.a">www.a</a>?</p>
<p><a href="http://www.a@">www.a@</a></p>
<p><a href="http://www.a%5B">www.a[</a></p>
<p><a href="http://www.a%5C">www.a\</a></p>
<p><a href="http://www.a">www.a</a>]</p>
<p><a href="http://www.a%5E">www.a^</a></p>
<p><a href="http://www.a">www.a</a>_</p>
<p><a href="http://www.a%60">www.a`</a></p>
<p><a href="http://www.a%7B">www.a{</a></p>
<p><a href="http://www.a%7C">www.a|</a></p>
<p><a href="http://www.a%7D">www.a}</a></p>
<p><a href="http://www.a">www.a</a>~</p>
"###,
"should match www (domain continue) like GitHub does (except for the bracket bug)"
);
assert_eq!(
to_html_with_options(
r###"# wwwtf 5?
www.a. (space)
www.a.!
www.a."
www.a.#
www.a.$
www.a.%
www.a.&
www.a.'
www.a.(
www.a.)
www.a.*
www.a.+
www.a.,
www.a.-
www.a.
www.a..
www.a./
www.a.:
www.a.;
www.a.<
www.a.=
www.a.>
www.a.?
www.a.@
www.a.[
www.a.\
www.a.]
www.a.^
www.a._
www.a.`
www.a.{
www.a.|
www.a.}
www.a.~
"###,
&Options::gfm()
)?,
r###"<h1>wwwtf 5?</h1>
<p><a href="http://www.a">www.a</a>. (space)</p>
<p><a href="http://www.a">www.a</a>.!</p>
<p><a href="http://www.a">www.a</a>."</p>
<p><a href="http://www.a.#">www.a.#</a></p>
<p><a href="http://www.a.$">www.a.$</a></p>
<p><a href="http://www.a.%25">www.a.%</a></p>
<p><a href="http://www.a.&">www.a.&</a></p>
<p><a href="http://www.a">www.a</a>.'</p>
<p><a href="http://www.a.(">www.a.(</a></p>
<p><a href="http://www.a">www.a</a>.)</p>
<p><a href="http://www.a">www.a</a>.*</p>
<p><a href="http://www.a.+">www.a.+</a></p>
<p><a href="http://www.a">www.a</a>.,</p>
<p><a href="http://www.a.-">www.a.-</a></p>
<p><a href="http://www.a">www.a</a>.</p>
<p><a href="http://www.a">www.a</a>..</p>
<p><a href="http://www.a./">www.a./</a></p>
<p><a href="http://www.a">www.a</a>.:</p>
<p><a href="http://www.a">www.a</a>.;</p>
<p><a href="http://www.a">www.a</a>.<</p>
<p><a href="http://www.a.=">www.a.=</a></p>
<p><a href="http://www.a.%3E">www.a.></a></p>
<p><a href="http://www.a">www.a</a>.?</p>
<p><a href="http://www.a.@">www.a.@</a></p>
<p><a href="http://www.a.%5B">www.a.[</a></p>
<p><a href="http://www.a.%5C">www.a.\</a></p>
<p><a href="http://www.a">www.a</a>.]</p>
<p><a href="http://www.a.%5E">www.a.^</a></p>
<p><a href="http://www.a">www.a</a>._</p>
<p><a href="http://www.a.%60">www.a.`</a></p>
<p><a href="http://www.a.%7B">www.a.{</a></p>
<p><a href="http://www.a.%7C">www.a.|</a></p>
<p><a href="http://www.a.%7D">www.a.}</a></p>
<p><a href="http://www.a">www.a</a>.~</p>
"###,
"should match www (domain dot) like GitHub does (except for the bracket bug)"
);
assert_eq!(
to_html_with_options(
r###"# wwwtf?
www. (space)
www.!
www."
www.#
www.$
www.%
www.&
www.'
www.(
www.)
www.*
www.+
www.,
www.-
www.
www..
www./
www.:
www.;
www.<
www.=
www.>
www.?
www.@
www.[
www.\
www.]
www.^
www._
www.`
www.{
www.|
www.}
www.~
"###,
&Options::gfm()
)?,
r###"<h1>wwwtf?</h1>
<p><a href="http://www">www</a>. (space)</p>
<p><a href="http://www">www</a>.!</p>
<p><a href="http://www">www</a>."</p>
<p><a href="http://www.#">www.#</a></p>
<p><a href="http://www.$">www.$</a></p>
<p><a href="http://www.%25">www.%</a></p>
<p><a href="http://www.&">www.&</a></p>
<p><a href="http://www">www</a>.'</p>
<p><a href="http://www.(">www.(</a></p>
<p><a href="http://www">www</a>.)</p>
<p><a href="http://www">www</a>.*</p>
<p><a href="http://www.+">www.+</a></p>
<p><a href="http://www">www</a>.,</p>
<p><a href="http://www.-">www.-</a></p>
<p>www.</p>
<p><a href="http://www">www</a>..</p>
<p><a href="http://www./">www./</a></p>
<p><a href="http://www">www</a>.:</p>
<p><a href="http://www">www</a>.;</p>
<p><a href="http://www">www</a>.<</p>
<p><a href="http://www.=">www.=</a></p>
<p><a href="http://www.%3E">www.></a></p>
<p><a href="http://www">www</a>.?</p>
<p><a href="http://www.@">www.@</a></p>
<p><a href="http://www.%5B">www.[</a></p>
<p><a href="http://www.%5C">www.\</a></p>
<p><a href="http://www">www</a>.]</p>
<p><a href="http://www.%5E">www.^</a></p>
<p><a href="http://www">www</a>._</p>
<p><a href="http://www.%60">www.`</a></p>
<p><a href="http://www.%7B">www.{</a></p>
<p><a href="http://www.%7C">www.|</a></p>
<p><a href="http://www.%7D">www.}</a></p>
<p><a href="http://www">www</a>.~</p>
"###,
"should match www (domain start) like GitHub does"
);
assert_eq!(
to_html_with_options(
r###"# wwwtf? (4)
www.a/b (space)
www.a/b!
www.a/b"
www.a/b#
www.a/b$
www.a/b%
www.a/b&
www.a/b'
www.a/b(
www.a/b)
www.a/b*
www.a/b+
www.a/b,
www.a/b-
www.a/b
www.a/b.
www.a/b/
www.a/b:
www.a/b;
www.a/b<
www.a/b=
www.a/b>
www.a/b?
www.a/b@
www.a/b[
www.a/b\
www.a/b]
www.a/b^
www.a/b_
www.a/b`
www.a/b{
www.a/b|
www.a/b}
www.a/b~
"###,
&Options::gfm()
)?,
r###"<h1>wwwtf? (4)</h1>
<p><a href="http://www.a/b">www.a/b</a> (space)</p>
<p><a href="http://www.a/b">www.a/b</a>!</p>
<p><a href="http://www.a/b">www.a/b</a>"</p>
<p><a href="http://www.a/b#">www.a/b#</a></p>
<p><a href="http://www.a/b$">www.a/b$</a></p>
<p><a href="http://www.a/b%25">www.a/b%</a></p>
<p><a href="http://www.a/b&">www.a/b&</a></p>
<p><a href="http://www.a/b">www.a/b</a>'</p>
<p><a href="http://www.a/b(">www.a/b(</a></p>
<p><a href="http://www.a/b">www.a/b</a>)</p>
<p><a href="http://www.a/b">www.a/b</a>*</p>
<p><a href="http://www.a/b+">www.a/b+</a></p>
<p><a href="http://www.a/b">www.a/b</a>,</p>
<p><a href="http://www.a/b-">www.a/b-</a></p>
<p><a href="http://www.a/b">www.a/b</a></p>
<p><a href="http://www.a/b">www.a/b</a>.</p>
<p><a href="http://www.a/b/">www.a/b/</a></p>
<p><a href="http://www.a/b">www.a/b</a>:</p>
<p><a href="http://www.a/b">www.a/b</a>;</p>
<p><a href="http://www.a/b">www.a/b</a><</p>
<p><a href="http://www.a/b=">www.a/b=</a></p>
<p><a href="http://www.a/b%3E">www.a/b></a></p>
<p><a href="http://www.a/b">www.a/b</a>?</p>
<p><a href="http://www.a/b@">www.a/b@</a></p>
<p><a href="http://www.a/b%5B">www.a/b[</a></p>
<p><a href="http://www.a/b%5C">www.a/b\</a></p>
<p><a href="http://www.a/b">www.a/b</a>]</p>
<p><a href="http://www.a/b%5E">www.a/b^</a></p>
<p><a href="http://www.a/b">www.a/b</a>_</p>
<p><a href="http://www.a/b%60">www.a/b`</a></p>
<p><a href="http://www.a/b%7B">www.a/b{</a></p>
<p><a href="http://www.a/b%7C">www.a/b|</a></p>
<p><a href="http://www.a/b%7D">www.a/b}</a></p>
<p><a href="http://www.a/b">www.a/b</a>~</p>
"###,
"should match www (path continue) like GitHub does (except for the bracket bug)"
);
assert_eq!(
to_html_with_options(
r###"# wwwtf? (3)
www.a/ (space)
www.a/!
www.a/"
www.a/#
www.a/$
www.a/%
www.a/&
www.a/'
www.a/(
www.a/)
www.a/*
www.a/+
www.a/,
www.a/-
www.a/
www.a/.
www.a//
www.a/:
www.a/;
www.a/<
www.a/=
www.a/>
www.a/?
www.a/@
www.a/[
www.a/\
www.a/]
www.a/^
www.a/_
www.a/`
www.a/{
www.a/|
www.a/}
www.a/~
"###,
&Options::gfm()
)?,
r###"<h1>wwwtf? (3)</h1>
<p><a href="http://www.a/">www.a/</a> (space)</p>
<p><a href="http://www.a/">www.a/</a>!</p>
<p><a href="http://www.a/">www.a/</a>"</p>
<p><a href="http://www.a/#">www.a/#</a></p>
<p><a href="http://www.a/$">www.a/$</a></p>
<p><a href="http://www.a/%25">www.a/%</a></p>
<p><a href="http://www.a/&">www.a/&</a></p>
<p><a href="http://www.a/">www.a/</a>'</p>
<p><a href="http://www.a/(">www.a/(</a></p>
<p><a href="http://www.a/">www.a/</a>)</p>
<p><a href="http://www.a/">www.a/</a>*</p>
<p><a href="http://www.a/+">www.a/+</a></p>
<p><a href="http://www.a/">www.a/</a>,</p>
<p><a href="http://www.a/-">www.a/-</a></p>
<p><a href="http://www.a/">www.a/</a></p>
<p><a href="http://www.a/">www.a/</a>.</p>
<p><a href="http://www.a//">www.a//</a></p>
<p><a href="http://www.a/">www.a/</a>:</p>
<p><a href="http://www.a/">www.a/</a>;</p>
<p><a href="http://www.a/">www.a/</a><</p>
<p><a href="http://www.a/=">www.a/=</a></p>
<p><a href="http://www.a/%3E">www.a/></a></p>
<p><a href="http://www.a/">www.a/</a>?</p>
<p><a href="http://www.a/@">www.a/@</a></p>
<p><a href="http://www.a/%5B">www.a/[</a></p>
<p><a href="http://www.a/%5C">www.a/\</a></p>
<p><a href="http://www.a/">www.a/</a>]</p>
<p><a href="http://www.a/%5E">www.a/^</a></p>
<p><a href="http://www.a/">www.a/</a>_</p>
<p><a href="http://www.a/%60">www.a/`</a></p>
<p><a href="http://www.a/%7B">www.a/{</a></p>
<p><a href="http://www.a/%7C">www.a/|</a></p>
<p><a href="http://www.a/%7D">www.a/}</a></p>
<p><a href="http://www.a/">www.a/</a>~</p>
"###,
"should match www (path start) like GitHub does (except for the bracket bug)"
);
assert_eq!(
to_mdast(
"a https://alpha.com b bravo@charlie.com c www.delta.com d xmpp:echo@foxtrot.com e mailto:golf@hotel.com f.",
&ParseOptions::gfm()
)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::Link(Link {
url: "https://alpha.com".into(),
title: None,
children: vec![Node::Text(Text {
value: "https://alpha.com".into(),
position: Some(Position::new(1, 3, 2, 1, 20, 19))
}),],
position: Some(Position::new(1, 3, 2, 1, 20, 19))
}),
Node::Text(Text {
value: " b ".into(),
position: Some(Position::new(1, 20, 19, 1, 23, 22))
}),
Node::Link(Link {
url: "mailto:bravo@charlie.com".into(),
title: None,
children: vec![Node::Text(Text {
value: "bravo@charlie.com".into(),
position: Some(Position::new(1, 23, 22, 1, 40, 39))
}),],
position: Some(Position::new(1, 23, 22, 1, 40, 39))
}),
Node::Text(Text {
value: " c ".into(),
position: Some(Position::new(1, 40, 39, 1, 43, 42))
}),
Node::Link(Link {
url: "http://www.delta.com".into(),
title: None,
children: vec![Node::Text(Text {
value: "www.delta.com".into(),
position: Some(Position::new(1, 43, 42, 1, 56, 55))
}),],
position: Some(Position::new(1, 43, 42, 1, 56, 55))
}),
Node::Text(Text {
value: " d ".into(),
position: Some(Position::new(1, 56, 55, 1, 59, 58))
}),
Node::Link(Link {
url: "xmpp:echo@foxtrot.com".into(),
title: None,
children: vec![Node::Text(Text {
value: "xmpp:echo@foxtrot.com".into(),
position: Some(Position::new(1, 59, 58, 1, 80, 79))
}),],
position: Some(Position::new(1, 59, 58, 1, 80, 79))
}),
Node::Text(Text {
value: " e ".into(),
position: Some(Position::new(1, 80, 79, 1, 83, 82))
}),
Node::Link(Link {
url: "mailto:golf@hotel.com".into(),
title: None,
children: vec![Node::Text(Text {
value: "mailto:golf@hotel.com".into(),
position: Some(Position::new(1, 83, 82, 1, 104, 103))
}),],
position: Some(Position::new(1, 83, 82, 1, 104, 103))
}),
Node::Text(Text {
value: " f.".into(),
position: Some(Position::new(1, 104, 103, 1, 107, 106))
})
],
position: Some(Position::new(1, 1, 0, 1, 107, 106))
})],
position: Some(Position::new(1, 1, 0, 1, 107, 106))
}),
"should support GFM autolink literals as `Link`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/gfm_footnote.rs | Rust | use markdown::{
mdast::{FootnoteDefinition, FootnoteReference, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn gfm_footnote() -> Result<(), message::Message> {
assert_eq!(
to_html("A call.[^a]\n\n[^a]: whatevs"),
"<p>A call.<a href=\"whatevs\">^a</a></p>\n",
"should ignore footnotes by default"
);
assert_eq!(
to_html_with_options("A call.[^a]\n\n[^a]: whatevs", &Options::gfm())?,
"<p>A call.<sup><a href=\"#user-content-fn-a\" id=\"user-content-fnref-a\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup></p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-a\">
<p>whatevs <a href=\"#user-content-fnref-a\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support footnotes"
);
assert_eq!(
to_html_with_options(
"Noot.[^a]\n\n[^a]: dingen",
&Options {
parse: ParseOptions::gfm(),
compile: CompileOptions {
gfm_footnote_label: Some("Voetnoten".into()),
gfm_footnote_back_label: Some("Terug naar de inhoud".into()),
..CompileOptions::gfm()
}
}
)?,
"<p>Noot.<sup><a href=\"#user-content-fn-a\" id=\"user-content-fnref-a\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup></p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Voetnoten</h2>
<ol>
<li id=\"user-content-fn-a\">
<p>dingen <a href=\"#user-content-fnref-a\" data-footnote-backref=\"\" aria-label=\"Terug naar de inhoud\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support `options.gfm_footnote_label`, `options.gfm_footnote_back_label`"
);
assert_eq!(
to_html_with_options(
"[^a]\n\n[^a]: b",
&Options {
parse: ParseOptions::gfm(),
compile: CompileOptions {
gfm_footnote_label_tag_name: Some("h1".into()),
..CompileOptions::gfm()
}
}
)?,
"<p><sup><a href=\"#user-content-fn-a\" id=\"user-content-fnref-a\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup></p>
<section data-footnotes=\"\" class=\"footnotes\"><h1 id=\"footnote-label\" class=\"sr-only\">Footnotes</h1>
<ol>
<li id=\"user-content-fn-a\">
<p>b <a href=\"#user-content-fnref-a\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support `options.gfm_footnote_label_tag_name`"
);
assert_eq!(
to_html_with_options(
"[^a]\n\n[^a]: b",
&Options {
parse: ParseOptions::gfm(),
compile: CompileOptions {
gfm_footnote_label_attributes: Some("class=\"footnote-heading\"".into()),
..CompileOptions::gfm()
}
}
)?,
"<p><sup><a href=\"#user-content-fn-a\" id=\"user-content-fnref-a\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup></p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"footnote-heading\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-a\">
<p>b <a href=\"#user-content-fnref-a\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support `options.gfm_footnote_label_attributes`"
);
assert_eq!(
to_html_with_options(
"[^a]\n\n[^a]: b",
&Options {
parse: ParseOptions::gfm(),
compile: CompileOptions {
gfm_footnote_clobber_prefix: Some("".into()),
..CompileOptions::gfm()
}
}
)?,
"<p><sup><a href=\"#fn-a\" id=\"fnref-a\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup></p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"fn-a\">
<p>b <a href=\"#fnref-a\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support `options.gfm_footnote_clobber_prefix`"
);
assert_eq!(
to_html_with_options("A paragraph.\n\n[^a]: whatevs", &Options::gfm())?,
"<p>A paragraph.</p>\n",
"should ignore definitions w/o calls"
);
assert_eq!(
to_html_with_options("a[^b]", &Options::gfm())?,
"<p>a[^b]</p>",
"should ignore calls w/o definitions"
);
assert_eq!(
to_html_with_options("a[^b]\n\n[^b]: c\n[^b]: d", &Options::gfm())?,
"<p>a<sup><a href=\"#user-content-fn-b\" id=\"user-content-fnref-b\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup></p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-b\">
<p>c <a href=\"#user-content-fnref-b\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should use the first of duplicate definitions"
);
assert_eq!(
to_html_with_options("a[^b], c[^b]\n\n[^b]: d", &Options::gfm())?,
"<p>a<sup><a href=\"#user-content-fn-b\" id=\"user-content-fnref-b\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup>, c<sup><a href=\"#user-content-fn-b\" id=\"user-content-fnref-b-2\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup></p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-b\">
<p>d <a href=\"#user-content-fnref-b\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a> <a href=\"#user-content-fnref-b-2\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩<sup>2</sup></a></p>
</li>
</ol>
</section>
",
"should supports multiple calls to the same definition"
);
assert_eq!(
to_html_with_options("", &Options::gfm())?,
"<p>!<a href=\"b\">^a</a></p>",
"should not support images starting w/ `^` (but see it as a link?!, 1)"
);
assert_eq!(
to_html_with_options("![^a][b]\n\n[b]: c", &Options::gfm())?,
"<p>!<a href=\"c\">^a</a></p>\n",
"should not support images starting w/ `^` (but see it as a link?!, 2)"
);
assert_eq!(
to_html_with_options("[^]()", &Options::gfm())?,
"<p><a href=\"\">^</a></p>",
"should support an empty link with caret"
);
assert_eq!(
to_html_with_options("![^]()", &Options::gfm())?,
"<p>!<a href=\"\">^</a></p>",
"should support an empty image with caret (as link)"
);
// <https://github.com/github/cmark-gfm/issues/239>
assert_eq!(
to_html_with_options("Call.[^a\\+b].\n\n[^a\\+b]: y", &Options::gfm())?,
"<p>Call.<sup><a href=\"#user-content-fn-a%5C+b\" id=\"user-content-fnref-a%5C+b\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup>.</p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-a%5C+b\">
<p>y <a href=\"#user-content-fnref-a%5C+b\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support a character escape in a call / definition"
);
assert_eq!(
to_html_with_options("Call.[^a©b].\n\n[^a©b]: y", &Options::gfm())?,
"<p>Call.<sup><a href=\"#user-content-fn-a&copy;b\" id=\"user-content-fnref-a&copy;b\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup>.</p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-a&copy;b\">
<p>y <a href=\"#user-content-fnref-a&copy;b\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support a character reference in a call / definition"
);
// <https://github.com/github/cmark-gfm/issues/239>
// <https://github.com/github/cmark-gfm/issues/240>
assert_eq!(
to_html_with_options("Call.[^a\\]b].\n\n[^a\\]b]: y", &Options::gfm())?,
"<p>Call.<sup><a href=\"#user-content-fn-a%5C%5Db\" id=\"user-content-fnref-a%5C%5Db\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup>.</p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-a%5C%5Db\">
<p>y <a href=\"#user-content-fnref-a%5C%5Db\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support a useful character escape in a call / definition"
);
assert_eq!(
to_html_with_options("Call.[^a[b].\n\n[^a[b]: y", &Options::gfm())?,
"<p>Call.<sup><a href=\"#user-content-fn-a&#91;b\" id=\"user-content-fnref-a&#91;b\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup>.</p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-a&#91;b\">
<p>y <a href=\"#user-content-fnref-a&#91;b\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support a useful character reference in a call / definition"
);
assert_eq!(
to_html_with_options("Call.[^a\\+b].\n\n[^a+b]: y", &Options::gfm())?,
"<p>Call.[^a+b].</p>\n",
"should match calls to definitions on the source of the label, not on resolved escapes"
);
assert_eq!(
to_html_with_options("Call.[^a[b].\n\n[^a\\[b]: y", &Options::gfm())?,
"<p>Call.[^a[b].</p>\n",
"should match calls to definitions on the source of the label, not on resolved references"
);
assert_eq!(
to_html_with_options("[^1].\n\n[^1]: a\nb", &Options::gfm())?,
"<p><sup><a href=\"#user-content-fn-1\" id=\"user-content-fnref-1\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup>.</p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-1\">
<p>a
b <a href=\"#user-content-fnref-1\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support lazyness (1)"
);
assert_eq!(
to_html_with_options("[^1].\n\n> [^1]: a\nb", &Options::gfm())?,
"<p><sup><a href=\"#user-content-fn-1\" id=\"user-content-fnref-1\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup>.</p>
<blockquote>
</blockquote>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-1\">
<p>a
b <a href=\"#user-content-fnref-1\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support lazyness (2)"
);
assert_eq!(
to_html_with_options("[^1].\n\n> [^1]: a\n> b", &Options::gfm())?,
"<p><sup><a href=\"#user-content-fn-1\" id=\"user-content-fnref-1\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup>.</p>
<blockquote>
</blockquote>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-1\">
<p>a
b <a href=\"#user-content-fnref-1\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
",
"should support lazyness (3)"
);
assert_eq!(
to_html_with_options("[^1].\n\n[^1]: a\n\n > b", &Options::gfm())?,
"<p><sup><a href=\"#user-content-fn-1\" id=\"user-content-fnref-1\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup>.</p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-1\">
<p>a</p>
<blockquote>
<p>b</p>
</blockquote>
<a href=\"#user-content-fnref-1\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a>
</li>
</ol>
</section>
",
"should support lazyness (4)"
);
// 999 `x` characters.
let max = "x".repeat(999);
assert_eq!(
to_html_with_options(format!("Call.[^{}].\n\n[^{}]: y", max, max).as_str(), &Options::gfm())?,
format!("<p>Call.<sup><a href=\"#user-content-fn-{}\" id=\"user-content-fnref-{}\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup>.</p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-{}\">
<p>y <a href=\"#user-content-fnref-{}\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>
", max, max, max, max),
"should support 999 characters in a call / definition"
);
assert_eq!(
to_html_with_options(
format!("Call.[^a{}].\n\n[^a{}]: y", max, max).as_str(),
&Options::gfm()
)?,
format!("<p>Call.[^a{}].</p>\n<p>[^a{}]: y</p>", max, max),
"should not support 1000 characters in a call / definition"
);
assert_eq!(
to_html_with_options(
"[^a]\n\n[^a]: b\n \n c",
&Options::gfm()
)?,
"<p><sup><a href=\"#user-content-fn-a\" id=\"user-content-fnref-a\" data-footnote-ref=\"\" aria-describedby=\"footnote-label\">1</a></sup></p>
<section data-footnotes=\"\" class=\"footnotes\"><h2 id=\"footnote-label\" class=\"sr-only\">Footnotes</h2>
<ol>
<li id=\"user-content-fn-a\">
<p>b</p>
<p>c <a href=\"#user-content-fnref-a\" data-footnote-backref=\"\" aria-label=\"Back to content\" class=\"data-footnote-backref\">↩</a></p>
</li>
</ol>
</section>\n",
"should support blank lines in footnote definitions"
);
assert_eq!(
to_html_with_options(
r"a
a\
a![i][]
a![^1]
[^1]
^1]
[^1]: b
[i]: c",
&Options::gfm()
)?,
r##"<p>a<img src="#" alt="i" />
a!<a href="#">i</a>
a<img src="c" alt="i" />
a!<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup>
<sup><a href="#user-content-fn-1" id="user-content-fnref-1-2" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup>
^1]</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>b <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a> <a href="#user-content-fnref-1-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩<sup>2</sup></a></p>
</li>
</ol>
</section>
"##,
"should match bang/caret interplay like GitHub"
);
assert_eq!(
to_html_with_options("a![^1]", &Options::gfm())?,
"<p>a![^1]</p>",
"should match bang/caret interplay (undefined) like GitHub"
);
assert_eq!(
to_html_with_options(
r###"a![^1]
[^1]: b
"###,
&Options::gfm()
)?,
r##"<p>a!<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>b <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match bang/caret like GitHub"
);
assert_eq!(
to_html_with_options(
r###"Calls may not be empty: [^].
Calls cannot contain whitespace only: [^ ].
Calls cannot contain whitespace at all: [^ ], [^ ], [^
].
Calls can contain other characters, such as numbers [^1234567890], or [^^]
even another caret.
[^]: empty
[^ ]: space
[^ ]: tab
[^
]: line feed
[^1234567890]: numbers
[^^]: caret
"###,
&Options::gfm()
)?,
r##"<p>Calls may not be empty: <a href="empty">^</a>.</p>
<p>Calls cannot contain whitespace only: <a href="empty">^ </a>.</p>
<p>Calls cannot contain whitespace at all: <a href="empty">^ </a>, <a href="empty">^ </a>, <a href="empty">^
</a>.</p>
<p>Calls can contain other characters, such as numbers <sup><a href="#user-content-fn-1234567890" id="user-content-fnref-1234567890" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup>, or <sup><a href="#user-content-fn-%5E" id="user-content-fnref-%5E" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup>
even another caret.</p>
<p><a href="empty">^
</a>: line feed</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1234567890">
<p>numbers <a href="#user-content-fnref-1234567890" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-%5E">
<p>caret <a href="#user-content-fnref-%5E" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match calls like GitHub"
);
// Note:
// * GH does not support line ending in call.
// See: <https://github.com/github/cmark-gfm/issues/282>
// Here line endings don’t make text disappear.
assert_eq!(
to_html_with_options(
r###"[^a]: # b
[^c d]: # e
[^f g]: # h
[^i
j]: # k
[^ l]: # l
[^m ]: # m
xxx[^a], [^c d], [^f g], [^i
j], [^ l], [^m ]
---
Some calls.[^ w][^x ][^y][^z]
[^w]: # w
[^x]: # x
[^ y]: # y
[^x ]: # z
"###,
&Options::gfm()
)?,
r##"<p>[^c d]: # e</p>
<p>[^f g]: # h</p>
<p>[^i
j]: # k</p>
<p>[^ l]: # l</p>
<p>[^m ]: # m</p>
<p>xxx<sup><a href="#user-content-fn-a" id="user-content-fnref-a" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup>, [^c d], [^f g], [^i
j], [^ l], [^m ]</p>
<hr />
<p>Some calls.<sup><a href="#user-content-fn-w" id="user-content-fnref-w" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-x" id="user-content-fnref-x" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup>[^y][^z]</p>
<p>[^ y]: # y</p>
<p><sup><a href="#user-content-fn-x" id="user-content-fnref-x-2" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup>: # z</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-a">
<h1>b</h1>
<a href="#user-content-fnref-a" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-w">
<h1>w</h1>
<a href="#user-content-fnref-w" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-x">
<h1>x</h1>
<a href="#user-content-fnref-x" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a> <a href="#user-content-fnref-x-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩<sup>2</sup></a>
</li>
</ol>
</section>
"##,
"should match whitespace in calls like GitHub (except for the bugs)"
);
assert_eq!(
to_html_with_options(
r###"[^*emphasis*]
[^**strong**]
[^`code`]
[^www.example.com]
[^https://example.com]
[^://example.com]
[^[link](#)]
[^]
[^*emphasis*]: a
[^**strong**]: a
[^`code`]: a
[^www.example.com]: a
[^https://example.com]: a
[^://example.com]: a
[^[link](#)]: a
[^]: a
"###,
&Options::gfm()
)?,
// Note:
// * GH does not support colons.
// See: <https://github.com/github/cmark-gfm/issues/250>
// Here identifiers that include colons *do* work (so they’re added below).
// * GH does not support footnote-like brackets around an image.
// See: <https://github.com/github/cmark-gfm/issues/275>
// Here images are fine.
r##"<p><sup><a href="#user-content-fn-*emphasis*" id="user-content-fnref-*emphasis*" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup></p>
<p><sup><a href="#user-content-fn-**strong**" id="user-content-fnref-**strong**" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup></p>
<p><sup><a href="#user-content-fn-%60code%60" id="user-content-fnref-%60code%60" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup></p>
<p><sup><a href="#user-content-fn-www.example.com" id="user-content-fnref-www.example.com" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup></p>
<p><sup><a href="#user-content-fn-https://example.com" id="user-content-fnref-https://example.com" data-footnote-ref="" aria-describedby="footnote-label">5</a></sup></p>
<p><sup><a href="#user-content-fn-://example.com" id="user-content-fnref-://example.com" data-footnote-ref="" aria-describedby="footnote-label">6</a></sup></p>
<p>[^<a href="#">link</a>]</p>
<p>[^<img src="#" alt="image" />]</p>
<p>[^<a href="#">link</a>]: a</p>
<p>[^<img src="#" alt="image" />]: a</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-*emphasis*">
<p>a <a href="#user-content-fnref-*emphasis*" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-**strong**">
<p>a <a href="#user-content-fnref-**strong**" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-%60code%60">
<p>a <a href="#user-content-fnref-%60code%60" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-www.example.com">
<p>a <a href="#user-content-fnref-www.example.com" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-https://example.com">
<p>a <a href="#user-content-fnref-https://example.com" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-://example.com">
<p>a <a href="#user-content-fnref-://example.com" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match construct identifiers like GitHub (except for its bugs)"
);
assert_eq!(
to_html_with_options(
r###"Call[^1][^2][^3][^4]
> [^1]: Defined in a block quote.
>
> More.
[^2]: Directly after a block quote.
* [^3]: Defined in a list item.
More.
[^4]: Directly after a list item.
"###,
&Options::gfm()
)?,
r##"<p>Call<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup></p>
<blockquote>
<p>More.</p>
</blockquote>
<ul>
<li>
<p>More.</p>
</li>
</ul>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>Defined in a block quote. <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-2">
<p>Directly after a block quote. <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<p>Defined in a list item. <a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-4">
<p>Directly after a list item. <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match containers like GitHub"
);
assert_eq!(
to_html_with_options(
r###"[^1][^2][^3][^4]
[^1]: Paragraph
…continuation
# Heading
[^2]: Paragraph
…continuation
“code”, which is paragraphs…
…because of the indent!
[^3]: Paragraph
…continuation
> block quote
[^4]: Paragraph
…continuation
- list
"###,
&Options::gfm()
)?,
r##"<p><sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup></p>
<h1>Heading</h1>
<blockquote>
<p>block quote</p>
</blockquote>
<ul>
<li>list</li>
</ul>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>Paragraph
…continuation <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-2">
<p>Paragraph
…continuation</p>
<p>“code”, which is paragraphs…</p>
<p>…because of the indent! <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<p>Paragraph
…continuation <a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-4">
<p>Paragraph
…continuation <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match continuation like GitHub"
);
assert_eq!(
to_html_with_options(
r###"Call[^1][^2][^3][^4][^5].
[^1]:
---
[^2]:
Paragraph.
[^3]:
Lazy?
[^4]:
Another blank.
[^5]:
Lazy!
"###,
&Options::gfm()
)?,
r##"<p>Call<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup><sup><a href="#user-content-fn-5" id="user-content-fnref-5" data-footnote-ref="" aria-describedby="footnote-label">5</a></sup>.</p>
<p>Lazy?</p>
<p>Lazy!</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<hr />
<a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-2">
<p>Paragraph. <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-4">
<p>Another blank. <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-5">
<a href="#user-content-fnref-5" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
</ol>
</section>
"##,
"should match definitions initial blank like GitHub"
);
assert_eq!(
to_html_with_options(
r###"Note![^0][^1][^2][^3][^4][^5][^6][^7][^8][^9][^10]
[^0]: alpha
[^1]: bravo
[^2]: charlie
indented delta
[^3]: echo
[^4]: foxtrot
[^5]:> golf
[^6]: > hotel
[^7]: > india
[^8]: # juliett
[^9]: ---
[^10]:- - - kilo
"###,
&Options::gfm()
)?,
r##"<p>Note!<sup><a href="#user-content-fn-0" id="user-content-fnref-0" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">5</a></sup><sup><a href="#user-content-fn-5" id="user-content-fnref-5" data-footnote-ref="" aria-describedby="footnote-label">6</a></sup><sup><a href="#user-content-fn-6" id="user-content-fnref-6" data-footnote-ref="" aria-describedby="footnote-label">7</a></sup><sup><a href="#user-content-fn-7" id="user-content-fnref-7" data-footnote-ref="" aria-describedby="footnote-label">8</a></sup><sup><a href="#user-content-fn-8" id="user-content-fnref-8" data-footnote-ref="" aria-describedby="footnote-label">9</a></sup><sup><a href="#user-content-fn-9" id="user-content-fnref-9" data-footnote-ref="" aria-describedby="footnote-label">10</a></sup><sup><a href="#user-content-fn-10" id="user-content-fnref-10" data-footnote-ref="" aria-describedby="footnote-label">11</a></sup></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-0">
<p>alpha <a href="#user-content-fnref-0" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-1">
<p>bravo <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-2">
<p>charlie
indented delta <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<p>echo <a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-4">
<p>foxtrot <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-5">
<blockquote>
<p>golf</p>
</blockquote>
<a href="#user-content-fnref-5" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-6">
<blockquote>
<p>hotel</p>
</blockquote>
<a href="#user-content-fnref-6" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-7">
<blockquote>
<p>india</p>
</blockquote>
<a href="#user-content-fnref-7" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-8">
<h1>juliett</h1>
<a href="#user-content-fnref-8" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-9">
<hr />
<a href="#user-content-fnref-9" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-10">
<ul>
<li>
<ul>
<li>
<ul>
<li>kilo</li>
</ul>
</li>
</ul>
</li>
</ul>
<a href="#user-content-fnref-10" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
</ol>
</section>
"##,
"should match definitions like GitHub"
);
assert_eq!(
to_html_with_options(
r###"Call[^1][^1]
[^1]: Recursion[^1][^1]
"###,
&Options::gfm()
)?,
r##"<p>Call<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-1" id="user-content-fnref-1-2" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>Recursion<sup><a href="#user-content-fn-1" id="user-content-fnref-1-3" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-1" id="user-content-fnref-1-4" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup> <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a> <a href="#user-content-fnref-1-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩<sup>2</sup></a> <a href="#user-content-fnref-1-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩<sup>3</sup></a> <a href="#user-content-fnref-1-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩<sup>4</sup></a></p>
</li>
</ol>
</section>
"##,
"should match duplicate calls and recursion like GitHub"
);
assert_eq!(
to_html_with_options(
r###"Call[^1]
[^1]: a
[^1]: b
"###,
&Options::gfm()
)?,
r##"<p>Call<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>a <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match duplicate definitions like GitHub"
);
// Note:
// * GH “supports” footnotes inside links.
// This breaks an HTML parser, as it is not allowed.
// See: <https://github.com/github/cmark-gfm/issues/275>
// CommonMark has mechanisms in place to prevent links in links.
// These mechanisms are in place here too.
assert_eq!(
to_html_with_options(
r###"*emphasis[^1]*
**strong[^2]**
`code[^3]`
![image[^4]](#)
[link[^5]](#)
[^1]: a
[^2]: b
[^3]: c
[^4]: d
[^5]: e
"###,
&Options::gfm()
)?,
r##"<p><em>emphasis<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup></em></p>
<p><strong>strong<sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup></strong></p>
<p><code>code[^3]</code></p>
<p><img src="#" alt="image" /></p>
<p>[link<sup><a href="#user-content-fn-5" id="user-content-fnref-5" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup>](#)</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>a <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-2">
<p>b <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-4">
<p>d <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-5">
<p>e <a href="#user-content-fnref-5" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match footnotes in constructs like GitHub (without the bugs)"
);
assert_eq!(
to_html_with_options(
r###"What are these![^1], ![^2][], and ![this][^3].
[^1]: a
[^2]: b
[^3]: c
"###,
&Options::gfm()
)?,
r##"<p>What are these!<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup>, !<sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup>[], and ![this]<sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup>.</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>a <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-2">
<p>b <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<p>c <a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match images/footnotes like GitHub"
);
assert_eq!(
to_html_with_options(
r###"[^0][^1][^2][^3][^4][^5]
[^0]: Paragraph
…continuation
[^1]: Another
[^2]: Paragraph
…continuation
# Heading
[^3]: Paragraph
…continuation
“code”, which is paragraphs…
…because of the indent!
[^4]: Paragraph
…continuation
> block quote
[^5]: Paragraph
…continuation
* list
"###,
&Options::gfm()
)?,
r##"<p><sup><a href="#user-content-fn-0" id="user-content-fnref-0" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">5</a></sup><sup><a href="#user-content-fn-5" id="user-content-fnref-5" data-footnote-ref="" aria-describedby="footnote-label">6</a></sup></p>
<h1>Heading</h1>
<blockquote>
<p>block quote</p>
</blockquote>
<ul>
<li>list</li>
</ul>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-0">
<p>Paragraph
…continuation <a href="#user-content-fnref-0" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-1">
<p>Another <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-2">
<p>Paragraph
…continuation <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<p>Paragraph
…continuation
“code”, which is paragraphs…</p>
<p>…because of the indent! <a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-4">
<p>Paragraph
…continuation <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-5">
<p>Paragraph
…continuation <a href="#user-content-fnref-5" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match interrupt like GitHub"
);
assert_eq!(
to_html_with_options(
r###"What are these[^1], [^2][], and [this][^3].
[^1]: a
[^2]: b
[^3]: c
"###,
&Options::gfm()
)?,
r##"<p>What are these<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup>, <sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup>[], and [this]<sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup>.</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>a <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-2">
<p>b <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<p>c <a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match links/footnotes like GitHub"
);
assert_eq!(
to_html_with_options(
r###"[^1][^2][^3][^4]
[^1]: Paragraph
# Heading
[^2]: Paragraph
“code”, which is paragraphs…
…because of the indent!
[^3]: Paragraph
> block quote
[^4]: Paragraph
- list
"###,
&Options::gfm()
)?,
r##"<p><sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup></p>
<h1>Heading</h1>
<blockquote>
<p>block quote</p>
</blockquote>
<ul>
<li>list</li>
</ul>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>Paragraph <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-2">
<p>Paragraph</p>
<p>“code”, which is paragraphs…</p>
<p>…because of the indent! <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<p>Paragraph <a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-4">
<p>Paragraph <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match many blank lines/no indent like GitHub"
);
assert_eq!(
to_html_with_options(
r###"[^1][^2][^3][^4]
[^1]: Paragraph
# Heading
[^2]: Paragraph
code
more code
[^3]: Paragraph
> block quote
[^4]: Paragraph
- list
"###,
&Options::gfm()
)?,
r##"<p><sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>Paragraph</p>
<h1>Heading</h1>
<a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-2">
<p>Paragraph</p>
<pre><code>code
more code
</code></pre>
<a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-3">
<p>Paragraph</p>
<blockquote>
<p>block quote</p>
</blockquote>
<a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-4">
<p>Paragraph</p>
<ul>
<li>list</li>
</ul>
<a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
</ol>
</section>
"##,
"should match many blank lines like GitHub"
);
assert_eq!(
to_html_with_options(
r###"Note![^1][^2][^3][^4]
- [^1]: Paragraph
> [^2]: Paragraph
[^3]: [^4]: Paragraph
"###,
&Options::gfm()
)?,
r##"<p>Note!<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup></p>
<ul>
<li></li>
</ul>
<blockquote>
</blockquote>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>Paragraph <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-2">
<p>Paragraph <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-4">
<p>Paragraph <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match nest like GitHub"
);
assert_eq!(
to_html_with_options(
r###"[^1][^2][^3][^4]
[^1]: Paragraph
# Heading
[^2]: Paragraph
“code”, which is paragraphs…
…because of the indent!
[^3]: Paragraph
> block quote
[^4]: Paragraph
- list
"###,
&Options::gfm()
)?,
r##"<p><sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup></p>
<h1>Heading</h1>
<blockquote>
<p>block quote</p>
</blockquote>
<ul>
<li>list</li>
</ul>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>Paragraph <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-2">
<p>Paragraph</p>
<p>“code”, which is paragraphs…</p>
<p>…because of the indent! <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<p>Paragraph <a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-4">
<p>Paragraph <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match normal blank lines/no indent like GitHub"
);
assert_eq!(
to_html_with_options(
r###"[^1][^2][^3][^4]
[^1]: Paragraph
# Heading
[^2]: Paragraph
code
more code
[^3]: Paragraph
> block quote
[^4]: Paragraph
- list
"###,
&Options::gfm()
)?,
r##"<p><sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>Paragraph</p>
<h1>Heading</h1>
<a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-2">
<p>Paragraph</p>
<pre><code>code
more code
</code></pre>
<a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-3">
<p>Paragraph</p>
<blockquote>
<p>block quote</p>
</blockquote>
<a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-4">
<p>Paragraph</p>
<ul>
<li>list</li>
</ul>
<a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
</ol>
</section>
"##,
"should match normal blank lines like GitHub"
);
assert_eq!(
to_html_with_options(
r###"Here is a footnote reference,[^1] and another.[^longnote]
[^1]: Here is the footnote.
[^longnote]: Here’s one with multiple blocks.
Subsequent paragraphs are indented to show that they
belong to the previous footnote.
{ some.code }
The whole paragraph can be indented, or just the first
line. In this way, multi-paragraph footnotes work like
multi-paragraph list items.
This paragraph won’t be part of the note, because it
isn’t indented.
"###,
&Options::gfm()
)?,
r##"<p>Here is a footnote reference,<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup> and another.<sup><a href="#user-content-fn-longnote" id="user-content-fnref-longnote" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup></p>
<p>This paragraph won’t be part of the note, because it
isn’t indented.</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>Here is the footnote. <a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-longnote">
<p>Here’s one with multiple blocks.</p>
<p>Subsequent paragraphs are indented to show that they
belong to the previous footnote.</p>
<pre><code>{ some.code }
</code></pre>
<p>The whole paragraph can be indented, or just the first
line. In this way, multi-paragraph footnotes work like
multi-paragraph list items. <a href="#user-content-fnref-longnote" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match pandoc like GitHub"
);
assert_eq!(
to_html_with_options(
r###"Call[^1][^2][^3][^4][^5][^6][^7][^8][^9][^10][^11][^12].
[^1]: 5
[^2]: 4
[^3]: 3
[^4]: 2
[^5]: 1
[^6]: 0
***
[^7]: 3
5
[^8]: 3
4
[^9]: 3
3
[^10]: 2
5
[^11]: 2
4
[^12]: 2
3
"###,
&Options::gfm()
)?,
r##"<p>Call[^1][^2]<sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-5" id="user-content-fnref-5" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-6" id="user-content-fnref-6" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup><sup><a href="#user-content-fn-7" id="user-content-fnref-7" data-footnote-ref="" aria-describedby="footnote-label">5</a></sup><sup><a href="#user-content-fn-8" id="user-content-fnref-8" data-footnote-ref="" aria-describedby="footnote-label">6</a></sup><sup><a href="#user-content-fn-9" id="user-content-fnref-9" data-footnote-ref="" aria-describedby="footnote-label">7</a></sup><sup><a href="#user-content-fn-10" id="user-content-fnref-10" data-footnote-ref="" aria-describedby="footnote-label">8</a></sup><sup><a href="#user-content-fn-11" id="user-content-fnref-11" data-footnote-ref="" aria-describedby="footnote-label">9</a></sup><sup><a href="#user-content-fn-12" id="user-content-fnref-12" data-footnote-ref="" aria-describedby="footnote-label">10</a></sup>.</p>
<pre><code> [^1]: 5
[^2]: 4
</code></pre>
<hr />
<p>3</p>
<p>3</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-3">
<p>3 <a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-4">
<p>2 <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-5">
<p>1 <a href="#user-content-fnref-5" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-6">
<p>0 <a href="#user-content-fnref-6" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-7">
<p>3</p>
<p>5 <a href="#user-content-fnref-7" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-8">
<p>3</p>
<p>4 <a href="#user-content-fnref-8" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-9">
<p>3 <a href="#user-content-fnref-9" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-10">
<p>2</p>
<p>5 <a href="#user-content-fnref-10" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-11">
<p>2</p>
<p>4 <a href="#user-content-fnref-11" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-12">
<p>2 <a href="#user-content-fnref-12" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match prefix before like GitHub"
);
assert_eq!(
to_html_with_options(
r###"Call[^1][^2][^3][^4][^5][^6][^7][^8][^9].
[^1]: a
8
[^2]: a
7
[^3]: a
6
[^4]: a
5
[^5]: a
4
[^6]: a
3
[^7]: a
2
[^8]: a
1
[^9]: a
0
"###,
&Options::gfm()
)?,
r##"<p>Call<sup><a href="#user-content-fn-1" id="user-content-fnref-1" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup><sup><a href="#user-content-fn-2" id="user-content-fnref-2" data-footnote-ref="" aria-describedby="footnote-label">2</a></sup><sup><a href="#user-content-fn-3" id="user-content-fnref-3" data-footnote-ref="" aria-describedby="footnote-label">3</a></sup><sup><a href="#user-content-fn-4" id="user-content-fnref-4" data-footnote-ref="" aria-describedby="footnote-label">4</a></sup><sup><a href="#user-content-fn-5" id="user-content-fnref-5" data-footnote-ref="" aria-describedby="footnote-label">5</a></sup><sup><a href="#user-content-fn-6" id="user-content-fnref-6" data-footnote-ref="" aria-describedby="footnote-label">6</a></sup><sup><a href="#user-content-fn-7" id="user-content-fnref-7" data-footnote-ref="" aria-describedby="footnote-label">7</a></sup><sup><a href="#user-content-fn-8" id="user-content-fnref-8" data-footnote-ref="" aria-describedby="footnote-label">8</a></sup><sup><a href="#user-content-fn-9" id="user-content-fnref-9" data-footnote-ref="" aria-describedby="footnote-label">9</a></sup>.</p>
<p>3</p>
<p>2</p>
<p>1</p>
<p>0</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>
<ol>
<li id="user-content-fn-1">
<p>a</p>
<pre><code>8
</code></pre>
<a href="#user-content-fnref-1" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a>
</li>
<li id="user-content-fn-2">
<p>a</p>
<p>7 <a href="#user-content-fnref-2" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-3">
<p>a</p>
<p>6 <a href="#user-content-fnref-3" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-4">
<p>a</p>
<p>5 <a href="#user-content-fnref-4" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-5">
<p>a</p>
<p>4 <a href="#user-content-fnref-5" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-6">
<p>a <a href="#user-content-fnref-6" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-7">
<p>a <a href="#user-content-fnref-7" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-8">
<p>a <a href="#user-content-fnref-8" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
<li id="user-content-fn-9">
<p>a <a href="#user-content-fnref-9" data-footnote-backref="" aria-label="Back to content" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
"##,
"should match prefix like GitHub"
);
assert_eq!(
to_html_with_options(
r###"Here is a short reference,[1], a collapsed one,[2][], and a full [one][3].
[1]: a
[2]: b
[3]: c
"###,
&Options::gfm()
)?,
r#"<p>Here is a short reference,<a href="a">1</a>, a collapsed one,<a href="b">2</a>, and a full <a href="c">one</a>.</p>
"#,
"should match references and definitions like GitHub"
);
assert_eq!(
to_mdast("[^a]: b\n\tc\n\nd [^a] e.", &ParseOptions::gfm())?,
Node::Root(Root {
children: vec![
Node::FootnoteDefinition(FootnoteDefinition {
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "b\nc".into(),
position: Some(Position::new(1, 7, 6, 2, 6, 10))
})],
position: Some(Position::new(1, 7, 6, 2, 6, 10))
})],
identifier: "a".into(),
label: Some("a".into()),
position: Some(Position::new(1, 1, 0, 3, 1, 11))
}),
Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "d ".into(),
position: Some(Position::new(4, 1, 12, 4, 3, 14))
}),
Node::FootnoteReference(FootnoteReference {
identifier: "a".into(),
label: Some("a".into()),
position: Some(Position::new(4, 3, 14, 4, 7, 18))
}),
Node::Text(Text {
value: " e.".into(),
position: Some(Position::new(4, 7, 18, 4, 10, 21))
})
],
position: Some(Position::new(4, 1, 12, 4, 10, 21))
})
],
position: Some(Position::new(1, 1, 0, 4, 10, 21))
}),
"should support GFM footnotes as `FootnoteDefinition`, `FootnoteReference`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/gfm_strikethrough.rs | Rust | #![allow(clippy::needless_raw_string_hashes)]
// To do: clippy introduced this in 1.72 but breaks when it fixes it.
// Remove when solved.
use markdown::{
mdast::{Delete, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn gfm_strikethrough() -> Result<(), message::Message> {
assert_eq!(
to_html("a ~b~ c"),
"<p>a ~b~ c</p>",
"should ignore strikethrough by default"
);
assert_eq!(
to_html_with_options("a ~b~", &Options::gfm())?,
"<p>a <del>b</del></p>",
"should support strikethrough w/ one tilde"
);
assert_eq!(
to_html_with_options("a ~~b~~", &Options::gfm())?,
"<p>a <del>b</del></p>",
"should support strikethrough w/ two tildes"
);
assert_eq!(
to_html_with_options("a ~~~b~~~", &Options::gfm())?,
"<p>a ~~~b~~~</p>",
"should not support strikethrough w/ three tildes"
);
assert_eq!(
to_html_with_options("a \\~~~b~~ c", &Options::gfm())?,
"<p>a ~<del>b</del> c</p>",
"should support strikethrough after an escaped tilde"
);
assert_eq!(
to_html_with_options("a ~~b ~~c~~ d~~ e", &Options::gfm())?,
"<p>a <del>b <del>c</del> d</del> e</p>",
"should support nested strikethrough"
);
assert_eq!(
to_html_with_options("a ~-1~ b", &Options::gfm())?,
"<p>a <del>-1</del> b</p>",
"should open if preceded by whitespace and followed by punctuation"
);
assert_eq!(
to_html_with_options("a ~b.~ c", &Options::gfm())?,
"<p>a <del>b.</del> c</p>",
"should close if preceded by punctuation and followed by whitespace"
);
assert_eq!(
to_html_with_options("~b.~.", &Options::gfm())?,
"<p><del>b.</del>.</p>",
"should close if preceded and followed by punctuation"
);
assert_eq!(
to_html_with_options(
r###"
# Balanced
a ~one~ b
a ~~two~~ b
a ~~~three~~~ b
a ~~~~four~~~~ b
# Unbalanced
a ~one/two~~ b
a ~one/three~~~ b
a ~one/four~~~~ b
***
a ~~two/one~ b
a ~~two/three~~~ b
a ~~two/four~~~~ b
***
a ~~~three/one~ b
a ~~~three/two~~ b
a ~~~three/four~~~~ b
***
a ~~~~four/one~ b
a ~~~~four/two~~ b
a ~~~~four/three~~~ b
## Multiple
a ~one b one~ c one~ d
a ~one b two~~ c one~ d
a ~one b one~ c two~~ d
a ~~two b two~~ c two~~ d
a ~~two b one~ c two~~ d
a ~~two b two~~ c one~ d
"###,
&Options::gfm()
)?,
r###"<h1>Balanced</h1>
<p>a <del>one</del> b</p>
<p>a <del>two</del> b</p>
<p>a ~~~three~~~ b</p>
<p>a ~~~~four~~~~ b</p>
<h1>Unbalanced</h1>
<p>a ~one/two~~ b</p>
<p>a ~one/three~~~ b</p>
<p>a ~one/four~~~~ b</p>
<hr />
<p>a ~~two/one~ b</p>
<p>a ~~two/three~~~ b</p>
<p>a ~~two/four~~~~ b</p>
<hr />
<p>a ~~~three/one~ b</p>
<p>a ~~~three/two~~ b</p>
<p>a ~~~three/four~~~~ b</p>
<hr />
<p>a ~~~~four/one~ b</p>
<p>a ~~~~four/two~~ b</p>
<p>a ~~~~four/three~~~ b</p>
<h2>Multiple</h2>
<p>a <del>one b one</del> c one~ d</p>
<p>a <del>one b two~~ c one</del> d</p>
<p>a <del>one b one</del> c two~~ d</p>
<p>a <del>two b two</del> c two~~ d</p>
<p>a <del>two b one~ c two</del> d</p>
<p>a <del>two b two</del> c one~ d</p>
"###,
"should handle balance like GitHub"
);
assert_eq!(
to_html_with_options(
r###"
# Flank
a oneRight~ b oneRight~ c oneRight~ d
a oneRight~ b oneRight~ c ~oneLeft d
a oneRight~ b ~oneLeft c oneRight~ d
a ~oneLeft b oneRight~ c oneRight~ d
a ~oneLeft b oneRight~ c ~oneLeft d
a ~oneLeft b ~oneLeft c oneRight~ d
a ~oneLeft b ~oneLeft c ~oneLeft d
***
a twoRight~~ b twoRight~~ c twoRight~~ d
a twoRight~~ b twoRight~~ c ~~twoLeft d
a twoRight~~ b ~~twoLeft c twoRight~~ d
a ~~twoLeft b twoRight~~ c twoRight~~ d
a ~~twoLeft b twoRight~~ c ~~twoLeft d
a ~~twoLeft b ~~twoLeft c twoRight~~ d
a ~~twoLeft b ~~twoLeft c ~~twoLeft d
"###,
&Options::gfm()
)?,
r###"<h1>Flank</h1>
<p>a oneRight~ b oneRight~ c oneRight~ d</p>
<p>a oneRight~ b oneRight~ c ~oneLeft d</p>
<p>a oneRight~ b <del>oneLeft c oneRight</del> d</p>
<p>a <del>oneLeft b oneRight</del> c oneRight~ d</p>
<p>a <del>oneLeft b oneRight</del> c ~oneLeft d</p>
<p>a ~oneLeft b <del>oneLeft c oneRight</del> d</p>
<p>a ~oneLeft b ~oneLeft c ~oneLeft d</p>
<hr />
<p>a twoRight~~ b twoRight~~ c twoRight~~ d</p>
<p>a twoRight~~ b twoRight~~ c ~~twoLeft d</p>
<p>a twoRight~~ b <del>twoLeft c twoRight</del> d</p>
<p>a <del>twoLeft b twoRight</del> c twoRight~~ d</p>
<p>a <del>twoLeft b twoRight</del> c ~~twoLeft d</p>
<p>a ~~twoLeft b <del>twoLeft c twoRight</del> d</p>
<p>a ~~twoLeft b ~~twoLeft c ~~twoLeft d</p>
"###,
"should handle flanking like GitHub"
);
assert_eq!(
to_html_with_options(
r###"
# Interlpay
## Interleave with attention
a ~~two *emphasis* two~~ b
a ~~two **strong** two~~ b
a *marker ~~two marker* two~~ b
a ~~two *marker two~~ marker* b
## Interleave with links
a ~~two [resource](#) two~~ b
a ~~two [reference][#] two~~ b
a [label start ~~two label end](#) two~~ b
a ~~two [label start two~~ label end](#) b
a ~~two [label start ~one one~ label end](#) two~~ b
a ~one [label start ~~two two~~ label end](#) one~ b
a ~one [label start ~one one~ label end](#) one~ b
a ~~two [label start ~~two two~~ label end](#) two~~ b
[#]: #
## Interleave with code (text)
a ~~two `code` two~~ b
a ~~two `code two~~` b
a `code start ~~two code end` two~~ b
a ~~two `code start two~~ code end` b
a ~~two `code start ~one one~ code end` two~~ b
a ~one `code start ~~two two~~ code end` one~ b
a ~one `code start ~one one~ code end` one~ b
a ~~two `code start ~~two two~~ code end` two~~ b
## Emphasis/strong/strikethrough interplay
a ***~~xxx~~*** zzz
b ***xxx***zzz
c **xxx**zzz
d *xxx*zzz
e ***~~xxx~~***yyy
f **~~xxx~~**yyy
g *~~xxx~~*yyy
h ***~~xxx~~*** zzz
i **~~xxx~~** zzz
j *~~xxx~~* zzz
k ~~~**xxx**~~~ zzz
l ~~~xxx~~~zzz
m ~~xxx~~zzz
n ~xxx~zzz
o ~~~**xxx**~~~yyy
p ~~**xxx**~~yyy
r ~**xxx**~yyy
s ~~~**xxx**~~~ zzz
t ~~**xxx**~~ zzz
u ~**xxx**~ zzz
"###,
&Options::gfm()
)?,
r###"<h1>Interlpay</h1>
<h2>Interleave with attention</h2>
<p>a <del>two <em>emphasis</em> two</del> b</p>
<p>a <del>two <strong>strong</strong> two</del> b</p>
<p>a <em>marker ~~two marker</em> two~~ b</p>
<p>a <del>two *marker two</del> marker* b</p>
<h2>Interleave with links</h2>
<p>a <del>two <a href="#">resource</a> two</del> b</p>
<p>a <del>two <a href="#">reference</a> two</del> b</p>
<p>a <a href="#">label start ~~two label end</a> two~~ b</p>
<p>a ~~two <a href="#">label start two~~ label end</a> b</p>
<p>a <del>two <a href="#">label start <del>one one</del> label end</a> two</del> b</p>
<p>a <del>one <a href="#">label start <del>two two</del> label end</a> one</del> b</p>
<p>a <del>one <a href="#">label start <del>one one</del> label end</a> one</del> b</p>
<p>a <del>two <a href="#">label start <del>two two</del> label end</a> two</del> b</p>
<h2>Interleave with code (text)</h2>
<p>a <del>two <code>code</code> two</del> b</p>
<p>a ~~two <code>code two~~</code> b</p>
<p>a <code>code start ~~two code end</code> two~~ b</p>
<p>a ~~two <code>code start two~~ code end</code> b</p>
<p>a <del>two <code>code start ~one one~ code end</code> two</del> b</p>
<p>a <del>one <code>code start ~~two two~~ code end</code> one</del> b</p>
<p>a <del>one <code>code start ~one one~ code end</code> one</del> b</p>
<p>a <del>two <code>code start ~~two two~~ code end</code> two</del> b</p>
<h2>Emphasis/strong/strikethrough interplay</h2>
<p>a <em><strong><del>xxx</del></strong></em> zzz</p>
<p>b <em><strong>xxx</strong></em>zzz</p>
<p>c <strong>xxx</strong>zzz</p>
<p>d <em>xxx</em>zzz</p>
<p>e <em><strong><del>xxx</del></strong></em>yyy</p>
<p>f <strong><del>xxx</del></strong>yyy</p>
<p>g <em><del>xxx</del></em>yyy</p>
<p>h <em><strong><del>xxx</del></strong></em> zzz</p>
<p>i <strong><del>xxx</del></strong> zzz</p>
<p>j <em><del>xxx</del></em> zzz</p>
<p>k ~~~<strong>xxx</strong>~~~ zzz</p>
<p>l ~~~xxx~~~zzz</p>
<p>m <del>xxx</del>zzz</p>
<p>n <del>xxx</del>zzz</p>
<p>o ~~~<strong>xxx</strong>~~~yyy</p>
<p>p ~~<strong>xxx</strong>~~yyy</p>
<p>r ~<strong>xxx</strong>~yyy</p>
<p>s ~~~<strong>xxx</strong>~~~ zzz</p>
<p>t <del><strong>xxx</strong></del> zzz</p>
<p>u <del><strong>xxx</strong></del> zzz</p>
"###,
"should handle interplay like GitHub"
);
assert_eq!(
to_html_with_options("a*~b~*c\n\na*.b.*c", &Options::gfm())?,
"<p>a<em><del>b</del></em>c</p>\n<p>a*.b.*c</p>",
"should handle interplay w/ other attention markers (GFM)"
);
assert_eq!(
to_html("a*~b~*c\n\na*.b.*c"),
"<p>a*~b~*c</p>\n<p>a*.b.*c</p>",
"should handle interplay w/ other attention markers (CM reference)"
);
assert_eq!(
to_html_with_options(
"a ~b~ ~~c~~ d",
&Options {
parse: ParseOptions {
gfm_strikethrough_single_tilde: false,
..ParseOptions::gfm()
},
..Options::gfm()
}
)?,
"<p>a ~b~ <del>c</del> d</p>",
"should not support strikethrough w/ one tilde if `singleTilde: false`"
);
assert_eq!(
to_html_with_options(
"a ~b~ ~~c~~ d",
&Options {
parse: ParseOptions {
gfm_strikethrough_single_tilde: true,
..ParseOptions::gfm()
},
..Options::gfm()
}
)?,
"<p>a <del>b</del> <del>c</del> d</p>",
"should support strikethrough w/ one tilde if `singleTilde: true`"
);
assert_eq!(
to_mdast("a ~~alpha~~ b.", &ParseOptions::gfm())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::Delete(Delete {
children: vec![Node::Text(Text {
value: "alpha".into(),
position: Some(Position::new(1, 5, 4, 1, 10, 9))
}),],
position: Some(Position::new(1, 3, 2, 1, 12, 11))
}),
Node::Text(Text {
value: " b.".into(),
position: Some(Position::new(1, 12, 11, 1, 15, 14))
}),
],
position: Some(Position::new(1, 1, 0, 1, 15, 14))
})],
position: Some(Position::new(1, 1, 0, 1, 15, 14))
}),
"should support GFM strikethrough as `Delete`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/gfm_table.rs | Rust | use markdown::{
mdast::{AlignKind, InlineCode, Node, Root, Table, TableCell, TableRow, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn gfm_table() -> Result<(), message::Message> {
assert_eq!(
to_html("| a |\n| - |\n| b |"),
"<p>| a |\n| - |\n| b |</p>",
"should ignore tables by default"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n| b |", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>b</td>\n</tr>\n</tbody>\n</table>",
"should support tables"
);
assert_eq!(
to_html_with_options("| a |", &Options::gfm())?,
"<p>| a |</p>",
"should not support a table w/ the head row ending in an eof (1)"
);
assert_eq!(
to_html_with_options("| a", &Options::gfm())?,
"<p>| a</p>",
"should not support a table w/ the head row ending in an eof (2)"
);
assert_eq!(
to_html_with_options("a |", &Options::gfm())?,
"<p>a |</p>",
"should not support a table w/ the head row ending in an eof (3)"
);
assert_eq!(
to_html_with_options("| a |\n| - |", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>",
"should support a table w/ a delimiter row ending in an eof (1)"
);
assert_eq!(
to_html_with_options("| a\n| -", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>",
"should support a table w/ a delimiter row ending in an eof (2)"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n| b |", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>b</td>\n</tr>\n</tbody>\n</table>",
"should support a table w/ a body row ending in an eof (1)"
);
assert_eq!(
to_html_with_options("| a\n| -\n| b", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>b</td>\n</tr>\n</tbody>\n</table>",
"should support a table w/ a body row ending in an eof (2)"
);
assert_eq!(
to_html_with_options("a|b\n-|-\nc|d", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n<th>b</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>c</td>\n<td>d</td>\n</tr>\n</tbody>\n</table>",
"should support a table w/ a body row ending in an eof (3)"
);
assert_eq!(
to_html_with_options("| a \n| -\t\n| b | ", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>b</td>\n</tr>\n</tbody>\n</table>",
"should support rows w/ trailing whitespace (1)"
);
assert_eq!(
to_html_with_options("| a | \n| - |", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>",
"should support rows w/ trailing whitespace (2)"
);
assert_eq!(
to_html_with_options("| a |\n| - | ", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>",
"should support rows w/ trailing whitespace (3)"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n| b | ", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>b</td>\n</tr>\n</tbody>\n</table>",
"should support rows w/ trailing whitespace (4)"
);
assert_eq!(
to_html_with_options("||a|\n|-|-|", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th></th>\n<th>a</th>\n</tr>\n</thead>\n</table>",
"should support empty first header cells"
);
assert_eq!(
to_html_with_options("|a||\n|-|-|", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n<th></th>\n</tr>\n</thead>\n</table>",
"should support empty last header cells"
);
assert_eq!(
to_html_with_options("a||b\n-|-|-", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n<th></th>\n<th>b</th>\n</tr>\n</thead>\n</table>",
"should support empty header cells"
);
assert_eq!(
to_html_with_options("|a|b|\n|-|-|\n||c|", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n<th>b</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td></td>\n<td>c</td>\n</tr>\n</tbody>\n</table>",
"should support empty first body cells"
);
assert_eq!(
to_html_with_options("|a|b|\n|-|-|\n|c||", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n<th>b</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>c</td>\n<td></td>\n</tr>\n</tbody>\n</table>",
"should support empty last body cells"
);
assert_eq!(
to_html_with_options("a|b|c\n-|-|-\nd||e", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n<th>b</th>\n<th>c</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>d</td>\n<td></td>\n<td>e</td>\n</tr>\n</tbody>\n</table>",
"should support empty body cells"
);
assert_eq!(
to_html_with_options(":\n|-|\n|a|\n\nb\n|-|\n|c|\n\n|\n|-|\n|d|\n\n|\n|-|\n|e|\n\n|:\n|-|\n|f|\n\n||\n|-|\n|g|\n\n| |\n|-|\n|h|\n", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>:</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>a</td>\n</tr>\n</tbody>\n</table>\n<table>\n<thead>\n<tr>\n<th>b</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>c</td>\n</tr>\n</tbody>\n</table>\n<p>|\n|-|\n|d|</p>\n<p>|\n|-|\n|e|</p>\n<table>\n<thead>\n<tr>\n<th>:</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>f</td>\n</tr>\n</tbody>\n</table>\n<table>\n<thead>\n<tr>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>g</td>\n</tr>\n</tbody>\n</table>\n<table>\n<thead>\n<tr>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>h</td>\n</tr>\n</tbody>\n</table>\n",
"should need any character other than a single pipe in the header row"
);
assert_eq!(
to_html_with_options("a\n|-\n\nb\n||\n\nc\n|-|\n\nd\n|:|\n\ne\n| |\n\nf\n| -|\n\ng\n|- |\n", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<p>b\n||</p>\n<table>\n<thead>\n<tr>\n<th>c</th>\n</tr>\n</thead>\n</table>\n<p>d\n|:|</p>\n<p>e\n| |</p>\n<table>\n<thead>\n<tr>\n<th>f</th>\n</tr>\n</thead>\n</table>\n<table>\n<thead>\n<tr>\n<th>g</th>\n</tr>\n</thead>\n</table>\n",
"should need a dash in the delimimter row"
);
assert_eq!(
to_html_with_options("|\n|", &Options::gfm())?,
"<p>|\n|</p>",
"should need something"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n- b", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<ul>\n<li>b</li>\n</ul>",
"should support a list after a table"
);
assert_eq!(
to_html_with_options("> | a |\n| - |", &Options::gfm())?,
"<blockquote>\n<p>| a |\n| - |</p>\n</blockquote>",
"should not support a lazy delimiter row (1)"
);
assert_eq!(
to_html_with_options("> a\n> | b |\n| - |", &Options::gfm())?,
"<blockquote>\n<p>a\n| b |\n| - |</p>\n</blockquote>",
"should not support a lazy delimiter row (2)"
);
assert_eq!(
to_html_with_options("| a |\n> | - |", &Options::gfm())?,
"<p>| a |</p>\n<blockquote>\n<p>| - |</p>\n</blockquote>",
"should not support a piercing delimiter row"
);
assert_eq!(
to_html_with_options("> a\n> | b |\n|-", &Options::gfm())?,
"<blockquote>\n<p>a\n| b |\n|-</p>\n</blockquote>",
"should not support a lazy body row (2)"
);
assert_eq!(
to_html_with_options("> | a |\n> | - |\n| b |", &Options::gfm())?,
"<blockquote>\n<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n</blockquote>\n<p>| b |</p>",
"should not support a lazy body row (1)"
);
assert_eq!(
to_html_with_options("> a\n> | b |\n> | - |\n| c |", &Options::gfm())?,
"<blockquote>\n<p>a</p>\n<table>\n<thead>\n<tr>\n<th>b</th>\n</tr>\n</thead>\n</table>\n</blockquote>\n<p>| c |</p>",
"should not support a lazy body row (2)"
);
assert_eq!(
to_html_with_options("> | A |\n> | - |\n> | 1 |\n| 2 |", &Options::gfm())?,
"<blockquote>\n<table>\n<thead>\n<tr>\n<th>A</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n</tr>\n</tbody>\n</table>\n</blockquote>\n<p>| 2 |</p>",
"should not support a lazy body row (3)"
);
assert_eq!(
to_html_with_options(" - d\n - e", &Options::gfm())?,
to_html(" - d\n - e"),
"should not change how lists and lazyness work"
);
assert_eq!(
to_html_with_options("| a |\n | - |", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>",
"should form a table if the delimiter row is indented w/ 3 spaces"
);
assert_eq!(
to_html_with_options("| a |\n | - |", &Options::gfm())?,
"<p>| a |\n| - |</p>",
"should not form a table if the delimiter row is indented w/ 4 spaces"
);
assert_eq!(
to_html_with_options("| a |\n | - |", &Options {
parse: ParseOptions {
constructs: Constructs {
code_indented: false,
..Constructs::gfm()
},
..ParseOptions::gfm()
},
..Options::gfm()
})?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>",
"should form a table if the delimiter row is indented w/ 4 spaces and indented code is turned off"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n> block quote?", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<blockquote>\n<p>block quote?</p>\n</blockquote>",
"should be interrupted by a block quote"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n>", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<blockquote>\n</blockquote>",
"should be interrupted by a block quote (empty)"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n- list?", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<ul>\n<li>list?</li>\n</ul>",
"should be interrupted by a list"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n-", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<ul>\n<li></li>\n</ul>",
"should be interrupted by a list (empty)"
);
assert_eq!(
to_html_with_options(
"| a |\n| - |\n<!-- HTML? -->",
&Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..CompileOptions::gfm()
},
..Options::gfm()
}
)?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<!-- HTML? -->",
"should be interrupted by HTML (flow)"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n\tcode?", &Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..CompileOptions::gfm()
},
..Options::gfm()
})?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<pre><code>code?\n</code></pre>",
"should be interrupted by code (indented)"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n```js\ncode?", &Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..CompileOptions::gfm()
},
..Options::gfm()
})?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<pre><code class=\"language-js\">code?\n</code></pre>\n",
"should be interrupted by code (fenced)"
);
assert_eq!(
to_html_with_options(
"| a |\n| - |\n***",
&Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..CompileOptions::gfm()
},
..Options::gfm()
}
)?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<hr />",
"should be interrupted by a thematic break"
);
assert_eq!(
to_html_with_options("| a |\n| - |\n# heading?", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n<h1>heading?</h1>",
"should be interrupted by a heading (ATX)"
);
assert_eq!(
to_html_with_options("| a |\n| - |\nheading\n=", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>heading</td>\n</tr>\n<tr>\n<td>=</td>\n</tr>\n</tbody>\n</table>",
"should *not* be interrupted by a heading (setext)"
);
assert_eq!(
to_html_with_options("| a |\n| - |\nheading\n---", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>heading</td>\n</tr>\n</tbody>\n</table>\n<hr />",
"should *not* be interrupted by a heading (setext), but interrupt if the underline is also a thematic break"
);
assert_eq!(
to_html_with_options("| a |\n| - |\nheading\n-", &Options::gfm())?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>heading</td>\n</tr>\n</tbody>\n</table>\n<ul>\n<li></li>\n</ul>",
"should *not* be interrupted by a heading (setext), but interrupt if the underline is also an empty list item bullet"
);
assert_eq!(
to_html_with_options("a\nb\n-:", &Options::gfm())?,
"<p>a</p>\n<table>\n<thead>\n<tr>\n<th align=\"right\">b</th>\n</tr>\n</thead>\n</table>",
"should support a single head row"
);
assert_eq!(
to_html_with_options("> | a |\n> | - |", &Options::gfm())?,
"<blockquote>\n<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n</blockquote>",
"should support a table in a container"
);
assert_eq!(
to_html_with_options("> | a |\n| - |", &Options::gfm())?,
"<blockquote>\n<p>| a |\n| - |</p>\n</blockquote>",
"should not support a lazy delimiter row if the head row is in a container"
);
assert_eq!(
to_html_with_options("| a |\n> | - |", &Options::gfm())?,
"<p>| a |</p>\n<blockquote>\n<p>| - |</p>\n</blockquote>",
"should not support a “piercing” container for the delimiter row, if the head row was not in that container"
);
assert_eq!(
to_html_with_options("> | a |\n> | - |\n| c |", &Options::gfm())?,
"<blockquote>\n<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n</table>\n</blockquote>\n<p>| c |</p>",
"should not support a lazy body row if the head row and delimiter row are in a container"
);
assert_eq!(
to_html_with_options("> | a |\n| - |\n> | c |", &Options::gfm())?,
"<blockquote>\n<p>| a |\n| - |\n| c |</p>\n</blockquote>",
"should not support a lazy delimiter row if the head row and a further body row are in a container"
);
assert_eq!(
to_html_with_options("[\na\n:-\n]: b", &Options::gfm())?,
"<p>[</p>\n<table>\n<thead>\n<tr>\n<th align=\"left\">a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"left\">]: b</td>\n</tr>\n</tbody>\n</table>",
"should prefer GFM tables over definitions"
);
assert_eq!(
to_html_with_options(" | a |\n\t| - |\n | b |", &Options {
parse: ParseOptions {
constructs: Constructs {
code_indented: false,
..Constructs::gfm()
},
..ParseOptions::gfm()
},
..Options::gfm()
})?,
"<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>b</td>\n</tr>\n</tbody>\n</table>",
"should support indented rows if code (indented) is off"
);
assert_eq!(
to_html_with_options(
r###"# Align
## An empty initial cell
| | a|c|
|--|:----:|:---|
|a|b|c|
|a|b|c|
## Missing alignment characters
| a | b | c |
| |---|---|
| d | e | f |
* * *
| a | b | c |
|---|---| |
| d | e | f |
## Incorrect characters
| a | b | c |
|---|-*-|---|
| d | e | f |
## Two alignments
|a|
|::|
|a|
|:-:|
## Two at the start or end
|a|
|::-|
|a|
|-::|
## In the middle
|a|
|-:-|
## A space in the middle
|a|
|- -|
## No pipe
a
:-:
a
:-
a
-:
## A single colon
|a|
|:|
a
:
## Alignment on empty cells
| a | b | c | d | e |
| - | - | :- | -: | :-: |
| f |
"###,
&Options::gfm()
)?,
r#"<h1>Align</h1>
<h2>An empty initial cell</h2>
<table>
<thead>
<tr>
<th></th>
<th align="center">a</th>
<th align="left">c</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td align="center">b</td>
<td align="left">c</td>
</tr>
<tr>
<td>a</td>
<td align="center">b</td>
<td align="left">c</td>
</tr>
</tbody>
</table>
<h2>Missing alignment characters</h2>
<p>| a | b | c |
| |---|---|
| d | e | f |</p>
<hr />
<p>| a | b | c |
|---|---| |
| d | e | f |</p>
<h2>Incorrect characters</h2>
<p>| a | b | c |
|---|-*-|---|
| d | e | f |</p>
<h2>Two alignments</h2>
<p>|a|
|::|</p>
<table>
<thead>
<tr>
<th align="center">a</th>
</tr>
</thead>
</table>
<h2>Two at the start or end</h2>
<p>|a|
|::-|</p>
<p>|a|
|-::|</p>
<h2>In the middle</h2>
<p>|a|
|-:-|</p>
<h2>A space in the middle</h2>
<p>|a|
|- -|</p>
<h2>No pipe</h2>
<table>
<thead>
<tr>
<th align="center">a</th>
</tr>
</thead>
</table>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
</table>
<table>
<thead>
<tr>
<th align="right">a</th>
</tr>
</thead>
</table>
<h2>A single colon</h2>
<p>|a|
|:|</p>
<p>a
:</p>
<h2>Alignment on empty cells</h2>
<table>
<thead>
<tr>
<th>a</th>
<th>b</th>
<th align="left">c</th>
<th align="right">d</th>
<th align="center">e</th>
</tr>
</thead>
<tbody>
<tr>
<td>f</td>
<td></td>
<td align="left"></td>
<td align="right"></td>
<td align="center"></td>
</tr>
</tbody>
</table>
"#,
"should match alignment like GitHub"
);
assert_eq!(
to_html_with_options(
r###"# Tables
| a | b | c |
| - | - | - |
| d | e | f |
## No body
| a | b | c |
| - | - | - |
## One column
| a |
| - |
| b |
"###,
&Options::gfm()
)?,
r###"<h1>Tables</h1>
<table>
<thead>
<tr>
<th>a</th>
<th>b</th>
<th>c</th>
</tr>
</thead>
<tbody>
<tr>
<td>d</td>
<td>e</td>
<td>f</td>
</tr>
</tbody>
</table>
<h2>No body</h2>
<table>
<thead>
<tr>
<th>a</th>
<th>b</th>
<th>c</th>
</tr>
</thead>
</table>
<h2>One column</h2>
<table>
<thead>
<tr>
<th>a</th>
</tr>
</thead>
<tbody>
<tr>
<td>b</td>
</tr>
</tbody>
</table>
"###,
"should match basic like GitHub"
);
assert_eq!(
to_html_with_options(
r###"# Tables in things
## In lists
* Unordered:
| A | B |
| - | - |
| 1 | 2 |
1. Ordered:
| A | B |
| - | - |
| 1 | 2 |
* Lazy?
| A | B |
| - | - |
| 1 | 2 |
| 3 | 4 |
| 5 | 6 |
| 7 | 8 |
## In block quotes
> W/ space:
> | A | B |
> | - | - |
> | 1 | 2 |
>W/o space:
>| A | B |
>| - | - |
>| 1 | 2 |
> Lazy?
> | A | B |
> | - | - |
> | 1 | 2 |
>| 3 | 4 |
| 5 | 6 |
### List interrupting delimiters
a |
- |
a
-|
a
|-
"###,
&Options::gfm()
)?,
r###"<h1>Tables in things</h1>
<h2>In lists</h2>
<ul>
<li>
<p>Unordered:</p>
<table>
<thead>
<tr>
<th>A</th>
<th>B</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
</tr>
</tbody>
</table>
</li>
</ul>
<ol>
<li>
<p>Ordered:</p>
<table>
<thead>
<tr>
<th>A</th>
<th>B</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
</tr>
</tbody>
</table>
</li>
</ol>
<ul>
<li>Lazy?
<table>
<thead>
<tr>
<th>A</th>
<th>B</th>
</tr>
</thead>
</table>
</li>
</ul>
<p>| 1 | 2 |
| 3 | 4 |
| 5 | 6 |
| 7 | 8 |</p>
<h2>In block quotes</h2>
<blockquote>
<p>W/ space:</p>
<table>
<thead>
<tr>
<th>A</th>
<th>B</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
</tr>
</tbody>
</table>
</blockquote>
<blockquote>
<p>W/o space:</p>
<table>
<thead>
<tr>
<th>A</th>
<th>B</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
</tr>
</tbody>
</table>
</blockquote>
<blockquote>
<p>Lazy?</p>
<table>
<thead>
<tr>
<th>A</th>
<th>B</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</tbody>
</table>
</blockquote>
<p>| 5 | 6 |</p>
<h3>List interrupting delimiters</h3>
<p>a |</p>
<ul>
<li>|</li>
</ul>
<table>
<thead>
<tr>
<th>a</th>
</tr>
</thead>
</table>
<table>
<thead>
<tr>
<th>a</th>
</tr>
</thead>
</table>
"###,
"should match containers like GitHub"
);
assert_eq!(
to_html_with_options(
r###"| a |
| - |
| - |
| 1 |
"###,
&Options::gfm()
)?,
r###"<table>
<thead>
<tr>
<th>a</th>
</tr>
</thead>
<tbody>
<tr>
<td>-</td>
</tr>
<tr>
<td>1</td>
</tr>
</tbody>
</table>
"###,
"should match a double delimiter row like GitHub"
);
assert_eq!(
to_html_with_options(
r"# Examples from GFM
## A
| foo | bar |
| --- | --- |
| baz | bim |
## B
| abc | defghi |
:-: | -----------:
bar | baz
## C
| f\|oo |
| ------ |
| b `\|` az |
| b **\|** im |
## D
| abc | def |
| --- | --- |
| bar | baz |
> bar
## E
| abc | def |
| --- | --- |
| bar | baz |
bar
bar
## F
| abc | def |
| --- |
| bar |
## G
| abc | def |
| --- | --- |
| bar |
| bar | baz | boo |
## H
| abc | def |
| --- | --- |
",
&Options::gfm()
)?,
r#"<h1>Examples from GFM</h1>
<h2>A</h2>
<table>
<thead>
<tr>
<th>foo</th>
<th>bar</th>
</tr>
</thead>
<tbody>
<tr>
<td>baz</td>
<td>bim</td>
</tr>
</tbody>
</table>
<h2>B</h2>
<table>
<thead>
<tr>
<th align="center">abc</th>
<th align="right">defghi</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">bar</td>
<td align="right">baz</td>
</tr>
</tbody>
</table>
<h2>C</h2>
<table>
<thead>
<tr>
<th>f|oo</th>
</tr>
</thead>
<tbody>
<tr>
<td>b <code>|</code> az</td>
</tr>
<tr>
<td>b <strong>|</strong> im</td>
</tr>
</tbody>
</table>
<h2>D</h2>
<table>
<thead>
<tr>
<th>abc</th>
<th>def</th>
</tr>
</thead>
<tbody>
<tr>
<td>bar</td>
<td>baz</td>
</tr>
</tbody>
</table>
<blockquote>
<p>bar</p>
</blockquote>
<h2>E</h2>
<table>
<thead>
<tr>
<th>abc</th>
<th>def</th>
</tr>
</thead>
<tbody>
<tr>
<td>bar</td>
<td>baz</td>
</tr>
<tr>
<td>bar</td>
<td></td>
</tr>
</tbody>
</table>
<p>bar</p>
<h2>F</h2>
<p>| abc | def |
| --- |
| bar |</p>
<h2>G</h2>
<table>
<thead>
<tr>
<th>abc</th>
<th>def</th>
</tr>
</thead>
<tbody>
<tr>
<td>bar</td>
<td></td>
</tr>
<tr>
<td>bar</td>
<td>baz</td>
</tr>
</tbody>
</table>
<h2>H</h2>
<table>
<thead>
<tr>
<th>abc</th>
<th>def</th>
</tr>
</thead>
</table>
"#,
"should match examples from the GFM spec like GitHub"
);
assert_eq!(
to_html_with_options(
r"# Grave accents
## Grave accent in cell
| A | B |
|--------------|---|
| <kbd>`</kbd> | C |
## Escaped grave accent in “inline code” in cell
| A |
|-----|
| `\` |
## “Empty” inline code
| 1 | 2 | 3 |
|---|------|----|
| a | `` | |
| b | `` | `` |
| c | ` | ` |
| d | `|` |
| e | `\|` | |
| f | \| | |
## Escaped pipes in code in cells
| `\|\\` |
| --- |
| `\|\\` |
`\|\\`
",
&Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..CompileOptions::gfm()
},
..Options::gfm()
}
)?,
r"<h1>Grave accents</h1>
<h2>Grave accent in cell</h2>
<table>
<thead>
<tr>
<th>A</th>
<th>B</th>
</tr>
</thead>
<tbody>
<tr>
<td><kbd>`</kbd></td>
<td>C</td>
</tr>
</tbody>
</table>
<h2>Escaped grave accent in “inline code” in cell</h2>
<table>
<thead>
<tr>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>\</code></td>
</tr>
</tbody>
</table>
<h2>“Empty” inline code</h2>
<table>
<thead>
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>``</td>
<td></td>
</tr>
<tr>
<td>b</td>
<td>``</td>
<td>``</td>
</tr>
<tr>
<td>c</td>
<td>`</td>
<td>`</td>
</tr>
<tr>
<td>d</td>
<td>`</td>
<td>`</td>
</tr>
<tr>
<td>e</td>
<td><code>|</code></td>
<td></td>
</tr>
<tr>
<td>f</td>
<td>|</td>
<td></td>
</tr>
</tbody>
</table>
<h2>Escaped pipes in code in cells</h2>
<table>
<thead>
<tr>
<th><code>|\\</code></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>|\\</code></td>
</tr>
</tbody>
</table>
<p><code>\|\\</code></p>
",
"should match grave accent like GitHub"
);
assert_eq!(
to_html_with_options(
r###"# Code
## Indented delimiter row
a
|-
a
|-
## Indented body
| a |
| - |
| C |
| D |
| E |
"###,
&Options::gfm()
)?,
r###"<h1>Code</h1>
<h2>Indented delimiter row</h2>
<table>
<thead>
<tr>
<th>a</th>
</tr>
</thead>
</table>
<p>a
|-</p>
<h2>Indented body</h2>
<table>
<thead>
<tr>
<th>a</th>
</tr>
</thead>
<tbody>
<tr>
<td>C</td>
</tr>
<tr>
<td>D</td>
</tr>
</tbody>
</table>
<pre><code>| E |
</code></pre>
"###,
"should match indent like GitHub"
);
assert_eq!(
to_html_with_options(
r###"## Blank line
a
:-
b
c
## Block quote
a
:-
b
> c
## Code (fenced)
a
:-
b
```
c
```
## Code (indented)
a
:-
b
c
## Definition
a
:-
b
[c]: d
## Heading (atx)
a
:-
b
# c
## Heading (setext) (rank 1)
a
:-
b
==
c
## Heading (setext) (rank 2)
a
:-
b
--
c
## HTML (flow, kind 1: raw)
a
:-
b
<pre>
a
</pre>
## HTML (flow, kind 2: comment)
a
:-
b
<!-- c -->
## HTML (flow, kind 3: instruction)
a
:-
b
<? c ?>
## HTML (flow, kind 4: declaration)
a
:-
b
<!C>
## HTML (flow, kind 5: cdata)
a
:-
b
<![CDATA[c]]>
## HTML (flow, kind 6: basic)
a
:-
b
<div>
## HTML (flow, kind 7: complete)
a
:-
b
<x>
## List (ordered, 1)
a
:-
b
1. c
## List (ordered, other)
a
:-
b
2. c
## List (unordered)
a
:-
b
* c
## List (unordered, blank)
a
:-
b
*
c
## List (unordered, blank start)
a
:-
b
*
c
## Thematic break
a
:-
b
***
"###,
&Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..CompileOptions::gfm()
},
..Options::gfm()
}
)?,
r#"<h2>Blank line</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<p>c</p>
<h2>Block quote</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<blockquote>
<p>c</p>
</blockquote>
<h2>Code (fenced)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<pre><code>c
</code></pre>
<h2>Code (indented)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<pre><code>c
</code></pre>
<h2>Definition</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
<tr>
<td align="left">[c]: d</td>
</tr>
</tbody>
</table>
<h2>Heading (atx)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<h1>c</h1>
<h2>Heading (setext) (rank 1)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
<tr>
<td align="left">==</td>
</tr>
<tr>
<td align="left">c</td>
</tr>
</tbody>
</table>
<h2>Heading (setext) (rank 2)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
<tr>
<td align="left">--</td>
</tr>
<tr>
<td align="left">c</td>
</tr>
</tbody>
</table>
<h2>HTML (flow, kind 1: raw)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<pre>
a
</pre>
<h2>HTML (flow, kind 2: comment)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<!-- c -->
<h2>HTML (flow, kind 3: instruction)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<? c ?>
<h2>HTML (flow, kind 4: declaration)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<!C>
<h2>HTML (flow, kind 5: cdata)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<![CDATA[c]]>
<h2>HTML (flow, kind 6: basic)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<div>
<h2>HTML (flow, kind 7: complete)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<x>
<h2>List (ordered, 1)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<ol>
<li>c</li>
</ol>
<h2>List (ordered, other)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<ol start="2">
<li>c</li>
</ol>
<h2>List (unordered)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<ul>
<li>c</li>
</ul>
<h2>List (unordered, blank)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<ul>
<li></li>
</ul>
<p>c</p>
<h2>List (unordered, blank start)</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<ul>
<li>c</li>
</ul>
<h2>Thematic break</h2>
<table>
<thead>
<tr>
<th align="left">a</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">b</td>
</tr>
</tbody>
</table>
<hr />
"#,
"should match interrupt like GitHub"
);
assert_eq!(
to_html_with_options(
r###"# Loose
## Loose
Header 1 | Header 2
-------- | --------
Cell 1 | Cell 2
Cell 3 | Cell 4
## One “column”, loose
a
-
b
## No pipe in first row
a
| - |
"###,
&Options::gfm()
)?,
r###"<h1>Loose</h1>
<h2>Loose</h2>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</tbody>
</table>
<h2>One “column”, loose</h2>
<h2>a</h2>
<p>b</p>
<h2>No pipe in first row</h2>
<table>
<thead>
<tr>
<th>a</th>
</tr>
</thead>
</table>
"###,
"should match loose tables like GitHub"
);
assert_eq!(
to_html_with_options(
r"# Some more escapes
| Head |
| ------------- |
| A | Alpha |
| B \| Bravo |
| C \\| Charlie |
| D \\\| Delta |
| E \\\\| Echo |
Note: GH has a bug where in case C and E, the escaped escape is treated as a
normal escape: <https://github.com/github/cmark-gfm/issues/277>.
",
&Options::gfm()
)?,
r#"<h1>Some more escapes</h1>
<table>
<thead>
<tr>
<th>Head</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
</tr>
<tr>
<td>B | Bravo</td>
</tr>
<tr>
<td>C \</td>
</tr>
<tr>
<td>D \| Delta</td>
</tr>
<tr>
<td>E \\</td>
</tr>
</tbody>
</table>
<p>Note: GH has a bug where in case C and E, the escaped escape is treated as a
normal escape: <a href="https://github.com/github/cmark-gfm/issues/277">https://github.com/github/cmark-gfm/issues/277</a>.</p>
"#,
"should match loose escapes like GitHub"
);
assert_eq!(
to_mdast(
"| none | left | right | center |\n| - | :- | -: | :-: |\n| a |\n| b | c | d | e | f |",
&ParseOptions::gfm()
)?,
Node::Root(Root {
children: vec![Node::Table(Table {
align: vec![
AlignKind::None,
AlignKind::Left,
AlignKind::Right,
AlignKind::Center
],
children: vec![
Node::TableRow(TableRow {
children: vec![
Node::TableCell(TableCell {
children: vec![Node::Text(Text {
value: "none".into(),
position: Some(Position::new(1, 3, 2, 1, 7, 6))
}),],
position: Some(Position::new(1, 1, 0, 1, 8, 7))
}),
Node::TableCell(TableCell {
children: vec![Node::Text(Text {
value: "left".into(),
position: Some(Position::new(1, 10, 9, 1, 14, 13))
}),],
position: Some(Position::new(1, 8, 7, 1, 15, 14))
}),
Node::TableCell(TableCell {
children: vec![Node::Text(Text {
value: "right".into(),
position: Some(Position::new(1, 17, 16, 1, 22, 21))
}),],
position: Some(Position::new(1, 15, 14, 1, 23, 22))
}),
Node::TableCell(TableCell {
children: vec![Node::Text(Text {
value: "center".into(),
position: Some(Position::new(1, 25, 24, 1, 31, 30))
}),],
position: Some(Position::new(1, 23, 22, 1, 33, 32))
}),
],
position: Some(Position::new(1, 1, 0, 1, 33, 32))
}),
Node::TableRow(TableRow {
children: vec![Node::TableCell(TableCell {
children: vec![Node::Text(Text {
value: "a".into(),
position: Some(Position::new(3, 3, 57, 3, 4, 58))
}),],
position: Some(Position::new(3, 1, 55, 3, 6, 60))
}),],
position: Some(Position::new(3, 1, 55, 3, 6, 60))
}),
Node::TableRow(TableRow {
children: vec![
Node::TableCell(TableCell {
children: vec![Node::Text(Text {
value: "b".into(),
position: Some(Position::new(4, 3, 63, 4, 4, 64))
}),],
position: Some(Position::new(4, 1, 61, 4, 5, 65))
}),
Node::TableCell(TableCell {
children: vec![Node::Text(Text {
value: "c".into(),
position: Some(Position::new(4, 7, 67, 4, 8, 68))
}),],
position: Some(Position::new(4, 5, 65, 4, 9, 69))
}),
Node::TableCell(TableCell {
children: vec![Node::Text(Text {
value: "d".into(),
position: Some(Position::new(4, 11, 71, 4, 12, 72))
}),],
position: Some(Position::new(4, 9, 69, 4, 13, 73))
}),
Node::TableCell(TableCell {
children: vec![Node::Text(Text {
value: "e".into(),
position: Some(Position::new(4, 15, 75, 4, 16, 76))
}),],
position: Some(Position::new(4, 13, 73, 4, 17, 77))
}),
Node::TableCell(TableCell {
children: vec![Node::Text(Text {
value: "f".into(),
position: Some(Position::new(4, 19, 79, 4, 20, 80))
}),],
position: Some(Position::new(4, 17, 77, 4, 22, 82))
}),
],
position: Some(Position::new(4, 1, 61, 4, 22, 82))
}),
],
position: Some(Position::new(1, 1, 0, 4, 22, 82))
})],
position: Some(Position::new(1, 1, 0, 4, 22, 82))
}),
"should support GFM tables as `Table`, `TableRow`, `TableCell`s in mdast"
);
assert_eq!(
to_mdast("| `a\\|b` |\n| - |", &ParseOptions::gfm())?,
Node::Root(Root {
children: vec![Node::Table(Table {
align: vec![AlignKind::None,],
children: vec![Node::TableRow(TableRow {
children: vec![Node::TableCell(TableCell {
children: vec![Node::InlineCode(InlineCode {
value: "a|b".into(),
position: Some(Position::new(1, 3, 2, 1, 9, 8))
}),],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
}),],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
}),],
position: Some(Position::new(1, 1, 0, 2, 6, 16))
})],
position: Some(Position::new(1, 1, 0, 2, 6, 16))
}),
"should support weird pipe escapes in code in tables"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/gfm_tagfilter.rs | Rust | #![allow(clippy::needless_raw_string_hashes)]
// To do: clippy introduced this in 1.72 but breaks when it fixes it.
// Remove when solved.
use markdown::{message, to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
#[test]
fn gfm_tagfilter() -> Result<(), message::Message> {
assert_eq!(
to_html_with_options(
"<iframe>",
&Options {
compile: CompileOptions {
allow_dangerous_html: true,
..Default::default()
},
..Default::default()
}
)?,
"<iframe>",
"should not filter by default"
);
assert_eq!(
to_html_with_options(
"a <i>\n<script>",
&Options {
compile: CompileOptions {
gfm_tagfilter: true,
..Default::default()
},
..Default::default()
}
)?,
"<p>a <i></p>\n<script>",
"should not turn `allow_dangerous_html` on"
);
assert_eq!(
to_html_with_options(
"<iframe>",
&Options {
compile: CompileOptions {
allow_dangerous_html: true,
gfm_tagfilter: true,
..Default::default()
},
..Default::default()
}
)?,
"<iframe>",
"should filter"
);
assert_eq!(
to_html_with_options(
"<iframe\n>",
&Options {
compile: CompileOptions {
allow_dangerous_html: true,
gfm_tagfilter: true,
..Default::default()
},
..Default::default()
}
)?,
"<iframe\n>",
"should filter when followed by a line ending (1)"
);
assert_eq!(
to_html_with_options(
"<div\n>",
&Options {
compile: CompileOptions {
allow_dangerous_html: true,
gfm_tagfilter: true,
..Default::default()
},
..Default::default()
}
)?,
"<div\n>",
"should filter when followed by a line ending (2)"
);
assert_eq!(
to_html_with_options(
r##"
<title>
<div title="<title>"></div>
<span title="<title>"></span>
<div><title></title></div>
<span><title></title></span>
<b><textarea></textarea></b>
<script/src="#">
<SCRIPT SRC=http://xss.rocks/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<IMG SRC=javascript:alert('XSS')>
<IMG SRC=`javascript:alert("RSnake says, 'XSS'")`>
<IMG """><SCRIPT>alert("XSS")</SCRIPT>"\>
<SCRIPT/XSS SRC="http://xss.rocks/xss.js"></SCRIPT>
<BODY onload!#$%&()*~+-_.,:;?@[/|\]^`=alert("XSS")>
<<SCRIPT>alert("XSS");//\<</SCRIPT>
<SCRIPT SRC=http://xss.rocks/xss.js?< B >
<SCRIPT SRC=//xss.rocks/.j>
</TITLE><SCRIPT>alert("XSS");</SCRIPT>
<STYLE>li {list-style-image: url("javascript:alert('XSS')");}</STYLE><UL><LI>XSS</br>
javascript:/*--></title></style></textarea></script></xmp><svg/onload='+/"/+/onmouseover=1/+/[*/[]/+alert(1)//'>
<STYLE>@import'http://xss.rocks/xss.css';</STYLE>
"##,
&Options {
compile: CompileOptions {
allow_dangerous_html: true,
gfm_tagfilter: true,
..Default::default()
},
..Default::default()
}
)?,
r###"<title>
<div title="<title>"></div>
<p><span title="<title>"></span></p>
<div><title></title></div>
<p><span><title></title></span></p>
<p><b><textarea></textarea></b></p>
<p><script/src="#"></p>
<SCRIPT SRC=http://xss.rocks/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<p><IMG SRC=javascript:alert('XSS')></p>
<p><IMG SRC=<code>javascript:alert("RSnake says, 'XSS'")</code>></p>
<p><IMG """><SCRIPT>alert("XSS")</SCRIPT>"></p>
<p><SCRIPT/XSS SRC="http://xss.rocks/xss.js"></SCRIPT></p>
<BODY onload!#$%&()*~+-_.,:;?@[/|\]^`=alert("XSS")>
<p><<SCRIPT>alert("XSS");//<</SCRIPT></p>
<SCRIPT SRC=http://xss.rocks/xss.js?< B >
<SCRIPT SRC=//xss.rocks/.j>
</TITLE><SCRIPT>alert("XSS");</SCRIPT>
<STYLE>li {list-style-image: url("javascript:alert('XSS')");}</STYLE><UL><LI>XSS</br>
<p>javascript:/<em>--></title></style></textarea></script></xmp><svg/onload='+/"/+/onmouseover=1/+/[</em>/[]/+alert(1)//'></p>
<STYLE>@import'http://xss.rocks/xss.css';</STYLE>
"###,
"should handle things like GitHub"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/gfm_task_list_item.rs | Rust | use markdown::{
mdast::{Emphasis, List, ListItem, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn gfm_task_list_item() -> Result<(), message::Message> {
assert_eq!(
to_html("* [x] y."),
"<ul>\n<li>[x] y.</li>\n</ul>",
"should ignore task list item checks by default"
);
assert_eq!(
to_html_with_options("* [x] y.", &Options::gfm())?,
"<ul>\n<li><input type=\"checkbox\" disabled=\"\" checked=\"\" /> y.</li>\n</ul>",
"should support task list item checks"
);
assert_eq!(
to_html_with_options("* [ ] z.", &Options::gfm())?,
"<ul>\n<li><input type=\"checkbox\" disabled=\"\" /> z.</li>\n</ul>",
"should support unchecked task list item checks"
);
assert_eq!(
to_html_with_options(
"* [x] y.",
&Options {
parse: ParseOptions::gfm(),
compile: CompileOptions {
gfm_task_list_item_checkable: true,
..CompileOptions::gfm()
}
}
)?,
"<ul>\n<li><input type=\"checkbox\" checked=\"\" /> y.</li>\n</ul>",
"should support option for enabled (checkable) task list item checks"
);
assert_eq!(
to_html_with_options("*\n [x]", &Options::gfm())?,
"<ul>\n<li>[x]</li>\n</ul>",
"should not support laziness (1)"
);
assert_eq!(
to_html_with_options("*\n[x]", &Options::gfm())?,
"<ul>\n<li></li>\n</ul>\n<p>[x]</p>",
"should not support laziness (2)"
);
assert_eq!(
to_html_with_options(
&r###"
* [ ] foo
* [x] bar
- [x] foo
- [ ] bar
- [x] baz
- [ ] bim
+ [ ] Unchecked?
* [x] Checked?
+ [y] What is this even?
- [n]: #
[ ] After a definition
+ [ ] In a setext heading
=======================
* In the…
[ ] Second paragraph
- [ ] With a tab
+ [X] With an upper case `x`
* [
] In a lazy line
- [ ] With two spaces
+ [x] Two spaces indent
* [x] Three spaces indent
- [x] Four spaces indent
+ [x] Five spaces indent
[ ] here?
* > [ ] here?
- [ ]No space?
Empty?
+ [ ]
Space after:
+ [ ]␠
* [ ]␠Text.
Tab after:
+ [ ]␉
* [ ]␉Text.
EOL after:
+ [ ]
* [ ]
Text.
-
[ ] after blank?
+ # [ ] ATX Heading
> * [x] In a list in a block quote
"###
.replace('␠', " ")
.replace('␉', "\t"),
&Options::gfm()
)?,
r#"<ul>
<li><input type="checkbox" disabled="" /> foo</li>
<li><input type="checkbox" disabled="" checked="" /> bar</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" checked="" /> foo
<ul>
<li><input type="checkbox" disabled="" /> bar</li>
<li><input type="checkbox" disabled="" checked="" /> baz</li>
</ul>
</li>
<li><input type="checkbox" disabled="" /> bim</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" /> Unchecked?</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" checked="" /> Checked?</li>
</ul>
<ul>
<li>[y] What is this even?</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" /> After a definition</li>
</ul>
<ul>
<li>
<h1>[ ] In a setext heading</h1>
</li>
</ul>
<ul>
<li>
<p>In the…</p>
<p>[ ] Second paragraph</p>
</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" /> With a tab</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" checked="" /> With an upper case <code>x</code></li>
</ul>
<ul>
<li><input type="checkbox" disabled="" /> In a lazy line</li>
</ul>
<ul>
<li>[ ] With two spaces</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" checked="" /> Two spaces indent</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" checked="" /> Three spaces indent</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" checked="" /> Four spaces indent</li>
</ul>
<ul>
<li>
<pre><code>[x] Five spaces indent
</code></pre>
</li>
</ul>
<p>[ ] here?</p>
<ul>
<li>
<blockquote>
<p>[ ] here?</p>
</blockquote>
</li>
</ul>
<ul>
<li>[ ]No space?</li>
</ul>
<p>Empty?</p>
<ul>
<li>[ ]</li>
</ul>
<p>Space after:</p>
<ul>
<li>[ ]</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" /> Text.</li>
</ul>
<p>Tab after:</p>
<ul>
<li>[ ]</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" /> Text.</li>
</ul>
<p>EOL after:</p>
<ul>
<li>[ ]</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" />
Text.</li>
</ul>
<ul>
<li><input type="checkbox" disabled="" /> after blank?</li>
</ul>
<ul>
<li>
<h1>[ ] ATX Heading</h1>
</li>
</ul>
<blockquote>
<ul>
<li><input type="checkbox" disabled="" checked="" /> In a list in a block quote</li>
</ul>
</blockquote>
"#,
"should handle things like GitHub"
);
assert_eq!(
to_mdast("* [x] a\n* [ ] b\n* c", &ParseOptions::gfm())?,
Node::Root(Root {
children: vec![Node::List(List {
ordered: false,
spread: false,
start: None,
children: vec![
Node::ListItem(ListItem {
checked: Some(true),
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "a".into(),
position: Some(Position::new(1, 7, 6, 1, 8, 7))
}),],
position: Some(Position::new(1, 7, 6, 1, 8, 7))
})],
position: Some(Position::new(1, 1, 0, 1, 8, 7))
}),
Node::ListItem(ListItem {
checked: Some(false),
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "b".into(),
position: Some(Position::new(2, 7, 14, 2, 8, 15))
}),],
position: Some(Position::new(2, 7, 14, 2, 8, 15))
})],
position: Some(Position::new(2, 1, 8, 2, 8, 15))
}),
Node::ListItem(ListItem {
checked: None,
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "c".into(),
position: Some(Position::new(3, 3, 18, 3, 4, 19))
}),],
position: Some(Position::new(3, 3, 18, 3, 4, 19))
})],
position: Some(Position::new(3, 1, 16, 3, 4, 19))
}),
],
position: Some(Position::new(1, 1, 0, 3, 4, 19))
})],
position: Some(Position::new(1, 1, 0, 3, 4, 19))
}),
"should support task list items as `checked` fields on `ListItem`s in mdast"
);
assert_eq!(
to_mdast(
"* [x]\r\n a\n* [ ] b\n* [x]\t \r*c*",
&ParseOptions::gfm()
)?,
Node::Root(Root {
children: vec![Node::List(List {
ordered: false,
spread: false,
start: None,
children: vec![
Node::ListItem(ListItem {
checked: Some(true),
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "a".into(),
position: Some(Position::new(2, 1, 7, 2, 4, 10))
}),],
position: Some(Position::new(2, 1, 7, 2, 4, 10))
})],
position: Some(Position::new(1, 1, 0, 2, 4, 10))
}),
Node::ListItem(ListItem {
checked: Some(false),
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: " b".into(),
position: Some(Position::new(3, 7, 17, 3, 10, 20))
}),],
position: Some(Position::new(3, 7, 17, 3, 10, 20))
})],
position: Some(Position::new(3, 1, 11, 3, 10, 20))
}),
Node::ListItem(ListItem {
checked: Some(true),
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Emphasis(Emphasis {
children: vec![Node::Text(Text {
value: "c".into(),
position: Some(Position::new(5, 2, 30, 5, 3, 31))
}),],
position: Some(Position::new(5, 1, 29, 5, 4, 32))
})],
position: Some(Position::new(5, 1, 29, 5, 4, 32))
})],
position: Some(Position::new(4, 1, 21, 5, 4, 32))
}),
],
position: Some(Position::new(1, 1, 0, 5, 4, 32))
})],
position: Some(Position::new(1, 1, 0, 5, 4, 32))
}),
"should handle lots of whitespace after checkbox, and non-text"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/hard_break_escape.rs | Rust | use markdown::{
mdast::{Break, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn hard_break_escape() -> Result<(), message::Message> {
assert_eq!(
to_html("foo\\\nbaz"),
"<p>foo<br />\nbaz</p>",
"should support a backslash to form a hard break"
);
assert_eq!(
to_html("foo\\\n bar"),
"<p>foo<br />\nbar</p>",
"should support leading spaces after an escape hard break"
);
assert_eq!(
to_html("*foo\\\nbar*"),
"<p><em>foo<br />\nbar</em></p>",
"should support escape hard breaks in emphasis"
);
assert_eq!(
to_html("``code\\\ntext``"),
"<p><code>code\\ text</code></p>",
"should not support escape hard breaks in code"
);
assert_eq!(
to_html("foo\\"),
"<p>foo\\</p>",
"should not support escape hard breaks at the end of a paragraph"
);
assert_eq!(
to_html("### foo\\"),
"<h3>foo\\</h3>",
"should not support escape hard breaks at the end of a heading"
);
assert_eq!(
to_html_with_options(
"a\\\nb",
&Options {
parse: ParseOptions {
constructs: Constructs {
hard_break_escape: false,
..Constructs::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>a\\\nb</p>",
"should support turning off hard break (escape)"
);
assert_eq!(
to_mdast("a\\\nb.", &Default::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a".into(),
position: Some(Position::new(1, 1, 0, 1, 2, 1))
}),
Node::Break(Break {
position: Some(Position::new(1, 2, 1, 2, 1, 3))
}),
Node::Text(Text {
value: "b.".into(),
position: Some(Position::new(2, 1, 3, 2, 3, 5))
}),
],
position: Some(Position::new(1, 1, 0, 2, 3, 5))
})],
position: Some(Position::new(1, 1, 0, 2, 3, 5))
}),
"should support hard break (escape) as `Break`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/hard_break_trailing.rs | Rust | use markdown::{
mdast::{Break, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn hard_break_trailing() -> Result<(), message::Message> {
assert_eq!(
to_html("foo \nbaz"),
"<p>foo<br />\nbaz</p>",
"should support two trailing spaces to form a hard break"
);
assert_eq!(
to_html("foo \nbaz"),
"<p>foo<br />\nbaz</p>",
"should support multiple trailing spaces"
);
assert_eq!(
to_html("foo \n bar"),
"<p>foo<br />\nbar</p>",
"should support leading spaces after a trailing hard break"
);
assert_eq!(
to_html("*foo \nbar*"),
"<p><em>foo<br />\nbar</em></p>",
"should support trailing hard breaks in emphasis"
);
assert_eq!(
to_html("`code \ntext`"),
"<p><code>code text</code></p>",
"should not support trailing hard breaks in code"
);
assert_eq!(
to_html("foo "),
"<p>foo</p>",
"should not support trailing hard breaks at the end of a paragraph"
);
assert_eq!(
to_html("### foo "),
"<h3>foo</h3>",
"should not support trailing hard breaks at the end of a heading"
);
assert_eq!(
to_html("aaa \t\nbb"),
"<p>aaa\nbb</p>",
"should support a mixed line suffix (1)"
);
assert_eq!(
to_html("aaa\t \nbb"),
"<p>aaa\nbb</p>",
"should support a mixed line suffix (2)"
);
assert_eq!(
to_html("aaa \t \nbb"),
"<p>aaa\nbb</p>",
"should support a mixed line suffix (3)"
);
assert_eq!(
to_html("aaa\0 \nbb"),
"<p>aaa�<br />\nbb</p>",
"should support a hard break after a replacement character"
);
assert_eq!(
to_html("aaa\0\t\nbb"),
"<p>aaa�\nbb</p>",
"should support a line suffix after a replacement character"
);
assert_eq!(
to_html("*a* \nbb"),
"<p><em>a</em><br />\nbb</p>",
"should support a hard break after a span"
);
assert_eq!(
to_html("*a*\t\nbb"),
"<p><em>a</em>\nbb</p>",
"should support a line suffix after a span"
);
assert_eq!(
to_html("*a* \t\nbb"),
"<p><em>a</em>\nbb</p>",
"should support a mixed line suffix after a span (1)"
);
assert_eq!(
to_html("*a*\t \nbb"),
"<p><em>a</em>\nbb</p>",
"should support a mixed line suffix after a span (2)"
);
assert_eq!(
to_html("*a* \t \nbb"),
"<p><em>a</em>\nbb</p>",
"should support a mixed line suffix after a span (3)"
);
assert_eq!(
to_html_with_options(
"a \nb",
&Options {
parse: ParseOptions {
constructs: Constructs {
hard_break_trailing: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>a\nb</p>",
"should support turning off hard break (trailing)"
);
assert_eq!(
to_mdast("a \nb.", &Default::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a".into(),
position: Some(Position::new(1, 1, 0, 1, 2, 1))
}),
Node::Break(Break {
position: Some(Position::new(1, 2, 1, 2, 1, 4))
}),
Node::Text(Text {
value: "b.".into(),
position: Some(Position::new(2, 1, 4, 2, 3, 6))
}),
],
position: Some(Position::new(1, 1, 0, 2, 3, 6))
})],
position: Some(Position::new(1, 1, 0, 2, 3, 6))
}),
"should support hard break (trailing) as `Break`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/heading_atx.rs | Rust | use markdown::{
mdast::{Heading, Node, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn heading_atx() -> Result<(), message::Message> {
assert_eq!(
to_html("# foo"),
"<h1>foo</h1>",
"should support a heading w/ rank 1"
);
assert_eq!(
to_html("## foo"),
"<h2>foo</h2>",
"should support a heading w/ rank 2"
);
assert_eq!(
to_html("### foo"),
"<h3>foo</h3>",
"should support a heading w/ rank 3"
);
assert_eq!(
to_html("#### foo"),
"<h4>foo</h4>",
"should support a heading w/ rank 4"
);
assert_eq!(
to_html("##### foo"),
"<h5>foo</h5>",
"should support a heading w/ rank 5"
);
assert_eq!(
to_html("###### foo"),
"<h6>foo</h6>",
"should support a heading w/ rank 6"
);
assert_eq!(
to_html("####### foo"),
"<p>####### foo</p>",
"should not support a heading w/ rank 7"
);
assert_eq!(
to_html("#5 bolt"),
"<p>#5 bolt</p>",
"should not support a heading for a number sign not followed by whitespace (1)"
);
assert_eq!(
to_html("#hashtag"),
"<p>#hashtag</p>",
"should not support a heading for a number sign not followed by whitespace (2)"
);
assert_eq!(
to_html("\\## foo"),
"<p>## foo</p>",
"should not support a heading for an escaped number sign"
);
assert_eq!(
to_html("# foo *bar* \\*baz\\*"),
"<h1>foo <em>bar</em> *baz*</h1>",
"should support text content in headings"
);
assert_eq!(
to_html("# foo "),
"<h1>foo</h1>",
"should support arbitrary initial and final whitespace"
);
assert_eq!(
to_html(" ### foo"),
"<h3>foo</h3>",
"should support an initial space"
);
assert_eq!(
to_html(" ## foo"),
"<h2>foo</h2>",
"should support two initial spaces"
);
assert_eq!(
to_html(" # foo"),
"<h1>foo</h1>",
"should support three initial spaces"
);
assert_eq!(
to_html(" # foo"),
"<pre><code># foo\n</code></pre>",
"should not support four initial spaces"
);
assert_eq!(
to_html("foo\n # bar"),
"<p>foo\n# bar</p>",
"should not support four initial spaces when interrupting"
);
assert_eq!(
to_html("## foo ##"),
"<h2>foo</h2>",
"should support a closing sequence (1)"
);
assert_eq!(
to_html(" ### bar ###"),
"<h3>bar</h3>",
"should support a closing sequence (2)"
);
assert_eq!(
to_html("# foo ##################################"),
"<h1>foo</h1>",
"should support a closing sequence w/ an arbitrary number of number signs (1)"
);
assert_eq!(
to_html("##### foo ##"),
"<h5>foo</h5>",
"should support a closing sequence w/ an arbitrary number of number signs (2)"
);
assert_eq!(
to_html("### foo ### "),
"<h3>foo</h3>",
"should support trailing whitespace after a closing sequence"
);
assert_eq!(
to_html("### foo ### b"),
"<h3>foo ### b</h3>",
"should not support other content after a closing sequence"
);
assert_eq!(
to_html("# foo#"),
"<h1>foo#</h1>",
"should not support a closing sequence w/o whitespace before it"
);
assert_eq!(
to_html("### foo \\###"),
"<h3>foo ###</h3>",
"should not support an “escaped” closing sequence (1)"
);
assert_eq!(
to_html("## foo #\\##"),
"<h2>foo ###</h2>",
"should not support an “escaped” closing sequence (2)"
);
assert_eq!(
to_html("# foo \\#"),
"<h1>foo #</h1>",
"should not support an “escaped” closing sequence (3)"
);
assert_eq!(
to_html("****\n## foo\n****"),
"<hr />\n<h2>foo</h2>\n<hr />",
"should support atx headings when not surrounded by blank lines"
);
assert_eq!(
to_html("Foo bar\n# baz\nBar foo"),
"<p>Foo bar</p>\n<h1>baz</h1>\n<p>Bar foo</p>",
"should support atx headings interrupting paragraphs"
);
assert_eq!(
to_html("## \n#\n### ###"),
"<h2></h2>\n<h1></h1>\n<h3></h3>",
"should support empty atx headings (1)"
);
assert_eq!(
to_html("#\na\n# b"),
"<h1></h1>\n<p>a</p>\n<h1>b</h1>",
"should support empty atx headings (2)"
);
assert_eq!(
to_html("> #\na"),
"<blockquote>\n<h1></h1>\n</blockquote>\n<p>a</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html("> a\n#"),
"<blockquote>\n<p>a</p>\n</blockquote>\n<h1></h1>",
"should not support lazyness (2)"
);
assert_eq!(
to_html_with_options(
"# a",
&Options {
parse: ParseOptions {
constructs: Constructs {
heading_atx: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p># a</p>",
"should support turning off heading (atx)"
);
assert_eq!(
to_mdast("## alpha #", &Default::default())?,
Node::Root(Root {
children: vec![Node::Heading(Heading {
depth: 2,
children: vec![Node::Text(Text {
value: "alpha".into(),
position: Some(Position::new(1, 4, 3, 1, 9, 8))
}),],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
})],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
}),
"should support heading (atx) as `Heading`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/heading_setext.rs | Rust | use markdown::{
mdast::{Heading, Node, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn heading_setext() -> Result<(), message::Message> {
assert_eq!(
to_html("Foo *bar*\n========="),
"<h1>Foo <em>bar</em></h1>",
"should support a heading w/ an equals to (rank of 1)"
);
assert_eq!(
to_html("Foo *bar*\n---------"),
"<h2>Foo <em>bar</em></h2>",
"should support a heading w/ a dash (rank of 2)"
);
assert_eq!(
to_html("Foo *bar\nbaz*\n===="),
"<h1>Foo <em>bar\nbaz</em></h1>",
"should support line endings in setext headings"
);
assert_eq!(
to_html(" Foo *bar\nbaz*\t\n===="),
"<h1>Foo <em>bar\nbaz</em></h1>",
"should not include initial and final whitespace around content"
);
assert_eq!(
to_html("Foo\n-------------------------"),
"<h2>Foo</h2>",
"should support long underlines"
);
assert_eq!(
to_html("Foo\n="),
"<h1>Foo</h1>",
"should support short underlines"
);
assert_eq!(
to_html(" Foo\n ==="),
"<h1>Foo</h1>",
"should support indented content w/ 1 space"
);
assert_eq!(
to_html(" Foo\n---"),
"<h2>Foo</h2>",
"should support indented content w/ 2 spaces"
);
assert_eq!(
to_html(" Foo\n---"),
"<h2>Foo</h2>",
"should support indented content w/ 3 spaces"
);
assert_eq!(
to_html(" Foo\n ---"),
"<pre><code>Foo\n---\n</code></pre>",
"should not support too much indented content (1)"
);
assert_eq!(
to_html(" Foo\n---"),
"<pre><code>Foo\n</code></pre>\n<hr />",
"should not support too much indented content (2)"
);
assert_eq!(
to_html("Foo\n ---- "),
"<h2>Foo</h2>",
"should support initial and final whitespace around the underline"
);
assert_eq!(
to_html("Foo\n ="),
"<h1>Foo</h1>",
"should support whitespace before underline"
);
assert_eq!(
to_html("Foo\n ="),
"<p>Foo\n=</p>",
"should not support too much whitespace before underline (1)"
);
assert_eq!(
to_html("Foo\n\t="),
"<p>Foo\n=</p>",
"should not support too much whitespace before underline (2)"
);
assert_eq!(
to_html("Foo\n= ="),
"<p>Foo\n= =</p>",
"should not support whitespace in the underline (1)"
);
assert_eq!(
to_html("Foo\n--- -"),
"<p>Foo</p>\n<hr />",
"should not support whitespace in the underline (2)"
);
assert_eq!(
to_html("Foo \n-----"),
"<h2>Foo</h2>",
"should not support a hard break w/ spaces at the end"
);
assert_eq!(
to_html("Foo\\\n-----"),
"<h2>Foo\\</h2>",
"should not support a hard break w/ backslash at the end"
);
assert_eq!(
to_html("`Foo\n----\n`"),
"<h2>`Foo</h2>\n<p>`</p>",
"should precede over inline constructs (1)"
);
assert_eq!(
to_html("<a title=\"a lot\n---\nof dashes\"/>"),
"<h2><a title="a lot</h2>\n<p>of dashes"/></p>",
"should precede over inline constructs (2)"
);
assert_eq!(
to_html("> Foo\n---"),
"<blockquote>\n<p>Foo</p>\n</blockquote>\n<hr />",
"should not allow underline to be lazy (1)"
);
assert_eq!(
to_html("> foo\nbar\n==="),
"<blockquote>\n<p>foo\nbar\n===</p>\n</blockquote>",
"should not allow underline to be lazy (2)"
);
assert_eq!(
to_html("- Foo\n---"),
"<ul>\n<li>Foo</li>\n</ul>\n<hr />",
"should not allow underline to be lazy (3)"
);
assert_eq!(
to_html("Foo\nBar\n---"),
"<h2>Foo\nBar</h2>",
"should support line endings in setext headings"
);
assert_eq!(
to_html("---\nFoo\n---\nBar\n---\nBaz"),
"<hr />\n<h2>Foo</h2>\n<h2>Bar</h2>\n<p>Baz</p>",
"should support adjacent setext headings"
);
assert_eq!(
to_html("\n===="),
"<p>====</p>",
"should not support empty setext headings"
);
assert_eq!(
to_html("---\n---"),
"<hr />\n<hr />",
"should prefer other constructs over setext headings (1)"
);
assert_eq!(
to_html("- foo\n-----"),
"<ul>\n<li>foo</li>\n</ul>\n<hr />",
"should prefer other constructs over setext headings (2)"
);
assert_eq!(
to_html(" foo\n---"),
"<pre><code>foo\n</code></pre>\n<hr />",
"should prefer other constructs over setext headings (3)"
);
assert_eq!(
to_html("> foo\n-----"),
"<blockquote>\n<p>foo</p>\n</blockquote>\n<hr />",
"should prefer other constructs over setext headings (4)"
);
assert_eq!(
to_html("\\> foo\n------"),
"<h2>> foo</h2>",
"should support starting w/ character escapes"
);
assert_eq!(
to_html("Foo\nbar\n---\nbaz"),
"<h2>Foo\nbar</h2>\n<p>baz</p>",
"paragraph and heading interplay (1)"
);
assert_eq!(
to_html("Foo\n\nbar\n---\nbaz"),
"<p>Foo</p>\n<h2>bar</h2>\n<p>baz</p>",
"paragraph and heading interplay (2)"
);
assert_eq!(
to_html("Foo\nbar\n\n---\n\nbaz"),
"<p>Foo\nbar</p>\n<hr />\n<p>baz</p>",
"paragraph and heading interplay (3)"
);
assert_eq!(
to_html("Foo\nbar\n* * *\nbaz"),
"<p>Foo\nbar</p>\n<hr />\n<p>baz</p>",
"paragraph and heading interplay (4)"
);
assert_eq!(
to_html("Foo\nbar\n\\---\nbaz"),
"<p>Foo\nbar\n---\nbaz</p>",
"paragraph and heading interplay (5)"
);
// Extra:
assert_eq!(
to_html("Foo \nbar\n-----"),
"<h2>Foo<br />\nbar</h2>",
"should support a hard break w/ spaces in between"
);
assert_eq!(
to_html("Foo\\\nbar\n-----"),
"<h2>Foo<br />\nbar</h2>",
"should support a hard break w/ backslash in between"
);
assert_eq!(
to_html("a\n-\nb"),
"<h2>a</h2>\n<p>b</p>",
"should prefer a setext heading over an interrupting list"
);
assert_eq!(
to_html("[a]: b\n=\n="),
"<h1>=</h1>",
"should support a two setext heading underlines after a definition, as a setext heading"
);
assert_eq!(
to_html("> ===\na"),
"<blockquote>\n<p>===\na</p>\n</blockquote>",
"should not support lazyness (1)"
);
assert_eq!(
to_html("> a\n==="),
"<blockquote>\n<p>a\n===</p>\n</blockquote>",
"should not support lazyness (2)"
);
assert_eq!(
to_html("a\n- ==="),
"<p>a</p>\n<ul>\n<li>===</li>\n</ul>",
"should not support piercing (1)"
);
assert_eq!(
to_html("a\n* ---"),
"<p>a</p>\n<ul>\n<li>\n<hr />\n</li>\n</ul>",
"should not support piercing (2)"
);
assert_eq!(
to_html_with_options(
"a\n-",
&Options {
parse: ParseOptions {
constructs: Constructs {
heading_setext: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>a\n-</p>",
"should support turning off setext underlines"
);
assert_eq!(
to_mdast("alpha\nbravo\n==", &Default::default())?,
Node::Root(Root {
children: vec![Node::Heading(Heading {
depth: 1,
children: vec![Node::Text(Text {
value: "alpha\nbravo".into(),
position: Some(Position::new(1, 1, 0, 2, 6, 11))
}),],
position: Some(Position::new(1, 1, 0, 3, 3, 14))
})],
position: Some(Position::new(1, 1, 0, 3, 3, 14))
}),
"should support heading (atx) as `Heading`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/html_flow.rs | Rust | use markdown::{
mdast::{Html, Node, Root},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn html_flow() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("<!-- asd -->"),
"<!-- asd -->",
"should support a heading w/ rank 1"
);
assert_eq!(
to_html_with_options("<!-- asd -->", &danger)?,
"<!-- asd -->",
"should support a heading w/ rank 1"
);
assert_eq!(
to_html_with_options(
"<x>",
&Options {
parse: ParseOptions {
constructs: Constructs {
html_flow: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p><x></p>",
"should support turning off html (flow)"
);
assert_eq!(
to_mdast("<div>\nstuff\n</div>", &Default::default())?,
Node::Root(Root {
children: vec![Node::Html(Html {
value: "<div>\nstuff\n</div>".into(),
position: Some(Position::new(1, 1, 0, 3, 7, 18))
})],
position: Some(Position::new(1, 1, 0, 3, 7, 18))
}),
"should support HTML (flow) as `Html`s in mdast"
);
Ok(())
}
#[test]
fn html_flow_1_raw() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options(
"<pre language=\"haskell\"><code>
import Text.HTML.TagSoup
main :: IO ()
main = print $ parseTags tags
</code></pre>
okay",
&danger
)?,
"<pre language=\"haskell\"><code>
import Text.HTML.TagSoup
main :: IO ()
main = print $ parseTags tags
</code></pre>
<p>okay</p>",
"should support raw pre tags (type 1)"
);
assert_eq!(
to_html_with_options(
"<script type=\"text/javascript\">
// JavaScript example
document.getElementById(\"demo\").innerHTML = \"Hello JavaScript!\";
</script>
okay",
&danger
)?,
"<script type=\"text/javascript\">
// JavaScript example
document.getElementById(\"demo\").innerHTML = \"Hello JavaScript!\";
</script>
<p>okay</p>",
"should support raw script tags"
);
assert_eq!(
to_html_with_options(
"<style
type=\"text/css\">
h1 {color:red;}
p {color:blue;}
</style>
okay",
&danger
)?,
"<style
type=\"text/css\">
h1 {color:red;}
p {color:blue;}
</style>
<p>okay</p>",
"should support raw style tags"
);
assert_eq!(
to_html_with_options("<style\n type=\"text/css\">\n\nfoo", &danger)?,
"<style\n type=\"text/css\">\n\nfoo",
"should support raw tags w/o ending"
);
assert_eq!(
to_html_with_options("<style>p{color:red;}</style>\n*foo*", &danger)?,
"<style>p{color:red;}</style>\n<p><em>foo</em></p>",
"should support raw tags w/ start and end on a single line"
);
assert_eq!(
to_html_with_options("<script>\nfoo\n</script>1. *bar*", &danger)?,
"<script>\nfoo\n</script>1. *bar*",
"should support raw tags w/ more data on ending line"
);
assert_eq!(
to_html_with_options("<script", &danger)?,
"<script",
"should support an eof directly after a raw tag name"
);
assert_eq!(
to_html_with_options("</script\nmore", &danger)?,
"<p></script\nmore</p>",
"should not support a raw closing tag"
);
assert_eq!(
to_html_with_options("<script/", &danger)?,
"<p><script/</p>",
"should not support an eof after a self-closing slash"
);
assert_eq!(
to_html_with_options("<script/\n*asd*", &danger)?,
"<p><script/\n<em>asd</em></p>",
"should not support a line ending after a self-closing slash"
);
assert_eq!(
to_html_with_options("<script/>", &danger)?,
"<script/>",
"should support an eof after a self-closing tag"
);
assert_eq!(
to_html_with_options("<script/>\na", &danger)?,
"<script/>\na",
"should support a line ending after a self-closing tag"
);
assert_eq!(
to_html_with_options("<script/>a", &danger)?,
"<p><script/>a</p>",
"should not support other characters after a self-closing tag"
);
assert_eq!(
to_html_with_options("<script>a", &danger)?,
"<script>a",
"should support other characters after a raw opening tag"
);
// Extra.
assert_eq!(
to_html_with_options("Foo\n<script", &danger)?,
"<p>Foo</p>\n<script",
"should support interrupting paragraphs w/ raw tags"
);
assert_eq!(
to_html_with_options("<script>a</script\nb", &danger)?,
"<script>a</script\nb",
"should not support stopping raw if the closing tag does not have a `>`"
);
assert_eq!(
to_html_with_options("<script>\n \n \n</script>", &danger)?,
"<script>\n \n \n</script>",
"should support blank lines in raw"
);
assert_eq!(
to_html_with_options("> <script>\na", &danger)?,
"<blockquote>\n<script>\n</blockquote>\n<p>a</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html_with_options("> a\n<script>", &danger)?,
"<blockquote>\n<p>a</p>\n</blockquote>\n<script>",
"should not support lazyness (2)"
);
Ok(())
}
#[test]
fn html_flow_2_comment() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("<!-- Foo\n\nbar\n baz -->\nokay", &danger)?,
"<!-- Foo\n\nbar\n baz -->\n<p>okay</p>",
"should support comments (type 2)"
);
assert_eq!(
to_html_with_options("<!-- foo -->*bar*\n*baz*", &danger)?,
"<!-- foo -->*bar*\n<p><em>baz</em></p>",
"should support comments w/ start and end on a single line"
);
assert_eq!(
to_html_with_options("<!-asd-->", &danger)?,
"<p><!-asd--></p>",
"should not support a single dash to start comments"
);
assert_eq!(
to_html_with_options("<!-->", &danger)?,
"<!-->",
"should support comments where the start dashes are the end dashes (1)"
);
assert_eq!(
to_html_with_options("<!--->", &danger)?,
"<!--->",
"should support comments where the start dashes are the end dashes (2)"
);
assert_eq!(
to_html_with_options("<!---->", &danger)?,
"<!---->",
"should support empty comments"
);
// If the `\"` is encoded, we’re in text. If it remains, we’re in HTML.
assert_eq!(
to_html_with_options("<!--\n->\n\"", &danger)?,
"<!--\n->\n\"",
"should not end a comment at one dash (`->`)"
);
assert_eq!(
to_html_with_options("<!--\n-->\n\"", &danger)?,
"<!--\n-->\n<p>"</p>",
"should end a comment at two dashes (`-->`)"
);
assert_eq!(
to_html_with_options("<!--\n--->\n\"", &danger)?,
"<!--\n--->\n<p>"</p>",
"should end a comment at three dashes (`--->`)"
);
assert_eq!(
to_html_with_options("<!--\n---->\n\"", &danger)?,
"<!--\n---->\n<p>"</p>",
"should end a comment at four dashes (`---->`)"
);
assert_eq!(
to_html_with_options(" <!-- foo -->", &danger)?,
" <!-- foo -->",
"should support comments w/ indent"
);
assert_eq!(
to_html_with_options(" <!-- foo -->", &danger)?,
"<pre><code><!-- foo -->\n</code></pre>",
"should not support comments w/ a 4 character indent"
);
// Extra.
assert_eq!(
to_html_with_options("Foo\n<!--", &danger)?,
"<p>Foo</p>\n<!--",
"should support interrupting paragraphs w/ comments"
);
assert_eq!(
to_html_with_options("<!--\n \n \n-->", &danger)?,
"<!--\n \n \n-->",
"should support blank lines in comments"
);
assert_eq!(
to_html_with_options("> <!--\na", &danger)?,
"<blockquote>\n<!--\n</blockquote>\n<p>a</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html_with_options("> a\n<!--", &danger)?,
"<blockquote>\n<p>a</p>\n</blockquote>\n<!--",
"should not support lazyness (2)"
);
Ok(())
}
#[test]
fn html_flow_3_instruction() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("<?php\n\n echo \">\";\n\n?>\nokay", &danger)?,
"<?php\n\n echo \">\";\n\n?>\n<p>okay</p>",
"should support instructions (type 3)"
);
assert_eq!(
to_html_with_options("<?>", &danger)?,
"<?>",
"should support empty instructions where the `?` is part of both the start and the end"
);
assert_eq!(
to_html_with_options("<??>", &danger)?,
"<??>",
"should support empty instructions"
);
// Extra.
assert_eq!(
to_html_with_options("Foo\n<?", &danger)?,
"<p>Foo</p>\n<?",
"should support interrupting paragraphs w/ instructions"
);
assert_eq!(
to_html_with_options("<?\n \n \n?>", &danger)?,
"<?\n \n \n?>",
"should support blank lines in instructions"
);
assert_eq!(
to_html_with_options("> <?\na", &danger)?,
"<blockquote>\n<?\n</blockquote>\n<p>a</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html_with_options("> a\n<?", &danger)?,
"<blockquote>\n<p>a</p>\n</blockquote>\n<?",
"should not support lazyness (2)"
);
Ok(())
}
#[test]
fn html_flow_4_declaration() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("<!DOCTYPE html>", &danger)?,
"<!DOCTYPE html>",
"should support declarations (type 4)"
);
assert_eq!(
to_html_with_options("<!123>", &danger)?,
"<p><!123></p>",
"should not support declarations that start w/o an alpha"
);
assert_eq!(
to_html_with_options("<!>", &danger)?,
"<p><!></p>",
"should not support declarations w/o an identifier"
);
assert_eq!(
to_html_with_options("<!a>", &danger)?,
"<!a>",
"should support declarations w/o a single alpha as identifier"
);
// Extra.
assert_eq!(
to_html_with_options("Foo\n<!d", &danger)?,
"<p>Foo</p>\n<!d",
"should support interrupting paragraphs w/ declarations"
);
// Note about the lower letter:
// <https://github.com/commonmark/commonmark-spec/pull/621>
assert_eq!(
to_html_with_options("<!a\n \n \n>", &danger)?,
"<!a\n \n \n>",
"should support blank lines in declarations"
);
assert_eq!(
to_html_with_options("> <!a\nb", &danger)?,
"<blockquote>\n<!a\n</blockquote>\n<p>b</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html_with_options("> a\n<!b", &danger)?,
"<blockquote>\n<p>a</p>\n</blockquote>\n<!b",
"should not support lazyness (2)"
);
Ok(())
}
#[test]
fn html_flow_5_cdata() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options(
"<![CDATA[\nfunction matchwo(a,b)\n{\n if (a < b && a < 0) then {\n return 1;\n\n } else {\n\n return 0;\n }\n}\n]]>\nokay",
&danger
)?,
"<![CDATA[\nfunction matchwo(a,b)\n{\n if (a < b && a < 0) then {\n return 1;\n\n } else {\n\n return 0;\n }\n}\n]]>\n<p>okay</p>",
"should support cdata (type 5)"
);
assert_eq!(
to_html_with_options("<![CDATA[]]>", &danger)?,
"<![CDATA[]]>",
"should support empty cdata"
);
assert_eq!(
to_html_with_options("<![CDATA]]>", &danger)?,
"<p><![CDATA]]></p>",
"should not support cdata w/ a missing `[`"
);
assert_eq!(
to_html_with_options("<![CDATA[]]]>", &danger)?,
"<![CDATA[]]]>",
"should support cdata w/ a single `]` as content"
);
// Extra.
assert_eq!(
to_html_with_options("Foo\n<![CDATA[", &danger)?,
"<p>Foo</p>\n<![CDATA[",
"should support interrupting paragraphs w/ cdata"
);
// Note: cmjs parses this differently.
// See: <https://github.com/commonmark/commonmark.js/issues/193>
assert_eq!(
to_html_with_options("<![cdata[]]>", &danger)?,
"<p><![cdata[]]></p>",
"should not support lowercase cdata"
);
assert_eq!(
to_html_with_options("<![CDATA[\n \n \n]]>", &danger)?,
"<![CDATA[\n \n \n]]>",
"should support blank lines in cdata"
);
assert_eq!(
to_html_with_options("> <![CDATA[\na", &danger)?,
"<blockquote>\n<![CDATA[\n</blockquote>\n<p>a</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html_with_options("> a\n<![CDATA[", &danger)?,
"<blockquote>\n<p>a</p>\n</blockquote>\n<![CDATA[",
"should not support lazyness (2)"
);
Ok(())
}
#[test]
fn html_flow_6_basic() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options(
"<table><tr><td>\n<pre>\n**Hello**,\n\n_world_.\n</pre>\n</td></tr></table>",
&danger
)?,
"<table><tr><td>\n<pre>\n**Hello**,\n<p><em>world</em>.\n</pre></p>\n</td></tr></table>",
"should support html (basic)"
);
assert_eq!(
to_html_with_options(
"<table>
<tr>
<td>
hi
</td>
</tr>
</table>
okay.",
&danger
)?,
"<table>
<tr>
<td>
hi
</td>
</tr>
</table>
<p>okay.</p>",
"should support html of type 6 (1)"
);
assert_eq!(
to_html_with_options(" <div>\n *hello*\n <foo><a>", &danger)?,
" <div>\n *hello*\n <foo><a>",
"should support html of type 6 (2)"
);
assert_eq!(
to_html_with_options("</div>\n*foo*", &danger)?,
"</div>\n*foo*",
"should support html starting w/ a closing tag"
);
assert_eq!(
to_html_with_options("<DIV CLASS=\"foo\">\n\n*Markdown*\n\n</DIV>", &danger)?,
"<DIV CLASS=\"foo\">\n<p><em>Markdown</em></p>\n</DIV>",
"should support html w/ markdown in between"
);
assert_eq!(
to_html_with_options("<div id=\"foo\"\n class=\"bar\">\n</div>", &danger)?,
"<div id=\"foo\"\n class=\"bar\">\n</div>",
"should support html w/ line endings (1)"
);
assert_eq!(
to_html_with_options("<div id=\"foo\" class=\"bar\n baz\">\n</div>", &danger)?,
"<div id=\"foo\" class=\"bar\n baz\">\n</div>",
"should support html w/ line endings (2)"
);
assert_eq!(
to_html_with_options("<div>\n*foo*\n\n*bar*", &danger)?,
"<div>\n*foo*\n<p><em>bar</em></p>",
"should support an unclosed html element"
);
assert_eq!(
to_html_with_options("<div id=\"foo\"\n*hi*", &danger)?,
"<div id=\"foo\"\n*hi*",
"should support garbage html (1)"
);
assert_eq!(
to_html_with_options("<div class\nfoo", &danger)?,
"<div class\nfoo",
"should support garbage html (2)"
);
assert_eq!(
to_html_with_options("<div *???-&&&-<---\n*foo*", &danger)?,
"<div *???-&&&-<---\n*foo*",
"should support garbage html (3)"
);
assert_eq!(
to_html_with_options("<div><a href=\"bar\">*foo*</a></div>", &danger)?,
"<div><a href=\"bar\">*foo*</a></div>",
"should support other tags in the opening (1)"
);
assert_eq!(
to_html_with_options("<table><tr><td>\nfoo\n</td></tr></table>", &danger)?,
"<table><tr><td>\nfoo\n</td></tr></table>",
"should support other tags in the opening (2)"
);
assert_eq!(
to_html_with_options("<div></div>\n``` c\nint x = 33;\n```", &danger)?,
"<div></div>\n``` c\nint x = 33;\n```",
"should include everything ’till a blank line"
);
assert_eq!(
to_html_with_options("> <div>\n> foo\n\nbar", &danger)?,
"<blockquote>\n<div>\nfoo\n</blockquote>\n<p>bar</p>",
"should support basic tags w/o ending in containers (1)"
);
assert_eq!(
to_html_with_options("- <div>\n- foo", &danger)?,
"<ul>\n<li>\n<div>\n</li>\n<li>foo</li>\n</ul>",
"should support basic tags w/o ending in containers (2)"
);
assert_eq!(
to_html_with_options(" <div>", &danger)?,
" <div>",
"should support basic tags w/ indent"
);
assert_eq!(
to_html_with_options(" <div>", &danger)?,
"<pre><code><div>\n</code></pre>",
"should not support basic tags w/ a 4 character indent"
);
assert_eq!(
to_html_with_options("Foo\n<div>\nbar\n</div>", &danger)?,
"<p>Foo</p>\n<div>\nbar\n</div>",
"should support interrupting paragraphs w/ basic tags"
);
assert_eq!(
to_html_with_options("<div>\nbar\n</div>\n*foo*", &danger)?,
"<div>\nbar\n</div>\n*foo*",
"should require a blank line to end"
);
assert_eq!(
to_html_with_options("<div>\n\n*Emphasized* text.\n\n</div>", &danger)?,
"<div>\n<p><em>Emphasized</em> text.</p>\n</div>",
"should support interleaving w/ blank lines"
);
assert_eq!(
to_html_with_options("<div>\n*Emphasized* text.\n</div>", &danger)?,
"<div>\n*Emphasized* text.\n</div>",
"should not support interleaving w/o blank lines"
);
assert_eq!(
to_html_with_options(
"<table>\n\n<tr>\n\n<td>\nHi\n</td>\n\n</tr>\n\n</table>",
&danger
)?,
"<table>\n<tr>\n<td>\nHi\n</td>\n</tr>\n</table>",
"should support blank lines between adjacent html"
);
assert_eq!(
to_html_with_options(
"<table>
<tr>
<td>
Hi
</td>
</tr>
</table>",
&danger
)?,
"<table>
<tr>
<pre><code><td>
Hi
</td>
</code></pre>
</tr>
</table>",
"should not support indented, blank-line delimited, adjacent html"
);
assert_eq!(
to_html_with_options("</1>", &danger)?,
"<p></1></p>",
"should not support basic tags w/ an incorrect name start character"
);
assert_eq!(
to_html_with_options("<div", &danger)?,
"<div",
"should support an eof directly after a basic tag name"
);
assert_eq!(
to_html_with_options("<div\n", &danger)?,
"<div\n",
"should support a line ending directly after a tag name"
);
assert_eq!(
to_html_with_options("<div ", &danger)?,
"<div ",
"should support an eof after a space directly after a tag name"
);
assert_eq!(
to_html_with_options("<div/", &danger)?,
"<p><div/</p>",
"should not support an eof directly after a self-closing slash"
);
assert_eq!(
to_html_with_options("<div/\n*asd*", &danger)?,
"<p><div/\n<em>asd</em></p>",
"should not support a line ending after a self-closing slash"
);
assert_eq!(
to_html_with_options("<div/>", &danger)?,
"<div/>",
"should support an eof after a self-closing tag"
);
assert_eq!(
to_html_with_options("<div/>\na", &danger)?,
"<div/>\na",
"should support a line ending after a self-closing tag"
);
assert_eq!(
to_html_with_options("<div/>a", &danger)?,
"<div/>a",
"should support another character after a self-closing tag"
);
assert_eq!(
to_html_with_options("<div>a", &danger)?,
"<div>a",
"should support another character after a basic opening tag"
);
// Extra.
assert_eq!(
to_html_with_options("Foo\n<div/>", &danger)?,
"<p>Foo</p>\n<div/>",
"should support interrupting paragraphs w/ self-closing basic tags"
);
assert_eq!(
to_html_with_options("<div\n \n \n>", &danger)?,
"<div\n<blockquote>\n</blockquote>",
"should not support blank lines in basic"
);
assert_eq!(
to_html_with_options("> <div\na", &danger)?,
"<blockquote>\n<div\n</blockquote>\n<p>a</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html_with_options("> a\n<div", &danger)?,
"<blockquote>\n<p>a</p>\n</blockquote>\n<div",
"should not support lazyness (2)"
);
Ok(())
}
#[test]
fn html_flow_7_complete() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("<a href=\"foo\">\n*bar*\n</a>", &danger)?,
"<a href=\"foo\">\n*bar*\n</a>",
"should support complete tags (type 7)"
);
assert_eq!(
to_html_with_options("<Warning>\n*bar*\n</Warning>", &danger)?,
"<Warning>\n*bar*\n</Warning>",
"should support non-html tag names"
);
assert_eq!(
to_html_with_options("<i class=\"foo\">\n*bar*\n</i>", &danger)?,
"<i class=\"foo\">\n*bar*\n</i>",
"should support non-“block” html tag names (1)"
);
assert_eq!(
to_html_with_options("<del>\n*foo*\n</del>", &danger)?,
"<del>\n*foo*\n</del>",
"should support non-“block” html tag names (2)"
);
assert_eq!(
to_html_with_options("</ins>\n*bar*", &danger)?,
"</ins>\n*bar*",
"should support closing tags"
);
assert_eq!(
to_html_with_options("<del>\n\n*foo*\n\n</del>", &danger)?,
"<del>\n<p><em>foo</em></p>\n</del>",
"should support interleaving"
);
assert_eq!(
to_html_with_options("<del>*foo*</del>", &danger)?,
"<p><del><em>foo</em></del></p>",
"should not support interleaving w/o blank lines"
);
assert_eq!(
to_html_with_options("<div>\n \nasd", &danger)?,
"<div>\n<p>asd</p>",
"should support interleaving w/ whitespace-only blank lines"
);
assert_eq!(
to_html_with_options("Foo\n<a href=\"bar\">\nbaz", &danger)?,
"<p>Foo\n<a href=\"bar\">\nbaz</p>",
"should not support interrupting paragraphs w/ complete tags"
);
assert_eq!(
to_html_with_options("<x", &danger)?,
"<p><x</p>",
"should not support an eof directly after a tag name"
);
assert_eq!(
to_html_with_options("<x/", &danger)?,
"<p><x/</p>",
"should not support an eof directly after a self-closing slash"
);
assert_eq!(
to_html_with_options("<x\n", &danger)?,
"<p><x</p>\n",
"should not support a line ending directly after a tag name"
);
assert_eq!(
to_html_with_options("<x ", &danger)?,
"<p><x</p>",
"should not support an eof after a space directly after a tag name"
);
assert_eq!(
to_html_with_options("<x/", &danger)?,
"<p><x/</p>",
"should not support an eof directly after a self-closing slash"
);
assert_eq!(
to_html_with_options("<x/\n*asd*", &danger)?,
"<p><x/\n<em>asd</em></p>",
"should not support a line ending after a self-closing slash"
);
assert_eq!(
to_html_with_options("<x/>", &danger)?,
"<x/>",
"should support an eof after a self-closing tag"
);
assert_eq!(
to_html_with_options("<x/>\na", &danger)?,
"<x/>\na",
"should support a line ending after a self-closing tag"
);
assert_eq!(
to_html_with_options("<x/>a", &danger)?,
"<p><x/>a</p>",
"should not support another character after a self-closing tag"
);
assert_eq!(
to_html_with_options("<x>a", &danger)?,
"<p><x>a</p>",
"should not support another character after an opening tag"
);
assert_eq!(
to_html_with_options("<x y>", &danger)?,
"<x y>",
"should support boolean attributes in a complete tag"
);
assert_eq!(
to_html_with_options("<x\ny>", &danger)?,
"<p><x\ny></p>",
"should not support a line ending before an attribute name"
);
assert_eq!(
to_html_with_options("<x\n y>", &danger)?,
"<p><x\ny></p>",
"should not support a line ending w/ whitespace before an attribute name"
);
assert_eq!(
to_html_with_options("<x\n \ny>", &danger)?,
"<p><x</p>\n<p>y></p>",
"should not support a line ending w/ whitespace and another line ending before an attribute name"
);
assert_eq!(
to_html_with_options("<x y\nz>", &danger)?,
"<p><x y\nz></p>",
"should not support a line ending between attribute names"
);
assert_eq!(
to_html_with_options("<x y z>", &danger)?,
"<x y z>",
"should support whitespace between attribute names"
);
assert_eq!(
to_html_with_options("<x:y>", &danger)?,
"<p><x:y></p>",
"should not support a colon in a tag name"
);
assert_eq!(
to_html_with_options("<x_y>", &danger)?,
"<p><x_y></p>",
"should not support an underscore in a tag name"
);
assert_eq!(
to_html_with_options("<x.y>", &danger)?,
"<p><x.y></p>",
"should not support a dot in a tag name"
);
assert_eq!(
to_html_with_options("<x :y>", &danger)?,
"<x :y>",
"should support a colon to start an attribute name"
);
assert_eq!(
to_html_with_options("<x _y>", &danger)?,
"<x _y>",
"should support an underscore to start an attribute name"
);
assert_eq!(
to_html_with_options("<x .y>", &danger)?,
"<p><x .y></p>",
"should not support a dot to start an attribute name"
);
assert_eq!(
to_html_with_options("<x y:>", &danger)?,
"<x y:>",
"should support a colon to end an attribute name"
);
assert_eq!(
to_html_with_options("<x y_>", &danger)?,
"<x y_>",
"should support an underscore to end an attribute name"
);
assert_eq!(
to_html_with_options("<x y.>", &danger)?,
"<x y.>",
"should support a dot to end an attribute name"
);
assert_eq!(
to_html_with_options("<x y123>", &danger)?,
"<x y123>",
"should support numbers to end an attribute name"
);
assert_eq!(
to_html_with_options("<x data->", &danger)?,
"<x data->",
"should support a dash to end an attribute name"
);
assert_eq!(
to_html_with_options("<x y=>", &danger)?,
"<p><x y=></p>",
"should not upport an initializer w/o a value"
);
assert_eq!(
to_html_with_options("<x y==>", &danger)?,
"<p><x y==></p>",
"should not support an equals to as an initializer"
);
assert_eq!(
to_html_with_options("<x y=z>", &danger)?,
"<x y=z>",
"should support a single character as an unquoted attribute value"
);
assert_eq!(
to_html_with_options("<x y=\"\">", &danger)?,
"<x y=\"\">",
"should support an empty double quoted attribute value"
);
assert_eq!(
to_html_with_options("<x y=\"\">", &danger)?,
"<x y=\"\">",
"should support an empty single quoted attribute value"
);
assert_eq!(
to_html_with_options("<x y=\"\n\">", &danger)?,
"<p><x y=\"\n\"></p>",
"should not support a line ending in a double quoted attribute value"
);
assert_eq!(
to_html_with_options("<x y=\"\n\">", &danger)?,
"<p><x y=\"\n\"></p>",
"should not support a line ending in a single quoted attribute value"
);
assert_eq!(
to_html_with_options("<w x=y\nz>", &danger)?,
"<p><w x=y\nz></p>",
"should not support a line ending in/after an unquoted attribute value"
);
assert_eq!(
to_html_with_options("<w x=y\"z>", &danger)?,
"<p><w x=y"z></p>",
"should not support a double quote in/after an unquoted attribute value"
);
assert_eq!(
to_html_with_options("<w x=y'z>", &danger)?,
"<p><w x=y'z></p>",
"should not support a single quote in/after an unquoted attribute value"
);
assert_eq!(
to_html_with_options("<x y=\"\"z>", &danger)?,
"<p><x y=""z></p>",
"should not support an attribute after a double quoted attribute value"
);
assert_eq!(
to_html_with_options("<x>\n \n \n>", &danger)?,
"<x>\n<blockquote>\n</blockquote>",
"should not support blank lines in complete"
);
assert_eq!(
to_html_with_options("> <a>\n*bar*", &danger)?,
"<blockquote>\n<a>\n</blockquote>\n<p><em>bar</em></p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html_with_options("> a\n<a>", &danger)?,
"<blockquote>\n<p>a</p>\n</blockquote>\n<a>",
"should not support lazyness (2)"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/html_text.rs | Rust | use markdown::{
mdast::{Html, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn html_text() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("a <b> c"),
"<p>a <b> c</p>",
"should encode dangerous html by default"
);
assert_eq!(
to_html_with_options("<a><bab><c2c>", &danger)?,
"<p><a><bab><c2c></p>",
"should support opening tags"
);
assert_eq!(
to_html_with_options("<a/><b2/>", &danger)?,
"<p><a/><b2/></p>",
"should support self-closing tags"
);
assert_eq!(
to_html_with_options("<a /><b2\ndata=\"foo\" >", &danger)?,
"<p><a /><b2\ndata=\"foo\" ></p>",
"should support whitespace in tags"
);
assert_eq!(
to_html_with_options(
"<a foo=\"bar\" bam = 'baz <em>\"</em>'\n_boolean zoop:33=zoop:33 />",
&danger
)?,
"<p><a foo=\"bar\" bam = 'baz <em>\"</em>'\n_boolean zoop:33=zoop:33 /></p>",
"should support attributes on tags"
);
assert_eq!(
to_html_with_options("Foo <responsive-image src=\"foo.jpg\" />", &danger)?,
"<p>Foo <responsive-image src=\"foo.jpg\" /></p>",
"should support non-html tags"
);
assert_eq!(
to_html_with_options("<33> <__>", &danger)?,
"<p><33> <__></p>",
"should not support nonconforming tag names"
);
assert_eq!(
to_html_with_options("<a h*#ref=\"hi\">", &danger)?,
"<p><a h*#ref="hi"></p>",
"should not support nonconforming attribute names"
);
assert_eq!(
to_html_with_options("<a href=\"hi'> <a href=hi'>", &danger)?,
"<p><a href="hi'> <a href=hi'></p>",
"should not support nonconforming attribute values"
);
assert_eq!(
to_html_with_options("< a><\nfoo><bar/ >\n<foo bar=baz\nbim!bop />", &danger)?,
"<p>< a><\nfoo><bar/ >\n<foo bar=baz\nbim!bop /></p>",
"should not support nonconforming whitespace"
);
assert_eq!(
to_html_with_options("<a href='bar'title=title>", &danger)?,
"<p><a href='bar'title=title></p>",
"should not support missing whitespace"
);
assert_eq!(
to_html_with_options("</a></foo >", &danger)?,
"<p></a></foo ></p>",
"should support closing tags"
);
assert_eq!(
to_html_with_options("</a href=\"foo\">", &danger)?,
"<p></a href="foo"></p>",
"should not support closing tags w/ attributes"
);
assert_eq!(
to_html_with_options("foo <!-- this is a\ncomment - with hyphen -->", &danger)?,
"<p>foo <!-- this is a\ncomment - with hyphen --></p>",
"should support comments"
);
assert_eq!(
to_html_with_options("foo <!-- not a comment -- two hyphens -->", &danger)?,
"<p>foo <!-- not a comment -- two hyphens --></p>",
"should support comments w/ two dashes inside"
);
assert_eq!(
to_html_with_options("foo <!--> foo -->", &danger)?,
"<p>foo <!--> foo --></p>",
"should support nonconforming comments (1)"
);
assert_eq!(
to_html_with_options("foo <!-- foo--->", &danger)?,
"<p>foo <!-- foo---></p>",
"should support nonconforming comments (2)"
);
assert_eq!(
to_html_with_options("foo <?php echo $a; ?>", &danger)?,
"<p>foo <?php echo $a; ?></p>",
"should support instructions"
);
assert_eq!(
to_html_with_options("foo <!ELEMENT br EMPTY>", &danger)?,
"<p>foo <!ELEMENT br EMPTY></p>",
"should support declarations"
);
assert_eq!(
to_html_with_options("foo <![CDATA[>&<]]>", &danger)?,
"<p>foo <![CDATA[>&<]]></p>",
"should support cdata"
);
assert_eq!(
to_html_with_options("foo <a href=\"ö\">", &danger)?,
"<p>foo <a href=\"ö\"></p>",
"should support (ignore) character references"
);
assert_eq!(
to_html_with_options("foo <a href=\"\\*\">", &danger)?,
"<p>foo <a href=\"\\*\"></p>",
"should not support character escapes (1)"
);
assert_eq!(
to_html_with_options("<a href=\"\\\"\">", &danger)?,
"<p><a href="""></p>",
"should not support character escapes (2)"
);
// Extra:
assert_eq!(
to_html_with_options("foo <!1>", &danger)?,
"<p>foo <!1></p>",
"should not support non-comment, non-cdata, and non-named declaration"
);
assert_eq!(
to_html_with_options("foo <!-not enough!-->", &danger)?,
"<p>foo <!-not enough!--></p>",
"should not support comments w/ not enough dashes"
);
assert_eq!(
to_html_with_options("foo <!---ok-->", &danger)?,
"<p>foo <!---ok--></p>",
"should support comments that start w/ a dash, if it’s not followed by a greater than"
);
assert_eq!(
to_html_with_options("foo <!--->", &danger)?,
"<p>foo <!---></p>",
"should support comments that start w/ `->`"
);
assert_eq!(
to_html_with_options("foo <!-- -> -->", &danger)?,
"<p>foo <!-- -> --></p>",
"should support `->` in a comment"
);
assert_eq!(
to_html_with_options("foo <!--", &danger)?,
"<p>foo <!--</p>",
"should not support eof in a comment (1)"
);
assert_eq!(
to_html_with_options("foo <!--a", &danger)?,
"<p>foo <!--a</p>",
"should not support eof in a comment (2)"
);
assert_eq!(
to_html_with_options("foo <!--a-", &danger)?,
"<p>foo <!--a-</p>",
"should not support eof in a comment (3)"
);
assert_eq!(
to_html_with_options("foo <!--a--", &danger)?,
"<p>foo <!--a--</p>",
"should not support eof in a comment (4)"
);
// Note: cmjs parses this differently.
// See: <https://github.com/commonmark/commonmark.js/issues/193>
assert_eq!(
to_html_with_options("foo <![cdata[]]>", &danger)?,
"<p>foo <![cdata[]]></p>",
"should not support lowercase “cdata”"
);
assert_eq!(
to_html_with_options("foo <![CDATA", &danger)?,
"<p>foo <![CDATA</p>",
"should not support eof in a CDATA (1)"
);
assert_eq!(
to_html_with_options("foo <![CDATA[", &danger)?,
"<p>foo <![CDATA[</p>",
"should not support eof in a CDATA (2)"
);
assert_eq!(
to_html_with_options("foo <![CDATA[]", &danger)?,
"<p>foo <![CDATA[]</p>",
"should not support eof in a CDATA (3)"
);
assert_eq!(
to_html_with_options("foo <![CDATA[]]", &danger)?,
"<p>foo <![CDATA[]]</p>",
"should not support eof in a CDATA (4)"
);
assert_eq!(
to_html_with_options("foo <![CDATA[asd", &danger)?,
"<p>foo <![CDATA[asd</p>",
"should not support eof in a CDATA (5)"
);
assert_eq!(
to_html_with_options("foo <![CDATA[]]]]>", &danger)?,
"<p>foo <![CDATA[]]]]></p>",
"should support end-like constructs in CDATA"
);
assert_eq!(
to_html_with_options("foo <!doctype", &danger)?,
"<p>foo <!doctype</p>",
"should not support eof in declarations"
);
assert_eq!(
to_html_with_options("foo <?php", &danger)?,
"<p>foo <?php</p>",
"should not support eof in instructions (1)"
);
assert_eq!(
to_html_with_options("foo <?php?", &danger)?,
"<p>foo <?php?</p>",
"should not support eof in instructions (2)"
);
assert_eq!(
to_html_with_options("foo <???>", &danger)?,
"<p>foo <???></p>",
"should support question marks in instructions"
);
assert_eq!(
to_html_with_options("foo </3>", &danger)?,
"<p>foo </3></p>",
"should not support closing tags that don’t start w/ alphas"
);
assert_eq!(
to_html_with_options("foo </a->", &danger)?,
"<p>foo </a-></p>",
"should support dashes in closing tags"
);
assert_eq!(
to_html_with_options("foo </a >", &danger)?,
"<p>foo </a ></p>",
"should support whitespace after closing tag names"
);
assert_eq!(
to_html_with_options("foo </a!>", &danger)?,
"<p>foo </a!></p>",
"should not support other characters after closing tag names"
);
assert_eq!(
to_html_with_options("foo <a->", &danger)?,
"<p>foo <a-></p>",
"should support dashes in opening tags"
);
assert_eq!(
to_html_with_options("foo <a >", &danger)?,
"<p>foo <a ></p>",
"should support whitespace after opening tag names"
);
assert_eq!(
to_html_with_options("foo <a!>", &danger)?,
"<p>foo <a!></p>",
"should not support other characters after opening tag names"
);
assert_eq!(
to_html_with_options("foo <a !>", &danger)?,
"<p>foo <a !></p>",
"should not support other characters in opening tags (1)"
);
assert_eq!(
to_html_with_options("foo <a b!>", &danger)?,
"<p>foo <a b!></p>",
"should not support other characters in opening tags (2)"
);
assert_eq!(
to_html_with_options("foo <a b/>", &danger)?,
"<p>foo <a b/></p>",
"should support a self-closing slash after an attribute name"
);
assert_eq!(
to_html_with_options("foo <a b>", &danger)?,
"<p>foo <a b></p>",
"should support a greater than after an attribute name"
);
assert_eq!(
to_html_with_options("foo <a b=<>", &danger)?,
"<p>foo <a b=<></p>",
"should not support less than to start an unquoted attribute value"
);
assert_eq!(
to_html_with_options("foo <a b=>>", &danger)?,
"<p>foo <a b=>></p>",
"should not support greater than to start an unquoted attribute value"
);
assert_eq!(
to_html_with_options("foo <a b==>", &danger)?,
"<p>foo <a b==></p>",
"should not support equals to to start an unquoted attribute value"
);
assert_eq!(
to_html_with_options("foo <a b=`>", &danger)?,
"<p>foo <a b=`></p>",
"should not support grave accent to start an unquoted attribute value"
);
assert_eq!(
to_html_with_options("foo <a b=\"asd", &danger)?,
"<p>foo <a b="asd</p>",
"should not support eof in double quoted attribute value"
);
assert_eq!(
to_html_with_options("foo <a b='asd", &danger)?,
"<p>foo <a b='asd</p>",
"should not support eof in single quoted attribute value"
);
assert_eq!(
to_html_with_options("foo <a b=asd", &danger)?,
"<p>foo <a b=asd</p>",
"should not support eof in unquoted attribute value"
);
assert_eq!(
to_html_with_options("foo <a b=\nasd>", &danger)?,
"<p>foo <a b=\nasd></p>",
"should support an eol before an attribute value"
);
assert_eq!(
to_html_with_options("<x> a", &danger)?,
"<p><x> a</p>",
"should support starting a line w/ a tag if followed by anything other than an eol (after optional space/tabs)"
);
assert_eq!(
to_html_with_options("<span foo=", &danger)?,
"<p><span foo=</p>",
"should support an EOF before an attribute value"
);
assert_eq!(
to_html_with_options("a <!b\nc>", &danger)?,
"<p>a <!b\nc></p>",
"should support an EOL in a declaration"
);
assert_eq!(
to_html_with_options("a <![CDATA[\n]]>", &danger)?,
"<p>a <![CDATA[\n]]></p>",
"should support an EOL in cdata"
);
// Note: cmjs parses this differently.
// See: <https://github.com/commonmark/commonmark.js/issues/196>
assert_eq!(
to_html_with_options("a <?\n?>", &danger)?,
"<p>a <?\n?></p>",
"should support an EOL in an instruction"
);
assert_eq!(
to_html_with_options(
"a <x>",
&Options {
parse: ParseOptions {
constructs: Constructs {
html_text: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>a <x></p>",
"should support turning off html (text)"
);
assert_eq!(
to_mdast("alpha <i>bravo</b> charlie.", &Default::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "alpha ".into(),
position: Some(Position::new(1, 1, 0, 1, 7, 6))
}),
Node::Html(Html {
value: "<i>".into(),
position: Some(Position::new(1, 7, 6, 1, 10, 9))
}),
Node::Text(Text {
value: "bravo".into(),
position: Some(Position::new(1, 10, 9, 1, 15, 14))
}),
Node::Html(Html {
value: "</b>".into(),
position: Some(Position::new(1, 15, 14, 1, 19, 18))
}),
Node::Text(Text {
value: " charlie.".into(),
position: Some(Position::new(1, 19, 18, 1, 28, 27))
})
],
position: Some(Position::new(1, 1, 0, 1, 28, 27))
})],
position: Some(Position::new(1, 1, 0, 1, 28, 27))
}),
"should support HTML (text) as `Html`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/image.rs | Rust | use markdown::{
mdast::{Definition, Image, ImageReference, Node, Paragraph, ReferenceKind, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn image() -> Result<(), message::Message> {
assert_eq!(
to_html("[link](/uri \"title\")"),
"<p><a href=\"/uri\" title=\"title\">link</a></p>",
"should support links"
);
assert_eq!(
to_html(""),
"<p><img src=\"/url\" alt=\"foo\" title=\"title\" /></p>",
"should support image w/ resource"
);
assert_eq!(
to_html("[foo *bar*]: train.jpg \"train & tracks\"\n\n![foo *bar*]"),
"<p><img src=\"train.jpg\" alt=\"foo bar\" title=\"train & tracks\" /></p>",
"should support image as shortcut reference"
);
assert_eq!(
to_html("](/url2)"),
"<p><img src=\"/url2\" alt=\"foo bar\" /></p>",
"should “support” images in images"
);
assert_eq!(
to_html("](/url2)"),
"<p><img src=\"/url2\" alt=\"foo bar\" /></p>",
"should “support” links in images"
);
assert_eq!(
to_html("[foo *bar*]: train.jpg \"train & tracks\"\n\n![foo *bar*][]"),
"<p><img src=\"train.jpg\" alt=\"foo bar\" title=\"train & tracks\" /></p>",
"should support “content” in images"
);
assert_eq!(
to_html("[FOOBAR]: train.jpg \"train & tracks\"\n\n![foo *bar*][foobar]"),
"<p><img src=\"train.jpg\" alt=\"foo bar\" title=\"train & tracks\" /></p>",
"should support “content” in images"
);
assert_eq!(
to_html(""),
"<p><img src=\"train.jpg\" alt=\"foo\" /></p>",
"should support images w/o title"
);
assert_eq!(
to_html("My "),
"<p>My <img src=\"/path/to/train.jpg\" alt=\"foo bar\" title=\"title\" /></p>",
"should support images w/ lots of whitespace"
);
assert_eq!(
to_html(""),
"<p><img src=\"url\" alt=\"foo\" /></p>",
"should support images w/ enclosed destinations"
);
assert_eq!(
to_html(""),
"<p><img src=\"/url\" alt=\"\" /></p>",
"should support images w/ empty labels"
);
assert_eq!(
to_html("[bar]: /url\n\n![foo][bar]"),
"<p><img src=\"/url\" alt=\"foo\" /></p>",
"should support full references (1)"
);
assert_eq!(
to_html("[BAR]: /url\n\n![foo][bar]"),
"<p><img src=\"/url\" alt=\"foo\" /></p>",
"should support full references (2)"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n![foo][]"),
"<p><img src=\"/url\" alt=\"foo\" title=\"title\" /></p>",
"should support collapsed references (1)"
);
assert_eq!(
to_html("[*foo* bar]: /url \"title\"\n\n![*foo* bar][]"),
"<p><img src=\"/url\" alt=\"foo bar\" title=\"title\" /></p>",
"should support collapsed references (2)"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n![Foo][]"),
"<p><img src=\"/url\" alt=\"Foo\" title=\"title\" /></p>",
"should support case-insensitive labels"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n![foo] \n[]"),
"<p><img src=\"/url\" alt=\"foo\" title=\"title\" />\n[]</p>",
"should not support whitespace between sets of brackets"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n![foo]"),
"<p><img src=\"/url\" alt=\"foo\" title=\"title\" /></p>",
"should support shortcut references (1)"
);
assert_eq!(
to_html("[*foo* bar]: /url \"title\"\n\n![*foo* bar]"),
"<p><img src=\"/url\" alt=\"foo bar\" title=\"title\" /></p>",
"should support shortcut references (2)"
);
assert_eq!(
to_html("[[foo]]: /url \"title\"\n\n![[foo]]"),
"<p>[[foo]]: /url "title"</p>\n<p>![[foo]]</p>",
"should not support link labels w/ unescaped brackets"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n![Foo]"),
"<p><img src=\"/url\" alt=\"Foo\" title=\"title\" /></p>",
"should support case-insensitive label matching"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n!\\[foo]"),
"<p>![foo]</p>",
"should “support” an escaped bracket instead of an image"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n\\![foo]"),
"<p>!<a href=\"/url\" title=\"title\">foo</a></p>",
"should support an escaped bang instead of an image, but still have a link"
);
// Extra
assert_eq!(
to_html("![foo]()"),
"<p><img src=\"\" alt=\"foo\" /></p>",
"should support images w/o destination"
);
assert_eq!(
to_html(""),
"<p><img src=\"\" alt=\"foo\" /></p>",
"should support images w/ explicit empty destination"
);
assert_eq!(
to_html(""),
"<p><img src=\"example.png\" alt=\"\" /></p>",
"should support images w/o alt"
);
assert_eq!(
to_html(""),
"<p><img src=\"bravo.png\" alt=\"alpha\" /></p>",
"should support images w/ empty title (1)"
);
assert_eq!(
to_html(""),
"<p><img src=\"bravo.png\" alt=\"alpha\" /></p>",
"should support images w/ empty title (2)"
);
assert_eq!(
to_html(")"),
"<p><img src=\"bravo.png\" alt=\"alpha\" /></p>",
"should support images w/ empty title (3)"
);
assert_eq!(
to_html(""),
"<p><img src=\"example.com/&%C2%A9&\" alt=\"&©&\" title=\"&©&\" /></p>",
"should support character references in images"
);
// Extra
// See: <https://github.com/commonmark/commonmark.js/issues/192>
assert_eq!(
to_html(""),
"<p><img src=\"\" alt=\"\" /></p>",
"should ignore an empty title"
);
assert_eq!(
to_html_with_options(
"![x]()",
&Options {
parse: ParseOptions {
constructs: Constructs {
label_start_image: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>!<a href=\"\">x</a></p>",
"should support turning off label start (image)"
);
assert_eq!(
to_html(")"),
"<p><img src=\"\" alt=\"\" /></p>",
"should ignore non-http protocols by default"
);
assert_eq!(
to_html_with_options(
")",
&Options {
compile: CompileOptions {
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
}
)?,
"<p><img src=\"javascript:alert(1)\" alt=\"\" /></p>",
"should allow non-http protocols w/ `allowDangerousProtocol`"
);
assert_eq!(
to_html_with_options(
")",
&Options {
compile: CompileOptions {
allow_any_img_src: true,
allow_dangerous_protocol: false,
..Default::default()
},
..Default::default()
}
)?,
"<p><img src=\"javascript:alert(1)\" alt=\"\" /></p>",
"should allow non-http protocols with the `allow_any_img_src` option"
);
assert_eq!(
to_mdast(
"a ![alpha]() b  c.",
&Default::default()
)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::Image(Image {
alt: "alpha".into(),
url: String::new(),
title: None,
position: Some(Position::new(1, 3, 2, 1, 13, 12))
}),
Node::Text(Text {
value: " b ".into(),
position: Some(Position::new(1, 13, 12, 1, 16, 15))
}),
Node::Image(Image {
alt: "bravo".into(),
url: "charlie".into(),
title: Some("delta".into()),
position: Some(Position::new(1, 16, 15, 1, 41, 40))
}),
Node::Text(Text {
value: " c.".into(),
position: Some(Position::new(1, 41, 40, 1, 44, 43))
})
],
position: Some(Position::new(1, 1, 0, 1, 44, 43))
})],
position: Some(Position::new(1, 1, 0, 1, 44, 43))
}),
"should support image (resource) as `Image`s in mdast"
);
assert_eq!(
to_mdast(
"[x]: y\n\na ![x] b ![x][] c ![d][x] e.",
&Default::default()
)?,
Node::Root(Root {
children: vec![
Node::Definition(Definition {
identifier: "x".into(),
label: Some("x".into()),
url: "y".into(),
title: None,
position: Some(Position::new(1, 1, 0, 1, 7, 6))
}),
Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(3, 1, 8, 3, 3, 10))
}),
Node::ImageReference(ImageReference {
reference_kind: ReferenceKind::Shortcut,
identifier: "x".into(),
label: Some("x".into()),
alt: "x".into(),
position: Some(Position::new(3, 3, 10, 3, 7, 14))
}),
Node::Text(Text {
value: " b ".into(),
position: Some(Position::new(3, 7, 14, 3, 10, 17))
}),
Node::ImageReference(ImageReference {
reference_kind: ReferenceKind::Collapsed,
identifier: "x".into(),
label: Some("x".into()),
alt: "x".into(),
position: Some(Position::new(3, 10, 17, 3, 16, 23))
}),
Node::Text(Text {
value: " c ".into(),
position: Some(Position::new(3, 16, 23, 3, 19, 26))
}),
Node::ImageReference(ImageReference {
reference_kind: ReferenceKind::Full,
identifier: "x".into(),
label: Some("x".into()),
alt: "d".into(),
position: Some(Position::new(3, 19, 26, 3, 26, 33))
}),
Node::Text(Text {
value: " e.".into(),
position: Some(Position::new(3, 26, 33, 3, 29, 36))
}),
],
position: Some(Position::new(3, 1, 8, 3, 29, 36))
}),
],
position: Some(Position::new(1, 1, 0, 3, 29, 36))
}),
"should support image (reference) as `ImageReference`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/link_reference.rs | Rust | use markdown::{
mdast::{Definition, LinkReference, Node, Paragraph, ReferenceKind, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn link_reference() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("[bar]: /url \"title\"\n\n[foo][bar]"),
"<p><a href=\"/url\" title=\"title\">foo</a></p>",
"should support link references"
);
assert_eq!(
to_html("[ref]: /uri\n\n[link [foo [bar]]][ref]"),
"<p><a href=\"/uri\">link [foo [bar]]</a></p>",
"should support balanced brackets in link references"
);
assert_eq!(
to_html("[ref]: /uri\n\n[link \\[bar][ref]"),
"<p><a href=\"/uri\">link [bar</a></p>",
"should support escaped brackets in link references"
);
assert_eq!(
to_html("[ref]: /uri\n\n[link *foo **bar** `#`*][ref]"),
"<p><a href=\"/uri\">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>",
"should support content in link references"
);
assert_eq!(
to_html("[ref]: /uri\n\n[][ref]"),
"<p><a href=\"/uri\"><img src=\"moon.jpg\" alt=\"moon\" /></a></p>",
"should support images in link references"
);
assert_eq!(
to_html("[ref]: /uri\n\n[foo [bar](/uri)][ref]"),
"<p>[foo <a href=\"/uri\">bar</a>]<a href=\"/uri\">ref</a></p>",
"should not support links in link references"
);
assert_eq!(
to_html("[ref]: /uri\n\n[foo *bar [baz][ref]*][ref]"),
"<p>[foo <em>bar <a href=\"/uri\">baz</a></em>]<a href=\"/uri\">ref</a></p>",
"should not support deep links in link references"
);
assert_eq!(
to_html("[ref]: /uri\n\n*[foo*][ref]"),
"<p>*<a href=\"/uri\">foo*</a></p>",
"should prefer link references over emphasis (1)"
);
assert_eq!(
to_html("[ref]: /uri\n\n[foo *bar][ref]"),
"<p><a href=\"/uri\">foo *bar</a></p>",
"should prefer link references over emphasis (2)"
);
assert_eq!(
to_html_with_options("[ref]: /uri\n\n[foo <bar attr=\"][ref]\">", &danger)?,
"<p>[foo <bar attr=\"][ref]\"></p>",
"should prefer HTML over link references"
);
assert_eq!(
to_html("[ref]: /uri\n\n[foo`][ref]`"),
"<p>[foo<code>][ref]</code></p>",
"should prefer code over link references"
);
assert_eq!(
to_html("[ref]: /uri\n\n[foo<http://example.com/?search=][ref]>"),
"<p>[foo<a href=\"http://example.com/?search=%5D%5Bref%5D\">http://example.com/?search=][ref]</a></p>",
"should prefer autolinks over link references"
);
assert_eq!(
to_html("[bar]: /url \"title\"\n\n[foo][BaR]"),
"<p><a href=\"/url\" title=\"title\">foo</a></p>",
"should match references to definitions case-insensitively"
);
assert_eq!(
to_html("[ТОЛПОЙ]: /url\n\n[Толпой][Толпой] is a Russian word."),
"<p><a href=\"/url\">Толпой</a> is a Russian word.</p>",
"should match references to definitions w/ unicode case-folding"
);
assert_eq!(
to_html("[Foo\n bar]: /url\n\n[Baz][Foo bar]"),
"<p><a href=\"/url\">Baz</a></p>",
"should match references to definitions w/ collapsing"
);
assert_eq!(
to_html("[bar]: /url \"title\"\n\n[foo] [bar]"),
"<p>[foo] <a href=\"/url\" title=\"title\">bar</a></p>",
"should not support whitespace between label and reference (1)"
);
assert_eq!(
to_html("[bar]: /url \"title\"\n\n[foo]\n[bar]"),
"<p>[foo]\n<a href=\"/url\" title=\"title\">bar</a></p>",
"should not support whitespace between label and reference (2)"
);
assert_eq!(
to_html("[foo]: /url1\n\n[foo]: /url2\n\n[bar][foo]"),
"<p><a href=\"/url1\">bar</a></p>",
"should prefer earlier definitions"
);
assert_eq!(
to_html("[foo!]: /url\n\n[bar][foo\\!]"),
"<p>[bar][foo!]</p>",
"should not match references to definitions w/ escapes"
);
assert_eq!(
to_html("[ref[]: /uri\n\n[foo][ref[]"),
"<p>[ref[]: /uri</p>\n<p>[foo][ref[]</p>",
"should not support references w/ brackets (1)"
);
assert_eq!(
to_html("[ref[bar]]: /uri\n\n[foo][ref[bar]]"),
"<p>[ref[bar]]: /uri</p>\n<p>[foo][ref[bar]]</p>",
"should not support references w/ brackets (2)"
);
assert_eq!(
to_html("[[[foo]]]: /url\n\n[[[foo]]]"),
"<p>[[[foo]]]: /url</p>\n<p>[[[foo]]]</p>",
"should not support references w/ brackets (3)"
);
assert_eq!(
to_html("[ref\\[]: /uri\n\n[foo][ref\\[]"),
"<p><a href=\"/uri\">foo</a></p>",
"should match references to definitions w/ matching escapes"
);
assert_eq!(
to_html("[bar\\\\]: /uri\n\n[bar\\\\]"),
"<p><a href=\"/uri\">bar\\</a></p>",
"should support escapes"
);
assert_eq!(
to_html("[]: /uri\n\n[]"),
"<p>[]: /uri</p>\n<p>[]</p>",
"should not support empty references"
);
assert_eq!(
to_html("[\n ]: /uri\n\n[\n ]"),
"<p>[\n]: /uri</p>\n<p>[\n]</p>",
"should not support blank references"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n[foo][]"),
"<p><a href=\"/url\" title=\"title\">foo</a></p>",
"should support collaped references"
);
assert_eq!(
to_html("[*foo* bar]: /url \"title\"\n\n[*foo* bar][]"),
"<p><a href=\"/url\" title=\"title\"><em>foo</em> bar</a></p>",
"should support content in collaped references"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n[Foo][]"),
"<p><a href=\"/url\" title=\"title\">Foo</a></p>",
"should match references to definitions case-insensitively"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n[foo] \n[]"),
"<p><a href=\"/url\" title=\"title\">foo</a>\n[]</p>",
"should not support whitespace between label and collaped reference"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n[foo]"),
"<p><a href=\"/url\" title=\"title\">foo</a></p>",
"should support shortcut references"
);
assert_eq!(
to_html("[*foo* bar]: /url \"title\"\n\n[*foo* bar]"),
"<p><a href=\"/url\" title=\"title\"><em>foo</em> bar</a></p>",
"should support content in shortcut references (1)"
);
assert_eq!(
to_html("[*foo* bar]: /url \"title\"\n\n[[*foo* bar]]"),
"<p>[<a href=\"/url\" title=\"title\"><em>foo</em> bar</a>]</p>",
"should support content in shortcut references (2)"
);
assert_eq!(
to_html("[foo]: /url\n\n[[bar [foo]"),
"<p>[[bar <a href=\"/url\">foo</a></p>",
"should support content in shortcut references (3)"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n[Foo]"),
"<p><a href=\"/url\" title=\"title\">Foo</a></p>",
"should match shortcut references to definitions case-insensitively"
);
assert_eq!(
to_html("[foo]: /url\n\n[foo] bar"),
"<p><a href=\"/url\">foo</a> bar</p>",
"should support whitespace after a shortcut reference"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n\\[foo]"),
"<p>[foo]</p>",
"should “support” an escaped shortcut reference"
);
assert_eq!(
to_html("[foo*]: /url\n\n*[foo*]"),
"<p>*<a href=\"/url\">foo*</a></p>",
"should prefer shortcut references over emphasis"
);
assert_eq!(
to_html("[foo]: /url1\n[bar]: /url2\n\n[foo][bar]"),
"<p><a href=\"/url2\">foo</a></p>",
"should prefer full references over shortcut references"
);
assert_eq!(
to_html("[foo]: /url1\n\n[foo][]"),
"<p><a href=\"/url1\">foo</a></p>",
"should prefer collapsed references over shortcut references"
);
assert_eq!(
to_html("[foo]: /url\n\n[foo]()"),
"<p><a href=\"\">foo</a></p>",
"should prefer resources over shortcut references (1)"
);
assert_eq!(
to_html("[foo]: /url \"title\"\n\n[foo]()"),
"<p><a href=\"\">foo</a></p>",
"should prefer resources over shortcut references (2)"
);
assert_eq!(
to_html("[foo]: /url1\n\n[foo](not a link)"),
"<p><a href=\"/url1\">foo</a>(not a link)</p>",
"should support shortcut references when followed by nonconforming resources"
);
assert_eq!(
to_html("[baz]: /url\n\n[foo][bar][baz]"),
"<p>[foo]<a href=\"/url\">bar</a></p>",
"stable/unstable (1)"
);
assert_eq!(
to_html("[baz]: /url1\n[bar]: /url2\n\n[foo][bar][baz]"),
"<p><a href=\"/url2\">foo</a><a href=\"/url1\">baz</a></p>",
"stable/unstable (2)"
);
assert_eq!(
to_html("[baz]: /url1\n[foo]: /url2\n\n[foo][bar][baz]"),
"<p>[foo]<a href=\"/url1\">bar</a></p>",
"stable/unstable (3)"
);
// Extra
// This matches most implimentations, but is not strictly according to spec.
// See: <https://github.com/commonmark/commonmark-spec/issues/653>
assert_eq!(
to_html("[x]: /url\n\n[x][ ], [x][\t], [x][\n], [x][]"),
"<p>[x][ ], [x][\t], [x][\n], <a href=\"/url\">x</a></p>",
"should not support whitespace-only full references"
);
// See also: <https://github.com/commonmark/commonmark-spec/issues/616>
assert_eq!(
to_html("[+]: example.com\n[\\;]: example.com\n\nWill it link? [\\+], [;]"),
"<p>Will it link? [+], [;]</p>",
"should not support mismatched character escapes in shortcuts"
);
assert_eq!(
to_html("[©]: example.com\n[&]: example.com\n\nWill it link? [©], [&]"),
"<p>Will it link? [©], [&]</p>",
"should not support mismatched character references in shortcuts"
);
assert_eq!(
to_html("[+]: example.com\n[\\;]: example.com\n\nWill it link? [\\+][], [;][]"),
"<p>Will it link? [+][], [;][]</p>",
"should not support mismatched character escapes in collapsed"
);
assert_eq!(
to_html("[©]: example.com\n[&]: example.com\n\nWill it link? [©][], [&][]"),
"<p>Will it link? [©][], [&][]</p>",
"should not support mismatched character references in collapsed"
);
assert_eq!(
to_html("[+]: example.com\n[\\;]: example.com\n\nWill it link? [a][ \\+ ], [b][ ; ]"),
"<p>Will it link? [a][ + ], [b][ ; ]</p>",
"should not support mismatched character escapes in fulls"
);
assert_eq!(
to_html("[©]: example.com\n[&]: example.com\n\nWill it link? [a][ © ], [b][ & ]"),
"<p>Will it link? [a][ © ], [b][ & ]</p>",
"should not support mismatched character references in fulls"
);
assert_eq!(
to_html(
"[*f*][]
[;][]
[\\;][]
[;][]
[*f*;][]
[*f*\\;][]
[*f*;][]
[*f*]: alpha
[;]: bravo
[\\;]: charlie
[;]: delta
[*f*;]: echo
[*f*\\;]: foxtrot
[*f*;]: golf"
),
"<p><a href=\"alpha\"><em>f</em></a>
<a href=\"bravo\">;</a>
<a href=\"charlie\">;</a>
<a href=\"delta\">;</a>
<a href=\"echo\"><em>f</em>;</a>
<a href=\"foxtrot\"><em>f</em>;</a>
<a href=\"golf\"><em>f</em>;</a></p>
",
"should properly handle labels w/ character references and -escapes, and phrasing"
);
// 999 `x` characters.
let max = "x".repeat(999);
assert_eq!(
to_html(format!("[{}]: a\n[y][{}]", max, max).as_str()),
"<p><a href=\"a\">y</a></p>",
"should support 999 characters in a reference"
);
assert_eq!(
to_html(format!("[{}x]: a\n[y][{}x]", max, max).as_str()),
format!("<p>[{}x]: a\n[y][{}x]</p>", max, max),
"should not support 1000 characters in a reference"
);
assert_eq!(
to_html("[x] missing-colon\n\nWill it link? [x]"),
"<p>[x] missing-colon</p>\n<p>Will it link? [x]</p>",
"should not fail on a missing colon in a definition"
);
assert_eq!(
to_html_with_options(
"[x]()",
&Options {
parse: ParseOptions {
constructs: Constructs {
label_start_link: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>[x]()</p>",
"should support turning off label start (link)"
);
assert_eq!(
to_html_with_options(
"[x]()",
&Options {
parse: ParseOptions {
constructs: Constructs {
label_end: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>[x]()</p>",
"should support turning off label end"
);
assert_eq!(
to_mdast("[x]: y\n\na [x] b [x][] c [d][x] e.", &Default::default())?,
Node::Root(Root {
children: vec![
Node::Definition(Definition {
identifier: "x".into(),
label: Some("x".into()),
url: "y".into(),
title: None,
position: Some(Position::new(1, 1, 0, 1, 7, 6))
}),
Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(3, 1, 8, 3, 3, 10))
}),
Node::LinkReference(LinkReference {
reference_kind: ReferenceKind::Shortcut,
identifier: "x".into(),
label: Some("x".into()),
children: vec![Node::Text(Text {
value: "x".into(),
position: Some(Position::new(3, 4, 11, 3, 5, 12))
}),],
position: Some(Position::new(3, 3, 10, 3, 6, 13))
}),
Node::Text(Text {
value: " b ".into(),
position: Some(Position::new(3, 6, 13, 3, 9, 16))
}),
Node::LinkReference(LinkReference {
reference_kind: ReferenceKind::Collapsed,
identifier: "x".into(),
label: Some("x".into()),
children: vec![Node::Text(Text {
value: "x".into(),
position: Some(Position::new(3, 10, 17, 3, 11, 18))
}),],
position: Some(Position::new(3, 9, 16, 3, 14, 21))
}),
Node::Text(Text {
value: " c ".into(),
position: Some(Position::new(3, 14, 21, 3, 17, 24))
}),
Node::LinkReference(LinkReference {
reference_kind: ReferenceKind::Full,
identifier: "x".into(),
label: Some("x".into()),
children: vec![Node::Text(Text {
value: "d".into(),
position: Some(Position::new(3, 18, 25, 3, 19, 26))
}),],
position: Some(Position::new(3, 17, 24, 3, 23, 30))
}),
Node::Text(Text {
value: " e.".into(),
position: Some(Position::new(3, 23, 30, 3, 26, 33))
}),
],
position: Some(Position::new(3, 1, 8, 3, 26, 33))
}),
],
position: Some(Position::new(1, 1, 0, 3, 26, 33))
}),
"should support link (reference) as `LinkReference`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/link_resource.rs | Rust | use markdown::{
mdast::{Image, Link, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Options,
};
use pretty_assertions::assert_eq;
#[test]
fn link_resource() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("[link](/uri \"title\")"),
"<p><a href=\"/uri\" title=\"title\">link</a></p>",
"should support links"
);
assert_eq!(
to_html("[link](/uri)"),
"<p><a href=\"/uri\">link</a></p>",
"should support links w/o title"
);
assert_eq!(
to_html("[link]()"),
"<p><a href=\"\">link</a></p>",
"should support links w/o destination"
);
assert_eq!(
to_html("[link](<>)"),
"<p><a href=\"\">link</a></p>",
"should support links w/ empty enclosed destination"
);
assert_eq!(
to_html("[link](/my uri)"),
"<p>[link](/my uri)</p>",
"should not support links w/ spaces in destination"
);
assert_eq!(
to_html("[link](</my uri>)"),
"<p><a href=\"/my%20uri\">link</a></p>",
"should support links w/ spaces in enclosed destination"
);
assert_eq!(
to_html("[link](foo\nbar)"),
"<p>[link](foo\nbar)</p>",
"should not support links w/ line endings in destination"
);
assert_eq!(
to_html_with_options("[link](<foo\nbar>)", &danger)?,
"<p>[link](<foo\nbar>)</p>",
"should not support links w/ line endings in enclosed destination"
);
assert_eq!(
to_html("[a](<b)c>)"),
"<p><a href=\"b)c\">a</a></p>",
"should support links w/ closing parens in destination"
);
assert_eq!(
to_html("[link](<foo\\>)"),
"<p>[link](<foo>)</p>",
"should not support links w/ enclosed destinations w/o end"
);
assert_eq!(
to_html_with_options("[a](<b)c\n[a](<b)c>\n[a](<b>c)", &danger)?,
"<p>[a](<b)c\n[a](<b)c>\n[a](<b>c)</p>",
"should not support links w/ unmatched enclosed destinations"
);
assert_eq!(
to_html("[link](\\(foo\\))"),
"<p><a href=\"(foo)\">link</a></p>",
"should support links w/ destinations w/ escaped parens"
);
assert_eq!(
to_html("[link](foo(and(bar)))"),
"<p><a href=\"foo(and(bar))\">link</a></p>",
"should support links w/ destinations w/ balanced parens"
);
assert_eq!(
to_html("[link](foo\\(and\\(bar\\))"),
"<p><a href=\"foo(and(bar)\">link</a></p>",
"should support links w/ destinations w/ escaped parens"
);
assert_eq!(
to_html("[link](<foo(and(bar)>)"),
"<p><a href=\"foo(and(bar)\">link</a></p>",
"should support links w/ enclosed destinations w/ parens"
);
assert_eq!(
to_html_with_options("[link](foo\\)\\:)", &danger)?,
"<p><a href=\"foo):\">link</a></p>",
"should support links w/ escapes in destinations"
);
assert_eq!(
to_html("[link](#fragment)"),
"<p><a href=\"#fragment\">link</a></p>",
"should support links w/ destinations to fragments"
);
assert_eq!(
to_html("[link](http://example.com#fragment)"),
"<p><a href=\"http://example.com#fragment\">link</a></p>",
"should support links w/ destinations to URLs w/ fragments"
);
assert_eq!(
to_html("[link](http://example.com?foo=3#frag)"),
"<p><a href=\"http://example.com?foo=3#frag\">link</a></p>",
"should support links w/ destinations to URLs w/ search and fragments"
);
assert_eq!(
to_html("[link](foo\\bar)"),
"<p><a href=\"foo%5Cbar\">link</a></p>",
"should not support non-punctuation character escapes in links"
);
assert_eq!(
to_html("[link](foo%20bä)"),
"<p><a href=\"foo%20b%C3%A4\">link</a></p>",
"should support character references in links"
);
assert_eq!(
to_html("[link](\"title\")"),
"<p><a href=\"%22title%22\">link</a></p>",
"should not support links w/ only a title"
);
assert_eq!(
to_html("[link](/url \"title\")"),
"<p><a href=\"/url\" title=\"title\">link</a></p>",
"should support titles w/ double quotes"
);
assert_eq!(
to_html("[link](/url 'title')"),
"<p><a href=\"/url\" title=\"title\">link</a></p>",
"should support titles w/ single quotes"
);
assert_eq!(
to_html("[link](/url (title))"),
"<p><a href=\"/url\" title=\"title\">link</a></p>",
"should support titles w/ parens"
);
assert_eq!(
to_html("[link](/url \"title \\\""\")"),
"<p><a href=\"/url\" title=\"title ""\">link</a></p>",
"should support character references and escapes in titles"
);
assert_eq!(
to_html("[link](/url \"title\")"),
"<p><a href=\"/url%C2%A0%22title%22\">link</a></p>",
"should not support unicode whitespace between destination and title"
);
assert_eq!(
to_html("[link](/url \"title \"and\" title\")"),
"<p>[link](/url "title "and" title")</p>",
"should not support nested balanced quotes in title"
);
assert_eq!(
to_html("[link](/url 'title \"and\" title')"),
"<p><a href=\"/url\" title=\"title "and" title\">link</a></p>",
"should support the other quotes in titles"
);
assert_eq!(
to_html("[link]( /uri\n \"title\" )"),
"<p><a href=\"/uri\" title=\"title\">link</a></p>",
"should support whitespace around destination and title (1)"
);
assert_eq!(
to_html("[link](\t\n/uri \"title\")"),
"<p><a href=\"/uri\" title=\"title\">link</a></p>",
"should support whitespace around destination and title (2)"
);
assert_eq!(
to_html("[link](/uri \"title\"\t\n)"),
"<p><a href=\"/uri\" title=\"title\">link</a></p>",
"should support whitespace around destination and title (3)"
);
assert_eq!(
to_html("[link] (/uri)"),
"<p>[link] (/uri)</p>",
"should not support whitespace between label and resource"
);
assert_eq!(
to_html("[link [foo [bar]]](/uri)"),
"<p><a href=\"/uri\">link [foo [bar]]</a></p>",
"should support balanced brackets"
);
assert_eq!(
to_html("[link] bar](/uri)"),
"<p>[link] bar](/uri)</p>",
"should not support unbalanced brackets (1)"
);
assert_eq!(
to_html("[link [bar](/uri)"),
"<p>[link <a href=\"/uri\">bar</a></p>",
"should not support unbalanced brackets (2)"
);
assert_eq!(
to_html("[link \\[bar](/uri)"),
"<p><a href=\"/uri\">link [bar</a></p>",
"should support characer escapes"
);
assert_eq!(
to_html("[link *foo **bar** `#`*](/uri)"),
"<p><a href=\"/uri\">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>",
"should support content"
);
assert_eq!(
to_html("[](/uri)"),
"<p><a href=\"/uri\"><img src=\"moon.jpg\" alt=\"moon\" /></a></p>",
"should support an image as content"
);
assert_eq!(
to_html("[foo [bar](/uri)](/uri)"),
"<p>[foo <a href=\"/uri\">bar</a>](/uri)</p>",
"should not support links in links (1)"
);
assert_eq!(
to_html("[foo *[bar [baz](/uri)](/uri)*](/uri)"),
"<p>[foo <em>[bar <a href=\"/uri\">baz</a>](/uri)</em>](/uri)</p>",
"should not support links in links (2)"
);
assert_eq!(
to_html("](uri2)](uri3)"),
"<p><img src=\"uri3\" alt=\"[foo](uri2)\" /></p>",
"should not support links in links (3)"
);
assert_eq!(
to_html("*[foo*](/uri)"),
"<p>*<a href=\"/uri\">foo*</a></p>",
"should prefer links over emphasis (1)"
);
assert_eq!(
to_html("[foo *bar](baz*)"),
"<p><a href=\"baz*\">foo *bar</a></p>",
"should prefer links over emphasis (2)"
);
assert_eq!(
to_html_with_options("[foo <bar attr=\"](baz)\">", &danger)?,
"<p>[foo <bar attr=\"](baz)\"></p>",
"should prefer HTML over links"
);
assert_eq!(
to_html("[foo`](/uri)`"),
"<p>[foo<code>](/uri)</code></p>",
"should prefer code over links"
);
assert_eq!(
to_html("[foo<http://example.com/?search=](uri)>"),
"<p>[foo<a href=\"http://example.com/?search=%5D(uri)\">http://example.com/?search=](uri)</a></p>",
"should prefer autolinks over links"
);
assert_eq!(
to_html("[foo<http://example.com/?search=](uri)>"),
"<p>[foo<a href=\"http://example.com/?search=%5D(uri)\">http://example.com/?search=](uri)</a></p>",
"should prefer autolinks over links"
);
// Extra
assert_eq!(
to_html("[]()"),
"<p><a href=\"\"></a></p>",
"should support an empty link"
);
// See: <https://github.com/commonmark/commonmark.js/issues/192>
assert_eq!(
to_html("[](<> \"\")"),
"<p><a href=\"\"></a></p>",
"should ignore an empty title"
);
assert_eq!(
to_html_with_options("[a](<b>\"c\")", &danger)?,
"<p>[a](<b>"c")</p>",
"should require whitespace between enclosed destination and title"
);
assert_eq!(
to_html("[](<"),
"<p>[](<</p>",
"should not support an unclosed enclosed destination"
);
assert_eq!(
to_html("[]("),
"<p>[](</p>",
"should not support an unclosed destination"
);
assert_eq!(
to_html("[](\\<)"),
"<p><a href=\"%3C\"></a></p>",
"should support unenclosed link destination starting w/ escapes"
);
assert_eq!(
to_html("[](<\\<>)"),
"<p><a href=\"%3C\"></a></p>",
"should support enclosed link destination starting w/ escapes"
);
assert_eq!(
to_html("[](\\"),
"<p>[](\\</p>",
"should not support unenclosed link destination starting w/ an incorrect escape"
);
assert_eq!(
to_html("[](<\\"),
"<p>[](<\\</p>",
"should not support enclosed link destination starting w/ an incorrect escape"
);
assert_eq!(
to_html("[](a \""),
"<p>[](a "</p>",
"should not support an eof in a link title (1)"
);
assert_eq!(
to_html("[](a '"),
"<p>[](a '</p>",
"should not support an eof in a link title (2)"
);
assert_eq!(
to_html("[](a ("),
"<p>[](a (</p>",
"should not support an eof in a link title (3)"
);
assert_eq!(
to_html("[](a \"\\"),
"<p>[](a "\\</p>",
"should not support an eof in a link title escape (1)"
);
assert_eq!(
to_html("[](a '\\"),
"<p>[](a '\\</p>",
"should not support an eof in a link title escape (2)"
);
assert_eq!(
to_html("[](a (\\"),
"<p>[](a (\\</p>",
"should not support an eof in a link title escape (3)"
);
assert_eq!(
to_html("[](a \"\\\"\")"),
"<p><a href=\"a\" title=\""\"></a></p>",
"should support a character escape to start a link title (1)"
);
assert_eq!(
to_html("[](a '\\'')"),
"<p><a href=\"a\" title=\"\'\"></a></p>",
"should support a character escape to start a link title (2)"
);
assert_eq!(
to_html("[](a (\\)))"),
"<p><a href=\"a\" title=\")\"></a></p>",
"should support a character escape to start a link title (3)"
);
assert_eq!(
to_html("[&©&](example.com/&©& \"&©&\")"),
"<p><a href=\"example.com/&%C2%A9&\" title=\"&©&\">&©&</a></p>",
"should support character references in links"
);
assert_eq!(
to_html("[a](1())"),
"<p><a href=\"1()\">a</a></p>",
"should support 1 set of parens"
);
assert_eq!(
to_html("[a](1(2()))"),
"<p><a href=\"1(2())\">a</a></p>",
"should support 2 sets of parens"
);
assert_eq!(
to_html(
"[a](1(2(3(4(5(6(7(8(9(10(11(12(13(14(15(16(17(18(19(20(21(22(23(24(25(26(27(28(29(30(31(32()))))))))))))))))))))))))))))))))"),
"<p><a href=\"1(2(3(4(5(6(7(8(9(10(11(12(13(14(15(16(17(18(19(20(21(22(23(24(25(26(27(28(29(30(31(32())))))))))))))))))))))))))))))))\">a</a></p>",
"should support 32 sets of parens"
);
assert_eq!(
to_html(
"[a](1(2(3(4(5(6(7(8(9(10(11(12(13(14(15(16(17(18(19(20(21(22(23(24(25(26(27(28(29(30(31(32(33())))))))))))))))))))))))))))))))))"),
"<p>[a](1(2(3(4(5(6(7(8(9(10(11(12(13(14(15(16(17(18(19(20(21(22(23(24(25(26(27(28(29(30(31(32(33())))))))))))))))))))))))))))))))))</p>",
"should not support 33 or more sets of parens"
);
assert_eq!(
to_html("[a](b \"\n c\")"),
"<p><a href=\"b\" title=\"\nc\">a</a></p>",
"should support an eol at the start of a title"
);
assert_eq!(
to_html("[a](b( \"c\")"),
"<p>[a](b( "c")</p>",
"should not support whitespace when unbalanced in a raw destination"
);
assert_eq!(
to_html("[a](\0)"),
"<p><a href=\"%EF%BF%BD\">a</a></p>",
"should support a single NUL character as a link resource"
);
assert_eq!(
to_mdast(
"a [alpha]() b [bravo](charlie 'delta') c.",
&Default::default()
)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::Link(Link {
url: String::new(),
title: None,
children: vec![Node::Text(Text {
value: "alpha".into(),
position: Some(Position::new(1, 4, 3, 1, 9, 8))
}),],
position: Some(Position::new(1, 3, 2, 1, 12, 11))
}),
Node::Text(Text {
value: " b ".into(),
position: Some(Position::new(1, 12, 11, 1, 15, 14))
}),
Node::Link(Link {
url: "charlie".into(),
title: Some("delta".into()),
children: vec![Node::Text(Text {
value: "bravo".into(),
position: Some(Position::new(1, 16, 15, 1, 21, 20))
}),],
position: Some(Position::new(1, 15, 14, 1, 39, 38))
}),
Node::Text(Text {
value: " c.".into(),
position: Some(Position::new(1, 39, 38, 1, 42, 41))
})
],
position: Some(Position::new(1, 1, 0, 1, 42, 41))
})],
position: Some(Position::new(1, 1, 0, 1, 42, 41))
}),
"should support link (resource) as `Link`s in mdast"
);
assert_eq!(
to_mdast("[](url)", &Default::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Link(Link {
children: vec![Node::Image(Image {
alt: "name".into(),
url: "image".into(),
title: None,
position: Some(Position::new(1, 2, 1, 1, 16, 15)),
}),],
url: "url".into(),
title: None,
position: Some(Position::new(1, 1, 0, 1, 22, 21)),
}),],
position: Some(Position::new(1, 1, 0, 1, 22, 21)),
}),],
position: Some(Position::new(1, 1, 0, 1, 22, 21))
}),
"should support nested links in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/list.rs | Rust | use markdown::{
mdast::{List, ListItem, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn list() -> Result<(), message::Message> {
let danger = Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html(
"A paragraph\nwith two lines.\n\n indented code\n\n> A block quote."),
"<p>A paragraph\nwith two lines.</p>\n<pre><code>indented code\n</code></pre>\n<blockquote>\n<p>A block quote.</p>\n</blockquote>",
"should support documents"
);
assert_eq!(
to_html("1. a\n b.\n\n c\n\n > d."),
"<ol>\n<li>\n<p>a\nb.</p>\n<pre><code>c\n</code></pre>\n<blockquote>\n<p>d.</p>\n</blockquote>\n</li>\n</ol>",
"should support documents in list items"
);
assert_eq!(
to_html("- one\n\n two"),
"<ul>\n<li>one</li>\n</ul>\n<p>two</p>",
"should not support 1 space for a two-character list prefix"
);
assert_eq!(
to_html("- a\n\n b"),
"<ul>\n<li>\n<p>a</p>\n<p>b</p>\n</li>\n</ul>",
"should support blank lines in list items"
);
assert_eq!(
to_html(" - one\n\n two"),
"<ul>\n<li>one</li>\n</ul>\n<pre><code> two\n</code></pre>",
"should support indented code after lists"
);
assert_eq!(
to_html(" > > 1. one\n>>\n>> two"),
"<blockquote>\n<blockquote>\n<ol>\n<li>\n<p>one</p>\n<p>two</p>\n</li>\n</ol>\n</blockquote>\n</blockquote>",
"should support proper indent mixed w/ block quotes (1)"
);
assert_eq!(
to_html(">>- one\n>>\n > > two"),
"<blockquote>\n<blockquote>\n<ul>\n<li>one</li>\n</ul>\n<p>two</p>\n</blockquote>\n</blockquote>",
"should support proper indent mixed w/ block quotes (2)"
);
assert_eq!(
to_html("-one\n\n2.two"),
"<p>-one</p>\n<p>2.two</p>",
"should not support a missing space after marker"
);
assert_eq!(
to_html("- foo\n\n\n bar"),
"<ul>\n<li>\n<p>foo</p>\n<p>bar</p>\n</li>\n</ul>",
"should support multiple blank lines between items"
);
assert_eq!(
to_html("1. foo\n\n ```\n bar\n ```\n\n baz\n\n > bam"),
"<ol>\n<li>\n<p>foo</p>\n<pre><code>bar\n</code></pre>\n<p>baz</p>\n<blockquote>\n<p>bam</p>\n</blockquote>\n</li>\n</ol>",
"should support flow in items"
);
assert_eq!(
to_html("- Foo\n\n bar\n\n\n baz"),
"<ul>\n<li>\n<p>Foo</p>\n<pre><code>bar\n\n\nbaz\n</code></pre>\n</li>\n</ul>",
"should support blank lines in indented code in items"
);
assert_eq!(
to_html("123456789. ok"),
"<ol start=\"123456789\">\n<li>ok</li>\n</ol>",
"should support start on the first list item"
);
assert_eq!(
to_html("1234567890. not ok"),
"<p>1234567890. not ok</p>",
"should not support ordered item values over 10 digits"
);
assert_eq!(
to_html("0. ok"),
"<ol start=\"0\">\n<li>ok</li>\n</ol>",
"should support ordered item values of `0`"
);
assert_eq!(
to_html("003. ok"),
"<ol start=\"3\">\n<li>ok</li>\n</ol>",
"should support ordered item values starting w/ `0`s"
);
assert_eq!(
to_html("-1. not ok"),
"<p>-1. not ok</p>",
"should not support “negative” ordered item values"
);
assert_eq!(
to_html("- foo\n\n bar"),
"<ul>\n<li>\n<p>foo</p>\n<pre><code>bar\n</code></pre>\n</li>\n</ul>",
"should support indented code in list items (1)"
);
assert_eq!(
to_html(" 10. foo\n\n bar"),
"<ol start=\"10\">\n<li>\n<p>foo</p>\n<pre><code>bar\n</code></pre>\n</li>\n</ol>",
"should support indented code in list items (2)"
);
assert_eq!(
to_html(" indented code\n\nparagraph\n\n more code"),
"<pre><code>indented code\n</code></pre>\n<p>paragraph</p>\n<pre><code>more code\n</code></pre>",
"should support indented code in list items (3)"
);
assert_eq!(
to_html("1. indented code\n\n paragraph\n\n more code"),
"<ol>\n<li>\n<pre><code>indented code\n</code></pre>\n<p>paragraph</p>\n<pre><code>more code\n</code></pre>\n</li>\n</ol>",
"should support indented code in list items (4)"
);
assert_eq!(
to_html("1. indented code\n\n paragraph\n\n more code"),
"<ol>\n<li>\n<pre><code> indented code\n</code></pre>\n<p>paragraph</p>\n<pre><code>more code\n</code></pre>\n</li>\n</ol>",
"should support indented code in list items (5)"
);
assert_eq!(
to_html(" foo\n\nbar"),
"<p>foo</p>\n<p>bar</p>",
"should support indented code in list items (6)"
);
assert_eq!(
to_html("- foo\n\n bar"),
"<ul>\n<li>foo</li>\n</ul>\n<p>bar</p>",
"should support indented code in list items (7)"
);
assert_eq!(
to_html("- foo\n\n bar"),
"<ul>\n<li>\n<p>foo</p>\n<p>bar</p>\n</li>\n</ul>",
"should support indented code in list items (8)"
);
assert_eq!(
to_html("-\n foo\n-\n ```\n bar\n ```\n-\n baz"),
"<ul>\n<li>foo</li>\n<li>\n<pre><code>bar\n</code></pre>\n</li>\n<li>\n<pre><code>baz\n</code></pre>\n</li>\n</ul>",
"should support blank first lines (1)"
);
assert_eq!(
to_html("- \n foo"),
"<ul>\n<li>foo</li>\n</ul>",
"should support blank first lines (2)"
);
assert_eq!(
to_html("-\n\n foo"),
"<ul>\n<li></li>\n</ul>\n<p>foo</p>",
"should support empty only items"
);
assert_eq!(
to_html("- foo\n-\n- bar"),
"<ul>\n<li>foo</li>\n<li></li>\n<li>bar</li>\n</ul>",
"should support empty continued items"
);
assert_eq!(
to_html("- foo\n- \n- bar"),
"<ul>\n<li>foo</li>\n<li></li>\n<li>bar</li>\n</ul>",
"should support blank continued items"
);
assert_eq!(
to_html("1. foo\n2.\n3. bar"),
"<ol>\n<li>foo</li>\n<li></li>\n<li>bar</li>\n</ol>",
"should support empty continued items (ordered)"
);
assert_eq!(
to_html("*"),
"<ul>\n<li></li>\n</ul>",
"should support a single empty item"
);
assert_eq!(
to_html("foo\n*\n\nfoo\n1."),
"<p>foo\n*</p>\n<p>foo\n1.</p>",
"should not support empty items to interrupt paragraphs"
);
assert_eq!(
to_html(
" 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote."),
"<ol>\n<li>\n<p>A paragraph\nwith two lines.</p>\n<pre><code>indented code\n</code></pre>\n<blockquote>\n<p>A block quote.</p>\n</blockquote>\n</li>\n</ol>",
"should support indenting w/ 1 space"
);
assert_eq!(
to_html(
" 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote."),
"<ol>\n<li>\n<p>A paragraph\nwith two lines.</p>\n<pre><code>indented code\n</code></pre>\n<blockquote>\n<p>A block quote.</p>\n</blockquote>\n</li>\n</ol>",
"should support indenting w/ 2 spaces"
);
assert_eq!(
to_html(
" 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote."),
"<ol>\n<li>\n<p>A paragraph\nwith two lines.</p>\n<pre><code>indented code\n</code></pre>\n<blockquote>\n<p>A block quote.</p>\n</blockquote>\n</li>\n</ol>",
"should support indenting w/ 3 spaces"
);
assert_eq!(
to_html(
" 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote."),
"<pre><code>1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n</code></pre>",
"should not support indenting w/ 4 spaces"
);
assert_eq!(
to_html(
" 1. A paragraph\nwith two lines.\n\n indented code\n\n > A block quote."),
"<ol>\n<li>\n<p>A paragraph\nwith two lines.</p>\n<pre><code>indented code\n</code></pre>\n<blockquote>\n<p>A block quote.</p>\n</blockquote>\n</li>\n</ol>",
"should support lazy lines"
);
assert_eq!(
to_html(" 1. A paragraph\n with two lines."),
"<ol>\n<li>A paragraph\nwith two lines.</li>\n</ol>",
"should support partially lazy lines"
);
assert_eq!(
to_html("> 1. > Blockquote\ncontinued here."),
"<blockquote>\n<ol>\n<li>\n<blockquote>\n<p>Blockquote\ncontinued here.</p>\n</blockquote>\n</li>\n</ol>\n</blockquote>",
"should support lazy lines combined w/ other containers"
);
assert_eq!(
to_html("> 1. > Blockquote\n> continued here."),
"<blockquote>\n<ol>\n<li>\n<blockquote>\n<p>Blockquote\ncontinued here.</p>\n</blockquote>\n</li>\n</ol>\n</blockquote>",
"should support partially continued, partially lazy lines combined w/ other containers"
);
assert_eq!(
to_html("- [\na"),
"<ul>\n<li>[\na</li>\n</ul>",
"should support lazy, definition-like lines"
);
assert_eq!(
to_html("- [a]: b\nc"),
"<ul>\n<li>c</li>\n</ul>",
"should support a definition, followed by a lazy paragraph"
);
assert_eq!(
to_html("- foo\n - bar\n - baz\n - boo"),
"<ul>\n<li>foo\n<ul>\n<li>bar\n<ul>\n<li>baz\n<ul>\n<li>boo</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
"should support sublists w/ enough spaces (1)"
);
assert_eq!(
to_html("- foo\n - bar\n - baz\n - boo"),
"<ul>\n<li>foo</li>\n<li>bar</li>\n<li>baz</li>\n<li>boo</li>\n</ul>",
"should not support sublists w/ too few spaces"
);
assert_eq!(
to_html("10) foo\n - bar"),
"<ol start=\"10\">\n<li>foo\n<ul>\n<li>bar</li>\n</ul>\n</li>\n</ol>",
"should support sublists w/ enough spaces (2)"
);
assert_eq!(
to_html("10) foo\n - bar"),
"<ol start=\"10\">\n<li>foo</li>\n</ol>\n<ul>\n<li>bar</li>\n</ul>",
"should not support sublists w/ too few spaces (2)"
);
assert_eq!(
to_html("- - foo"),
"<ul>\n<li>\n<ul>\n<li>foo</li>\n</ul>\n</li>\n</ul>",
"should support sublists (1)"
);
assert_eq!(
to_html("1. - 2. foo"),
"<ol>\n<li>\n<ul>\n<li>\n<ol start=\"2\">\n<li>foo</li>\n</ol>\n</li>\n</ul>\n</li>\n</ol>",
"should support sublists (2)"
);
assert_eq!(
to_html("- # Foo\n- Bar\n ---\n baz"),
"<ul>\n<li>\n<h1>Foo</h1>\n</li>\n<li>\n<h2>Bar</h2>\nbaz</li>\n</ul>",
"should support headings in list items"
);
assert_eq!(
to_html("- foo\n- bar\n+ baz"),
"<ul>\n<li>foo</li>\n<li>bar</li>\n</ul>\n<ul>\n<li>baz</li>\n</ul>",
"should support a new list by changing the marker (unordered)"
);
assert_eq!(
to_html("1. foo\n2. bar\n3) baz"),
"<ol>\n<li>foo</li>\n<li>bar</li>\n</ol>\n<ol start=\"3\">\n<li>baz</li>\n</ol>",
"should support a new list by changing the marker (ordered)"
);
assert_eq!(
to_html("Foo\n- bar\n- baz"),
"<p>Foo</p>\n<ul>\n<li>bar</li>\n<li>baz</li>\n</ul>",
"should support interrupting a paragraph"
);
assert_eq!(
to_html("a\n2. b"),
"<p>a\n2. b</p>",
"should not support interrupting a paragraph with a non-1 numbered item"
);
assert_eq!(
to_html("\n2. a"),
"<ol start=\"2\">\n<li>a</li>\n</ol>",
"should “interrupt” a blank line (1)"
);
assert_eq!(
to_html("a\n\n2. b"),
"<p>a</p>\n<ol start=\"2\">\n<li>b</li>\n</ol>",
"should “interrupt” a blank line (2)"
);
assert_eq!(
to_html("a\n1. b"),
"<p>a</p>\n<ol>\n<li>b</li>\n</ol>",
"should support interrupting a paragraph with a 1 numbered item"
);
assert_eq!(
to_html("- foo\n\n- bar\n\n\n- baz"),
"<ul>\n<li>\n<p>foo</p>\n</li>\n<li>\n<p>bar</p>\n</li>\n<li>\n<p>baz</p>\n</li>\n</ul>",
"should support blank lines between items (1)"
);
assert_eq!(
to_html("- foo\n - bar\n - baz\n\n\n bim"),
"<ul>\n<li>foo\n<ul>\n<li>bar\n<ul>\n<li>\n<p>baz</p>\n<p>bim</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
"should support blank lines between items (2)"
);
assert_eq!(
to_html_with_options("- foo\n- bar\n\n<!-- -->\n\n- baz\n- bim", &danger)?,
"<ul>\n<li>foo</li>\n<li>bar</li>\n</ul>\n<!-- -->\n<ul>\n<li>baz</li>\n<li>bim</li>\n</ul>",
"should support HTML comments between lists"
);
assert_eq!(
to_html_with_options("- foo\n\n notcode\n\n- foo\n\n<!-- -->\n\n code", &danger)?,
"<ul>\n<li>\n<p>foo</p>\n<p>notcode</p>\n</li>\n<li>\n<p>foo</p>\n</li>\n</ul>\n<!-- -->\n<pre><code>code\n</code></pre>",
"should support HTML comments between lists and indented code"
);
assert_eq!(
to_html("- a\n - b\n - c\n - d\n - e\n - f\n- g"),
"<ul>\n<li>a</li>\n<li>b</li>\n<li>c</li>\n<li>d</li>\n<li>e</li>\n<li>f</li>\n<li>g</li>\n</ul>",
"should not support lists in lists w/ too few spaces (1)"
);
assert_eq!(
to_html("1. a\n\n 2. b\n\n 3. c"),
"<ol>\n<li>\n<p>a</p>\n</li>\n<li>\n<p>b</p>\n</li>\n<li>\n<p>c</p>\n</li>\n</ol>",
"should not support lists in lists w/ too few spaces (2)"
);
assert_eq!(
to_html("- a\n - b\n - c\n - d\n - e"),
"<ul>\n<li>a</li>\n<li>b</li>\n<li>c</li>\n<li>d\n- e</li>\n</ul>",
"should not support lists in lists w/ too few spaces (3)"
);
assert_eq!(
to_html("1. a\n\n 2. b\n\n 3. c"),
"<ol>\n<li>\n<p>a</p>\n</li>\n<li>\n<p>b</p>\n</li>\n</ol>\n<pre><code>3. c\n</code></pre>",
"should not support lists in lists w/ too few spaces (3)"
);
assert_eq!(
to_html("- a\n- b\n\n- c"),
"<ul>\n<li>\n<p>a</p>\n</li>\n<li>\n<p>b</p>\n</li>\n<li>\n<p>c</p>\n</li>\n</ul>",
"should support loose lists w/ a blank line between (1)"
);
assert_eq!(
to_html("* a\n*\n\n* c"),
"<ul>\n<li>\n<p>a</p>\n</li>\n<li></li>\n<li>\n<p>c</p>\n</li>\n</ul>",
"should support loose lists w/ a blank line between (2)"
);
assert_eq!(
to_html("- a\n- b\n\n c\n- d"),
"<ul>\n<li>\n<p>a</p>\n</li>\n<li>\n<p>b</p>\n<p>c</p>\n</li>\n<li>\n<p>d</p>\n</li>\n</ul>",
"should support loose lists w/ a blank line in an item (1)"
);
assert_eq!(
to_html("- a\n- b\n\n [ref]: /url\n- d"),
"<ul>\n<li>\n<p>a</p>\n</li>\n<li>\n<p>b</p>\n</li>\n<li>\n<p>d</p>\n</li>\n</ul>",
"should support loose lists w/ a blank line in an item (2)"
);
assert_eq!(
to_html("- a\n- ```\n b\n\n\n ```\n- c"),
"<ul>\n<li>a</li>\n<li>\n<pre><code>b\n\n\n</code></pre>\n</li>\n<li>c</li>\n</ul>",
"should support tight lists w/ a blank line in fenced code"
);
assert_eq!(
to_html("- a\n - b\n\n c\n- d"),
"<ul>\n<li>a\n<ul>\n<li>\n<p>b</p>\n<p>c</p>\n</li>\n</ul>\n</li>\n<li>d</li>\n</ul>",
"should support tight lists w/ a blank line in a sublist"
);
assert_eq!(
to_html("* a\n > b\n >\n* c"),
"<ul>\n<li>a\n<blockquote>\n<p>b</p>\n</blockquote>\n</li>\n<li>c</li>\n</ul>",
"should support tight lists w/ a blank line in a block quote"
);
assert_eq!(
to_html("- a\n > b\n ```\n c\n ```\n- d"),
"<ul>\n<li>a\n<blockquote>\n<p>b</p>\n</blockquote>\n<pre><code>c\n</code></pre>\n</li>\n<li>d</li>\n</ul>",
"should support tight lists w/ flow w/o blank line"
);
assert_eq!(
to_html("- a"),
"<ul>\n<li>a</li>\n</ul>",
"should support tight lists w/ a single content"
);
assert_eq!(
to_html("- a\n - b"),
"<ul>\n<li>a\n<ul>\n<li>b</li>\n</ul>\n</li>\n</ul>",
"should support tight lists w/ a sublist"
);
assert_eq!(
to_html("1. ```\n foo\n ```\n\n bar"),
"<ol>\n<li>\n<pre><code>foo\n</code></pre>\n<p>bar</p>\n</li>\n</ol>",
"should support loose lists w/ a blank line in an item"
);
assert_eq!(
to_html("* foo\n * bar\n\n baz"),
"<ul>\n<li>\n<p>foo</p>\n<ul>\n<li>bar</li>\n</ul>\n<p>baz</p>\n</li>\n</ul>",
"should support loose lists w/ tight sublists (1)"
);
assert_eq!(
to_html("- a\n - b\n - c\n\n- d\n - e\n - f"),
"<ul>\n<li>\n<p>a</p>\n<ul>\n<li>b</li>\n<li>c</li>\n</ul>\n</li>\n<li>\n<p>d</p>\n<ul>\n<li>e</li>\n<li>f</li>\n</ul>\n</li>\n</ul>",
"should support loose lists w/ tight sublists (2)"
);
// Extra.
assert_eq!(
to_html("* a\n*\n\n \n\t\n* b"),
"<ul>\n<li>\n<p>a</p>\n</li>\n<li></li>\n<li>\n<p>b</p>\n</li>\n</ul>",
"should support continued list items after an empty list item w/ many blank lines"
);
assert_eq!(
to_html("*\n ~~~p\n\n ~~~"),
"<ul>\n<li>\n<pre><code class=\"language-p\">\n</code></pre>\n</li>\n</ul>",
"should support blank lines in code after an initial blank line"
);
assert_eq!(
to_html(
"* a tight item that ends with an html element: `x`\n\nParagraph"),
"<ul>\n<li>a tight item that ends with an html element: <code>x</code></li>\n</ul>\n<p>Paragraph</p>",
"should ignore line endings after tight items ending in tags"
);
assert_eq!(
to_html("* foo\n\n*\n\n* bar"),
"<ul>\n<li>\n<p>foo</p>\n</li>\n<li></li>\n<li>\n<p>bar</p>\n</li>\n</ul>",
"should support empty items in a spread list"
);
assert_eq!(
to_html("- ```\n\n ```"),
"<ul>\n<li>\n<pre><code>\n</code></pre>\n</li>\n</ul>",
"should remove indent of code (fenced) in list (0 space)"
);
assert_eq!(
to_html("- ```\n \n ```"),
"<ul>\n<li>\n<pre><code>\n</code></pre>\n</li>\n</ul>",
"should remove indent of code (fenced) in list (1 space)"
);
assert_eq!(
to_html("- ```\n \n ```"),
"<ul>\n<li>\n<pre><code>\n</code></pre>\n</li>\n</ul>",
"should remove indent of code (fenced) in list (2 spaces)"
);
assert_eq!(
to_html("- ```\n \n ```"),
"<ul>\n<li>\n<pre><code> \n</code></pre>\n</li>\n</ul>",
"should remove indent of code (fenced) in list (3 spaces)"
);
assert_eq!(
to_html("- ```\n \n ```"),
"<ul>\n<li>\n<pre><code> \n</code></pre>\n</li>\n</ul>",
"should remove indent of code (fenced) in list (4 spaces)"
);
assert_eq!(
to_html("- ```\n\t\n ```"),
"<ul>\n<li>\n<pre><code> \n</code></pre>\n</li>\n</ul>",
"should remove indent of code (fenced) in list (1 tab)"
);
assert_eq!(
to_html("- +\n-"),
"<ul>\n<li>\n<ul>\n<li></li>\n</ul>\n</li>\n<li></li>\n</ul>",
"should support complex nested and empty lists (1)"
);
assert_eq!(
to_html("- 1.\n-"),
"<ul>\n<li>\n<ol>\n<li></li>\n</ol>\n</li>\n<li></li>\n</ul>",
"should support complex nested and empty lists (2)"
);
assert_eq!(
to_html("* - +\n* -"),
"<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li></li>\n</ul>\n</li>\n</ul>\n</li>\n<li>\n<ul>\n<li></li>\n</ul>\n</li>\n</ul>",
"should support complex nested and empty lists (3)"
);
assert_eq!(
to_html_with_options("* a\n\n<!---->\n\n* b", &danger)?,
"<ul>\n<li>a</li>\n</ul>\n<!---->\n<ul>\n<li>b</li>\n</ul>",
"should support the common list breaking comment method"
);
assert_eq!(
to_html_with_options(
"- one\n\n two",
&Options {
parse: ParseOptions {
constructs: Constructs {
list_item: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>- one</p>\n<p>two</p>",
"should support turning off lists"
);
assert_eq!(
to_mdast("* a", &Default::default())?,
Node::Root(Root {
children: vec![Node::List(List {
ordered: false,
spread: false,
start: None,
children: vec![Node::ListItem(ListItem {
checked: None,
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "a".into(),
position: Some(Position::new(1, 3, 2, 1, 4, 3))
}),],
position: Some(Position::new(1, 3, 2, 1, 4, 3))
})],
position: Some(Position::new(1, 1, 0, 1, 4, 3))
})],
position: Some(Position::new(1, 1, 0, 1, 4, 3))
})],
position: Some(Position::new(1, 1, 0, 1, 4, 3))
}),
"should support lists, list items as `List`, `ListItem`s in mdast"
);
assert_eq!(
to_mdast("3. a\n4. b", &Default::default())?,
Node::Root(Root {
children: vec![Node::List(List {
ordered: true,
spread: false,
start: Some(3),
children: vec![
Node::ListItem(ListItem {
checked: None,
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "a".into(),
position: Some(Position::new(1, 4, 3, 1, 5, 4))
}),],
position: Some(Position::new(1, 4, 3, 1, 5, 4))
})],
position: Some(Position::new(1, 1, 0, 1, 5, 4))
}),
Node::ListItem(ListItem {
checked: None,
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "b".into(),
position: Some(Position::new(2, 4, 8, 2, 5, 9))
}),],
position: Some(Position::new(2, 4, 8, 2, 5, 9))
})],
position: Some(Position::new(2, 1, 5, 2, 5, 9))
})
],
position: Some(Position::new(1, 1, 0, 2, 5, 9))
})],
position: Some(Position::new(1, 1, 0, 2, 5, 9))
}),
"should support `start` fields on `List` w/ `ordered: true` in mdast"
);
assert_eq!(
to_mdast("* a\n\n b\n* c", &Default::default())?,
Node::Root(Root {
children: vec![Node::List(List {
ordered: false,
spread: false,
start: None,
children: vec![
Node::ListItem(ListItem {
checked: None,
spread: true,
children: vec![
Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "a".into(),
position: Some(Position::new(1, 3, 2, 1, 4, 3))
}),],
position: Some(Position::new(1, 3, 2, 1, 4, 3))
}),
Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "b".into(),
position: Some(Position::new(3, 3, 7, 3, 4, 8))
}),],
position: Some(Position::new(3, 3, 7, 3, 4, 8))
})
],
position: Some(Position::new(1, 1, 0, 3, 4, 8))
}),
Node::ListItem(ListItem {
checked: None,
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "c".into(),
position: Some(Position::new(4, 3, 11, 4, 4, 12))
}),],
position: Some(Position::new(4, 3, 11, 4, 4, 12))
})],
position: Some(Position::new(4, 1, 9, 4, 4, 12))
})
],
position: Some(Position::new(1, 1, 0, 4, 4, 12))
})],
position: Some(Position::new(1, 1, 0, 4, 4, 12))
}),
"should support `spread` fields on `List`, `ListItem`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/math_flow.rs | Rust | use markdown::{
mdast::{Math, Node, Root},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn math_flow() -> Result<(), message::Message> {
let math = Options {
parse: ParseOptions {
constructs: Constructs {
math_text: true,
math_flow: true,
..Default::default()
},
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("$$\na\n$$"),
"<p>$$\na\n$$</p>",
"should not support math (flow) by default"
);
assert_eq!(
to_html_with_options("$$\na\n$$", &math)?,
"<pre><code class=\"language-math math-display\">a\n</code></pre>",
"should support math (flow) if enabled"
);
assert_eq!(
to_html_with_options("$$\n<\n >\n$$", &math)?,
"<pre><code class=\"language-math math-display\"><\n >\n</code></pre>",
"should support math (flow)"
);
assert_eq!(
to_html_with_options("$\nfoo\n$", &math)?,
"<p><code class=\"language-math math-inline\">foo</code></p>",
"should not support math (flow) w/ less than two markers"
);
assert_eq!(
to_html_with_options("$$$\naaa\n$$\n$$$$", &math)?,
"<pre><code class=\"language-math math-display\">aaa\n$$\n</code></pre>",
"should support a closing sequence longer, but not shorter than, the opening"
);
assert_eq!(
to_html_with_options("$$", &math)?,
"<pre><code class=\"language-math math-display\"></code></pre>\n",
"should support an eof right after an opening sequence"
);
assert_eq!(
to_html_with_options("$$$\n\n$$\naaa\n", &math)?,
"<pre><code class=\"language-math math-display\">\n$$\naaa\n</code></pre>\n",
"should support an eof somewhere in content"
);
assert_eq!(
to_html_with_options("> $$\n> aaa\n\nbbb", &math)?,
"<blockquote>\n<pre><code class=\"language-math math-display\">aaa\n</code></pre>\n</blockquote>\n<p>bbb</p>",
"should support no closing sequence in a block quote"
);
assert_eq!(
to_html_with_options("$$\n\n \n$$", &math)?,
"<pre><code class=\"language-math math-display\">\n \n</code></pre>",
"should support blank lines in math (flow)"
);
assert_eq!(
to_html_with_options("$$\n$$", &math)?,
"<pre><code class=\"language-math math-display\"></code></pre>",
"should support empty math (flow)"
);
assert_eq!(
to_html_with_options(" $$\n aaa\naaa\n$$", &math)?,
"<pre><code class=\"language-math math-display\">aaa\naaa\n</code></pre>",
"should remove up to one space from the content if the opening sequence is indented w/ 1 space"
);
assert_eq!(
to_html_with_options(" $$\naaa\n aaa\naaa\n $$", &math)?,
"<pre><code class=\"language-math math-display\">aaa\naaa\naaa\n</code></pre>",
"should remove up to two space from the content if the opening sequence is indented w/ 2 spaces"
);
assert_eq!(
to_html_with_options(" $$\n aaa\n aaa\n aaa\n $$", &math)?,
"<pre><code class=\"language-math math-display\">aaa\n aaa\naaa\n</code></pre>",
"should remove up to three space from the content if the opening sequence is indented w/ 3 spaces"
);
assert_eq!(
to_html_with_options(" $$\n aaa\n $$", &math)?,
"<pre><code>$$\naaa\n$$\n</code></pre>",
"should not support indenteding the opening sequence w/ 4 spaces"
);
assert_eq!(
to_html_with_options("$$\naaa\n $$", &math)?,
"<pre><code class=\"language-math math-display\">aaa\n</code></pre>",
"should support an indented closing sequence"
);
assert_eq!(
to_html_with_options(" $$\naaa\n $$", &math)?,
"<pre><code class=\"language-math math-display\">aaa\n</code></pre>",
"should support a differently indented closing sequence than the opening sequence"
);
assert_eq!(
to_html_with_options("$$\naaa\n $$\n", &math)?,
"<pre><code class=\"language-math math-display\">aaa\n $$\n</code></pre>\n",
"should not support an indented closing sequence w/ 4 spaces"
);
assert_eq!(
to_html_with_options("$$ $$\naaa", &math)?,
"<p><code class=\"language-math math-inline\"> </code>\naaa</p>",
"should not support dollars in the opening fence after the opening sequence"
);
assert_eq!(
to_html_with_options("$$$\naaa\n$$$ $$\n", &math)?,
"<pre><code class=\"language-math math-display\">aaa\n$$$ $$\n</code></pre>\n",
"should not support spaces in the closing sequence"
);
assert_eq!(
to_html_with_options("foo\n$$\nbar\n$$\nbaz", &math)?,
"<p>foo</p>\n<pre><code class=\"language-math math-display\">bar\n</code></pre>\n<p>baz</p>",
"should support interrupting paragraphs"
);
assert_eq!(
to_html_with_options("foo\n---\n$$\nbar\n$$\n# baz", &math)?,
"<h2>foo</h2>\n<pre><code class=\"language-math math-display\">bar\n</code></pre>\n<h1>baz</h1>",
"should support interrupting other content"
);
assert_eq!(
to_html_with_options("$$ruby\ndef foo(x)\n return 3\nend\n$$", &math)?,
"<pre><code class=\"language-math math-display\">def foo(x)\n return 3\nend\n</code></pre>",
"should not support an “info” string (1)"
);
assert_eq!(
to_html_with_options("$$$;\n$$$", &math)?,
"<pre><code class=\"language-math math-display\"></code></pre>",
"should not support an “info” string (2)"
);
assert_eq!(
to_html_with_options("$$ ruby startline=3 `%@#`\ndef foo(x)\n return 3\nend\n$$$$", &math)?,
"<pre><code class=\"language-math math-display\">def foo(x)\n return 3\nend\n</code></pre>",
"should not support an “info” string (3)"
);
assert_eq!(
to_html_with_options("$$ aa $$\nfoo", &math)?,
"<p><code class=\"language-math math-inline\">aa</code>\nfoo</p>",
"should not support dollars in the meta string"
);
assert_eq!(
to_html_with_options("$$\n$$ aaa\n$$", &math)?,
"<pre><code class=\"language-math math-display\">$$ aaa\n</code></pre>",
"should not support meta string on closing sequences"
);
// Our own:
assert_eq!(
to_html_with_options("$$ ", &math)?,
"<pre><code class=\"language-math math-display\"></code></pre>\n",
"should support an eof after whitespace, after the start fence sequence"
);
assert_eq!(
to_html_with_options("$$ js\nalert(1)\n$$", &math)?,
"<pre><code class=\"language-math math-display\">alert(1)\n</code></pre>",
"should support whitespace between the sequence and the meta string"
);
assert_eq!(
to_html_with_options("$$js", &math)?,
"<pre><code class=\"language-math math-display\"></code></pre>\n",
"should support an eof after the meta string"
);
assert_eq!(
to_html_with_options("$$ js \nalert(1)\n$$", &math)?,
"<pre><code class=\"language-math math-display\">alert(1)\n</code></pre>",
"should support whitespace after the meta string"
);
assert_eq!(
to_html_with_options("$$\n ", &math)?,
"<pre><code class=\"language-math math-display\"> \n</code></pre>\n",
"should support an eof after whitespace in content"
);
assert_eq!(
to_html_with_options(" $$\n ", &math)?,
"<pre><code class=\"language-math math-display\"></code></pre>\n",
"should support an eof in the prefix, in content"
);
assert_eq!(
to_html_with_options("$$j\\+s©", &math)?,
"<pre><code class=\"language-math math-display\"></code></pre>\n",
"should support character escapes and character references in meta strings"
);
assert_eq!(
to_html_with_options("$$a\\&b\0c", &math)?,
"<pre><code class=\"language-math math-display\"></code></pre>\n",
"should support dangerous characters in meta strings"
);
assert_eq!(
to_html_with_options(" $$\naaa\n $$", &math)?,
"<pre><code class=\"language-math math-display\">aaa\n $$\n</code></pre>\n",
"should not support a closing sequence w/ too much indent, regardless of opening sequence (1)"
);
assert_eq!(
to_html_with_options("> $$\n>\n>\n>\n\na", &math)?,
"<blockquote>\n<pre><code class=\"language-math math-display\">\n\n\n</code></pre>\n</blockquote>\n<p>a</p>",
"should not support a closing sequence w/ too much indent, regardless of opening sequence (2)"
);
assert_eq!(
to_html_with_options("> $$a\nb", &math)?,
"<blockquote>\n<pre><code class=\"language-math math-display\"></code></pre>\n</blockquote>\n<p>b</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html_with_options("> a\n$$b", &math)?,
"<blockquote>\n<p>a</p>\n</blockquote>\n<pre><code class=\"language-math math-display\"></code></pre>\n",
"should not support lazyness (2)"
);
assert_eq!(
to_html_with_options("> $$a\n$$", &math)?,
"<blockquote>\n<pre><code class=\"language-math math-display\"></code></pre>\n</blockquote>\n<pre><code class=\"language-math math-display\"></code></pre>\n",
"should not support lazyness (3)"
);
assert_eq!(
to_mdast("$$extra\nabc\ndef\n$$", &math.parse)?,
Node::Root(Root {
children: vec![Node::Math(Math {
meta: Some("extra".into()),
value: "abc\ndef".into(),
position: Some(Position::new(1, 1, 0, 4, 3, 18))
})],
position: Some(Position::new(1, 1, 0, 4, 3, 18))
}),
"should support math (flow) as `Math`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/math_text.rs | Rust | use markdown::{
mdast::{InlineMath, Node, Paragraph, Root, Text},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
CompileOptions, Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn math_text() -> Result<(), message::Message> {
let math = Options {
parse: ParseOptions {
constructs: Constructs {
math_text: true,
math_flow: true,
..Default::default()
},
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("$a$"),
"<p>$a$</p>",
"should not support math (text) by default"
);
assert_eq!(
to_html_with_options("$foo$ $$bar$$", &math)?,
"<p><code class=\"language-math math-inline\">foo</code> <code class=\"language-math math-inline\">bar</code></p>",
"should support math (text) if enabled"
);
assert_eq!(
to_html_with_options(
"$foo$ $$bar$$",
&Options {
parse: ParseOptions {
constructs: Constructs {
math_text: true,
math_flow: true,
..Default::default()
},
math_text_single_dollar: false,
..Default::default()
},
..Default::default()
}
)?,
"<p>$foo$ <code class=\"language-math math-inline\">bar</code></p>",
"should not support math (text) w/ a single dollar, w/ `math_text_single_dollar: false`"
);
assert_eq!(
to_html_with_options("$$ foo $ bar $$", &math)?,
"<p><code class=\"language-math math-inline\">foo $ bar</code></p>",
"should support math (text) w/ more dollars"
);
assert_eq!(
to_html_with_options("$ $$ $", &math)?,
"<p><code class=\"language-math math-inline\">$$</code></p>",
"should support math (text) w/ fences inside, and padding"
);
assert_eq!(
to_html_with_options("$ $$ $", &math)?,
"<p><code class=\"language-math math-inline\"> $$ </code></p>",
"should support math (text) w/ extra padding"
);
assert_eq!(
to_html_with_options("$ a$", &math)?,
"<p><code class=\"language-math math-inline\"> a</code></p>",
"should support math (text) w/ unbalanced padding"
);
assert_eq!(
to_html_with_options("$\u{a0}b\u{a0}$", &math)?,
"<p><code class=\"language-math math-inline\">\u{a0}b\u{a0}</code></p>",
"should support math (text) w/ non-padding whitespace"
);
assert_eq!(
to_html_with_options("$ $\n$ $", &math)?,
"<p><code class=\"language-math math-inline\"> </code>\n<code class=\"language-math math-inline\"> </code></p>",
"should support math (text) w/o data"
);
assert_eq!(
to_html_with_options("$\nfoo\nbar \nbaz\n$", &math)?,
"<p><code class=\"language-math math-inline\">foo bar baz</code></p>",
"should support math (text) w/o line endings (1)"
);
assert_eq!(
to_html_with_options("$\nfoo \n$", &math)?,
"<p><code class=\"language-math math-inline\">foo </code></p>",
"should support math (text) w/o line endings (2)"
);
assert_eq!(
to_html_with_options("$foo bar \nbaz$", &math)?,
"<p><code class=\"language-math math-inline\">foo bar baz</code></p>",
"should not support whitespace collapsing"
);
assert_eq!(
to_html_with_options("$foo\\$bar$", &math)?,
"<p><code class=\"language-math math-inline\">foo\\</code>bar$</p>",
"should not support character escapes"
);
assert_eq!(
to_html_with_options("$$foo$bar$$", &math)?,
"<p><code class=\"language-math math-inline\">foo$bar</code></p>",
"should support more dollars"
);
assert_eq!(
to_html_with_options("$ foo $$ bar $", &math)?,
"<p><code class=\"language-math math-inline\">foo $$ bar</code></p>",
"should support less dollars"
);
assert_eq!(
to_html_with_options("*foo$*$", &math)?,
"<p>*foo<code class=\"language-math math-inline\">*</code></p>",
"should precede over emphasis"
);
assert_eq!(
to_html_with_options("[not a $link](/foo$)", &math)?,
"<p>[not a <code class=\"language-math math-inline\">link](/foo</code>)</p>",
"should precede over links"
);
assert_eq!(
to_html_with_options("$<a href=\"$\">$", &math)?,
"<p><code class=\"language-math math-inline\"><a href="</code>">$</p>",
"should have same precedence as HTML (1)"
);
assert_eq!(
to_html_with_options(
"<a href=\"$\">$",
&Options {
parse: ParseOptions {
constructs: Constructs {
math_text: true,
math_flow: true,
..Default::default()
},
..Default::default()
},
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
}
}
)?,
"<p><a href=\"$\">$</p>",
"should have same precedence as HTML (2)"
);
assert_eq!(
to_html_with_options("$<http://foo.bar.$baz>$", &math)?,
"<p><code class=\"language-math math-inline\"><http://foo.bar.</code>baz>$</p>",
"should have same precedence as autolinks (1)"
);
assert_eq!(
to_html_with_options("<http://foo.bar.$baz>$", &math)?,
"<p><a href=\"http://foo.bar.$baz\">http://foo.bar.$baz</a>$</p>",
"should have same precedence as autolinks (2)"
);
assert_eq!(
to_html_with_options("$$$foo$$", &math)?,
"<p>$$$foo$$</p>",
"should not support more dollars before a fence"
);
assert_eq!(
to_html_with_options("$foo", &math)?,
"<p>$foo</p>",
"should not support no closing fence (1)"
);
assert_eq!(
to_html_with_options("$foo$$bar$$", &math)?,
"<p>$foo<code class=\"language-math math-inline\">bar</code></p>",
"should not support no closing fence (2)"
);
assert_eq!(
to_html_with_options("$foo\t\tbar$", &math)?,
"<p><code class=\"language-math math-inline\">foo\t\tbar</code></p>",
"should support tabs in code"
);
assert_eq!(
to_html_with_options("\\$$x$", &math)?,
"<p>$<code class=\"language-math math-inline\">x</code></p>",
"should support an escaped initial dollar"
);
assert_eq!(
to_mdast("a $alpha$ b.", &math.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::InlineMath(InlineMath {
value: "alpha".into(),
position: Some(Position::new(1, 3, 2, 1, 10, 9))
}),
Node::Text(Text {
value: " b.".into(),
position: Some(Position::new(1, 10, 9, 1, 13, 12))
})
],
position: Some(Position::new(1, 1, 0, 1, 13, 12))
})],
position: Some(Position::new(1, 1, 0, 1, 13, 12))
}),
"should support math (text) as `InlineMath`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/mdx_esm.rs | Rust | mod test_utils;
use markdown::{
mdast::{MdxjsEsm, Node, Root},
message, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
use test_utils::swc::{parse_esm, parse_expression};
#[test]
fn mdx_esm() -> Result<(), message::Message> {
let swc = Options {
parse: ParseOptions {
constructs: Constructs::mdx(),
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("import a from 'b'\n\nc", &swc)?,
"<p>c</p>",
"should support an import"
);
assert_eq!(
to_html_with_options("export default a\n\nb", &swc)?,
"<p>b</p>",
"should support an export"
);
assert_eq!(
to_html_with_options("impossible", &swc)?,
"<p>impossible</p>",
"should not support other keywords (`impossible`)"
);
assert_eq!(
to_html_with_options("exporting", &swc)?,
"<p>exporting</p>",
"should not support other keywords (`exporting`)"
);
assert_eq!(
to_html_with_options("import.", &swc)?,
"<p>import.</p>",
"should not support a non-whitespace after the keyword"
);
assert_eq!(
to_html_with_options("import('a')", &swc)?,
"<p>import('a')</p>",
"should not support a non-whitespace after the keyword (import-as-a-function)"
);
assert_eq!(
to_html_with_options(" import a from 'b'\n export default c", &swc)?,
"<p>import a from 'b'\nexport default c</p>",
"should not support an indent"
);
assert_eq!(
to_html_with_options("- import a from 'b'\n> export default c", &swc)?,
"<ul>\n<li>import a from 'b'</li>\n</ul>\n<blockquote>\n<p>export default c</p>\n</blockquote>",
"should not support keywords in containers"
);
assert_eq!(
to_html_with_options("import a from 'b'\nexport default c", &swc)?,
"",
"should support imports and exports in the same “block”"
);
assert_eq!(
to_html_with_options("import a from 'b'\n\nexport default c", &swc)?,
"",
"should support imports and exports in separate “blocks”"
);
assert_eq!(
to_html_with_options("a\n\nimport a from 'b'\n\nb\n\nexport default c", &swc)?,
"<p>a</p>\n<p>b</p>\n",
"should support imports and exports in between other constructs"
);
assert_eq!(
to_html_with_options("a\nimport a from 'b'\n\nb\nexport default c", &swc)?,
"<p>a\nimport a from 'b'</p>\n<p>b\nexport default c</p>",
"should not support import/exports when interrupting paragraphs"
);
assert_eq!(
to_html_with_options("import a", &swc)
.err()
.unwrap()
.to_string(),
"1:9: Could not parse esm with swc: Expected ',', got '<eof>' (mdx:swc)",
"should crash on invalid import/exports (1)"
);
assert_eq!(
to_html_with_options("import 1/1", &swc)
.err()
.unwrap()
.to_string(),
"1:8: Could not parse esm with swc: Expected 'from', got 'numeric literal (1, 1)' (mdx:swc)",
"should crash on invalid import/exports (2)"
);
assert_eq!(
to_html_with_options("export {\n a\n} from 'b'\n\nc", &swc)?,
"<p>c</p>",
"should support line endings in import/exports"
);
assert_eq!(
to_html_with_options("export {\n\n a\n\n} from 'b'\n\nc", &swc)?,
"<p>c</p>",
"should support blank lines in import/exports"
);
assert_eq!(
to_html_with_options("import a from 'b'\n*md*?", &swc)
.err()
.unwrap()
.to_string(),
"2:6: Could not parse esm with swc: Expression expected (mdx:swc)",
"should crash on markdown after import/export w/o blank line"
);
assert_eq!(
to_html_with_options("export var a = 1\n// b\n/* c */\n\nd", &swc)?,
"<p>d</p>",
"should support comments in “blocks”"
);
assert_eq!(
to_html_with_options("export var a = 1\nvar b\n\nc", &swc)
.err()
.unwrap()
.to_string(),
"2:1: Unexpected statement in code: only import/exports are supported (mdx:swc)",
"should crash on other statements in “blocks”"
);
assert_eq!(
to_html_with_options("import ('a')\n\nb", &swc)
.err()
.unwrap()
.to_string(),
"1:1: Unexpected statement in code: only import/exports are supported (mdx:swc)",
"should crash on import-as-a-function with a space `import (x)`"
);
assert_eq!(
to_html_with_options("import a from 'b'\nexport {a}\n\nc", &swc)?,
"<p>c</p>",
"should support a reexport from another import"
);
assert_eq!(
to_html_with_options("import a from 'b';\nexport {a};\n\nc", &swc)?,
"<p>c</p>",
"should support a reexport from another import w/ semicolons"
);
assert_eq!(
to_html_with_options("import a from 'b'\nexport {a as default}\n\nc", &swc)?,
"<p>c</p>",
"should support a reexport default from another import"
);
assert_eq!(
to_html_with_options("export var a = () => <b />", &swc)?,
"",
"should support JSX by default"
);
assert_eq!(
to_html_with_options("export {a}\n", &swc)?,
"",
"should support EOF after EOL"
);
assert_eq!(
to_html_with_options("import a from 'b'\n\nexport {a}\n\nc", &swc)?,
"<p>c</p>",
"should support a reexport from another esm block (1)"
);
assert_eq!(
to_html_with_options("import a from 'b'\n\nexport {a}\n\n# c", &swc)?,
"<h1>c</h1>",
"should support a reexport from another esm block (2)"
);
let cases = vec![
("default", "import a from \"b\""),
("whole", "import * as a from \"b\""),
("destructuring", "import {a} from \"b\""),
("destructuring and rename", "import {a as b} from \"c\""),
("default and destructuring", "import a, {b as c} from \"d\""),
("default and whole", "import a, * as b from \"c\""),
("side-effects", "import \"a\""),
];
for case in cases {
assert_eq!(
to_html_with_options(case.1, &swc)?,
"",
"should support imports: {}",
case.0
);
}
let cases = vec![
("var", "export var a = \"\""),
("const", "export const a = \"\""),
("let", "export let a = \"\""),
("multiple", "export var a, b"),
("multiple w/ assignment", "export var a = \"a\", b = \"b\""),
("function", "export function a() {}"),
("class", "export class a {}"),
("destructuring", "export var {a} = {}"),
("rename destructuring", "export var {a: b} = {}"),
("array destructuring", "export var [a] = []"),
("default", "export default a = 1"),
("default function", "export default function a() {}"),
("default class", "export default class a {}"),
("aggregate", "export * from \"a\""),
("whole reexport", "export * as a from \"b\""),
("reexport destructuring", "export {a} from \"b\""),
(
"reexport destructuring w rename",
"export {a as b} from \"c\"",
),
("reexport as a default whole", "export {default} from \"b\""),
(
"reexport default and non-default",
"export {default as a, b} from \"c\"",
),
];
for case in cases {
assert_eq!(
to_html_with_options(case.1, &swc)?,
"",
"should support exports: {}",
case.0
);
}
assert_eq!(
to_mdast("import a from 'b'\nexport {a}", &swc.parse)?,
Node::Root(Root {
children: vec![Node::MdxjsEsm(MdxjsEsm {
value: "import a from 'b'\nexport {a}".into(),
position: Some(Position::new(1, 1, 0, 2, 11, 28)),
stops: vec![(0, 0), (17, 17), (18, 18)]
})],
position: Some(Position::new(1, 1, 0, 2, 11, 28))
}),
"should support mdx esm as `MdxjsEsm`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/mdx_expression_flow.rs | Rust | mod test_utils;
use markdown::{
mdast::{
AttributeContent, AttributeValue, AttributeValueExpression, Blockquote, MdxFlowExpression,
MdxJsxAttribute, MdxJsxTextElement, MdxTextExpression, Node, Paragraph, Root, Text,
},
message, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
use test_utils::swc::{parse_esm, parse_expression};
/// Note: these tests are also in `micromark/micromark-extension-mdx-expression`
/// at `tests/index.js`.
#[test]
fn mdx_expression_flow_agnostic() -> Result<(), message::Message> {
let mdx = Options {
parse: ParseOptions::mdx(),
..Default::default()
};
assert_eq!(
to_html_with_options("{a}", &mdx)?,
"",
"should support an expression"
);
assert_eq!(
to_html_with_options("{}", &mdx)?,
"",
"should support an empty expression"
);
// Note: in MDX, indented code is turned off:
assert_eq!(
to_html_with_options(
" {}",
&Options {
parse: ParseOptions {
constructs: Constructs {
mdx_expression_flow: true,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<pre><code>{}\n</code></pre>",
"should prefer indented code over expressions if it’s enabled"
);
assert_eq!(
to_html_with_options(
" {}",
&Options {
parse: ParseOptions {
constructs: Constructs {
mdx_expression_flow: true,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"",
"should support indented expressions if indented code is enabled"
);
assert_eq!(
to_html_with_options("{a", &mdx).err().unwrap().to_string(),
"1:3: Unexpected end of file in expression, expected a corresponding closing brace for `{` (markdown-rs:unexpected-eof)",
"should crash if no closing brace is found (1)"
);
assert_eq!(
to_html_with_options("{b { c }", &mdx)
.err()
.unwrap()
.to_string(),
"1:9: Unexpected end of file in expression, expected a corresponding closing brace for `{` (markdown-rs:unexpected-eof)",
"should crash if no closing brace is found (2)"
);
assert_eq!(
to_html_with_options("{\n}\na", &mdx)?,
"<p>a</p>",
"should support a line ending in an expression"
);
assert_eq!(
to_html_with_options("{ a } \t\nb", &mdx)?,
"<p>b</p>",
"should support expressions followed by spaces"
);
assert_eq!(
to_html_with_options(" { a }\nb", &mdx)?,
"<p>b</p>",
"should support expressions preceded by spaces"
);
assert_eq!(
to_html_with_options("a\n\n* b", &mdx)?,
"<p>a</p>\n<ul>\n<li>b</li>\n</ul>",
"should support lists after non-expressions (wooorm/markdown-rs#11)"
);
assert_eq!(
to_html_with_options("> {a\nb}", &mdx)
.err()
.unwrap().to_string(),
"2:1: Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc (markdown-rs:unexpected-lazy)",
"should not support lazyness (1)"
);
assert_eq!(
to_html_with_options("> a\n{b}", &mdx)?,
"<blockquote>\n<p>a</p>\n</blockquote>\n",
"should not support lazyness (2)"
);
assert_eq!(
to_html_with_options("> {a}\nb", &mdx)?,
"<blockquote>\n</blockquote>\n<p>b</p>",
"should not support lazyness (3)"
);
assert_eq!(
to_html_with_options("> {\n> a\nb}", &mdx)
.err()
.unwrap().to_string(),
"3:1: Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc (markdown-rs:unexpected-lazy)",
"should not support lazyness (4)"
);
assert_eq!(
to_mdast("{alpha +\nbravo}", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::MdxFlowExpression(MdxFlowExpression {
value: "alpha +\nbravo".into(),
position: Some(Position::new(1, 1, 0, 2, 7, 15)),
stops: vec![(0, 1), (7, 8), (8, 9)]
})],
position: Some(Position::new(1, 1, 0, 2, 7, 15))
}),
"should support mdx expressions (flow) as `MdxFlowExpression`s in mdast"
);
assert_eq!(
to_mdast(" {`\n a\n `}", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::MdxFlowExpression(MdxFlowExpression {
value: "`\n a\n`".into(),
position: Some(Position::new(1, 3, 2, 3, 5, 15)),
stops: vec![(0, 3), (1, 4), (2, 7), (5, 10), (6, 13)]
})],
position: Some(Position::new(1, 1, 0, 3, 5, 15))
}),
"should support indent in `MdxFlowExpression` in mdast"
);
Ok(())
}
/// Note: these tests are also in `micromark/micromark-extension-mdx-expression`
/// at `tests/index.js`.
#[test]
fn mdx_expression_flow_gnostic() -> Result<(), message::Message> {
let swc = Options {
parse: ParseOptions {
constructs: Constructs::mdx(),
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("{a}", &swc)?,
"",
"should support an expression"
);
assert_eq!(
to_html_with_options("{}", &swc)?,
"",
"should support an empty expression"
);
assert_eq!(
to_html_with_options("{a", &swc).err().unwrap().to_string(),
"1:3: Unexpected end of file in expression, expected a corresponding closing brace for `{` (markdown-rs:unexpected-eof)",
"should crash if no closing brace is found (1)"
);
assert_eq!(
to_html_with_options("{b { c }", &swc)
.err()
.unwrap()
.to_string(),
"1:9: Could not parse expression with swc: Unexpected content after expression (mdx:swc)",
"should crash if no closing brace is found (2)"
);
assert_eq!(
to_html_with_options("{\n}\na", &swc)?,
"<p>a</p>",
"should support a line ending in an expression"
);
assert_eq!(
to_html_with_options("{ a } \t\nb", &swc)?,
"<p>b</p>",
"should support expressions followed by spaces"
);
assert_eq!(
to_html_with_options(" { a }\nb", &swc)?,
"<p>b</p>",
"should support expressions preceded by spaces"
);
assert_eq!(
to_html_with_options(" {`\n a\n `}", &swc)?,
"",
"should support indented expressions"
);
assert_eq!(
to_html_with_options("a{(b)}c", &swc)?,
"<p>ac</p>",
"should support expressions padded w/ parens"
);
assert_eq!(
to_html_with_options("a{/* b */ ( (c) /* d */ + (e) )}f", &swc)?,
"<p>af</p>",
"should support expressions padded w/ parens and comments"
);
assert_eq!(
to_mdast("{`\n\t`}", &swc.parse)?,
Node::Root(Root {
children: vec![Node::MdxFlowExpression(MdxFlowExpression {
value: "`\n `".into(),
position: Some(Position::new(1, 1, 0, 2, 7, 6)),
stops: vec![(0, 1), (1, 2), (2, 3)]
})],
position: Some(Position::new(1, 1, 0, 2, 7, 6))
}),
"should use correct positional info when tabs are used (1, indent)"
);
assert_eq!(
to_mdast("{`\nalpha\t`}", &swc.parse)?,
Node::Root(Root {
children: vec![Node::MdxFlowExpression(MdxFlowExpression {
value: "`\nalpha\t`".into(),
position: Some(Position::new(1, 1, 0, 2, 11, 11)),
stops: vec![(0, 1), (1, 2), (2, 3)]
})],
position: Some(Position::new(1, 1, 0, 2, 11, 11))
}),
"should use correct positional info when tabs are used (2, content)"
);
assert_eq!(
to_mdast("> aaa <b c={`\n> d\n> `} /> eee", &swc.parse)?,
Node::Root(Root {
children: vec![Node::Blockquote(Blockquote {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "aaa ".into(),
position: Some(Position::new(1, 4, 3, 1, 8, 7))
}),
Node::MdxJsxTextElement(MdxJsxTextElement {
children: vec![],
name: Some("b".into()),
attributes: vec![AttributeContent::Property(MdxJsxAttribute {
name: "c".into(),
value: Some(AttributeValue::Expression(AttributeValueExpression {
value: "`\n d\n`".into(),
stops: vec![(0, 13), (1, 14), (2, 19), (6, 23), (7, 27)]
}))
})],
position: Some(Position::new(1, 8, 7, 3, 9, 32))
}),
Node::Text(Text {
value: " eee".into(),
position: Some(Position::new(3, 9, 32, 3, 13, 36))
})
],
position: Some(Position::new(1, 3, 2, 3, 13, 36))
})],
position: Some(Position::new(1, 1, 0, 3, 13, 36))
})],
position: Some(Position::new(1, 1, 0, 3, 13, 36))
}),
"should support template strings in JSX (text) in block quotes"
);
assert_eq!(
to_mdast("> ab {`\n>\t`}", &swc.parse)?,
Node::Root(Root {
children: vec![Node::Blockquote(Blockquote {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "ab ".into(),
position: Some(Position::new(1, 3, 2, 1, 6, 5))
}),
Node::MdxTextExpression(MdxTextExpression {
value: "`\n`".into(),
stops: vec![(0, 6), (1, 7), (2, 10)],
position: Some(Position::new(1, 6, 5, 2, 7, 12))
})
],
position: Some(Position::new(1, 3, 2, 2, 7, 12))
})],
position: Some(Position::new(1, 1, 0, 2, 7, 12))
})],
position: Some(Position::new(1, 1, 0, 2, 7, 12))
}),
"should use correct positional when there are virtual spaces due to a block quote"
);
assert_eq!(
to_mdast(
"> {`\n> alpha\n> bravo\n> charlie\n> delta\n> `}",
&swc.parse
)?,
Node::Root(Root {
children: vec![Node::Blockquote(Blockquote {
children: vec![Node::MdxFlowExpression(MdxFlowExpression {
value: "`\nalpha\nbravo\ncharlie\n delta\n`".into(),
position: Some(Position::new(1, 3, 2, 6, 5, 49)),
stops: vec![
(0, 3),
(1, 4),
(2, 7),
(7, 12),
(8, 16),
(13, 21),
(14, 26),
(21, 33),
(22, 38),
(28, 44),
(29, 47)
]
})],
position: Some(Position::new(1, 1, 0, 6, 5, 49))
})],
position: Some(Position::new(1, 1, 0, 6, 5, 49))
}),
"should keep the correct number of spaces in a blockquote (flow)"
);
assert_eq!(
to_mdast(
"> {`\n> alpha\n> bravo\n> charlie\n> delta\n> `}",
&swc.parse
)?,
Node::Root(Root {
children: vec![Node::Blockquote(Blockquote {
children: vec![Node::MdxFlowExpression(MdxFlowExpression {
value: "`\nalpha\nbravo\ncharlie\n delta\n`".into(),
position: Some(Position::new(1, 3, 2, 6, 5, 49)),
stops: vec![
(0, 3),
(1, 4),
(2, 7),
(7, 12),
(8, 16),
(13, 21),
(14, 26),
(21, 33),
(22, 38),
(28, 44),
(29, 47)
]
})],
position: Some(Position::new(1, 1, 0, 6, 5, 49))
})],
position: Some(Position::new(1, 1, 0, 6, 5, 49))
}),
"should keep the correct number of spaces in a blockquote (flow)"
);
// Note: the weird character test has to go in mdxjs-rs.
Ok(())
}
/// Note: these tests are also in `micromark/micromark-extension-mdx-expression`
/// at `tests/index.js`.
/// This project includes *all* extensions which means that it can use JSX.
/// There we test something that does not exist in actual MDX but which is used
/// by the separate JSX extension.
#[test]
fn mdx_expression_spread() -> Result<(), message::Message> {
let swc = Options {
parse: ParseOptions {
constructs: Constructs::mdx(),
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("<a {...b} />", &swc)?,
"",
"should support a spread"
);
assert_eq!(
to_html_with_options("<a {b} />", &swc).err().unwrap().to_string(),
"1:5: Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`) (mdx:swc)",
"should crash if not a spread"
);
assert_eq!(
to_html_with_options("<a {...?} />", &swc)
.err()
.unwrap()
.to_string(),
"1:13: Could not parse expression with swc: Expression expected (mdx:swc)",
"should crash on an incorrect spread"
);
assert_eq!(
to_html_with_options("<a {b=c}={} d>", &swc).err().unwrap().to_string(),
"1:5: Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`) (mdx:swc)",
"should crash on an incorrect spread that looks like an assignment"
);
assert_eq!(
to_html_with_options("<a {...b,c} d>", &swc).err().unwrap().to_string(),
"1:5: Unexpected extra content in spread (such as `{...x,y}`): only a single spread is supported (such as `{...x}`) (mdx:swc)",
"should crash if a spread and other things"
);
assert_eq!(
to_html_with_options("<a {b=c} />", &swc)
.err()
.unwrap()
.to_string(),
"1:12: Could not parse expression with swc: assignment property is invalid syntax (mdx:swc)",
"should crash if not an identifier"
);
// Note: `markdown-rs` has no `allowEmpty`.
assert_eq!(
to_html_with_options("<a {} />", &swc).err().unwrap().to_string(),
"1:9: Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`) (mdx:swc)",
"should crash on an empty spread"
);
assert_eq!(
to_html_with_options("<a {/* b */} />", &swc).err().unwrap().to_string(),
"1:5: Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`) (mdx:swc)",
"should crash on a comment spread"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/mdx_expression_text.rs | Rust | mod test_utils;
use markdown::{
mdast::{Blockquote, MdxTextExpression, Node, Paragraph, Root, Text},
message, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
use test_utils::swc::{parse_esm, parse_expression};
/// Note: these tests are also in `micromark/micromark-extension-mdx-expression`
/// at `tests/index.js`.
#[test]
fn mdx_expression() -> Result<(), message::Message> {
let swc = Options {
parse: ParseOptions {
constructs: Constructs::mdx(),
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("a {} b", &swc)?,
"<p>a b</p>",
"should support an empty expression (1)"
);
assert_eq!(
to_html_with_options("a { \t\r\n} b", &swc)?,
"<p>a b</p>",
"should support an empty expression (2)"
);
assert_eq!(
to_html_with_options("a {/**/} b", &swc)?,
"<p>a b</p>",
"should support a multiline comment (1)"
);
assert_eq!(
to_html_with_options("a { /*\n*/\t} b", &swc)?,
"<p>a b</p>",
"should support a multiline comment (2)"
);
assert_eq!(
to_html_with_options("a {/*b*//*c*/} d", &swc)?,
"<p>a d</p>",
"should support a multiline comment (3)"
);
assert_eq!(
to_html_with_options("a {b/*c*/} d", &swc)?,
"<p>a d</p>",
"should support a multiline comment (4)"
);
assert_eq!(
to_html_with_options("a {/*b*/c} d", &swc)?,
"<p>a d</p>",
"should support a multiline comment (5)"
);
assert_eq!(
to_html_with_options("a {//} b", &swc)
.err()
.unwrap()
.to_string(),
"1:9: Could not parse expression with swc: Unexpected eof (mdx:swc)",
"should crash on an incorrect line comment (1)"
);
assert_eq!(
to_html_with_options("a { // b } c", &swc)
.err()
.unwrap()
.to_string(),
"1:13: Could not parse expression with swc: Unexpected eof (mdx:swc)",
"should crash on an incorrect line comment (2)"
);
assert_eq!(
to_html_with_options("a {//\n} b", &swc)?,
"<p>a b</p>",
"should support a line comment followed by a line ending"
);
assert_eq!(
to_html_with_options("a {// b\nc} d", &swc)?,
"<p>a d</p>",
"should support a line comment followed by a line ending and an expression"
);
assert_eq!(
to_html_with_options("a {b// c\n} d", &swc)?,
"<p>a d</p>",
"should support an expression followed by a line comment and a line ending"
);
assert_eq!(
to_html_with_options("a {/*b*/ // c\n} d", &swc)?,
"<p>a d</p>",
"should support comments"
);
assert_eq!(
to_html_with_options("a {b.c} d", &swc)?,
"<p>a d</p>",
"should support expression statements (1)"
);
assert_eq!(
to_html_with_options("a {1 + 1} b", &swc)?,
"<p>a b</p>",
"should support expression statements (2)"
);
assert_eq!(
to_html_with_options("a {function () {}} b", &swc)?,
"<p>a b</p>",
"should support expression statements (3)"
);
assert_eq!(
to_html_with_options("a {var b = \"c\"} d", &swc)
.err()
.unwrap()
.to_string(),
"1:4: Could not parse expression with swc: Expression expected (mdx:swc)",
"should crash on non-expressions"
);
assert_eq!(
to_html_with_options("> a {\n> b} c", &swc)?,
"<blockquote>\n<p>a c</p>\n</blockquote>",
"should support expressions in containers"
);
assert_eq!(
to_html_with_options("> a {\n> b<} c", &swc)
.err()
.unwrap()
.to_string(),
"2:8: Could not parse expression with swc: Unexpected eof (mdx:swc)",
"should crash on incorrect expressions in containers (1)"
);
assert_eq!(
to_html_with_options("> a {\n> b\n> c} d", &swc)
.err()
.unwrap()
.to_string(),
"3:7: Could not parse expression with swc: Unexpected content after expression (mdx:swc)",
"should crash on incorrect expressions in containers (2)"
);
Ok(())
}
/// Note: these tests are also in `micromark/micromark-extension-mdx-expression`
/// at `tests/index.js`.
#[test]
fn mdx_expression_text_agnostic() -> Result<(), message::Message> {
let mdx = Options {
parse: ParseOptions::mdx(),
..Default::default()
};
assert_eq!(
to_html_with_options("a {b} c", &mdx)?,
"<p>a c</p>",
"should support an expression"
);
assert_eq!(
to_html_with_options("a {} b", &mdx)?,
"<p>a b</p>",
"should support an empty expression"
);
assert_eq!(
to_html_with_options("a {b c", &mdx)
.err()
.unwrap()
.to_string(),
"1:7: Unexpected end of file in expression, expected a corresponding closing brace for `{` (markdown-rs:unexpected-eof)",
"should crash if no closing brace is found (1)"
);
assert_eq!(
to_html_with_options("a {b { c } d", &mdx)
.err()
.unwrap().to_string(),
"1:13: Unexpected end of file in expression, expected a corresponding closing brace for `{` (markdown-rs:unexpected-eof)",
"should crash if no closing brace is found (2)"
);
assert_eq!(
to_html_with_options("a {\n} b", &mdx)?,
"<p>a b</p>",
"should support a line ending in an expression"
);
assert_eq!(
to_html_with_options("a } b", &mdx)?,
"<p>a } b</p>",
"should support just a closing brace"
);
assert_eq!(
to_html_with_options("{ a } b", &mdx)?,
"<p> b</p>",
"should support expressions as the first thing when following by other things"
);
assert_eq!(
to_mdast("a {alpha} b.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::MdxTextExpression(MdxTextExpression {
value: "alpha".into(),
position: Some(Position::new(1, 3, 2, 1, 10, 9)),
stops: vec![(0, 3)]
}),
Node::Text(Text {
value: " b.".into(),
position: Some(Position::new(1, 10, 9, 1, 13, 12))
})
],
position: Some(Position::new(1, 1, 0, 1, 13, 12))
})],
position: Some(Position::new(1, 1, 0, 1, 13, 12))
}),
"should support mdx expressions (text) as `MdxTextExpression`s in mdast"
);
Ok(())
}
/// Note: these tests are also in `micromark/micromark-extension-mdx-expression`
/// at `tests/index.js`.
#[test]
fn mdx_expression_text_gnostic() -> Result<(), message::Message> {
let swc = Options {
parse: ParseOptions {
constructs: Constructs::mdx(),
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("a {b} c", &swc)?,
"<p>a c</p>",
"should support an expression"
);
assert_eq!(
to_html_with_options("a {??} b", &swc)
.err()
.unwrap()
.to_string(),
"1:9: Could not parse expression with swc: Unexpected eof (mdx:swc)",
"should crash on an incorrect expression"
);
assert_eq!(
to_html_with_options("a {} b", &swc)?,
"<p>a b</p>",
"should support an empty expression"
);
assert_eq!(
to_html_with_options("a {b c", &swc)
.err()
.unwrap()
.to_string(),
"1:7: Unexpected end of file in expression, expected a corresponding closing brace for `{` (markdown-rs:unexpected-eof)",
"should crash if no closing brace is found (1)"
);
assert_eq!(
to_html_with_options("a {b { c } d", &swc)
.err()
.unwrap()
.to_string(),
"1:13: Could not parse expression with swc: Unexpected content after expression (mdx:swc)",
"should crash if no closing brace is found (2)"
);
assert_eq!(
to_html_with_options("a {\n} b", &swc)?,
"<p>a b</p>",
"should support a line ending in an expression"
);
assert_eq!(
to_html_with_options("a } b", &swc)?,
"<p>a } b</p>",
"should support just a closing brace"
);
assert_eq!(
to_html_with_options("{ a } b", &swc)?,
"<p> b</p>",
"should support expressions as the first thing when following by other things"
);
assert_eq!(
to_html_with_options("a { /* { */ } b", &swc)?,
"<p>a b</p>",
"should support an unbalanced opening brace (if JS permits)"
);
assert_eq!(
to_html_with_options("a { /* } */ } b", &swc)?,
"<p>a b</p>",
"should support an unbalanced closing brace (if JS permits)"
);
assert_eq!(
to_mdast(
"> alpha {`\n> bravo\n> charlie\n> delta\n> echo\n> `} foxtrot.",
&swc.parse
)?,
Node::Root(Root {
children: vec![Node::Blockquote(Blockquote {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "alpha ".into(),
position: Some(Position::new(1, 3, 2, 1, 9, 8)),
}),
Node::MdxTextExpression(MdxTextExpression {
value: "`\nbravo\ncharlie\ndelta\n echo\n`".into(),
position: Some(Position::new(1, 9, 8, 6, 5, 54)),
stops: vec![
(0, 9),
(1, 10),
(2, 13),
(7, 18),
(8, 22),
(15, 29),
(16, 34),
(21, 39),
(22, 44),
(27, 49),
(28, 52)
]
}),
Node::Text(Text {
value: " foxtrot.".into(),
position: Some(Position::new(6, 5, 54, 6, 14, 63)),
}),
],
position: Some(Position::new(1, 3, 2, 6, 14, 63))
})],
position: Some(Position::new(1, 1, 0, 6, 14, 63))
})],
position: Some(Position::new(1, 1, 0, 6, 14, 63))
}),
"should keep the correct number of spaces in a blockquote (text)"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/mdx_jsx_flow.rs | Rust | mod test_utils;
use markdown::{
mdast::{List, ListItem, MdxJsxFlowElement, Node, Paragraph, Root, Text},
message, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
use test_utils::swc::{parse_esm, parse_expression};
#[test]
fn mdx_jsx_flow_agnostic() -> Result<(), message::Message> {
let mdx = Options {
parse: ParseOptions::mdx(),
..Default::default()
};
assert_eq!(
to_html_with_options("<a />", &mdx)?,
"",
"should support a self-closing element"
);
// Note: in MDX, indented code is turned off:
assert_eq!(
to_html_with_options(
" <a />",
&Options {
parse: ParseOptions {
constructs: Constructs {
html_flow: false,
mdx_jsx_flow: true,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<pre><code><a />\n</code></pre>",
"should prefer indented code over jsx if it’s enabled"
);
assert_eq!(
to_html_with_options(
" <a />",
&Options {
parse: ParseOptions {
constructs: Constructs {
html_flow: false,
mdx_jsx_flow: true,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"",
"should support indented jsx if indented code is enabled"
);
assert_eq!(
to_html_with_options("<a></a>", &mdx)?,
"",
"should support a closed element"
);
assert_eq!(
to_html_with_options("<a>\nb\n</a>", &mdx)?,
"<p>b</p>\n",
"should support an element w/ content"
);
assert_eq!(
to_html_with_options("<a>\n- b\n</a>", &mdx)?,
"<ul>\n<li>b</li>\n</ul>\n",
"should support an element w/ containers as content"
);
assert_eq!(
to_html_with_options("<a b c:d e=\"\" f={/* g */} {...h} />", &mdx)?,
"",
"should support attributes"
);
Ok(())
}
// Flow is mostly the same as `text`, so we only test the relevant
// differences.
#[test]
fn mdx_jsx_flow_essence() -> Result<(), message::Message> {
let mdx = Options {
parse: ParseOptions::mdx(),
..Default::default()
};
assert_eq!(
to_html_with_options("<a />", &mdx)?,
"",
"should support an element"
);
assert_eq!(
to_html_with_options("<a>\n- b\n</a>", &mdx)?,
"<ul>\n<li>b</li>\n</ul>\n",
"should support an element around a container"
);
assert_eq!(
to_html_with_options("<x\n y\n> \nb\n </x>", &mdx)?,
"<p>b</p>\n",
"should support a dangling `>` in a tag (not a block quote)"
);
assert_eq!(
to_html_with_options("<a> \nb\n </a>", &mdx)?,
"<p>b</p>\n",
"should support trailing initial and final whitespace around tags"
);
assert_eq!(
to_html_with_options("<a> <b>\t\nc\n </b> </a>", &mdx)?,
"<p>c</p>\n",
"should support tags after tags"
);
// This is to make sure `document` passes errors through properly.
assert_eq!(
to_html_with_options("* <!a>\n1. b", &mdx)
.err()
.unwrap().to_string(),
"1:4: Unexpected character `!` (U+0021) before name, expected a character that can start a name, such as a letter, `$`, or `_` (note: to create a comment in MDX, use `{/* text */}`) (markdown-rs:unexpected-character)",
"should handle crash in containers gracefully"
);
assert_eq!(
to_html_with_options("> <X\n/>", &mdx).err().unwrap().to_string(),
"2:1: Unexpected lazy line in jsx in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc (markdown-rs:unexpected-lazy)",
"should not support lazy flow (1)"
);
assert_eq!(
to_html_with_options("> a\n> <X\n/>", &mdx)
.err()
.unwrap().to_string(),
"3:1: Unexpected lazy line in jsx in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc (markdown-rs:unexpected-lazy)",
"should not support lazy flow (2)"
);
assert_eq!(
to_html_with_options("> <a b='\nc'/>", &mdx)
.err()
.unwrap().to_string(),
"2:1: Unexpected lazy line in jsx in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc (markdown-rs:unexpected-lazy)",
"should not support lazy flow (3)"
);
assert_eq!(
to_html_with_options("> <a b='c\n'/>", &mdx)
.err()
.unwrap().to_string(),
"2:1: Unexpected lazy line in jsx in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc (markdown-rs:unexpected-lazy)",
"should not support lazy flow (4)"
);
assert_eq!(
to_html_with_options("> <a b='c\nd'/>", &mdx)
.err()
.unwrap().to_string(),
"2:1: Unexpected lazy line in jsx in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc (markdown-rs:unexpected-lazy)",
"should not support lazy flow (5)"
);
assert_eq!(
to_html_with_options("> <a b={c\nd}/>", &mdx)
.err()
.unwrap().to_string(),
"2:1: Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc (markdown-rs:unexpected-lazy)",
"should not support lazy flow (6)"
);
assert_eq!(
to_html_with_options("> <a {b\nc}/>", &mdx)
.err()
.unwrap().to_string(),
"2:1: Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc (markdown-rs:unexpected-lazy)",
"should not support lazy flow (7)"
);
assert_eq!(
to_html_with_options("> a\n<X />", &mdx)?,
"<blockquote>\n<p>a</p>\n</blockquote>\n",
"should not support lazy flow (8)"
);
assert_eq!(
to_mdast("<>\n * a\n</>", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::MdxJsxFlowElement(MdxJsxFlowElement {
name: None,
attributes: vec![],
children: vec![Node::List(List {
ordered: false,
spread: false,
start: None,
children: vec![Node::ListItem(ListItem {
checked: None,
spread: false,
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
value: "a".into(),
position: Some(Position::new(2, 5, 7, 2, 6, 8))
}),],
position: Some(Position::new(2, 5, 7, 2, 6, 8))
})],
position: Some(Position::new(2, 1, 3, 2, 6, 8))
})],
position: Some(Position::new(2, 1, 3, 2, 6, 8))
})],
position: Some(Position::new(1, 1, 0, 3, 4, 12))
})],
position: Some(Position::new(1, 1, 0, 3, 4, 12))
}),
"should support mdx jsx (flow) as `MdxJsxFlowElement`s in mdast"
);
Ok(())
}
// Flow is mostly the same as `text`, so we only test the relevant
// differences.
#[test]
fn mdx_jsx_flow_interleaving_with_expressions() -> Result<(), message::Message> {
let mdx = Options {
parse: ParseOptions::mdx(),
..Default::default()
};
let swc = Options {
parse: ParseOptions {
constructs: Constructs::mdx(),
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("<div>\n{1}\n</div>", &mdx)?,
"",
"should support tags and expressions (unaware)"
);
assert_eq!(
to_html_with_options("<div>\n{'}'}\n</div>", &swc)?,
"",
"should support tags and expressions (aware)"
);
assert_eq!(
to_html_with_options("x<em>{1}</em>", &swc)?,
"<p>x</p>",
"should support tags and expressions with text before (text)"
);
assert_eq!(
to_html_with_options("<em>x{1}</em>", &swc)?,
"<p>x</p>",
"should support tags and expressions with text between, early (text)"
);
assert_eq!(
to_html_with_options("<em>{1}x</em>", &swc)?,
"<p>x</p>",
"should support tags and expressions with text between, late (text)"
);
assert_eq!(
to_html_with_options("<em>{1}</em>x", &swc)?,
"<p>x</p>",
"should support tags and expressions with text after (text)"
);
assert_eq!(
to_html_with_options("<x/>{1}", &swc)?,
"",
"should support a tag and then an expression (flow)"
);
assert_eq!(
to_html_with_options("<x/>{1}x", &swc)?,
"<p>x</p>",
"should support a tag, an expression, then text (text)"
);
assert_eq!(
to_html_with_options("x<x/>{1}", &swc)?,
"<p>x</p>",
"should support text, a tag, then an expression (text)"
);
assert_eq!(
to_html_with_options("{1}<x/>", &swc)?,
"",
"should support an expression and then a tag (flow)"
);
assert_eq!(
to_html_with_options("{1}<x/>x", &swc)?,
"<p>x</p>",
"should support an expression, a tag, then text (text)"
);
assert_eq!(
to_html_with_options("x{1}<x/>", &swc)?,
"<p>x</p>",
"should support text, an expression, then a tag (text)"
);
assert_eq!(
to_html_with_options("<x>{[\n'',\n{c:''}\n]}</x>", &swc)?,
"",
"should nicely interleaf (micromark/micromark-extension-mdx-jsx#9)"
);
assert_eq!(
to_html_with_options(
"
<style>{`
.foo {}
.bar {}
`}</style>
",
&swc
)?,
"",
"should nicely interleaf (mdx-js/mdx#1945)"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/mdx_jsx_text.rs | Rust | mod test_utils;
use markdown::{
mdast::{
AttributeContent, AttributeValue, AttributeValueExpression, Emphasis, MdxFlowExpression,
MdxJsxAttribute, MdxJsxExpressionAttribute, MdxJsxFlowElement, MdxJsxTextElement, Node,
Paragraph, Root, Text,
},
message, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
use test_utils::swc::{parse_esm, parse_expression};
#[test]
fn mdx_jsx_text_core() -> Result<(), message::Message> {
let mdx = Options {
parse: ParseOptions::mdx(),
..Default::default()
};
assert_eq!(
to_html_with_options("a <b> c", &mdx)?,
"<p>a c</p>",
"should support mdx jsx (text) if enabled"
);
assert_eq!(
to_html_with_options("a <b/> c.", &mdx)?,
"<p>a c.</p>",
"should support a self-closing element"
);
assert_eq!(
to_html_with_options("a <b></b> c.", &mdx)?,
"<p>a c.</p>",
"should support a closed element"
);
assert_eq!(
to_html_with_options("a <></> c.", &mdx)?,
"<p>a c.</p>",
"should support fragments"
);
assert_eq!(
to_html_with_options("a <b>*b*</b> c.", &mdx)?,
"<p>a <em>b</em> c.</p>",
"should support markdown inside elements"
);
assert_eq!(
to_mdast("{1}<a/>", &mdx.parse)?,
Node::Root(Root {
children: vec![
Node::MdxFlowExpression(MdxFlowExpression {
value: "1".into(),
position: Some(Position::new(1, 1, 0, 1, 4, 3)),
stops: vec![(0, 1)]
}),
Node::MdxJsxFlowElement(MdxJsxFlowElement {
name: Some("a".into()),
attributes: vec![],
children: vec![],
position: Some(Position::new(1, 4, 3, 1, 8, 7))
})
],
position: Some(Position::new(1, 1, 0, 1, 8, 7))
}),
"should support mdx jsx (text) with expression child"
);
assert_eq!(
to_mdast("<a>{1}</a>", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::MdxJsxFlowElement(MdxJsxFlowElement {
name: Some("a".into()),
attributes: vec![],
children: vec![Node::MdxFlowExpression(MdxFlowExpression {
value: "1".into(),
position: Some(Position::new(1, 4, 3, 1, 7, 6)),
stops: vec![(0, 4)]
})],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
}),],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
}),
"should support mdx jsx (text) with expression child"
);
assert_eq!(
to_mdast("a <b /> c.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("b".into()),
attributes: vec![],
children: vec![],
position: Some(Position::new(1, 3, 2, 1, 8, 7))
}),
Node::Text(Text {
value: " c.".into(),
position: Some(Position::new(1, 8, 7, 1, 11, 10))
})
],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
})],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
}),
"should support mdx jsx (text) as `MdxJsxTextElement`s in mdast (self-closing)"
);
assert_eq!(
to_mdast("a <b>*c*</b> d.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::Text(Text {
value: "a ".into(),
position: Some(Position::new(1, 1, 0, 1, 3, 2))
}),
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("b".into()),
attributes: vec![],
children: vec![
Node::Emphasis(Emphasis {
children: vec![
Node::Text(Text {
value: "c".into(),
position: Some(Position::new(1, 7, 6, 1, 8, 7))
}),
],
position: Some(Position::new(1, 6, 5, 1, 9, 8))
}),
],
position: Some(Position::new(1, 3, 2, 1, 13, 12))
}),
Node::Text(Text {
value: " d.".into(),
position: Some(Position::new(1, 13, 12, 1, 16, 15))
})
],
position: Some(Position::new(1, 1, 0, 1, 16, 15))
})],
position: Some(Position::new(1, 1, 0, 1, 16, 15))
}),
"should support mdx jsx (text) as `MdxJsxTextElement`s in mdast (matched open and close tags)"
);
assert_eq!(
to_mdast("<a:b />.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("a:b".into()),
attributes: vec![],
children: vec![],
position: Some(Position::new(1, 1, 0, 1, 8, 7))
}),
Node::Text(Text {
value: ".".into(),
position: Some(Position::new(1, 8, 7, 1, 9, 8))
})
],
position: Some(Position::new(1, 1, 0, 1, 9, 8))
})],
position: Some(Position::new(1, 1, 0, 1, 9, 8))
}),
"should support mdx jsx (text) as `MdxJsxTextElement`s in mdast (namespace in tag name)"
);
assert_eq!(
to_mdast("<a.b.c />.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("a.b.c".into()),
attributes: vec![],
children: vec![],
position: Some(Position::new(1, 1, 0, 1, 10, 9))
}),
Node::Text(Text {
value: ".".into(),
position: Some(Position::new(1, 10, 9, 1, 11, 10))
})
],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
})],
position: Some(Position::new(1, 1, 0, 1, 11, 10))
}),
"should support mdx jsx (text) as `MdxJsxTextElement`s in mdast (members in tag name)"
);
assert_eq!(
to_mdast("<a {...b} />.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("a".into()),
attributes: vec![AttributeContent::Expression(MdxJsxExpressionAttribute {
value: "...b".into(),
stops: vec![(0, 4)]
})],
children: vec![],
position: Some(Position::new(1, 1, 0, 1, 13, 12))
}),
Node::Text(Text {
value: ".".into(),
position: Some(Position::new(1, 13, 12, 1, 14, 13))
})
],
position: Some(Position::new(1, 1, 0, 1, 14, 13))
})],
position: Some(Position::new(1, 1, 0, 1, 14, 13))
}),
"should support mdx jsx (text) as `MdxJsxTextElement`s in mdast (attribute expression)"
);
assert_eq!(
to_mdast("<a b c:d />.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("a".into()),
attributes: vec![
AttributeContent::Property(MdxJsxAttribute {
name: "b".into(),
value: None,
}),
AttributeContent::Property(MdxJsxAttribute {
name: "c:d".into(),
value: None,
})
],
children: vec![],
position: Some(Position::new(1, 1, 0, 1, 12, 11))
}),
Node::Text(Text {
value: ".".into(),
position: Some(Position::new(1, 12, 11, 1, 13, 12))
})
],
position: Some(Position::new(1, 1, 0, 1, 13, 12))
})],
position: Some(Position::new(1, 1, 0, 1, 13, 12))
}),
"should support mdx jsx (text) as `MdxJsxTextElement`s in mdast (property names)"
);
assert_eq!(
to_mdast("<a b='c' d=\"e\" f={g} />.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("a".into()),
attributes: vec![
AttributeContent::Property(MdxJsxAttribute {
name: "b".into(),
value: Some(AttributeValue::Literal("c".into())),
}),
AttributeContent::Property(MdxJsxAttribute {
name: "d".into(),
value: Some(AttributeValue::Literal("e".into())),
}),
AttributeContent::Property(MdxJsxAttribute {
name: "f".into(),
value: Some(AttributeValue::Expression(AttributeValueExpression {
value: "g".into(),
stops: vec![(0, 18)]
})),
}),
],
children: vec![],
position: Some(Position::new(1, 1, 0, 1, 24, 23))
}),
Node::Text(Text {
value: ".".into(),
position: Some(Position::new(1, 24, 23, 1, 25, 24))
})
],
position: Some(Position::new(1, 1, 0, 1, 25, 24))
})],
position: Some(Position::new(1, 1, 0, 1, 25, 24))
}),
"should support mdx jsx (text) as `MdxJsxTextElement`s in mdast (attribute values)"
);
assert_eq!(
to_mdast("<a b=' & © Æ Ď ¾ ℋ ⅆ ∲ ≧̸' />.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("a".into()),
attributes: vec![
AttributeContent::Property(MdxJsxAttribute {
name: "b".into(),
value: Some(AttributeValue::Literal("\u{a0} & © Æ Ď ¾ ℋ ⅆ ∲ ≧̸".into())),
}),
],
children: vec![],
position: Some(Position::new(1, 1, 0, 1, 120, 119))
}),
Node::Text(Text {
value: ".".into(),
position: Some(Position::new(1, 120, 119, 1, 121, 120))
})
],
position: Some(Position::new(1, 1, 0, 1, 121, 120))
})],
position: Some(Position::new(1, 1, 0, 1, 121, 120))
}),
"should support character references (HTML 4, named) in JSX attribute values"
);
assert_eq!(
to_mdast(
"<a b='# Ӓ Ϡ �' c='" ആ ಫ' />.",
&mdx.parse
)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("a".into()),
attributes: vec![
AttributeContent::Property(MdxJsxAttribute {
name: "b".into(),
value: Some(AttributeValue::Literal("# Ӓ Ϡ �".into())),
}),
AttributeContent::Property(MdxJsxAttribute {
name: "c".into(),
value: Some(AttributeValue::Literal("\" ആ ಫ".into())),
}),
],
children: vec![],
position: Some(Position::new(1, 1, 0, 1, 63, 62))
}),
Node::Text(Text {
value: ".".into(),
position: Some(Position::new(1, 63, 62, 1, 64, 63))
})
],
position: Some(Position::new(1, 1, 0, 1, 64, 63))
})],
position: Some(Position::new(1, 1, 0, 1, 64, 63))
}),
"should support character references (numeric) in JSX attribute values"
);
assert_eq!(
to_mdast("<a b='  &x; &#; &#x; � &#abcdef0; &ThisIsNotDefined; &hi?;' />.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("a".into()),
attributes: vec![
AttributeContent::Property(MdxJsxAttribute {
name: "b".into(),
value: Some(AttributeValue::Literal("  &x; &#; &#x; � &#abcdef0; &ThisIsNotDefined; &hi?;".into())),
})
],
children: vec![],
position: Some(Position::new(1, 1, 0, 1, 78, 77))
}),
Node::Text(Text {
value: ".".into(),
position: Some(Position::new(1, 78, 77, 1, 79, 78))
})
],
position: Some(Position::new(1, 1, 0, 1, 79, 78))
})],
position: Some(Position::new(1, 1, 0, 1, 79, 78))
}),
"should not support things that look like character references but aren’t"
);
assert_eq!(
to_mdast("<a\u{3000}b \u{3000}c\u{3000} d\u{3000}/>.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("a".into()),
attributes: vec![
AttributeContent::Property(MdxJsxAttribute {
name: "b".into(),
value: None,
}),
AttributeContent::Property(MdxJsxAttribute {
name: "c".into(),
value: None,
}),
AttributeContent::Property(MdxJsxAttribute {
name: "d".into(),
value: None,
})
],
children: vec![],
position: Some(Position::new(1, 1, 0, 1, 22, 21))
}),
Node::Text(Text {
value: ".".into(),
position: Some(Position::new(1, 22, 21, 1, 23, 22))
})
],
position: Some(Position::new(1, 1, 0, 1, 23, 22))
})],
position: Some(Position::new(1, 1, 0, 1, 23, 22))
}),
"should support unicode whitespace in a lot of places"
);
assert_eq!(
to_mdast("<a\nb \nc\n d\n/>.", &mdx.parse)?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![
Node::MdxJsxTextElement(MdxJsxTextElement {
name: Some("a".into()),
attributes: vec![
AttributeContent::Property(MdxJsxAttribute {
name: "b".into(),
value: None,
}),
AttributeContent::Property(MdxJsxAttribute {
name: "c".into(),
value: None,
}),
AttributeContent::Property(MdxJsxAttribute {
name: "d".into(),
value: None,
})
],
children: vec![],
position: Some(Position::new(1, 1, 0, 5, 3, 13))
}),
Node::Text(Text {
value: ".".into(),
position: Some(Position::new(5, 3, 13, 5, 4, 14))
})
],
position: Some(Position::new(1, 1, 0, 5, 4, 14))
})],
position: Some(Position::new(1, 1, 0, 5, 4, 14))
}),
"should support line endings in a lot of places"
);
assert_eq!(
to_mdast("a </b> c", &mdx.parse).err().unwrap().to_string(),
"1:4: Unexpected closing slash `/` in tag, expected an open tag first (markdown-rs:unexpected-closing-slash)",
"should crash when building the ast on a closing tag if none is open"
);
assert_eq!(
to_mdast("a <b> c </b/> d", &mdx.parse)
.err()
.unwrap()
.to_string(),
"1:12: Unexpected self-closing slash `/` in closing tag, expected the end of the tag (markdown-rs:unexpected-self-closing-slash)",
"should crash when building the ast on a closing tag with a self-closing slash"
);
assert_eq!(
to_mdast("a <b> c </b d> e", &mdx.parse)
.err()
.unwrap()
.to_string(),
"1:13: Unexpected attribute in closing tag, expected the end of the tag (markdown-rs:unexpected-attribute)",
"should crash when building the ast on a closing tag with an attribute"
);
assert_eq!(
to_mdast("a <>b</c> d", &mdx.parse)
.err()
.unwrap().to_string(),
"1:6-1:10: Unexpected closing tag `</c>`, expected corresponding closing tag for `<>` (1:3) (markdown-rs:end-tag-mismatch)",
"should crash when building the ast on mismatched tags (1)"
);
assert_eq!(
to_mdast("a <b>c</> d", &mdx.parse)
.err()
.unwrap().to_string(),
"1:7-1:10: Unexpected closing tag `</>`, expected corresponding closing tag for `<b>` (1:3) (markdown-rs:end-tag-mismatch)",
"should crash when building the ast on mismatched tags (2)"
);
assert_eq!(
to_mdast("*a <b>c* d</b>.", &mdx.parse)
.err()
.unwrap()
.to_string(),
"1:9: Expected a closing tag for `<b>` (1:4) before the end of `Emphasis` (markdown-rs:end-tag-mismatch)",
"should crash when building the ast on mismatched interleaving (1)"
);
assert_eq!(
to_mdast("<a>b *c</a> d*.", &mdx.parse).err().unwrap().to_string(),
"1:8: Expected the closing tag `</a>` either before the start of `Emphasis` (1:6), or another opening tag after that start (markdown-rs:end-tag-mismatch)",
"should crash when building the ast on mismatched interleaving (2)"
);
assert_eq!(
to_mdast("a <b>.", &mdx.parse).err().unwrap().to_string(),
"1:7: Expected a closing tag for `<b>` (1:3) before the end of `Paragraph` (markdown-rs:end-tag-mismatch)",
"should crash when building the ast on mismatched interleaving (3)"
);
// Note: this is flow, not text.
assert_eq!(
to_mdast("<a>", &mdx.parse).err().unwrap().to_string(),
"1:4: Expected a closing tag for `<a>` (1:1) (markdown-rs:end-tag-mismatch)",
"should crash when building the ast on mismatched interleaving (4)"
);
assert_eq!(
to_mdast("<a><b></b>", &mdx.parse)
.err()
.unwrap()
.to_string(),
"1:11: Expected a closing tag for `<a>` (1:1) (markdown-rs:end-tag-mismatch)",
"should crash on unclosed jsx after closed jsx"
);
Ok(())
}
#[test]
fn mdx_jsx_text_agnosic() -> Result<(), message::Message> {
let mdx = Options {
parse: ParseOptions::mdx(),
..Default::default()
};
assert_eq!(
to_html_with_options("a <b /> c", &mdx)?,
"<p>a c</p>",
"should support a self-closing element"
);
assert_eq!(
to_html_with_options("a <b> c </b> d", &mdx)?,
"<p>a c d</p>",
"should support a closed element"
);
assert_eq!(
to_html_with_options("a <b> c", &mdx)?,
"<p>a c</p>",
"should support an unclosed element"
);
assert_eq!(
to_html_with_options("a <b {1 + 1} /> c", &mdx)?,
"<p>a c</p>",
"should support an attribute expression"
);
assert_eq!(
to_html_with_options("a <b c={1 + 1} /> d", &mdx)?,
"<p>a d</p>",
"should support an attribute value expression"
);
Ok(())
}
#[test]
fn mdx_jsx_text_gnostic() -> Result<(), message::Message> {
let swc = Options {
parse: ParseOptions {
constructs: Constructs::mdx(),
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("a <b /> c", &swc)?,
"<p>a c</p>",
"should support a self-closing element"
);
assert_eq!(
to_html_with_options("a <b> c </b> d", &swc)?,
"<p>a c d</p>",
"should support a closed element"
);
assert_eq!(
to_html_with_options("a <b> c", &swc)?,
"<p>a c</p>",
"should support an unclosed element"
);
assert_eq!(
to_html_with_options("a <b {...c} /> d", &swc)?,
"<p>a d</p>",
"should support an attribute expression"
);
assert_eq!(
to_html_with_options("a <b {...{c: 1, d: Infinity, e: false}} /> f", &swc)?,
"<p>a f</p>",
"should support more complex attribute expression (1)"
);
assert_eq!(
to_html_with_options("a <b {...[1, Infinity, false]} /> d", &swc)?,
"<p>a d</p>",
"should support more complex attribute expression (2)"
);
assert_eq!(
to_html_with_options("a <b c={1 + 1} /> d", &swc)?,
"<p>a d</p>",
"should support an attribute value expression"
);
assert_eq!(
to_html_with_options("a <b c={} /> d", &swc)
.err()
.unwrap()
.to_string(),
"1:15: Could not parse expression with swc: Unexpected eof (mdx:swc)",
"should crash on an empty attribute value expression"
);
assert_eq!(
to_html_with_options("a <b {1 + 1} /> c", &swc)
.err()
.unwrap()
.to_string(),
"1:18: Could not parse expression with swc: Expected ',', got '}' (mdx:swc)",
"should crash on a non-spread attribute expression"
);
assert_eq!(
to_html_with_options("a <b c={?} /> d", &swc)
.err()
.unwrap()
.to_string(),
"1:16: Could not parse expression with swc: Expression expected (mdx:swc)",
"should crash on invalid JS in an attribute value expression"
);
assert_eq!(
to_html_with_options("a <b {?} /> c", &swc)
.err()
.unwrap().to_string(),
"1:14: Could not parse expression with swc: Unexpected token `?`. Expected identifier, string literal, numeric literal or [ for the computed key (mdx:swc)",
"should crash on invalid JS in an attribute expression"
);
assert_eq!(
to_html_with_options("a <b{c=d}={}/> f", &swc)
.err()
.unwrap().to_string(),
"1:6: Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`) (mdx:swc)",
"should crash on invalid JS in an attribute expression (2)"
);
assert_eq!(
to_html_with_options("a <b c={(2)} d={<e />} /> f", &swc)?,
"<p>a f</p>",
"should support parenthesized expressions"
);
Ok(())
}
#[test]
fn mdx_jsx_text_complete() -> Result<(), message::Message> {
let mdx = Options {
parse: ParseOptions::mdx(),
..Default::default()
};
assert_eq!(
to_html_with_options("a <b> c", &mdx)?,
"<p>a c</p>",
"should support an unclosed element"
);
assert_eq!(
to_html_with_options("a <> c", &mdx)?,
"<p>a c</p>",
"should support an unclosed fragment"
);
assert_eq!(
to_html_with_options("a < \t>b</>", &mdx)?,
"<p>a < \t>b</p>",
"should *not* support whitespace in the opening tag (fragment)"
);
assert_eq!(
to_html_with_options("a < \nb\t>b</b>", &mdx)?,
"<p>a <\nb\t>b</p>",
"should *not* support whitespace in the opening tag (named)"
);
assert_eq!(
to_html_with_options("a <!> b", &mdx)
.err()
.unwrap().to_string(),
"1:4: Unexpected character `!` (U+0021) before name, expected a character that can start a name, such as a letter, `$`, or `_` (note: to create a comment in MDX, use `{/* text */}`) (markdown-rs:unexpected-character)",
"should crash on a nonconforming start identifier"
);
assert_eq!(
to_html_with_options("a </(> b.", &mdx)
.err()
.unwrap().to_string(),
"1:5: Unexpected character `(` (U+0028) before name, expected a character that can start a name, such as a letter, `$`, or `_` (markdown-rs:unexpected-character)",
"should crash on a nonconforming start identifier in a closing tag"
);
assert_eq!(
to_html_with_options("a <π /> b.", &mdx)?,
"<p>a b.</p>",
"should support non-ascii identifier start characters"
);
assert_eq!(
to_html_with_options("a <© /> b.", &mdx)
.err()
.unwrap().to_string(),
"1:4: Unexpected character U+00A9 before name, expected a character that can start a name, such as a letter, `$`, or `_` (markdown-rs:unexpected-character)",
"should crash on non-conforming non-ascii identifier start characters"
);
assert_eq!(
to_html_with_options("a <!--b-->", &mdx)
.err()
.unwrap().to_string(),
"1:4: Unexpected character `!` (U+0021) before name, expected a character that can start a name, such as a letter, `$`, or `_` (note: to create a comment in MDX, use `{/* text */}`) (markdown-rs:unexpected-character)",
"should crash nicely on what might be a comment"
);
assert_eq!(
to_html_with_options("a <// b\nc/>", &mdx)
.err()
.unwrap().to_string(),
"1:5: Unexpected character `/` (U+002F) before name, expected a character that can start a name, such as a letter, `$`, or `_` (note: JS comments in JSX tags are not supported in MDX) (markdown-rs:unexpected-character)",
"should crash nicely on JS line comments inside tags (1)"
);
assert_eq!(
to_html_with_options("a <b// c\nd/>", &mdx)
.err()
.unwrap().to_string(),
"1:6: Unexpected character `/` (U+002F) after self-closing slash, expected `>` to end the tag (note: JS comments in JSX tags are not supported in MDX) (markdown-rs:unexpected-character)",
"should crash nicely JS line comments inside tags (2)"
);
assert_eq!(
to_html_with_options("a </*b*/c>", &mdx)
.err()
.unwrap().to_string(),
"1:5: Unexpected character `*` (U+002A) before name, expected a character that can start a name, such as a letter, `$`, or `_` (markdown-rs:unexpected-character)",
"should crash nicely JS multiline comments inside tags (1)"
);
assert_eq!(
to_html_with_options("a <b/*c*/>", &mdx)
.err()
.unwrap().to_string(),
"1:6: Unexpected character `*` (U+002A) after self-closing slash, expected `>` to end the tag (markdown-rs:unexpected-character)",
"should crash nicely JS multiline comments inside tags (2)"
);
assert_eq!(
to_html_with_options("a <a\u{200C}b /> b.", &mdx)?,
"<p>a b.</p>",
"should support non-ascii identifier continuation characters"
);
assert_eq!(
to_html_with_options("a <a¬ /> b.", &mdx)
.err()
.unwrap().to_string(),
"1:5: Unexpected character U+00AC in name, expected a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on non-conforming non-ascii identifier continuation characters"
);
assert_eq!(
to_html_with_options("a <b@c.d>", &mdx)
.err()
.unwrap().to_string(),
"1:5: Unexpected character `@` (U+0040) in name, expected a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag (note: to create a link in MDX, use `[text](url)`) (markdown-rs:unexpected-character)",
"should crash nicely on what might be an email link"
);
assert_eq!(
to_html_with_options("a <a-->b</a-->.", &mdx)?,
"<p>a b.</p>",
"should support dashes in names"
);
assert_eq!(
to_html_with_options("a <a?> c.", &mdx)
.err()
.unwrap().to_string(),
"1:5: Unexpected character `?` (U+003F) in name, expected a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on nonconforming identifier continuation characters"
);
assert_eq!(
to_html_with_options("a <abc . def.ghi>b</abc.def . ghi>.", &mdx)?,
"<p>a b.</p>",
"should support dots in names for method names"
);
assert_eq!(
to_html_with_options("a <b.c@d.e>", &mdx)
.err()
.unwrap().to_string(),
"1:7: Unexpected character `@` (U+0040) in member name, expected a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag (note: to create a link in MDX, use `[text](url)`) (markdown-rs:unexpected-character)",
"should crash nicely on what might be an email link in member names"
);
assert_eq!(
to_html_with_options("a <svg: rect>b</ svg :rect>.", &mdx)?,
"<p>a b.</p>",
"should support colons in names for local names"
);
assert_eq!(
to_html_with_options("a <a:+> c.", &mdx)
.err()
.unwrap().to_string(),
"1:6: Unexpected character `+` (U+002B) before local name, expected a character that can start a name, such as a letter, `$`, or `_` (note: to create a link in MDX, use `[text](url)`) (markdown-rs:unexpected-character)",
"should crash on a nonconforming character to start a local name"
);
assert_eq!(
to_html_with_options("a <http://example.com>", &mdx)
.err()
.unwrap().to_string(),
"1:9: Unexpected character `/` (U+002F) before local name, expected a character that can start a name, such as a letter, `$`, or `_` (note: to create a link in MDX, use `[text](url)`) (markdown-rs:unexpected-character)",
"should crash nicely on what might be a protocol in local names"
);
assert_eq!(
to_html_with_options("a <http: >", &mdx)
.err()
.unwrap().to_string(),
"1:10: Unexpected character `>` (U+003E) before local name, expected a character that can start a name, such as a letter, `$`, or `_` (markdown-rs:unexpected-character)",
"should crash nicely on what might be a protocol in local names"
);
assert_eq!(
to_html_with_options("a <a:b|> c.", &mdx)
.err()
.unwrap().to_string(),
"1:7: Unexpected character `|` (U+007C) in local name, expected a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character in a local name"
);
assert_eq!(
to_html_with_options("a <a..> c.", &mdx)
.err()
.unwrap().to_string(),
"1:6: Unexpected character `.` (U+002E) before member name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character to start a member name"
);
assert_eq!(
to_html_with_options("a <a.b,> c.", &mdx)
.err()
.unwrap().to_string(),
"1:7: Unexpected character `,` (U+002C) in member name, expected a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character in a member name"
);
assert_eq!(
to_html_with_options("a <a:b .> c.", &mdx)
.err()
.unwrap().to_string(),
"1:8: Unexpected character `.` (U+002E) after local name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character after a local name"
);
assert_eq!(
to_html_with_options("a <a.b :> c.", &mdx)
.err()
.unwrap().to_string(),
"1:8: Unexpected character `:` (U+003A) after member name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character after a member name"
);
assert_eq!(
to_html_with_options("a <a => c.", &mdx)
.err()
.unwrap().to_string(),
"1:6: Unexpected character `=` (U+003D) after name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character after name"
);
assert_eq!(
to_html_with_options("a <b {...props} {...rest}>c</b>.", &mdx)?,
"<p>a c.</p>",
"should support attribute expressions"
);
assert_eq!(
to_html_with_options("a <b {...{\"a\": \"b\"}}>c</b>.", &mdx)?,
"<p>a c.</p>",
"should support nested balanced braces in attribute expressions"
);
assert_eq!(
to_html_with_options("<a{...b}/>.", &mdx)?,
"<p>.</p>",
"should support attribute expressions directly after a name"
);
assert_eq!(
to_html_with_options("<a.b{...c}/>.", &mdx)?,
"<p>.</p>",
"should support attribute expressions directly after a member name"
);
assert_eq!(
to_html_with_options("<a:b{...c}/>.", &mdx)?,
"<p>.</p>",
"should support attribute expressions directly after a local name"
);
assert_eq!(
to_html_with_options("a <b c{...d}/>.", &mdx)?,
"<p>a .</p>",
"should support attribute expressions directly after boolean attributes"
);
assert_eq!(
to_html_with_options("a <b c:d{...e}/>.", &mdx)?,
"<p>a .</p>",
"should support attribute expressions directly after boolean qualified attributes"
);
assert_eq!(
to_html_with_options("a <b a {...props} b>c</b>.", &mdx)?,
"<p>a c.</p>",
"should support attribute expressions and normal attributes"
);
assert_eq!(
to_html_with_options("a <b c d=\"d\"\t\tefg=\"e\">c</b>.", &mdx)?,
"<p>a c.</p>",
"should support attributes"
);
assert_eq!(
to_html_with_options("a <b {...p}~>c</b>.", &mdx)
.err()
.unwrap().to_string(),
"1:12: Unexpected character `~` (U+007E) before attribute name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character before an attribute name"
);
assert_eq!(
to_html_with_options("a <b {...", &mdx)
.err()
.unwrap().to_string(),
"1:10: Unexpected end of file in expression, expected a corresponding closing brace for `{` (markdown-rs:unexpected-eof)",
"should crash on a missing closing brace in attribute expression"
);
assert_eq!(
to_html_with_options("a <a b@> c.", &mdx)
.err()
.unwrap().to_string(),
"1:7: Unexpected character `@` (U+0040) in attribute name, expected an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character in attribute name"
);
assert_eq!(
to_html_with_options("a <b xml :\tlang\n= \"de-CH\" foo:bar>c</b>.", &mdx)?,
"<p>a c.</p>",
"should support prefixed attributes"
);
assert_eq!(
to_html_with_options("a <b a b : c d : e = \"f\" g/>.", &mdx)?,
"<p>a .</p>",
"should support prefixed and normal attributes"
);
assert_eq!(
to_html_with_options("a <a b 1> c.", &mdx)
.err()
.unwrap().to_string(),
"1:8: Unexpected character `1` (U+0031) after attribute name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character after an attribute name"
);
assert_eq!(
to_html_with_options("a <a b:#> c.", &mdx)
.err()
.unwrap().to_string(),
"1:8: Unexpected character `#` (U+0023) before local attribute name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character to start a local attribute name"
);
assert_eq!(
to_html_with_options("a <a b:c%> c.", &mdx)
.err()
.unwrap().to_string(),
"1:9: Unexpected character `%` (U+0025) in local attribute name, expected an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character in a local attribute name"
);
assert_eq!(
to_html_with_options("a <a b:c ^> c.", &mdx)
.err()
.unwrap().to_string(),
"1:10: Unexpected character `^` (U+005E) after local attribute name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character after a local attribute name"
);
assert_eq!(
to_html_with_options("a <b c={1 + 1}>c</b>.", &mdx)?,
"<p>a c.</p>",
"should support attribute value expressions"
);
assert_eq!(
to_html_with_options("a <b c={1 + ({a: 1}).a}>c</b>.", &mdx)?,
"<p>a c.</p>",
"should support nested balanced braces in attribute value expressions"
);
assert_eq!(
to_html_with_options("a <a b=``> c.", &mdx)
.err()
.unwrap().to_string(),
"1:8: Unexpected character `` ` `` (U+0060) before attribute value, expected a character that can start an attribute value, such as `\"`, `'`, or `{` (markdown-rs:unexpected-character)",
"should crash on a nonconforming character before an attribute value"
);
assert_eq!(
to_html_with_options("a <a b=<c />> d.", &mdx)
.err()
.unwrap().to_string(),
"1:8: Unexpected character `<` (U+003C) before attribute value, expected a character that can start an attribute value, such as `\"`, `'`, or `{` (note: to use an element or fragment as a prop value in MDX, use `{<element />}`) (markdown-rs:unexpected-character)",
"should crash nicely on what might be a fragment, element as prop value"
);
assert_eq!(
to_html_with_options("a <a b=\"> c.", &mdx)
.err()
.unwrap().to_string(),
"1:13: Unexpected end of file in attribute value, expected a corresponding closing quote `\"` (U+0022) (markdown-rs:unexpected-eof)",
"should crash on a missing closing quote in double quoted attribute value"
);
assert_eq!(
to_html_with_options("a <a b=\"> c.", &mdx)
.err()
.unwrap().to_string(),
"1:13: Unexpected end of file in attribute value, expected a corresponding closing quote `\"` (U+0022) (markdown-rs:unexpected-eof)",
"should crash on a missing closing quote in single quoted attribute value"
);
assert_eq!(
to_html_with_options("a <a b={> c.", &mdx)
.err()
.unwrap().to_string(),
"1:13: Unexpected end of file in expression, expected a corresponding closing brace for `{` (markdown-rs:unexpected-eof)",
"should crash on a missing closing brace in an attribute value expression"
);
assert_eq!(
to_html_with_options("a <a b=\"\"*> c.", &mdx)
.err()
.unwrap().to_string(),
"1:10: Unexpected character `*` (U+002A) before attribute name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character after an attribute value"
);
assert_eq!(
to_html_with_options("<a b=\"\"c/>.", &mdx)?,
"<p>.</p>",
"should support an attribute directly after a value"
);
assert_eq!(
to_html_with_options("<a{...b}c/>.", &mdx)?,
"<p>.</p>",
"should support an attribute directly after an attribute expression"
);
assert_eq!(
to_html_with_options("a <a/b> c.", &mdx)
.err()
.unwrap().to_string(),
"1:6: Unexpected character `b` (U+0062) after self-closing slash, expected `>` to end the tag (markdown-rs:unexpected-character)",
"should crash on a nonconforming character after a self-closing slash"
);
assert_eq!(
to_html_with_options("<a/ \t>.", &mdx)?,
"<p>.</p>",
"should support whitespace directly after closing slash"
);
assert_eq!(
to_html_with_options("a > c.", &mdx).err(),
None,
"should *not* crash on closing angle in text"
);
assert_eq!(
to_html_with_options("a <>`<`</> c.", &mdx).err(),
None,
"should *not* crash on opening angle in tick code in an element"
);
assert_eq!(
to_html_with_options("a <>`` ``` ``</>", &mdx).err(),
None,
"should *not* crash on ticks in tick code in an element"
);
assert_eq!(
to_html_with_options("a </> c.", &mdx)?,
"<p>a c.</p>",
"should support a closing tag w/o open elements"
);
assert_eq!(
to_html_with_options("a <></b>", &mdx)?,
"<p>a </p>",
"should support mismatched tags (1)"
);
assert_eq!(
to_html_with_options("a <b></>", &mdx)?,
"<p>a </p>",
"should support mismatched tags (2)"
);
assert_eq!(
to_html_with_options("a <a.b></a>", &mdx)?,
"<p>a </p>",
"should support mismatched tags (3)"
);
assert_eq!(
to_html_with_options("a <a></a.b>", &mdx)?,
"<p>a </p>",
"should support mismatched tags (4)"
);
assert_eq!(
to_html_with_options("a <a.b></a.c>", &mdx)?,
"<p>a </p>",
"should support mismatched tags (5)"
);
assert_eq!(
to_html_with_options("a <a:b></a>", &mdx)?,
"<p>a </p>",
"should support mismatched tags (6)"
);
assert_eq!(
to_html_with_options("a <a></a:b>", &mdx)?,
"<p>a </p>",
"should support mismatched tags (7)"
);
assert_eq!(
to_html_with_options("a <a:b></a:c>", &mdx)?,
"<p>a </p>",
"should support mismatched tags (8)"
);
assert_eq!(
to_html_with_options("a <a:b></a.b>", &mdx)?,
"<p>a </p>",
"should support mismatched tags (9)"
);
assert_eq!(
to_html_with_options("a <a>b</a/>", &mdx)?,
"<p>a b</p>",
"should support a closing self-closing tag"
);
assert_eq!(
to_html_with_options("a <a>b</a b>", &mdx)?,
"<p>a b</p>",
"should support a closing tag w/ attributes"
);
assert_eq!(
to_html_with_options("a <>b <>c</> d</>.", &mdx)?,
"<p>a b c d.</p>",
"should support nested tags"
);
assert_eq!(
to_html_with_options(
"<x y=\"Character references can be used: ", ', <, >, {, and }, they can be named, decimal, or hexadecimal: © ≠ 𝌆\" />.",
&mdx
)?,
"<p>.</p>",
"should support character references in attribute values"
);
assert_eq!(
to_html_with_options(
"<x>Character references can be used: ", ', <, >, {, and }, they can be named, decimal, or hexadecimal: © ≠ 𝌆</x>.",
&mdx
)?,
"<p>Character references can be used: ", ', <, >, {, and }, they can be named, decimal, or hexadecimal: © ≠ 𝌆.</p>",
"should support character references in text"
);
assert_eq!(
to_html_with_options("<x />.", &mdx)?,
"<p>.</p>",
"should support as text if the closing tag is not the last thing"
);
assert_eq!(
to_html_with_options("a <x />", &mdx)?,
"<p>a </p>",
"should support as text if the opening is not the first thing"
);
assert_eq!(
to_html_with_options("a *open <b> close* </b> c.", &mdx)?,
"<p>a <em>open close</em> c.</p>",
"should not care about precedence between attention (emphasis)"
);
assert_eq!(
to_html_with_options("a **open <b> close** </b> c.", &mdx)?,
"<p>a <strong>open close</strong> c.</p>",
"should not care about precedence between attention (strong)"
);
assert_eq!(
to_html_with_options("a [open <b> close](c) </b> d.", &mdx)?,
"<p>a <a href=\"c\">open close</a> d.</p>",
"should not care about precedence between label (link)"
);
assert_eq!(
to_html_with_options("a  </b> d.", &mdx)?,
"<p>a <img src=\"c\" alt=\"open close\" /> d.</p>",
"should not care about precedence between label (image)"
);
assert_eq!(
to_html_with_options("> a <b>\n> c </b> d.", &mdx)?,
"<blockquote>\n<p>a \nc d.</p>\n</blockquote>",
"should support line endings in elements"
);
assert_eq!(
to_html_with_options("> a <b c=\"d\ne\" /> f", &mdx)?,
"<blockquote>\n<p>a f</p>\n</blockquote>",
"should support line endings in attribute values"
);
assert_eq!(
to_html_with_options("> a <b c={d\ne} /> f", &mdx)?,
"<blockquote>\n<p>a f</p>\n</blockquote>",
"should support line endings in attribute value expressions"
);
assert_eq!(
to_html_with_options("> a <b {c\nd} /> e", &mdx)?,
"<blockquote>\n<p>a e</p>\n</blockquote>",
"should support line endings in attribute expressions"
);
assert_eq!(
to_html_with_options("> a <b\n/> c", &mdx)?,
"<blockquote>\n<p>a c</p>\n</blockquote>",
"should support lazy text (1)"
);
assert_eq!(
to_html_with_options("> a <b c='\nd'/> e", &mdx)?,
"<blockquote>\n<p>a e</p>\n</blockquote>",
"should support lazy text (2)"
);
assert_eq!(
to_html_with_options("> a <b c='d\n'/> e", &mdx)?,
"<blockquote>\n<p>a e</p>\n</blockquote>",
"should support lazy text (3)"
);
assert_eq!(
to_html_with_options("> a <b c='d\ne'/> f", &mdx)?,
"<blockquote>\n<p>a f</p>\n</blockquote>",
"should support lazy text (4)"
);
assert_eq!(
to_html_with_options("> a <b c={d\ne}/> f", &mdx)?,
"<blockquote>\n<p>a f</p>\n</blockquote>",
"should support lazy text (5)"
);
assert_eq!(
to_html_with_options("1 < 3", &mdx)?,
"<p>1 < 3</p>",
"should allow `<` followed by markdown whitespace as text in markdown"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/mdx_swc.rs | Rust | mod test_utils;
use markdown::{message, to_html_with_options, Constructs, Options, ParseOptions};
use pretty_assertions::assert_eq;
use test_utils::swc::{parse_esm, parse_expression};
#[test]
fn mdx_swc() -> Result<(), message::Message> {
let swc = Options {
parse: ParseOptions {
constructs: Constructs::mdx(),
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html_with_options("{'}'}", &swc)?,
"",
"should support JavaScript-aware flow expressions w/ `mdx_expression_parse`"
);
assert_eq!(
to_html_with_options("a {'}'} b", &swc)?,
"<p>a b</p>",
"should support JavaScript-aware text expressions w/ `mdx_expression_parse`"
);
assert_eq!(
to_html_with_options("<a {...a/*}*/} />", &swc)?,
"",
"should support JavaScript-aware attribute expressions w/ `mdx_expression_parse`"
);
assert_eq!(
to_html_with_options("<a b={'}'} />", &swc)?,
"",
"should support JavaScript-aware attribute value expressions w/ `mdx_expression_parse`"
);
assert_eq!(
to_html_with_options("import a from 'b'\n\nexport {a}\n\n# c", &swc)?,
"<h1>c</h1>",
"should support JavaScript-aware ESM w/ `mdx_esm_parse`"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/misc_bom.rs | Rust | use markdown::to_html;
use pretty_assertions::assert_eq;
#[test]
fn bom() {
assert_eq!(to_html("\u{FEFF}"), "", "should ignore just a bom");
assert_eq!(
to_html("\u{FEFF}# hea\u{FEFF}ding"),
"<h1>hea\u{FEFF}ding</h1>",
"should ignore a bom"
);
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/misc_dangerous_html.rs | Rust | use markdown::{message, to_html, to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
#[test]
fn dangerous_html() -> Result<(), message::Message> {
let danger = &Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html("<x>"),
"<x>",
"should be safe by default for flow"
);
assert_eq!(
to_html("a<b>"),
"<p>a<b></p>",
"should be safe by default for text"
);
assert_eq!(
to_html_with_options("<x>", danger)?,
"<x>",
"should be unsafe w/ `allowDangerousHtml`"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/misc_dangerous_protocol.rs | Rust | use markdown::to_html;
use pretty_assertions::assert_eq;
#[test]
fn dangerous_protocol_autolink() {
assert_eq!(
to_html("<javascript:alert(1)>"),
"<p><a href=\"\">javascript:alert(1)</a></p>",
"should be safe by default"
);
assert_eq!(
to_html("<http://a>"),
"<p><a href=\"http://a\">http://a</a></p>",
"should allow `http:`"
);
assert_eq!(
to_html("<https://a>"),
"<p><a href=\"https://a\">https://a</a></p>",
"should allow `https:`"
);
assert_eq!(
to_html("<irc:///help>"),
"<p><a href=\"irc:///help\">irc:///help</a></p>",
"should allow `irc:`"
);
assert_eq!(
to_html("<mailto:a>"),
"<p><a href=\"mailto:a\">mailto:a</a></p>",
"should allow `mailto:`"
);
}
#[test]
fn dangerous_protocol_image() {
assert_eq!(
to_html(")"),
"<p><img src=\"\" alt=\"\" /></p>",
"should be safe by default"
);
assert_eq!(
to_html(""),
"<p><img src=\"http://a\" alt=\"\" /></p>",
"should allow `http:`"
);
assert_eq!(
to_html(""),
"<p><img src=\"https://a\" alt=\"\" /></p>",
"should allow `https:`"
);
assert_eq!(
to_html(""),
"<p><img src=\"\" alt=\"\" /></p>",
"should not allow `irc:`"
);
assert_eq!(
to_html(""),
"<p><img src=\"\" alt=\"\" /></p>",
"should not allow `mailto:`"
);
assert_eq!(
to_html(""),
"<p><img src=\"#a\" alt=\"\" /></p>",
"should allow a hash"
);
assert_eq!(
to_html(""),
"<p><img src=\"?a\" alt=\"\" /></p>",
"should allow a search"
);
assert_eq!(
to_html(""),
"<p><img src=\"/a\" alt=\"\" /></p>",
"should allow an absolute"
);
assert_eq!(
to_html(""),
"<p><img src=\"./a\" alt=\"\" /></p>",
"should allow an relative"
);
assert_eq!(
to_html(""),
"<p><img src=\"../a\" alt=\"\" /></p>",
"should allow an upwards relative"
);
assert_eq!(
to_html(""),
"<p><img src=\"a#b:c\" alt=\"\" /></p>",
"should allow a colon in a hash"
);
assert_eq!(
to_html(""),
"<p><img src=\"a?b:c\" alt=\"\" /></p>",
"should allow a colon in a search"
);
assert_eq!(
to_html(""),
"<p><img src=\"a/b:c\" alt=\"\" /></p>",
"should allow a colon in a path"
);
}
#[test]
fn dangerous_protocol_link() {
assert_eq!(
to_html("[](javascript:alert(1))"),
"<p><a href=\"\"></a></p>",
"should be safe by default"
);
assert_eq!(
to_html("[](http://a)"),
"<p><a href=\"http://a\"></a></p>",
"should allow `http:`"
);
assert_eq!(
to_html("[](https://a)"),
"<p><a href=\"https://a\"></a></p>",
"should allow `https:`"
);
assert_eq!(
to_html("[](irc:///help)"),
"<p><a href=\"irc:///help\"></a></p>",
"should allow `irc:`"
);
assert_eq!(
to_html("[](mailto:a)"),
"<p><a href=\"mailto:a\"></a></p>",
"should allow `mailto:`"
);
assert_eq!(
to_html("[](#a)"),
"<p><a href=\"#a\"></a></p>",
"should allow a hash"
);
assert_eq!(
to_html("[](?a)"),
"<p><a href=\"?a\"></a></p>",
"should allow a search"
);
assert_eq!(
to_html("[](/a)"),
"<p><a href=\"/a\"></a></p>",
"should allow an absolute"
);
assert_eq!(
to_html("[](./a)"),
"<p><a href=\"./a\"></a></p>",
"should allow an relative"
);
assert_eq!(
to_html("[](../a)"),
"<p><a href=\"../a\"></a></p>",
"should allow an upwards relative"
);
assert_eq!(
to_html("[](a#b:c)"),
"<p><a href=\"a#b:c\"></a></p>",
"should allow a colon in a hash"
);
assert_eq!(
to_html("[](a?b:c)"),
"<p><a href=\"a?b:c\"></a></p>",
"should allow a colon in a search"
);
assert_eq!(
to_html("[](a/b:c)"),
"<p><a href=\"a/b:c\"></a></p>",
"should allow a colon in a path"
);
}
#[test]
fn dangerous_protocol_image_with_option() {
use markdown::{to_html_with_options, CompileOptions, Options};
let options = Options {
compile: CompileOptions {
allow_any_img_src: true,
..Default::default()
},
..Default::default()
};
let result = to_html_with_options(")", &options).unwrap();
assert_eq!(
result, "<p><img src=\"javascript:alert(1)\" alt=\"\" /></p>",
"should allow javascript protocol with allow_any_img_src option"
);
let result = to_html_with_options("", &options).unwrap();
assert_eq!(
result, "<p><img src=\"irc:///help\" alt=\"\" /></p>",
"should allow irc protocol with allow_any_img_src option"
);
let result = to_html_with_options("", &options).unwrap();
assert_eq!(
result, "<p><img src=\"mailto:a\" alt=\"\" /></p>",
"should allow mailto protocol with allow_any_img_src option"
);
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/misc_default_line_ending.rs | Rust | use markdown::{message, to_html, to_html_with_options, CompileOptions, LineEnding, Options};
use pretty_assertions::assert_eq;
#[test]
fn default_line_ending() -> Result<(), message::Message> {
assert_eq!(
to_html("> a"),
"<blockquote>\n<p>a</p>\n</blockquote>",
"should use `\\n` default"
);
assert_eq!(
to_html("> a\n"),
"<blockquote>\n<p>a</p>\n</blockquote>\n",
"should infer the first line ending (1)"
);
assert_eq!(
to_html("> a\r"),
"<blockquote>\r<p>a</p>\r</blockquote>\r",
"should infer the first line ending (2)"
);
assert_eq!(
to_html("> a\r\n"),
"<blockquote>\r\n<p>a</p>\r\n</blockquote>\r\n",
"should infer the first line ending (3)"
);
assert_eq!(
to_html_with_options(
"> a",
&Options {
compile: CompileOptions {
default_line_ending: LineEnding::CarriageReturn,
..Default::default()
},
..Default::default()
}
)?,
"<blockquote>\r<p>a</p>\r</blockquote>",
"should support the given line ending"
);
assert_eq!(
to_html_with_options(
"> a\n",
&Options {
compile: CompileOptions {
default_line_ending: LineEnding::CarriageReturn,
..Default::default()
},
..Default::default()
}
)?,
// To do: is this a bug in `to_html.js` that it uses `\r` for earlier line endings?
// "<blockquote>\r<p>a</p>\r</blockquote>\n",
"<blockquote>\n<p>a</p>\n</blockquote>\n",
"should support the given line ending, even if line endings exist"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/misc_line_ending.rs | Rust | use markdown::{message, to_html, to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
#[test]
fn line_ending() -> Result<(), message::Message> {
let danger = &Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(to_html("\n"), "", "should support just a line feed");
assert_eq!(to_html("\r"), "", "should support just a carriage return");
assert_eq!(
to_html("\r\n"),
"",
"should support just a carriage return + line feed"
);
assert_eq!(to_html("\n\n"), "", "should support just two line feeds");
assert_eq!(
to_html("\r\r"),
"",
"should support just two carriage return"
);
assert_eq!(
to_html("\r\n\r\n"),
"",
"should support just two carriage return + line feeds"
);
assert_eq!(
to_html("a\nb"),
"<p>a\nb</p>",
"should support a line feed for a line ending inside a paragraph"
);
assert_eq!(
to_html("a\rb"),
"<p>a\rb</p>",
"should support a carriage return for a line ending inside a paragraph"
);
assert_eq!(
to_html("a\r\nb"),
"<p>a\r\nb</p>",
"should support a carriage return + line feed for a line ending inside a paragraph"
);
assert_eq!(
to_html("\ta\n\tb"),
"<pre><code>a\nb\n</code></pre>",
"should support a line feed in indented code (and prefer it)"
);
assert_eq!(
to_html("\ta\r\tb"),
"<pre><code>a\rb\r</code></pre>",
"should support a carriage return in indented code (and prefer it)"
);
assert_eq!(
to_html("\ta\r\n\tb"),
"<pre><code>a\r\nb\r\n</code></pre>",
"should support a carriage return + line feed in indented code (and prefer it)"
);
assert_eq!(
to_html("***\n### Heading"),
"<hr />\n<h3>Heading</h3>",
"should support a line feed between flow"
);
assert_eq!(
to_html("***\r### Heading"),
"<hr />\r<h3>Heading</h3>",
"should support a carriage return between flow"
);
assert_eq!(
to_html("***\r\n### Heading"),
"<hr />\r\n<h3>Heading</h3>",
"should support a carriage return + line feed between flow"
);
assert_eq!(
to_html("***\n\n\n### Heading\n"),
"<hr />\n<h3>Heading</h3>\n",
"should support several line feeds between flow"
);
assert_eq!(
to_html("***\r\r\r### Heading\r"),
"<hr />\r<h3>Heading</h3>\r",
"should support several carriage returns between flow"
);
assert_eq!(
to_html("***\r\n\r\n\r\n### Heading\r\n"),
"<hr />\r\n<h3>Heading</h3>\r\n",
"should support several carriage return + line feeds between flow"
);
assert_eq!(
to_html("```x\n\n\ny\n\n\n```\n\n\n"),
"<pre><code class=\"language-x\">\n\ny\n\n\n</code></pre>\n",
"should support several line feeds in fenced code"
);
assert_eq!(
to_html("```x\r\r\ry\r\r\r```\r\r\r"),
"<pre><code class=\"language-x\">\r\ry\r\r\r</code></pre>\r",
"should support several carriage returns in fenced code"
);
assert_eq!(
to_html("```x\r\n\r\n\r\ny\r\n\r\n\r\n```\r\n\r\n\r\n"),
"<pre><code class=\"language-x\">\r\n\r\ny\r\n\r\n\r\n</code></pre>\r\n",
"should support several carriage return + line feeds in fenced code"
);
assert_eq!(
to_html("A\r\nB\r\n-\r\nC"),
"<h2>A\r\nB</h2>\r\n<p>C</p>",
"should support a carriage return + line feed in content"
);
assert_eq!(
to_html_with_options("<div\n", danger)?,
"<div\n",
"should support a line feed after html"
);
assert_eq!(
to_html_with_options("<div\r", danger)?,
"<div\r",
"should support a carriage return after html"
);
assert_eq!(
to_html_with_options("<div\r\n", danger)?,
"<div\r\n",
"should support a carriage return + line feed after html"
);
assert_eq!(
to_html_with_options("<div>\n\nx", danger)?,
"<div>\n<p>x</p>",
"should support a blank line w/ line feeds after html"
);
assert_eq!(
to_html_with_options("<div>\r\rx", danger)?,
"<div>\r<p>x</p>",
"should support a blank line w/ carriage returns after html"
);
assert_eq!(
to_html_with_options("<div>\r\n\r\nx", danger)?,
"<div>\r\n<p>x</p>",
"should support a blank line w/ carriage return + line feeds after html"
);
assert_eq!(
to_html_with_options("<div>\nx", danger)?,
"<div>\nx",
"should support a non-blank line w/ line feed in html"
);
assert_eq!(
to_html_with_options("<div>\rx", danger)?,
"<div>\rx",
"should support a non-blank line w/ carriage return in html"
);
assert_eq!(
to_html_with_options("<div>\r\nx", danger)?,
"<div>\r\nx",
"should support a non-blank line w/ carriage return + line feed in html"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/misc_soft_break.rs | Rust | use markdown::to_html;
use pretty_assertions::assert_eq;
#[test]
fn soft_break() {
assert_eq!(
to_html("foo\nbaz"),
"<p>foo\nbaz</p>",
"should support line endings"
);
assert_eq!(
to_html("foo \n baz"),
"<p>foo\nbaz</p>",
"should trim spaces around line endings"
);
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/misc_tabs.rs | Rust | use markdown::{message, to_html, to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
#[test]
fn tabs_flow() -> Result<(), message::Message> {
let danger = &Options {
compile: CompileOptions {
allow_dangerous_html: true,
allow_dangerous_protocol: true,
..Default::default()
},
..Default::default()
};
assert_eq!(
to_html(" x"),
"<pre><code>x\n</code></pre>",
"should support a 4*SP to start code"
);
assert_eq!(
to_html("\tx"),
"<pre><code>x\n</code></pre>",
"should support a HT to start code"
);
assert_eq!(
to_html(" \tx"),
"<pre><code>x\n</code></pre>",
"should support a SP + HT to start code"
);
assert_eq!(
to_html(" \tx"),
"<pre><code>x\n</code></pre>",
"should support a 2*SP + HT to start code"
);
assert_eq!(
to_html(" \tx"),
"<pre><code>x\n</code></pre>",
"should support a 3*SP + HT to start code"
);
assert_eq!(
to_html(" \tx"),
"<pre><code>\tx\n</code></pre>",
"should support a 4*SP to start code, and leave the next HT as code data"
);
assert_eq!(
to_html(" \t# x"),
"<pre><code># x\n</code></pre>",
"should not support a 3*SP + HT to start an ATX heading"
);
assert_eq!(
to_html(" \t> x"),
"<pre><code>> x\n</code></pre>",
"should not support a 3*SP + HT to start a block quote"
);
assert_eq!(
to_html(" \t- x"),
"<pre><code>- x\n</code></pre>",
"should not support a 3*SP + HT to start a list item"
);
assert_eq!(
to_html(" \t---"),
"<pre><code>---\n</code></pre>",
"should not support a 3*SP + HT to start a thematic break"
);
assert_eq!(
to_html(" \t```"),
"<pre><code>```\n</code></pre>",
"should not support a 3*SP + HT to start a fenced code"
);
assert_eq!(
to_html(" \t<div>"),
"<pre><code><div>\n</code></pre>",
"should not support a 3*SP + HT to start HTML"
);
assert_eq!(
to_html("#\tx\t#\t"),
"<h1>x</h1>",
"should support tabs around ATX heading sequences"
);
assert_eq!(
to_html("#\t\tx\t\t#\t\t"),
"<h1>x</h1>",
"should support arbitrary tabs around ATX heading sequences"
);
assert_eq!(
to_html("```\tx\ty\t\n```\t"),
"<pre><code class=\"language-x\"></code></pre>",
"should support tabs around fenced code fences, info, and meta"
);
assert_eq!(
to_html("```\t\tx\t\ty\t\t\n```\t\t"),
"<pre><code class=\"language-x\"></code></pre>",
"should support arbitrary tabs around fenced code fences, info, and meta"
);
assert_eq!(
to_html("```x\n\t```"),
"<pre><code class=\"language-x\">\t```\n</code></pre>\n",
"should not support tabs before fenced code closing fences"
);
assert_eq!(
to_html_with_options("<x\ty\tz\t=\t\"\tx\t\">", danger)?,
"<x\ty\tz\t=\t\"\tx\t\">",
"should support tabs in HTML (if whitespace is allowed)"
);
assert_eq!(
to_html("*\t*\t*\t"),
"<hr />",
"should support tabs in thematic breaks"
);
assert_eq!(
to_html("*\t\t*\t\t*\t\t"),
"<hr />",
"should support arbitrary tabs in thematic breaks"
);
Ok(())
}
#[test]
fn tabs_text() {
assert_eq!(
to_html("<http:\t>"),
"<p><http:\t></p>",
"should not support a tab to start an autolink w/ protocol’s rest"
);
assert_eq!(
to_html("<http:x\t>"),
"<p><http:x\t></p>",
"should not support a tab in an autolink w/ protocol’s rest"
);
assert_eq!(
to_html("<example\t@x.com>"),
"<p><example\t@x.com></p>",
"should not support a tab in an email autolink’s local part"
);
assert_eq!(
to_html("<example@x\ty.com>"),
"<p><example@x\ty.com></p>",
"should not support a tab in an email autolink’s label"
);
assert_eq!(
to_html("\\\tx"),
"<p>\\\tx</p>",
"should not support character escaped tab"
);
assert_eq!(
to_html("	"),
"<p>\t</p>",
"should support character reference resolving to a tab"
);
assert_eq!(
to_html("`\tx`"),
"<p><code>\tx</code></p>",
"should support a tab starting code"
);
assert_eq!(
to_html("`x\t`"),
"<p><code>x\t</code></p>",
"should support a tab ending code"
);
assert_eq!(
to_html("`\tx\t`"),
"<p><code>\tx\t</code></p>",
"should support tabs around code"
);
assert_eq!(
to_html("`\tx `"),
"<p><code>\tx </code></p>",
"should support a tab starting, and a space ending, code"
);
assert_eq!(
to_html("` x\t`"),
"<p><code> x\t</code></p>",
"should support a space starting, and a tab ending, code"
);
// Note: CM does not strip it in this case.
// However, that should be a bug there: makes more sense to remove it like
// trailing spaces.
assert_eq!(
to_html("x\t\ny"),
"<p>x\ny</p>",
"should support a trailing tab at a line ending in a paragraph"
);
assert_eq!(
to_html("x\n\ty"),
"<p>x\ny</p>",
"should support an initial tab after a line ending in a paragraph"
);
assert_eq!(
to_html("x[\ty](z)"),
"<p>x<a href=\"z\">\ty</a></p>",
"should support an initial tab in a link label"
);
assert_eq!(
to_html("x[y\t](z)"),
"<p>x<a href=\"z\">y\t</a></p>",
"should support a final tab in a link label"
);
assert_eq!(
to_html("[x\ty](z)"),
"<p><a href=\"z\">x\ty</a></p>",
"should support a tab in a link label"
);
// Note: CM.js bug, see: <https://github.com/commonmark/commonmark.js/issues/191>
assert_eq!(
to_html("[x](\ty)"),
"<p><a href=\"y\">x</a></p>",
"should support a tab starting a link resource"
);
assert_eq!(
to_html("[x](y\t)"),
"<p><a href=\"y\">x</a></p>",
"should support a tab ending a link resource"
);
assert_eq!(
to_html("[x](y\t\"z\")"),
"<p><a href=\"y\" title=\"z\">x</a></p>",
"should support a tab between a link destination and title"
);
}
#[test]
fn tabs_virtual_spaces() {
assert_eq!(
to_html("```\n\tx"),
"<pre><code>\tx\n</code></pre>\n",
"should support a tab in fenced code"
);
assert_eq!(
to_html(" ```\n\tx"),
"<pre><code> x\n</code></pre>\n",
"should strip 1 space from an initial tab in fenced code if the opening fence is indented as such"
);
assert_eq!(
to_html(" ```\n\tx"),
"<pre><code> x\n</code></pre>\n",
"should strip 2 spaces from an initial tab in fenced code if the opening fence is indented as such"
);
assert_eq!(
to_html(" ```\n\tx"),
"<pre><code> x\n</code></pre>\n",
"should strip 3 spaces from an initial tab in fenced code if the opening fence is indented as such"
);
assert_eq!(
to_html("-\ta\n\n\tb"),
"<ul>\n<li>\n<p>a</p>\n<p>\tb</p>\n</li>\n</ul>",
// To do: CM.js does not output the tab before `b`. See if that makes sense?
// "<ul>\n<li>\n<p>a</p>\n<p>b</p>\n</li>\n</ul>",
"should support a part of a tab as a container, and the rest of a tab as flow"
);
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/misc_url.rs | Rust | use markdown::to_html;
use pretty_assertions::assert_eq;
#[test]
fn url() {
assert_eq!(
to_html("<https://%>"),
"<p><a href=\"https://%25\">https://%</a></p>",
"should support incorrect percentage encoded values (0)"
);
assert_eq!(
to_html("[](<%>)"),
"<p><a href=\"%25\"></a></p>",
"should support incorrect percentage encoded values (1)"
);
assert_eq!(
to_html("[](<%%20>)"),
"<p><a href=\"%25%20\"></a></p>",
"should support incorrect percentage encoded values (2)"
);
assert_eq!(
to_html("[](<%a%20>)"),
"<p><a href=\"%25a%20\"></a></p>",
"should support incorrect percentage encoded values (3)"
);
// Note: Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<foo\u{D800}bar>)"),
// "<p><a href=\"foo%EF%BF%BDbar\"></a></p>",
// "should support a lone high surrogate (lowest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<foo\u{DBFF}bar>)"),
// "<p><a href=\"foo%EF%BF%BDbar\"></a></p>",
// "should support a lone high surrogate (highest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<\u{D800}bar>)"),
// "<p><a href=\"%EF%BF%BDbar\"></a></p>",
// "should support a lone high surrogate at the start (lowest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<\u{DBFF}bar>)"),
// "<p><a href=\"%EF%BF%BDbar\"></a></p>",
// "should support a lone high surrogate at the start (highest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<foo\u{D800}>)"),
// "<p><a href=\"foo%EF%BF%BD\"></a></p>",
// "should support a lone high surrogate at the end (lowest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<foo\u{DBFF}>)"),
// "<p><a href=\"foo%EF%BF%BD\"></a></p>",
// "should support a lone high surrogate at the end (highest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<foo\u{DC00}bar>)"),
// "<p><a href=\"foo%EF%BF%BDbar\"></a></p>",
// "should support a lone low surrogate (lowest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<foo\u{DFFF}bar>)"),
// "<p><a href=\"foo%EF%BF%BDbar\"></a></p>",
// "should support a lone low surrogate (highest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<\u{DC00}bar>)"),
// "<p><a href=\"%EF%BF%BDbar\"></a></p>",
// "should support a lone low surrogate at the start (lowest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<\u{DFFF}bar>)"),
// "<p><a href=\"%EF%BF%BDbar\"></a></p>",
// "should support a lone low surrogate at the start (highest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<foo\u{DC00}>)"),
// "<p><a href=\"foo%EF%BF%BD\"></a></p>",
// "should support a lone low surrogate at the end (lowest)"
// );
// Surrogate handling not needed in Rust.
// assert_eq!(
// to_html("[](<foo\u{DFFF}>)"),
// "<p><a href=\"foo%EF%BF%BD\"></a></p>",
// "should support a lone low surrogate at the end (highest)"
// );
assert_eq!(
to_html("[](<🤔>)"),
"<p><a href=\"%F0%9F%A4%94\"></a></p>",
"should support an emoji"
);
let mut ascii = Vec::with_capacity(129);
let mut code = 0;
while code < 128 {
// LF and CR can’t be in resources.
if code == 10 || code == 13 {
code += 1;
continue;
}
// `<`, `>`, `\` need to be escaped.
if code == 60 || code == 62 || code == 92 {
ascii.push('\\');
}
ascii.push(char::from_u32(code).unwrap());
code += 1;
}
let ascii_in = ascii.into_iter().collect::<String>();
let ascii_out = "%EF%BF%BD%01%02%03%04%05%06%07%08%09%0B%0C%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20!%22#$%25&'()*+,-./0123456789:;%3C=%3E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F";
assert_eq!(
to_html(&format!("[](<{}>)", ascii_in)),
format!("<p><a href=\"{}\"></a></p>", ascii_out),
"should support ascii characters"
);
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/misc_zero.rs | Rust | use markdown::{
mdast::{Node, Root},
message, to_html, to_mdast,
unist::Position,
};
use pretty_assertions::assert_eq;
#[test]
fn zero() -> Result<(), message::Message> {
assert_eq!(to_html(""), "", "should support no markdown");
assert_eq!(
to_html("asd\0asd"),
"<p>asd�asd</p>",
"should replace `\\0` w/ a replacement characters (`�`)"
);
assert_eq!(
to_html("�"),
"<p>�</p>",
"should replace NUL in a character reference"
);
// This doesn’t make sense in markdown, as character escapes only work on
// ascii punctuation, but it’s good to demonstrate the behavior.
assert_eq!(
to_html("\\0"),
"<p>\\0</p>",
"should not support NUL in a character escape"
);
assert_eq!(
to_mdast("", &Default::default())?,
Node::Root(Root {
children: vec![],
position: Some(Position::new(1, 1, 0, 1, 1, 0))
}),
"should support no markdown (ast)"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/serde.rs | Rust | use markdown::{mdast::Node, message::Message, Constructs, ParseOptions};
use test_utils::swc::{parse_esm, parse_expression};
mod test_utils;
#[allow(unused)]
#[derive(Debug)]
enum Error {
Mdast(Message),
Serde(serde_json::Error),
}
#[test]
#[cfg(feature = "serde")]
fn serde_constructs() -> Result<(), Error> {
use pretty_assertions::assert_eq;
assert_eq!(
serde_json::to_string(&Constructs::default()).unwrap(),
r#"{"attention":true,"autolink":true,"blockQuote":true,"characterEscape":true,"characterReference":true,"codeIndented":true,"codeFenced":true,"codeText":true,"definition":true,"frontmatter":false,"gfmAutolinkLiteral":false,"gfmFootnoteDefinition":false,"gfmLabelStartFootnote":false,"gfmStrikethrough":false,"gfmTable":false,"gfmTaskListItem":false,"hardBreakEscape":true,"hardBreakTrailing":true,"headingAtx":true,"headingSetext":true,"htmlFlow":true,"htmlText":true,"labelStartImage":true,"labelStartLink":true,"labelEnd":true,"listItem":true,"mathFlow":false,"mathText":false,"mdxEsm":false,"mdxExpressionFlow":false,"mdxExpressionText":false,"mdxJsxFlow":false,"mdxJsxText":false,"thematicBreak":true}"#
);
Ok(())
}
#[test]
#[cfg(feature = "serde")]
fn serde_compile_options() -> Result<(), Error> {
use pretty_assertions::assert_eq;
assert_eq!(
serde_json::to_string(&markdown::CompileOptions::gfm()).unwrap(),
r#"{"allowAnyImgSrc":false,"allowDangerousHtml":false,"allowDangerousProtocol":false,"defaultLineEnding":"\n","gfmFootnoteBackLabel":null,"gfmFootnoteClobberPrefix":null,"gfmFootnoteLabelAttributes":null,"gfmFootnoteLabelTagName":null,"gfmFootnoteLabel":null,"gfmTaskListItemCheckable":false,"gfmTagfilter":true}"#
);
Ok(())
}
#[test]
#[cfg(feature = "serde")]
fn serde_parse_options() -> Result<(), Error> {
use pretty_assertions::assert_eq;
assert_eq!(
serde_json::to_string(&ParseOptions::gfm()).unwrap(),
r#"{"constructs":{"attention":true,"autolink":true,"blockQuote":true,"characterEscape":true,"characterReference":true,"codeIndented":true,"codeFenced":true,"codeText":true,"definition":true,"frontmatter":false,"gfmAutolinkLiteral":true,"gfmFootnoteDefinition":true,"gfmLabelStartFootnote":true,"gfmStrikethrough":true,"gfmTable":true,"gfmTaskListItem":true,"hardBreakEscape":true,"hardBreakTrailing":true,"headingAtx":true,"headingSetext":true,"htmlFlow":true,"htmlText":true,"labelStartImage":true,"labelStartLink":true,"labelEnd":true,"listItem":true,"mathFlow":false,"mathText":false,"mdxEsm":false,"mdxExpressionFlow":false,"mdxExpressionText":false,"mdxJsxFlow":false,"mdxJsxText":false,"thematicBreak":true},"gfmStrikethroughSingleTilde":true,"mathTextSingleDollar":true}"#
);
Ok(())
}
#[test]
fn serde_blockquote() -> Result<(), Error> {
assert_serde(
"> a",
r#"{
"type": "root",
"children": [
{
"type": "blockquote",
"children": [
{
"type": "paragraph",
"children": [{"type": "text", "value": "a"}]
}
]
}
]
}
"#,
ParseOptions::default(),
)
}
#[test]
fn serde_footnote_definition() -> Result<(), Error> {
assert_serde(
"[^a]: b",
r#"{
"type": "root",
"children": [
{
"type": "footnoteDefinition",
"identifier": "a",
"label": "a",
"children": [
{
"type": "paragraph",
"children": [{"type": "text", "value": "b"}]
}
]
}
]
}"#,
ParseOptions::gfm(),
)
}
#[test]
fn serde_mdx_jsx_flow_element() -> Result<(), Error> {
let options = ParseOptions {
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..ParseOptions::mdx()
};
assert_serde(
"<a b c={d} e=\"f\" {...g} />",
r#"{
"type": "root",
"children": [
{
"type": "mdxJsxFlowElement",
"name": "a",
"attributes": [
{"type": "mdxJsxAttribute", "name": "b"},
{
"type": "mdxJsxAttribute",
"name": "c",
"value": {
"_markdownRsStops": [[0, 8]],
"type": "mdxJsxAttributeValueExpression",
"value": "d"
}
},
{"type": "mdxJsxAttribute", "name": "e", "value": "f"},
{
"_markdownRsStops": [[0, 18]],
"type": "mdxJsxExpressionAttribute",
"value": "...g"
}
],
"children": []
}
]
}"#,
options,
)
}
#[test]
fn serde_list() -> Result<(), Error> {
assert_serde(
"* a",
r#"{
"type": "root",
"children": [
{
"type": "list",
"ordered": false,
"spread": false,
"children": [
{
"type": "listItem",
"spread": false,
"children": [
{
"type": "paragraph",
"children": [{"type": "text", "value": "a"}]
}
]
}
]
}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_mdxjs_esm() -> Result<(), Error> {
let options = ParseOptions {
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..ParseOptions::mdx()
};
assert_serde(
"import a, {b} from 'c'",
r#"{
"type": "root",
"children": [
{
"_markdownRsStops": [[0, 0]],
"type": "mdxjsEsm",
"value": "import a, {b} from 'c'"
}
]
}"#,
options,
)
}
#[test]
fn serde_toml() -> Result<(), Error> {
assert_serde(
"+++\na: b\n+++",
r#"{
"type": "root",
"children": [{"type": "toml", "value": "a: b"}]
}"#,
ParseOptions {
constructs: Constructs {
frontmatter: true,
..Constructs::default()
},
..ParseOptions::default()
},
)
}
#[test]
fn serde_yaml() -> Result<(), Error> {
assert_serde(
"---\na: b\n---",
r#"{
"type": "root",
"children": [{"type": "yaml", "value": "a: b"}]
}"#,
ParseOptions {
constructs: Constructs {
frontmatter: true,
..Constructs::default()
},
..ParseOptions::default()
},
)
}
#[test]
fn serde_break() -> Result<(), Error> {
assert_serde(
"a\\\nb",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{"type": "text", "value": "a"},
{"type": "break"},
{"type": "text", "value": "b"}
]
}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_inline_code() -> Result<(), Error> {
assert_serde(
"`a`",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [{"type": "inlineCode", "value": "a"}]
}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_inline_math() -> Result<(), Error> {
assert_serde(
"$a$",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [{"type": "inlineMath","value": "a"}]
}
]
}"#,
ParseOptions {
constructs: Constructs {
math_text: true,
..Constructs::default()
},
..ParseOptions::default()
},
)
}
#[test]
fn serde_delete() -> Result<(), Error> {
assert_serde(
"~~a~~",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "delete",
"children": [{"type": "text","value": "a"}]
}
]
}
]
}"#,
ParseOptions::gfm(),
)
}
#[test]
fn serde_emphasis() -> Result<(), Error> {
assert_serde(
"*a*",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "emphasis",
"children": [{"type": "text","value": "a"}]
}
]
}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_mdx_text_expression() -> Result<(), Error> {
let options = ParseOptions {
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..ParseOptions::mdx()
};
assert_serde(
"a {b}",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{"type": "text","value": "a "},
{
"_markdownRsStops": [[0,3]],
"type": "mdxTextExpression",
"value": "b"
}
]
}
]
}"#,
options,
)
}
#[test]
fn serde_footnote_reference() -> Result<(), Error> {
assert_serde(
"[^a]\n\n[^a]: b",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{"type": "footnoteReference", "identifier": "a", "label": "a"}
]
},
{
"type": "footnoteDefinition",
"identifier": "a",
"label": "a",
"children": [
{
"type": "paragraph",
"children": [{"type": "text", "value": "b"}]
}
]
}
]
}"#,
ParseOptions::gfm(),
)
}
#[test]
fn serde_html() -> Result<(), Error> {
assert_serde(
"<a>",
r#"{
"type": "root",
"children": [{"type": "html", "value": "<a>"}]
}"#,
ParseOptions::gfm(),
)
}
#[test]
fn serde_image() -> Result<(), Error> {
assert_serde(
"",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [{"type": "image", "url": "b", "alt": "a"}]
}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_image_reference() -> Result<(), Error> {
assert_serde(
"![a]\n\n[a]: b",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "imageReference",
"alt": "a",
"label": "a",
"identifier": "a",
"referenceType": "shortcut"
}
]
},
{"type": "definition", "url": "b", "identifier": "a", "label": "a"}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_mdx_jsx_text_element() -> Result<(), Error> {
assert_serde(
"a <b c />",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{"type": "text", "value": "a "},
{
"type": "mdxJsxTextElement",
"name": "b",
"attributes": [{"type": "mdxJsxAttribute", "name": "c"}],
"children": []
}
]
}
]
}"#,
ParseOptions::mdx(),
)
}
#[test]
fn serde_link() -> Result<(), Error> {
assert_serde(
"[a](b)",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "link",
"url": "b",
"children": [{"type": "text", "value": "a"}]
}
]
}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_link_reference() -> Result<(), Error> {
assert_serde(
"[a]\n\n[a]: b",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "linkReference",
"identifier": "a",
"label": "a",
"referenceType": "shortcut",
"children": [{"type": "text", "value": "a"}]
}
]
},
{
"type": "definition",
"url": "b",
"identifier": "a",
"label": "a"
}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_strong() -> Result<(), Error> {
assert_serde(
"**a**",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "strong",
"children": [{"type": "text", "value": "a"}]
}
]
}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_text() -> Result<(), Error> {
assert_serde(
"a",
r#"{
"type": "root",
"children": [
{"type": "paragraph", "children": [{"type": "text", "value": "a"}]}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_code() -> Result<(), Error> {
assert_serde(
"~~~js eval\nconsole.log(1)\n~~~",
r#"{
"type": "root",
"children": [
{"type": "code", "lang": "js", "meta": "eval", "value": "console.log(1)"}
]
}"#,
ParseOptions::default(),
)?;
assert_serde(
"```\nconsole.log(1)\n```",
r#"{
"type": "root",
"children": [{"type": "code", "value": "console.log(1)"}]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_math() -> Result<(), Error> {
assert_serde(
"$$\n1 + 1 = 2\n$$",
r#"{
"type": "root",
"children": [{"type": "math", "value": "1 + 1 = 2"}]
}"#,
ParseOptions {
constructs: Constructs {
math_flow: true,
..Constructs::default()
},
..ParseOptions::default()
},
)
}
#[test]
fn serde_mdx_flow_expression() -> Result<(), Error> {
let options = ParseOptions {
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..ParseOptions::mdx()
};
assert_serde(
"{a}",
r#"{
"type": "root",
"children": [
{"_markdownRsStops": [[0, 1]], "type": "mdxFlowExpression", "value": "a"}
]
}"#,
options,
)
}
#[test]
fn serde_heading() -> Result<(), Error> {
assert_serde(
"# a",
r#"{
"type": "root",
"children": [
{
"type": "heading",
"depth": 1,
"children": [{"type": "text", "value": "a"}]
}
]
}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_table() -> Result<(), Error> {
// To do: `"none"` should serialize in serde as `null`.
assert_serde(
"| a | b | c | d |\n| - | :- | -: | :-: |\n| 1 | 2 | 3 | 4 |",
r#"{
"type": "root",
"children": [
{
"type": "table",
"align": [null, "left", "right", "center"],
"children": [
{
"type": "tableRow",
"children": [
{"type": "tableCell", "children": [{"type": "text", "value": "a"}]},
{"type": "tableCell", "children": [{"type": "text", "value": "b"}]},
{"type": "tableCell", "children": [{"type": "text", "value": "c"}]},
{"type": "tableCell", "children": [{"type": "text", "value": "d"}]}
]
},
{
"type": "tableRow",
"children": [
{"type": "tableCell","children": [{"type": "text", "value": "1"}]},
{"type": "tableCell","children": [{"type": "text", "value": "2"}]},
{"type": "tableCell","children": [{"type": "text", "value": "3"}]},
{"type": "tableCell","children": [{"type": "text", "value": "4"}]}
]
}
]
}
]
}"#,
ParseOptions::gfm(),
)
}
#[test]
fn serde_thematic_break() -> Result<(), Error> {
assert_serde(
"***",
r#"{"type": "root", "children": [{"type": "thematicBreak"}]}"#,
ParseOptions::default(),
)
}
#[test]
fn serde_definition() -> Result<(), Error> {
assert_serde(
"[a]: b",
r###"{
"type": "root",
"children": [
{"type": "definition", "url": "b", "identifier": "a", "label": "a"}
]
}"###,
ParseOptions::default(),
)
}
#[test]
fn serde_paragraph() -> Result<(), Error> {
assert_serde(
"a",
r#"{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [{"type": "text", "value": "a"}]
}
]
}"#,
ParseOptions::default(),
)
}
/// Assert serde of mdast constructs.
///
/// Refer below links for the mdast JSON construct types.
/// * <https://github.com/syntax-tree/mdast#nodes>
/// * <https://github.com/syntax-tree/mdast-util-mdx#syntax-tree>
/// * <https://github.com/syntax-tree/mdast-util-frontmatter#syntax-tree>
#[cfg(feature = "serde")]
fn assert_serde(input: &str, expected: &str, options: ParseOptions) -> Result<(), Error> {
use pretty_assertions::assert_eq;
let mut source = markdown::to_mdast(input, &options).map_err(Error::Mdast)?;
remove_position(&mut source);
// Serialize to JSON
let actual_value: serde_json::Value = serde_json::to_value(&source).map_err(Error::Serde)?;
let expected_value: serde_json::Value = serde_json::from_str(expected).map_err(Error::Serde)?;
// Assert serialization.
assert_eq!(actual_value, expected_value);
// Assert deserialization.
assert_eq!(
source,
serde_json::from_value(actual_value).map_err(Error::Serde)?
);
Ok(())
}
#[cfg(not(feature = "serde"))]
#[allow(unused_variables)]
fn assert_serde(input: &str, expected: &str, options: ParseOptions) -> Result<(), Error> {
Ok(())
}
#[allow(dead_code)]
fn remove_position(node: &mut Node) {
if let Some(children) = node.children_mut() {
for child in children {
remove_position(child);
}
}
node.position_set(None);
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/test_utils/mod.rs | Rust | pub mod swc;
pub mod swc_utils;
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/test_utils/swc.rs | Rust | //! Bridge between `markdown-rs` and SWC.
use crate::test_utils::swc_utils::{create_span, RewritePrefixContext};
use markdown::{MdxExpressionKind, MdxSignal};
use std::rc::Rc;
use swc_core::common::{
comments::{Comment, SingleThreadedComments, SingleThreadedCommentsMap},
source_map::SmallPos,
BytePos, FileName, SourceFile, Span, Spanned,
};
use swc_core::ecma::ast::{EsVersion, Expr, Module, PropOrSpread};
use swc_core::ecma::parser::{
error::Error as SwcError, parse_file_as_expr, parse_file_as_module, EsSyntax, Syntax,
};
use swc_core::ecma::visit::VisitMutWith;
/// Lex ESM in MDX with SWC.
pub fn parse_esm(value: &str) -> MdxSignal {
let result = parse_esm_core(value);
match result {
Err((span, message)) => swc_error_to_signal(span, &message, value.len()),
Ok(_) => MdxSignal::Ok,
}
}
/// Core to parse ESM.
fn parse_esm_core(value: &str) -> Result<Module, (Span, String)> {
let (file, syntax, version) = create_config(value.into());
let mut errors = vec![];
let result = parse_file_as_module(&file, syntax, version, None, &mut errors);
match result {
Err(error) => Err((
fix_span(error.span(), 1),
format!(
"Could not parse esm with swc: {}",
swc_error_to_string(&error)
),
)),
Ok(module) => {
if errors.is_empty() {
let mut index = 0;
while index < module.body.len() {
let node = &module.body[index];
if !node.is_module_decl() {
return Err((
fix_span(node.span(), 1),
"Unexpected statement in code: only import/exports are supported"
.into(),
));
}
index += 1;
}
Ok(module)
} else {
Err((
fix_span(errors[0].span(), 1),
format!(
"Could not parse esm with swc: {}",
swc_error_to_string(&errors[0])
),
))
}
}
}
}
fn parse_expression_core(
value: &str,
kind: &MdxExpressionKind,
) -> Result<Option<Box<Expr>>, (Span, String)> {
// Empty expressions are OK.
if matches!(kind, MdxExpressionKind::Expression) && whitespace_and_comments(0, value).is_ok() {
return Ok(None);
}
// For attribute expression, a spread is needed, for which we have to prefix
// and suffix the input.
// See `check_expression_ast` for how the AST is verified.
let (prefix, suffix) = if matches!(kind, MdxExpressionKind::AttributeExpression) {
("({", "})")
} else {
("", "")
};
let (file, syntax, version) = create_config(format!("{}{}{}", prefix, value, suffix));
let mut errors = vec![];
let result = parse_file_as_expr(&file, syntax, version, None, &mut errors);
match result {
Err(error) => Err((
fix_span(error.span(), prefix.len() + 1),
format!(
"Could not parse expression with swc: {}",
swc_error_to_string(&error)
),
)),
Ok(mut expr) => {
if errors.is_empty() {
let expression_end = expr.span().hi.to_usize() - 1;
if let Err((span, reason)) = whitespace_and_comments(expression_end, value) {
return Err((span, reason));
}
expr.visit_mut_with(&mut RewritePrefixContext {
prefix_len: prefix.len() as u32,
});
if matches!(kind, MdxExpressionKind::AttributeExpression) {
let expr_span = expr.span();
if let Expr::Paren(d) = *expr {
if let Expr::Object(mut obj) = *d.expr {
if obj.props.len() > 1 {
return Err((obj.span, "Unexpected extra content in spread (such as `{...x,y}`): only a single spread is supported (such as `{...x}`)".into()));
}
if let Some(PropOrSpread::Spread(d)) = obj.props.pop() {
return Ok(Some(d.expr));
}
}
};
return Err((
expr_span,
"Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`)".into(),
));
}
Ok(Some(expr))
} else {
Err((
fix_span(errors[0].span(), prefix.len() + 1),
format!(
"Could not parse expression with swc: {}",
swc_error_to_string(&errors[0])
),
))
}
}
}
}
/// Lex expressions in MDX with SWC.
pub fn parse_expression(value: &str, kind: &MdxExpressionKind) -> MdxSignal {
let result = parse_expression_core(value, kind);
match result {
Err((span, message)) => swc_error_to_signal(span, &message, value.len()),
Ok(_) => MdxSignal::Ok,
}
}
// To do: remove this attribute, use it somewhere.
#[allow(dead_code)]
/// Turn SWC comments into a flat vec.
pub fn flat_comments(single_threaded_comments: SingleThreadedComments) -> Vec<Comment> {
let raw_comments = single_threaded_comments.take_all();
let take = |list: SingleThreadedCommentsMap| {
Rc::try_unwrap(list)
.unwrap()
.into_inner()
.into_values()
.flatten()
.collect::<Vec<_>>()
};
let mut list = take(raw_comments.0);
list.append(&mut take(raw_comments.1));
list
}
/// Turn an SWC error into an `MdxSignal`.
///
/// * If the error happens at `value_len`, yields `MdxSignal::Eof`
/// * Else, yields `MdxSignal::Error`.
fn swc_error_to_signal(span: Span, reason: &str, value_len: usize) -> MdxSignal {
let source = Box::new("mdx".into());
let rule_id = Box::new("swc".into());
let error_end = span.hi.to_usize();
if error_end >= value_len {
MdxSignal::Eof(reason.into(), source, rule_id)
} else {
MdxSignal::Error(reason.into(), span.lo.to_usize(), source, rule_id)
}
}
/// Turn an SWC error into a string.
fn swc_error_to_string(error: &SwcError) -> String {
error.kind().msg().into()
}
/// Move past JavaScript whitespace (well, actually ASCII whitespace) and
/// comments.
///
/// This is needed because for expressions, we use an API that parses up to
/// a valid expression, but there may be more expressions after it, which we
/// don’t alow.
fn whitespace_and_comments(mut index: usize, value: &str) -> Result<(), (Span, String)> {
let bytes = value.as_bytes();
let len = bytes.len();
let mut in_multiline = false;
let mut in_line = false;
while index < len {
// In a multiline comment: `/* a */`.
if in_multiline {
if index + 1 < len && bytes[index] == b'*' && bytes[index + 1] == b'/' {
index += 1;
in_multiline = false;
}
}
// In a line comment: `// a`.
else if in_line {
if bytes[index] == b'\r' || bytes[index] == b'\n' {
in_line = false;
}
}
// Not in a comment, opening a multiline comment: `/* a */`.
else if index + 1 < len && bytes[index] == b'/' && bytes[index + 1] == b'*' {
index += 1;
in_multiline = true;
}
// Not in a comment, opening a line comment: `// a`.
else if index + 1 < len && bytes[index] == b'/' && bytes[index + 1] == b'/' {
index += 1;
in_line = true;
}
// Outside comment, whitespace.
else if bytes[index].is_ascii_whitespace() {
// Fine!
}
// Outside comment, not whitespace.
else {
return Err((
create_span(index as u32, value.len() as u32),
"Could not parse expression with swc: Unexpected content after expression".into(),
));
}
index += 1;
}
if in_multiline {
return Err((
create_span(index as u32, value.len() as u32), "Could not parse expression with swc: Unexpected unclosed multiline comment, expected closing: `*/`".into()));
}
if in_line {
// EOF instead of EOL is specifically not allowed, because that would
// mean the closing brace is on the commented-out line
return Err((create_span(index as u32, value.len() as u32), "Could not parse expression with swc: Unexpected unclosed line comment, expected line ending: `\\n`".into()));
}
Ok(())
}
/// Create configuration for SWC, shared between ESM and expressions.
///
/// This enables modern JavaScript (ES2022) + JSX.
fn create_config(source: String) -> (SourceFile, Syntax, EsVersion) {
(
// File.
SourceFile::new(
FileName::Anon.into(),
false,
FileName::Anon.into(),
source,
BytePos::from_usize(1),
),
// Syntax.
Syntax::Es(EsSyntax {
jsx: true,
..EsSyntax::default()
}),
// Version.
// To do: update once in a while (last checked: 2024-04-18).
EsVersion::Es2022,
)
}
fn fix_span(mut span: Span, offset: usize) -> Span {
span.lo = BytePos::from_usize(span.lo.to_usize() - offset);
span.hi = BytePos::from_usize(span.hi.to_usize() - offset);
span
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/test_utils/swc_utils.rs | Rust | //! Lots of helpers for dealing with SWC, particularly from unist, and for
//! building its ES AST.
use swc_core::common::{BytePos, Span, DUMMY_SP};
use swc_core::ecma::visit::{noop_visit_mut_type, VisitMut};
/// Visitor to fix SWC byte positions by removing a prefix.
///
/// > 👉 **Note**: SWC byte positions are offset by one: they are `0` when they
/// > are missing or incremented by `1` when valid.
#[derive(Debug, Default, Clone)]
pub struct RewritePrefixContext {
/// Size of prefix considered outside this tree.
pub prefix_len: u32,
}
impl VisitMut for RewritePrefixContext {
noop_visit_mut_type!();
/// Rewrite spans.
fn visit_mut_span(&mut self, span: &mut Span) {
let mut result = DUMMY_SP;
if span.lo.0 > self.prefix_len && span.hi.0 > self.prefix_len {
result = create_span(span.lo.0 - self.prefix_len, span.hi.0 - self.prefix_len);
}
*span = result;
}
}
/// Generate a span.
pub fn create_span(lo: u32, hi: u32) -> Span {
Span {
lo: BytePos(lo),
hi: BytePos(hi),
}
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/text.rs | Rust | use markdown::to_html;
use pretty_assertions::assert_eq;
#[test]
fn text() {
assert_eq!(
to_html("hello $.;'there"),
"<p>hello $.;'there</p>",
"should support ascii text"
);
assert_eq!(
to_html("Foo χρῆν"),
"<p>Foo χρῆν</p>",
"should support unicode text"
);
assert_eq!(
to_html("Multiple spaces"),
"<p>Multiple spaces</p>",
"should preserve internal spaces verbatim"
);
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
tests/thematic_break.rs | Rust | use markdown::{
mdast::{Node, Root, ThematicBreak},
message, to_html, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn thematic_break() -> Result<(), message::Message> {
assert_eq!(
to_html("***\n---\n___"),
"<hr />\n<hr />\n<hr />",
"should support thematic breaks w/ asterisks, dashes, and underscores"
);
assert_eq!(
to_html("+++"),
"<p>+++</p>",
"should not support thematic breaks w/ plusses"
);
assert_eq!(
to_html("==="),
"<p>===</p>",
"should not support thematic breaks w/ equals"
);
assert_eq!(
to_html("--"),
"<p>--</p>",
"should not support thematic breaks w/ two dashes"
);
assert_eq!(
to_html("**"),
"<p>**</p>",
"should not support thematic breaks w/ two asterisks"
);
assert_eq!(
to_html("__"),
"<p>__</p>",
"should not support thematic breaks w/ two underscores"
);
assert_eq!(
to_html(" ***"),
"<hr />",
"should support thematic breaks w/ 1 space"
);
assert_eq!(
to_html(" ***"),
"<hr />",
"should support thematic breaks w/ 2 spaces"
);
assert_eq!(
to_html(" ***"),
"<hr />",
"should support thematic breaks w/ 3 spaces"
);
assert_eq!(
to_html(" ***"),
"<pre><code>***\n</code></pre>",
"should not support thematic breaks w/ 4 spaces"
);
assert_eq!(
to_html("Foo\n ***"),
"<p>Foo\n***</p>",
"should not support thematic breaks w/ 4 spaces as paragraph continuation"
);
assert_eq!(
to_html("_____________________________________"),
"<hr />",
"should support thematic breaks w/ many markers"
);
assert_eq!(
to_html(" - - -"),
"<hr />",
"should support thematic breaks w/ spaces (1)"
);
assert_eq!(
to_html(" ** * ** * ** * **"),
"<hr />",
"should support thematic breaks w/ spaces (2)"
);
assert_eq!(
to_html("- - - -"),
"<hr />",
"should support thematic breaks w/ spaces (3)"
);
assert_eq!(
to_html("- - - - "),
"<hr />",
"should support thematic breaks w/ trailing spaces"
);
assert_eq!(
to_html("_ _ _ _ a"),
"<p>_ _ _ _ a</p>",
"should not support thematic breaks w/ other characters (1)"
);
assert_eq!(
to_html("a------"),
"<p>a------</p>",
"should not support thematic breaks w/ other characters (2)"
);
assert_eq!(
to_html("---a---"),
"<p>---a---</p>",
"should not support thematic breaks w/ other characters (3)"
);
assert_eq!(
to_html(" *-*"),
"<p><em>-</em></p>",
"should not support thematic breaks w/ mixed markers"
);
assert_eq!(
to_html("- foo\n***\n- bar"),
"<ul>\n<li>foo</li>\n</ul>\n<hr />\n<ul>\n<li>bar</li>\n</ul>",
"should support thematic breaks mixed w/ lists (1)"
);
assert_eq!(
to_html("* Foo\n* * *\n* Bar"),
"<ul>\n<li>Foo</li>\n</ul>\n<hr />\n<ul>\n<li>Bar</li>\n</ul>",
"should support thematic breaks mixed w/ lists (2)"
);
assert_eq!(
to_html("Foo\n***\nbar"),
"<p>Foo</p>\n<hr />\n<p>bar</p>",
"should support thematic breaks interrupting paragraphs"
);
assert_eq!(
to_html("Foo\n---\nbar"),
"<h2>Foo</h2>\n<p>bar</p>",
"should not support thematic breaks w/ dashes interrupting paragraphs (setext heading)"
);
assert_eq!(
to_html("- Foo\n- * * *"),
"<ul>\n<li>Foo</li>\n<li>\n<hr />\n</li>\n</ul>",
"should support thematic breaks in lists"
);
assert_eq!(
to_html("> ---\na"),
"<blockquote>\n<hr />\n</blockquote>\n<p>a</p>",
"should not support lazyness (1)"
);
assert_eq!(
to_html("> a\n---"),
"<blockquote>\n<p>a</p>\n</blockquote>\n<hr />",
"should not support lazyness (2)"
);
assert_eq!(
to_html_with_options(
"***",
&Options {
parse: ParseOptions {
constructs: Constructs {
thematic_break: false,
..Default::default()
},
..Default::default()
},
..Default::default()
}
)?,
"<p>***</p>",
"should support turning off thematic breaks"
);
assert_eq!(
to_mdast("***", &Default::default())?,
Node::Root(Root {
children: vec![Node::ThematicBreak(ThematicBreak {
position: Some(Position::new(1, 1, 0, 1, 4, 3))
})],
position: Some(Position::new(1, 1, 0, 1, 4, 3))
}),
"should support thematic breaks as `ThematicBreak`s in mdast"
);
Ok(())
}
| wooorm/markdown-rs | 1,459 | CommonMark compliant markdown parser in Rust with ASTs and extensions | Rust | wooorm | Titus | |
build.js | JavaScript | /**
* @import {Grammar} from '@wooorm/starry-night'
*/
/**
* @typedef {Grammar['patterns'][number]} Rule
*
* @typedef {'autolink' | 'code-indented' | 'html'} ConditionCommonmark
* @typedef {'directive' | 'frontmatter' | 'gfm' | 'github' | 'math' | 'mdx'} ConditionExtension
* @typedef {ConditionCommonmark | ConditionExtension} Condition
* @typedef {`!${Condition}`} NegatedCondition
*
* @typedef LanguageInfo
* Configuration for a language.
* @property {Array<Condition>} conditions
* Conditions found in `grammar.yml` to choose.
* @property {boolean | undefined} [embedTsx]
* Whether to embed a copy of the TypeScript grammar;
* the TypeScript grammar is required for MDX to work;
* this is normally assumed to be used by the end user,
* but if that can’t be guaranteed,
* enable this flag.
* @property {Array<string>} extensions
* List of file extensions, with dots;
* used in `starry-night` and `tmLanguage` file.
* @property {string | undefined} [filename]
* Name of file, such as `text.md`;
* defaults to `scopeName`.
* @property {Array<string>} names
* Names of language, used in the `starry-night` grammar.
* @property {string} name
* Name of language;
* used in the `tmLanguage` file.
* @property {string} scopeName
* Name of scope, such as `text.md`;
* when `source.mdx`, the suffix of all rules will be `.mdx`.
* @property {string} uuid
* UUID to use for language;
* used in the `tmLanguage` file.
*/
/* eslint-disable complexity */
import assert from 'node:assert/strict'
import fs from 'node:fs/promises'
import {common} from '@wooorm/starry-night'
import sourceClojure from '@wooorm/starry-night/source.clojure'
import sourceCoffee from '@wooorm/starry-night/source.coffee'
import sourceCssLess from '@wooorm/starry-night/source.css.less'
import sourceDockerfile from '@wooorm/starry-night/source.dockerfile'
import sourceElixir from '@wooorm/starry-night/source.elixir'
import sourceElm from '@wooorm/starry-night/source.elm'
import sourceErlang from '@wooorm/starry-night/source.erlang'
import sourceGitconfig from '@wooorm/starry-night/source.gitconfig'
import sourceHaskell from '@wooorm/starry-night/source.haskell'
import sourceJulia from '@wooorm/starry-night/source.julia'
import sourceRaku from '@wooorm/starry-night/source.raku'
import sourceScala from '@wooorm/starry-night/source.scala'
import sourceTsx from '@wooorm/starry-night/source.tsx'
import sourceToml from '@wooorm/starry-night/source.toml'
import textHtmlAsciidoc from '@wooorm/starry-night/text.html.asciidoc'
import textHtmlMarkdownSourceGfmApib from '@wooorm/starry-night/text.html.markdown.source.gfm.apib'
import textHtmlPhp from '@wooorm/starry-night/text.html.php'
import textPythonConsole from '@wooorm/starry-night/text.python.console'
import textShellSession from '@wooorm/starry-night/text.shell-session'
import {characterEntities} from 'character-entities'
import {characterEntitiesLegacy} from 'character-entities-legacy'
import escapeStringRegexp from 'escape-string-regexp'
import {nameToEmoji} from 'gemoji'
import {gzipSize} from 'gzip-size'
import {htmlBlockNames, htmlRawNames} from 'micromark-util-html-tag-name'
import plist from 'plist'
import prettyBytes from 'pretty-bytes'
import regexgen from 'regexgen'
import {fetch} from 'undici'
import {parse} from 'yaml'
/** @type {string | undefined} */
let file
// Crawl TypeScript grammar.
try {
file = String(await fs.readFile('typescript-react.xml'))
} catch {
const result = await fetch(
'https://raw.githubusercontent.com/microsoft/TypeScript-TmLanguage/master/TypeScriptReact.tmLanguage'
)
file = await result.text()
await fs.writeFile('typescript-react.xml', file)
}
/* eslint-disable camelcase */
/** @type {Record<string, string>} */
const dynamicVariables = {
character_reference_name_terminated: regexgen(Object.keys(characterEntities))
.source,
character_reference_name_unterminated: regexgen(characterEntitiesLegacy)
.source,
html_basic_name: regexgen(htmlBlockNames).source,
html_raw_name: regexgen(htmlRawNames).source,
github_gemoji_name: regexgen(Object.keys(nameToEmoji)).source
}
/* eslint-enable camelcase */
const document = String(await fs.readFile('grammar.yml'))
/** @type {Grammar} */
const grammar = parse(document)
// Rule injection
// Figure out embedded grammars.
const embeddedGrammars = [
...common,
sourceClojure,
sourceCoffee,
sourceCssLess,
sourceDockerfile,
sourceElixir,
sourceElm,
sourceErlang,
sourceGitconfig,
sourceHaskell,
sourceJulia,
sourceRaku,
sourceScala,
sourceTsx,
sourceToml,
textHtmlAsciidoc,
textHtmlMarkdownSourceGfmApib,
textHtmlPhp,
textPythonConsole,
textShellSession
]
.map((d) => {
let id = d.scopeName.split('.').pop()
assert(id, 'expected `id`')
id =
id === 'basic' ? 'html' : id === 'c++' ? 'cpp' : id === 'gfm' ? 'md' : id
const grammar = {
scopeNames: [d.scopeName],
extensions: d.extensions,
extensionsWithDot: d.extensionsWithDot || [],
names: d.names,
id
}
// Remove `.tsx`, that’s weird!
if (id === 'xml') {
grammar.extensions = grammar.extensions.filter((d) => d !== '.tsx')
}
if (id === 'cpp') {
grammar.scopeNames.push('source.cpp')
}
if (id === 'svg') {
grammar.scopeNames.push('text.xml')
}
if (id === 'md') {
grammar.scopeNames = ['text.md', 'source.gfm', 'text.html.markdown']
// Remove `.mdx`.
grammar.extensions = grammar.extensions.filter((d) => d !== '.mdx')
}
return grammar
})
.filter(
(d) =>
d.names.length > 0 ||
d.extensions.length > 0 ||
(d.extensionsWithDot && d.extensionsWithDot.length > 0)
)
embeddedGrammars.push({
scopeNames: ['source.mdx'],
extensions: ['.mdx'],
extensionsWithDot: [],
names: ['mdx'],
id: 'mdx'
})
embeddedGrammars.sort((a, b) => a.id.localeCompare(b.id))
/**
* The grammars included in:
* <https://github.com/atom/language-gfm>
*/
const gfm = [
'source.clojure',
'source.coffee',
'source.cpp',
'source.cs',
'source.css.less',
'source.css',
'source.c',
'source.diff',
'source.dockerfile',
'source.elixir',
'source.elm',
'source.erlang',
'source.gfm',
'source.gitconfig',
'source.go',
'source.graphql',
'source.haskell',
'source.java',
'source.json',
'source.js',
'source.julia',
'source.kotlin',
'source.makefile',
'source.objc',
'source.perl',
'source.python',
'source.raku',
'source.r',
'source.ruby',
'source.rust',
'source.scala',
'source.shell',
'source.sql',
'source.swift',
'source.toml',
'source.ts',
'source.yaml',
'text.html.asciidoc',
'text.html.basic',
'text.html.markdown.source.gfm.apib',
// Turned off: this could be embedded in `language-gfm`, but not actually used in linguist.
// See: <https://github.com/atom/language-gfm/commit/513f85f9ff44b43e80d0962fcb9e0b516d121c43>.
// 'text.html.markdown.source.gfm.mson',
'text.html.php',
'text.python.console',
'text.shell-session',
'text.xml'
]
// Make sure we embed everything that `atom/language-gfm` did.
for (const scopeName of gfm) {
const found = embeddedGrammars.find((d) => d.scopeNames.includes(scopeName))
assert(found, scopeName)
}
// Inject grammars for code blocks with embedded grammars.
assert(grammar.repository, 'expected `repository`')
const codeFencedUnknown = grammar.repository['commonmark-code-fenced-unknown']
assert(codeFencedUnknown, 'expected `codeFencedUnknown` rule in `repository`')
assert(
'patterns' in codeFencedUnknown && codeFencedUnknown.patterns,
'expected `patterns` in `commonmark-code-fenced-unknown` rule'
)
const backtick = codeFencedUnknown.patterns[0]
const tilde = codeFencedUnknown.patterns[1]
assert(
'begin' in backtick &&
'end' in backtick &&
backtick.begin &&
backtick.end &&
!('include' in backtick),
'expected `begin`, `end` in backtick rule'
)
assert(/`/.test(backtick.begin), 'expected `` ` `` in `backtick` rule')
assert(
'begin' in tilde &&
'end' in tilde &&
tilde.begin &&
tilde.end &&
!('include' in tilde),
'expected `begin`, `end` in tilde rule'
)
assert(/~/.test(tilde.begin), 'expected `~` in `tilde` rule')
const codeFenced = grammar.repository['commonmark-code-fenced']
assert(codeFenced, 'expected `codeFenced` rule in `repository`')
assert(
'patterns' in codeFenced && codeFenced.patterns,
'expected `patterns` rule in `codeFenced`'
)
/** @type {Array<Rule>} */
const includes = []
for (const embedded of embeddedGrammars) {
const id = 'commonmark-code-fenced-' + embedded.id
const extensions = embedded.extensions
.map((d) => d.slice(1))
.sort()
.map((d) => escapeStringRegexp(d))
const extensionsWithDot = embedded.extensionsWithDot
.map((d) => d.slice(1))
.sort()
.map((d) => escapeStringRegexp(d))
const uniqueNames = embedded.names
.filter((d) => !extensions.includes(d))
.sort()
.map((d) => escapeStringRegexp(d))
// Dot is optional for extensions.
// . const extensionsSource = '\\.?(?:' + regexgen(extensions).source + ')'
const extensionsSource =
extensions.length === 0
? ''
: '(?:.*\\.)?' +
(extensions.length === 1
? extensions[0]
: '(?:' + extensions.join('|') + ')')
const extensionsWithDotSource =
extensionsWithDot.length === 0
? ''
: '.*\\.' +
(extensionsWithDot.length === 1
? extensionsWithDot[0]
: '(?:' + extensionsWithDot.join('|') + ')')
const regex =
'(?i:' +
[...uniqueNames, extensionsSource, extensionsWithDotSource]
.filter(Boolean)
.join('|') +
')'
const backtickCopy = structuredClone(backtick)
const tildeCopy = structuredClone(tilde)
assert(backtickCopy.begin, 'expected begin')
backtickCopy.begin = backtickCopy.begin
.replace(/var\(char_code_info_tick\)\+/, regex)
.replace(/\)\?\)\?/, ')?)')
delete backtickCopy.contentName
backtickCopy.name = 'markup.code.' + embedded.id + '.var(suffix)'
backtickCopy.patterns = structuredClone([
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.' + embedded.id,
patterns: embedded.scopeNames.map((d) => ({include: d}))
}
])
assert(tildeCopy.begin, 'expected begin')
tildeCopy.begin = tildeCopy.begin
.replace(/var\(char_code_info_tilde\)\+/, regex)
.replace(/\)\?\)\?/, ')?)')
delete tildeCopy.contentName
tildeCopy.name = structuredClone(backtickCopy.name)
tildeCopy.patterns = structuredClone(backtickCopy.patterns)
grammar.repository[id] = {patterns: [backtickCopy, tildeCopy]}
includes.push({include: '#' + id})
}
codeFenced.patterns = [...includes, ...codeFenced.patterns]
// Just use the `source.tsx` scope normally, and only optionally embed it.
/** @type {Grammar} */
// @ts-expect-error: fine.
const tsx = plist.parse(file)
// Rename all rule names so that they don’t conflict with our grammar and we
// can later optionally rename `source.ts#` to `#source-ts-`.
visit(tsx, '#', (rule) => {
// Rename definitions:
if ('repository' in rule && rule.repository) {
/** @type {Record<string, Rule>} */
const replacement = {}
/** @type {string} */
let key
for (key in rule.repository) {
if (Object.hasOwn(rule.repository, key)) {
replacement['source-ts-' + key] = rule.repository[key]
}
}
rule.repository = replacement
}
if ('include' in rule && rule.include && rule.include.startsWith('#')) {
rule.include = '#source-ts-' + rule.include.slice(1)
}
// Fix scopes.
// Extensions of scopes used in the TS grammar are `jsdoc`, `regexp`, and `tsx`.
if ('name' in rule && rule.name) {
rule.name = rule.name.replace(/\.tsx$/, '.jsx')
}
if ('contentName' in rule && rule.contentName) {
rule.contentName = rule.contentName.replace(/\.tsx$/, '.jsx')
}
})
assert(tsx.repository, 'expected repository in `ecmascript` grammar')
/** @type {Array<LanguageInfo>} */
const languages = [
{
// Extensions for markdown (from `github/linguist`).
extensions: [
'.md',
'.livemd',
'.markdown',
'.mdown',
'.mdwn',
'.mkd',
'.mkdn',
'.mkdown',
'.ronn',
'.scd',
'.workbook'
],
conditions: [
// CM defaults:
'autolink',
'code-indented',
'html',
// Extensions:
'directive',
'frontmatter',
'gfm',
'github',
'math'
],
// Names for the language (from `github/linguist`).
names: ['markdown', 'md', 'pandoc'],
name: 'markdown',
// Which scope to use?
// In Atom, GitHub used `source.gfm`, which is often included in the
// grammars from `github/linguist`, and the `source.*` prefix is the
// most common prefix.
// In VS Code, Microsoft uses `text.html.markdown`.
// The latter was also used before Atom.
// But it has a problem: it “inherits” from HTML.
// Which we specifically don’t want.
// Especially, because we also care about MDX.
//
// So, we go with the same mechanism, but don’t force GFM:
scopeName: 'text.md',
// See: <https://superuser.com/questions/258770/how-to-change-the-default-file-format-for-saving-files-in-text-mate>
uuid: '0A1D9874-B448-11D9-BD50-000D93B6E43C'
},
{
extensions: ['.mdx'],
conditions: [
// Extensions:
'frontmatter',
'gfm',
'github',
'math',
'mdx'
],
names: ['mdx'],
name: 'MDX',
scopeName: 'source.mdx',
// Just a random ID I created just now!
uuid: 'fe65e2cd-7c73-4a27-8b5e-5902893626aa'
}
]
for (const language of languages) {
const generatedGrammar = structuredClone(grammar)
/** @type {Record<string, string>} */
const variables = {
// @ts-expect-error: hush
...generatedGrammar.variables,
...dynamicVariables
}
// If indented code is enabled (default), we don’t mark stuff that’s
// indented too far.
variables.before = language.conditions.includes('code-indented')
? '(?:^|\\G)[ ]{0,3}'
: '(?:^|\\G)[\\t ]*'
variables.suffix = language.scopeName === 'source.mdx' ? 'mdx' : 'md'
visit(generatedGrammar, '#', (rule) => {
// Conditional rules.
if ('if' in rule) {
/** @type {Condition | NegatedCondition | Array<Condition | NegatedCondition>} */
// @ts-expect-error: custom.
const condition = rule.if
const conditions = typeof condition === 'string' ? [condition] : condition
/** @type {Array<Condition>} */
const apply = []
/** @type {Array<Condition>} */
const negate = []
for (const value of conditions) {
if (value.startsWith('!')) {
// @ts-expect-error: fine
negate.push(value.slice(1))
} else {
// @ts-expect-error: fine
apply.push(value)
}
}
const include =
(apply.length === 0 ||
apply.some((d) => language.conditions.includes(d))) &&
(negate.length === 0 ||
negate.some((d) => !language.conditions.includes(d)))
if (!include) {
return false
}
// Fine, but delete the non-standard field
delete rule.if
}
// Expand variables
if ('name' in rule && rule.name) {
rule.name = expand(rule.name, variables)
}
if ('contentName' in rule && rule.contentName) {
rule.contentName = expand(rule.contentName, variables)
}
if (rule.match) {
rule.match = expand(rule.match, variables)
}
if (rule.begin) {
rule.begin = expand(rule.begin, variables)
}
if ('end' in rule && rule.end) {
rule.end = expand(rule.end, variables)
}
if ('while' in rule && rule.while) {
rule.while = expand(rule.while, variables)
}
// Use our own embedded big TypeScript/JavaScript grammar:
// 1. it might be better than the other ones,
// 2. so we can highlight JS inside code the same as JS in
// ESM/expressions/etc.
if (
language.embedTsx &&
'include' in rule &&
rule.include &&
// Use it for anything that looks like JS/TS to get uniform highlighting.
/^source\.(jsx?|tsx?)(?=#|$)/i.test(rule.include)
) {
const hash = rule.include.indexOf('#')
rule.include =
'#source-ts-' + (hash === -1 ? 'program' : rule.include.slice(hash + 1))
}
})
// Inject TSX grammar.
if (language.embedTsx) {
// Inject all subrules.
Object.assign(grammar.repository, tsx.repository)
// Inject a rule to get the entire embedded TSX grammar.
grammar.repository['source-ts-program'] = {patterns: tsx.patterns}
}
const {referenced, defined} = analyze(generatedGrammar)
for (const key of referenced) {
if (!defined.has(key)) {
console.warn(
'%s: includes undefined `%s`, it’s probably removed by some condition, but still referenced somewhere',
language.scopeName,
key
)
}
}
for (const key of defined) {
if (!referenced.has(key)) {
console.warn(
'%s: includes unreferenced `%s`, consider adding a condition to it',
language.scopeName,
key
)
}
}
const tmLanguage = {
fileTypes: language.extensions.map((d) => {
assert(d.startsWith('.'), 'expected `.`')
return d.slice(1)
}),
name: language.name,
patterns: generatedGrammar.patterns,
repository: generatedGrammar.repository,
scopeName: language.scopeName,
uuid: language.uuid
}
/** @typedef {Grammar} */
const starryNightGrammar = {
extensions: language.extensions,
names: language.names,
patterns: generatedGrammar.patterns,
repository: generatedGrammar.repository,
scopeName: language.scopeName
}
const filename = language.filename || language.scopeName
const size = prettyBytes(await gzipSize(JSON.stringify(tmLanguage) + '\n'))
console.log('gzip-size:', filename, size)
// Write files.
await fs.writeFile(
new URL(filename + '.tmLanguage', import.meta.url),
// @ts-expect-error: fine, it’s serializable.
plist.build(tmLanguage) + '\n'
)
await fs.writeFile(
new URL(filename + '.js', import.meta.url),
[
'/* eslint-disable no-template-curly-in-string */',
'/**',
' * @import {Grammar} from "@wooorm/starry-night"',
' */',
'',
'/** @type {Grammar} */',
'const grammar = ' + JSON.stringify(starryNightGrammar, null, 2),
'export default grammar',
''
].join('\n')
)
}
/**
* @param {Rule} rule
* @returns {{referenced: Set<string>, defined: Set<string>}}
*/
function analyze(rule) {
/** @type {Set<string>} */
const defined = new Set()
/** @type {Set<string>} */
const referenced = new Set()
visit(rule, '#', (rule) => {
if ('repository' in rule && rule.repository) {
for (const key of Object.keys(rule.repository)) {
defined.add(key)
}
}
if ('include' in rule && rule.include && rule.include.startsWith('#')) {
referenced.add(rule.include.slice(1))
}
})
return {referenced, defined}
}
/**
*
* @param {Rule} rule
* @param {string} key
* @param {(rule: Rule) => boolean | undefined | void} callback
* @returns {boolean}
*/
function visit(rule, key, callback) {
const result = callback(rule)
if (result === false) {
return result
}
if ('captures' in rule && rule.captures) map(rule.captures, key + '.captures')
if ('beginCaptures' in rule && rule.beginCaptures)
map(rule.beginCaptures, key + '.beginCaptures')
if ('endCaptures' in rule && rule.endCaptures)
map(rule.endCaptures, key + '.endCaptures')
if ('whileCaptures' in rule && rule.whileCaptures)
map(rule.whileCaptures, key + '.whileCaptures')
if ('repository' in rule && rule.repository)
map(rule.repository, key + '.repository')
if ('injections' in rule && rule.injections)
map(rule.injections, key + '.injections')
if ('patterns' in rule && rule.patterns) set(rule.patterns, key + '.patterns')
// Keep.
return true
/**
* @param {Array<Rule>} values
* @param {string} key
*/
function set(values, key) {
let index = -1
while (++index < values.length) {
const result = visit(values[index], key + '.' + index, callback)
if (result === false) {
values.splice(index, 1)
index--
}
}
}
/**
* @param {Record<string, Rule>} values
* @param {string} parentKey
*/
function map(values, parentKey) {
/** @type {string} */
let key
for (key in values) {
if (Object.hasOwn(values, key)) {
const result = visit(values[key], parentKey + '.' + key, callback)
if (result === false) {
delete values[key]
}
}
}
}
}
/**
* @param {string} value
* @param {Record<string, string>} variables
* @returns {string}
*/
function expand(value, variables) {
let done = false
// Support recursion.
while (!done) {
done = true
value = replace(value)
}
return value
/**
* @param {string} value
*/
function replace(value) {
return value.replace(/var\(([^)]+)\)/g, replacer)
}
/**
* @param {string} _
* @param {string} key
* @returns {string}
*/
function replacer(_, key) {
if (!Object.hasOwn(variables, key)) {
throw new Error('Cannot expand variable `' + key + '`')
}
done = false
return variables[key]
}
}
| wooorm/markdown-tm-language | 51 | really good syntax highlighting for markdown and MDX | JavaScript | wooorm | Titus | |
example/index.css | CSS | * {
box-sizing: border-box;
line-height: calc(1 * (1em + 1ex));
}
a {
color: var(--color-hl);
text-decoration: none;
transition: 200ms;
transition-property: color;
}
a:focus,
a:hover,
a:target {
color: inherit;
}
body {
margin: 0;
}
code,
kbd,
.draw,
.write {
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-feature-settings: normal;
}
code,
kbd {
font-size: smaller;
}
fieldset {
border-width: 0;
margin: calc(0.25 * (1em + 1ex)) 0;
}
h1,
p {
margin-bottom: calc(1 * (1em + 1ex));
margin-top: calc(1 * (1em + 1ex));
}
h1 {
font-size: 2em;
font-weight: 100;
text-align: center;
}
html {
--color-border: #d0d7de;
--color-canvas-back: #f6f8fa;
--color-canvas-front: #ffffff;
--color-fg: #0d1117;
--color-hl: #0969da;
background-color: var(--color-canvas-back);
color-scheme: light dark;
color: var(--color-fg);
font-family: system-ui;
word-break: break-word;
}
label {
margin: 0 calc(0.25 * (1em + 1ex));
}
main {
background-color: var(--color-canvas-back);
margin: 0 auto;
max-width: calc(40 * (1em + 1ex));
padding: 0 calc(2 * (1em + 1ex));
position: relative;
}
main > div {
border-radius: inherit;
}
section {
border: 0 solid var(--color-border);
margin: calc(2 * (1em + 1ex)) calc(-2 * (1em + 1ex));
padding: calc(2 * (1em + 1ex));
border-top-width: 1px;
border-bottom-width: 1px;
}
section:first-child {
border-top-left-radius: inherit;
border-top-right-radius: inherit;
border-top-width: 0;
margin-top: 0;
}
section:last-child {
border-bottom-left-radius: inherit;
border-bottom-right-radius: inherit;
border-bottom-width: 0;
margin-bottom: 0;
}
section + section {
margin-top: calc(-2 * (1em + 1ex) - 1px);
}
section > :first-child {
margin-top: 0;
}
section > :last-child {
margin-bottom: 0;
}
template {
display: none;
}
.credits {
text-align: center;
}
.draw,
.write {
background: transparent;
border: none;
box-sizing: border-box;
font-size: 14px;
height: 100%;
letter-spacing: normal;
line-height: calc(1 * (1em + 1ex));
margin: 0;
outline: none;
overflow: hidden;
padding: 0;
resize: none;
tab-size: 4;
white-space: pre-wrap;
width: 100%;
word-wrap: break-word;
}
.editor {
max-width: 100%;
overflow: hidden;
position: relative;
}
.highlight {
background-color: var(--color-canvas-front);
}
.write {
-webkit-print-color-adjust: exact;
caret-color: var(--color-hl);
color: transparent;
position: absolute;
print-color-adjust: exact;
top: 0;
}
.write::selection {
background-color: hsl(42.22 74.31% 57.25% / 66%);
color: var(--color-fg);
}
@media (prefers-color-scheme: dark) {
html {
--color-border: #30363d;
--color-canvas-back: #0d1117;
--color-canvas-front: #161b22;
--color-fg: #f6f8fa;
--color-hl: #58a6ff;
}
}
@media (min-width: calc(30 * (1em + 1ex))) and (min-height: calc(30 * (1em + 1ex))) {
main {
/* Go all Tschichold when supported */
border-radius: 3px;
border: 1px solid var(--color-border);
margin: 11vh 22.2vw 22.2vh 11.1vw;
}
}
| wooorm/markdown-tm-language | 51 | really good syntax highlighting for markdown and MDX | JavaScript | wooorm | Titus | |
example/index.html | HTML | <!doctypehtml>
<meta charset=utf8>
<title>markdown-tm-language</title>
<meta content=markdown-tm-language property=og:title>
<meta content=initial-scale=1,width=device-width name=viewport>
<meta content="markdown grammar" name=description>
<meta content="markdown grammar" property=og:description>
<meta content=//raw.githubusercontent.com/wooorm/markdown-tm-language/main/screenshot-md-dark.png property=og:image>
<link href=//esm.sh/@wooorm/starry-night@1/style/both.css rel=stylesheet>
<link href=index.css rel=stylesheet>
<main></main>
<script src=index.module.js type=module></script>
<script nomodule src=index.nomodule.js></script>
| wooorm/markdown-tm-language | 51 | really good syntax highlighting for markdown and MDX | JavaScript | wooorm | Titus | |
example/index.jsx | JavaScript (JSX) | /* eslint-env browser */
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/// <reference lib="dom" />
import sourceCss from '@wooorm/starry-night/source.css'
import sourceDiff from '@wooorm/starry-night/source.diff'
import sourceJson from '@wooorm/starry-night/source.json'
import sourceJs from '@wooorm/starry-night/source.js'
import sourceToml from '@wooorm/starry-night/source.toml'
import sourceTsx from '@wooorm/starry-night/source.tsx'
import sourceTs from '@wooorm/starry-night/source.ts'
import sourceYaml from '@wooorm/starry-night/source.yaml'
import textHtmlBasic from '@wooorm/starry-night/text.html.basic'
import textXmlSvg from '@wooorm/starry-night/text.xml.svg'
import textXml from '@wooorm/starry-night/text.xml'
import {createStarryNight} from '@wooorm/starry-night'
import {toJsxRuntime} from 'hast-util-to-jsx-runtime'
import ReactDom from 'react-dom/client'
import {Fragment, jsxs, jsx} from 'react/jsx-runtime'
import React from 'react'
import sourceMdx from '../source.mdx.js'
import textMarkdown from '../text.md.js'
/** @type {Array<Grammar>} */
const grammars = [
sourceCss,
sourceDiff,
sourceJs,
// @ts-expect-error: TS is wrong about `.json`, it’s not an extension.
sourceJson,
sourceMdx,
sourceToml,
sourceTsx,
sourceTs,
sourceYaml,
textHtmlBasic,
textMarkdown,
textXmlSvg,
textXml
]
const main = document.querySelectorAll('main')[0]
const root = ReactDom.createRoot(main)
const sampleMarkdown = `---
yaml: 1
---
^-- extension: frontmatter
# Hello, *world*!
Autolink: <https://example.com>, <contact@example.com>.
Attention (emphasis): *hi* / _hi_
Attention (strong): **hi** / __hi__
Attention (strong & emphasis): ***hi*** / ___hi___.
Attention (strikethrough): ~hi~ ~~hi~~.
Character escape: \\-, \\&.
Character reference: & { ģ.
Code (text): \`hi\` and \`\` \` \`\`.
HTML (comment): <!--hi-->.
HTML (instruction): <?hi?>.
HTML (declaration): <!hi>.
HTML (cdata): <![CDATA[hi]]>.
HTML (tag, close): </x>.
HTML (tag, open): <x>.
HTML (tag, open, self-closing): <x/>.
HTML (tag, open, boolean attribute): <x y>.
HTML (tag, open, unquoted attribute): <x y=z>.
HTML (tag, open, double quoted attribute): <x y="z">.
HTML (tag, open, single quoted attribute): <x y='z'>.
HTML (tag, open, style attribute): <x style="color: tomato !important">.
HTML (tag, open, on* attribute): <x onclick="return false">.
Label end (resource): [a](https://example˙com 'title').
Label end (reference, full): [a][b].
Label end (reference, collapsed, shortcut): [a][], [a].
## Definitions
[a]: <https://example\\.com> "b"
[a]: https://example˙com 'b'
[a]: # (b\\&c)
[a&b]: <>
## Heading (setext)
alpha
=====
*bravo
charlie*
--------
## Heading (atx)
#
## A ##
### B
#### C
##### D
###### E
####### ?
## Thematic break
***
## Code (indented)
\tconsole.log(1)
## Code (fenced)
\`\`\`\`markdown
\`\`\`css
em { color: red } /* What! */
\`\`\`
\`\`\`\`
~~~js eval
alert(true + 2 + '3')
~~~
## Block quote
> # asd
> **asd
qwe**
> ~~~js
> console.log(1)
> ~~~
## List
1. # asd
* **asd
qwe**
* ~~~js
console.log('hi!')
~~~
123456789. \`\`\`js
asd + 123
## HTML (flow)
<!--> html (comment, empty) <x/y/> & & { { ģ ģ
<!---> html (comment, empty 2) I'm ¬it; I tell you, I'm ∉ I tell you.
<!----> html (comment, empty 3)
<!-- x
y --> html (comment, multiline)
<?> html (instruction, empty)
<??> html (instruction, empty 2)
<? x
y ?> html (instruction, multiline)
<!a> html (declaration, empty)
<!a b> html (declaration, filled)
<!x
y> html (declaration, multiline)
<![CDATA[]]> (cdata, empty)
<![CDATA[x y]]> (cdata, filled)
<![CDATA[x
y]]> (cdata, multiline)
<script></script> (raw, empty)
<script>x y</script> (raw, script data)
<script>
import x, {y} from 'z'
console.log(Math.PI)
</script> (raw, multiline)
<style>* { color: red !important }</style> (raw, rawtext, style)
<textarea>a & b</textarea> (raw, rcdata)
<article>
Basic (this **is not** emphasis!)
<article>
Basic (this **is** emphasis!)
<xmp>
a & b
</xmp> (basic, rawtext)
<title>
a & b
</title> (basic, rcdata)
</custom-element>
Complete (closing) (this **is not** emphasis!)
</custom-element>
Complete (closing) (this **is** emphasis!)
<custom-element x y='z'>
Complete (open) (this **is not** emphasis!)
<custom-element x y='z'>
Complete (open) (this **is** emphasis!)
## Extension: math
Math (text): $$hi$$ and $$ $ $$.
Math (flow):
$$
L = \\frac{1}{2} \\rho v^2 S C_L
$$
## Extension: directive
Text: :cite[smith04]
Leaf:
::youtube[Video of a **cat** in a box]{#readme.red.green.blue a=b a="b" a='b' v=01ab2cd3efg}
Containers:
::::spoiler
He dies.
:::spoiler
She is born.
:::
::::
## Extension: GFM autolink literals
a a@b.com/ ("aasd@example.com") mailto:a+b@c.com xmpp:a+b@c.com.
a www.example.com/a(b) www.example.com/a(b(c)), wWw.example.com/a(b(c(d))).
ahttps://example.com https://example.com/a(b) hTTp://example.com/a(b(c(d))).
## Extension: GFM footnotes
a[^b], [^c d].
[^b]: *Lorem
dolor*.
[^b]:
??
[^b]: ~~~js
console.log(1)
~~~
## Extension: GFM task list
* [ ] not done
1. [x] done
## Extension: GFM table
| Stuff? | stuff! |
| - | ----- |
| asdasda | <https://example.com> |
what¬ | qweeeeeeeeeee
## Extension: GitHub gemoji
:+1: :100:
## Extension: GitHub mention
@username @org/team.
## Extension: GitHub reference
GH-123, #123, GHSA-123asdzxc, cve-123asdzxc, user#123, user/project#123.
`
const sampleMdx = `---
title: Hello!
---
import {Chart} from './chart.js'
import population from './population.js'
import {External} from './some/place.js'
export const year = 2018
export const pi = 3.14
export function SomeComponent(props) {
const name = (props || {}).name || 'world'
return <div>
<p>Hi, {name}!</p>
<p>and some more things</p>
</div>
}
export function Local(props) {
return <span style={{color: 'red'}} {...props} />
}
# Last year’s snowfall
In {year}, the snowfall was above average.
It was followed by a warm spring which caused
flood conditions in many of the nearby rivers.
<Chart year={year} color="#fcb32c" />
<div className="note">
> Some notable things in a block quote!
</div>
# Heading (rank 1)
## Heading 2
### 3
#### 4
##### 5
###### 6
> Block quote
* Unordered
* List
1. Ordered
2. List
A paragraph, introducing a thematic break:
---
\`\`\`js
// Get an element.
const element = document.querySelectorAll('#hi')
// Add a class.
element.classList.add('asd')
\`\`\`
a [link](https://example.com), an , some *emphasis*,
something **strong**, and finally a little \`code()\`.
<Component
open
x={1}
label={'this is a string, *not* markdown!'}
icon={<Icon />}
/>
Two 🍰 is: {Math.PI * 2}
{(function () {
const guess = Math.random()
if (guess > 0.66) {
return <span style={{color: 'tomato'}}>Look at us.</span>
}
if (guess > 0.33) {
return <span style={{color: 'violet'}}>Who would have guessed?!</span>
}
return <span style={{color: 'goldenrod'}}>Not me.</span>
})()}
{/* A comment! */}
`
/** @type {Awaited<ReturnType<typeof createStarryNight>>} */
let starryNight
// eslint-disable-next-line unicorn/prefer-top-level-await -- XO is wrong.
createStarryNight(grammars).then(function (x) {
starryNight = x
const missing = starryNight.missingScopes()
if (missing.length > 0) {
throw new Error('Missing scopes: `' + missing + '`')
}
root.render(React.createElement(Playground))
})
function Playground() {
const [mdx, setMdx] = React.useState(false)
const [text, setText] = React.useState(mdx ? sampleMdx : sampleMarkdown)
const scope = mdx ? 'source.mdx' : 'text.md'
return (
<div>
<section className="highlight">
<h1>
<code>markdown-tm-language</code>
</h1>
<fieldset>
<label>
<input
checked={!mdx}
name="language"
onChange={function () {
setMdx(false)
if (text === sampleMdx) setText(sampleMarkdown)
}}
type="radio"
/>{' '}
Use <code>markdown</code>
</label>
<label>
<input
checked={mdx}
name="language"
onChange={function () {
setMdx(true)
if (text === sampleMarkdown) setText(sampleMdx)
}}
type="radio"
/>{' '}
Use <code>mdx</code>
</label>
</fieldset>
</section>
<div className="editor">
<div className="draw">
{toJsxRuntime(starryNight.highlight(text, scope), {
Fragment,
jsxs,
jsx
})}
{/* Trailing whitespace in a `textarea` is shown, but not in a `div`
with `white-space: pre-wrap`.
Add a `br` to make the last newline explicit. */}
{/\n[ \t]*$/.test(text) ? <br /> : undefined}
</div>
<textarea
className="write"
onChange={function (event) {
setText(event.target.value)
}}
rows={text.split('\n').length + 1}
spellCheck="false"
value={text}
/>
</div>
<section className="highlight">
<p>
The above playground has the following scopes enabled in{' '}
<code>starry-night</code>:{' '}
{grammars.map(function (d, index) {
const result = <code>{d.scopeName}</code>
return index ? [', ', result] : result
})}
.
</p>
</section>
<section className="credits">
<p>
<a href="https://github.com/wooorm/markdown-tm-language">
Fork this website
</a>{' '}
•{' '}
<a href="https://github.com/wooorm/markdown-tm-language/blob/main/license">
MIT
</a>{' '}
• <a href="https://github.com/wooorm">@wooorm</a>
</p>
</section>
</div>
)
}
| wooorm/markdown-tm-language | 51 | really good syntax highlighting for markdown and MDX | JavaScript | wooorm | Titus | |
source.mdx.js | JavaScript | /* eslint-disable no-template-curly-in-string */
/**
* @import {Grammar} from "@wooorm/starry-night"
*/
/** @type {Grammar} */
const grammar = {
extensions: ['.mdx'],
names: ['mdx'],
patterns: [
{
include: '#markdown-frontmatter'
},
{
include: '#markdown-sections'
}
],
repository: {
'markdown-frontmatter': {
patterns: [
{
include: '#extension-toml'
},
{
include: '#extension-yaml'
}
]
},
'markdown-sections': {
patterns: [
{
include: '#commonmark-block-quote'
},
{
include: '#commonmark-code-fenced'
},
{
include: '#extension-gfm-footnote-definition'
},
{
include: '#commonmark-definition'
},
{
include: '#commonmark-heading-atx'
},
{
include: '#commonmark-thematic-break'
},
{
include: '#commonmark-heading-setext'
},
{
include: '#commonmark-list-item'
},
{
include: '#extension-gfm-table'
},
{
include: '#extension-math-flow'
},
{
include: '#extension-mdx-esm'
},
{
include: '#extension-mdx-expression-flow'
},
{
include: '#extension-mdx-jsx-flow'
},
{
include: '#commonmark-paragraph'
}
]
},
'markdown-string': {
patterns: [
{
include: '#commonmark-character-escape'
},
{
include: '#commonmark-character-reference'
}
]
},
'markdown-text': {
patterns: [
{
include: '#commonmark-attention'
},
{
include: '#commonmark-character-escape'
},
{
include: '#commonmark-character-reference'
},
{
include: '#commonmark-code-text'
},
{
include: '#commonmark-hard-break-trailing'
},
{
include: '#commonmark-hard-break-escape'
},
{
include: '#commonmark-label-end'
},
{
include: '#extension-gfm-footnote-call'
},
{
include: '#commonmark-label-start'
},
{
include: '#extension-gfm-autolink-literal'
},
{
include: '#extension-gfm-strikethrough'
},
{
include: '#extension-github-gemoji'
},
{
include: '#extension-github-mention'
},
{
include: '#extension-github-reference'
},
{
include: '#extension-math-text'
},
{
include: '#extension-mdx-expression-text'
},
{
include: '#extension-mdx-jsx-text'
}
]
},
'commonmark-attention': {
patterns: [
{
match: '(?<=\\S)\\*{3,}|\\*{3,}(?=\\S)',
name: 'string.other.strong.emphasis.asterisk.mdx'
},
{
match:
'(?<=[\\p{L}\\p{N}])_{3,}(?![\\p{L}\\p{N}])|(?<=\\p{P})_{3,}|(?<![\\p{L}\\p{N}]|\\p{P})_{3,}(?!\\s)',
name: 'string.other.strong.emphasis.underscore.mdx'
},
{
match: '(?<=\\S)\\*{2}|\\*{2}(?=\\S)',
name: 'string.other.strong.asterisk.mdx'
},
{
match:
'(?<=[\\p{L}\\p{N}])_{2}(?![\\p{L}\\p{N}])|(?<=\\p{P})_{2}|(?<![\\p{L}\\p{N}]|\\p{P})_{2}(?!\\s)',
name: 'string.other.strong.underscore.mdx'
},
{
match: '(?<=\\S)\\*|\\*(?=\\S)',
name: 'string.other.emphasis.asterisk.mdx'
},
{
match:
'(?<=[\\p{L}\\p{N}])_(?![\\p{L}\\p{N}])|(?<=\\p{P})_|(?<![\\p{L}\\p{N}]|\\p{P})_(?!\\s)',
name: 'string.other.emphasis.underscore.mdx'
}
]
},
'commonmark-block-quote': {
begin: '(?:^|\\G)[\\t ]*(>)[ ]?',
beginCaptures: {
0: {
name: 'markup.quote.mdx'
},
1: {
name: 'punctuation.definition.quote.begin.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
name: 'markup.quote.mdx',
while: '(>)[ ]?',
whileCaptures: {
0: {
name: 'markup.quote.mdx'
},
1: {
name: 'punctuation.definition.quote.begin.mdx'
}
}
},
'commonmark-character-escape': {
match: '\\\\(?:[!"#$%&\'()*+,\\-.\\/:;<=>?@\\[\\\\\\]^_`{|}~])',
name: 'constant.language.character-escape.mdx'
},
'commonmark-character-reference': {
patterns: [
{
include: '#whatwg-html-data-character-reference-named-terminated'
},
{
match: '(&)(#)([Xx])([0-9A-Fa-f]{1,6})(;)',
name: 'constant.language.character-reference.numeric.hexadecimal.html',
captures: {
1: {
name: 'punctuation.definition.character-reference.begin.html'
},
2: {
name: 'punctuation.definition.character-reference.numeric.html'
},
3: {
name: 'punctuation.definition.character-reference.numeric.hexadecimal.html'
},
4: {
name: 'constant.numeric.integer.hexadecimal.html'
},
5: {
name: 'punctuation.definition.character-reference.end.html'
}
}
},
{
match: '(&)(#)([0-9]{1,7})(;)',
name: 'constant.language.character-reference.numeric.decimal.html',
captures: {
1: {
name: 'punctuation.definition.character-reference.begin.html'
},
2: {
name: 'punctuation.definition.character-reference.numeric.html'
},
3: {
name: 'constant.numeric.integer.decimal.html'
},
4: {
name: 'punctuation.definition.character-reference.end.html'
}
}
}
]
},
'commonmark-code-fenced': {
patterns: [
{
include: '#commonmark-code-fenced-apib'
},
{
include: '#commonmark-code-fenced-asciidoc'
},
{
include: '#commonmark-code-fenced-c'
},
{
include: '#commonmark-code-fenced-clojure'
},
{
include: '#commonmark-code-fenced-coffee'
},
{
include: '#commonmark-code-fenced-console'
},
{
include: '#commonmark-code-fenced-cpp'
},
{
include: '#commonmark-code-fenced-cs'
},
{
include: '#commonmark-code-fenced-css'
},
{
include: '#commonmark-code-fenced-diff'
},
{
include: '#commonmark-code-fenced-dockerfile'
},
{
include: '#commonmark-code-fenced-elixir'
},
{
include: '#commonmark-code-fenced-elm'
},
{
include: '#commonmark-code-fenced-erlang'
},
{
include: '#commonmark-code-fenced-gitconfig'
},
{
include: '#commonmark-code-fenced-go'
},
{
include: '#commonmark-code-fenced-graphql'
},
{
include: '#commonmark-code-fenced-haskell'
},
{
include: '#commonmark-code-fenced-html'
},
{
include: '#commonmark-code-fenced-ini'
},
{
include: '#commonmark-code-fenced-java'
},
{
include: '#commonmark-code-fenced-js'
},
{
include: '#commonmark-code-fenced-json'
},
{
include: '#commonmark-code-fenced-julia'
},
{
include: '#commonmark-code-fenced-kotlin'
},
{
include: '#commonmark-code-fenced-less'
},
{
include: '#commonmark-code-fenced-less'
},
{
include: '#commonmark-code-fenced-lua'
},
{
include: '#commonmark-code-fenced-makefile'
},
{
include: '#commonmark-code-fenced-md'
},
{
include: '#commonmark-code-fenced-mdx'
},
{
include: '#commonmark-code-fenced-objc'
},
{
include: '#commonmark-code-fenced-perl'
},
{
include: '#commonmark-code-fenced-php'
},
{
include: '#commonmark-code-fenced-php'
},
{
include: '#commonmark-code-fenced-python'
},
{
include: '#commonmark-code-fenced-r'
},
{
include: '#commonmark-code-fenced-raku'
},
{
include: '#commonmark-code-fenced-ruby'
},
{
include: '#commonmark-code-fenced-rust'
},
{
include: '#commonmark-code-fenced-scala'
},
{
include: '#commonmark-code-fenced-scss'
},
{
include: '#commonmark-code-fenced-shell'
},
{
include: '#commonmark-code-fenced-shell-session'
},
{
include: '#commonmark-code-fenced-sql'
},
{
include: '#commonmark-code-fenced-svg'
},
{
include: '#commonmark-code-fenced-swift'
},
{
include: '#commonmark-code-fenced-toml'
},
{
include: '#commonmark-code-fenced-ts'
},
{
include: '#commonmark-code-fenced-tsx'
},
{
include: '#commonmark-code-fenced-vbnet'
},
{
include: '#commonmark-code-fenced-xml'
},
{
include: '#commonmark-code-fenced-yaml'
},
{
include: '#commonmark-code-fenced-unknown'
}
]
},
'commonmark-code-fenced-unknown': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?:[^\\t\\n\\r` ])+)(?:[\\t ]+((?:[^\\n\\r`])+))?)?(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
contentName: 'markup.raw.code.fenced.mdx',
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.other.mdx'
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?:[^\\t\\n\\r ])+)(?:[\\t ]+((?:[^\\n\\r])+))?)?(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
contentName: 'markup.raw.code.fenced.mdx',
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.other.mdx'
}
]
},
'commonmark-code-text': {
match: '(?<!`)(`+)(?!`)(.+?)(?<!`)(\\1)(?!`)',
name: 'markup.code.other.mdx',
captures: {
1: {
name: 'string.other.begin.code.mdx'
},
2: {
name: 'markup.raw.code.mdx markup.inline.raw.code.mdx'
},
3: {
name: 'string.other.end.code.mdx'
}
}
},
'commonmark-definition': {
match:
'(?:^|\\G)[\\t ]*(\\[)((?:[^\\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+?)(\\])(:)[ \\t]*(?:(<)((?:[^\\n<\\\\>]|\\\\[<\\\\>]?)*)(>)|(\\g<destination_raw>))(?:[\\t ]+(?:(")((?:[^"\\\\]|\\\\["\\\\]?)*)(")|(\')((?:[^\'\\\\]|\\\\[\'\\\\]?)*)(\')|(\\()((?:[^\\)\\\\]|\\\\[\\)\\\\]?)*)(\\))))?$(?<destination_raw>(?!\\<)(?:(?:[^\\p{Cc}\\ \\\\\\(\\)]|\\\\[\\(\\)\\\\]?)|\\(\\g<destination_raw>*\\))+){0}',
name: 'meta.link.reference.def.mdx',
captures: {
1: {
name: 'string.other.begin.mdx'
},
2: {
name: 'entity.name.identifier.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
name: 'string.other.end.mdx'
},
4: {
name: 'punctuation.separator.key-value.mdx'
},
5: {
name: 'string.other.begin.destination.mdx'
},
6: {
name: 'string.other.link.destination.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
7: {
name: 'string.other.end.destination.mdx'
},
8: {
name: 'string.other.link.destination.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
9: {
name: 'string.other.begin.mdx'
},
10: {
name: 'string.quoted.double.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
11: {
name: 'string.other.end.mdx'
},
12: {
name: 'string.other.begin.mdx'
},
13: {
name: 'string.quoted.single.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
14: {
name: 'string.other.end.mdx'
},
15: {
name: 'string.other.begin.mdx'
},
16: {
name: 'string.quoted.paren.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
17: {
name: 'string.other.end.mdx'
}
}
},
'commonmark-hard-break-escape': {
match: '\\\\$',
name: 'constant.language.character-escape.line-ending.mdx'
},
'commonmark-hard-break-trailing': {
match: '( ){2,}$',
name: 'carriage-return constant.language.character-escape.line-ending.mdx'
},
'commonmark-heading-atx': {
patterns: [
{
match:
'(?:^|\\G)[\\t ]*(#{1}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.1.mdx',
captures: {
1: {
name: 'punctuation.definition.heading.mdx'
},
2: {
name: 'entity.name.section.mdx',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.mdx'
}
}
},
{
match:
'(?:^|\\G)[\\t ]*(#{2}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.2.mdx',
captures: {
1: {
name: 'punctuation.definition.heading.mdx'
},
2: {
name: 'entity.name.section.mdx',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.mdx'
}
}
},
{
match:
'(?:^|\\G)[\\t ]*(#{3}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.3.mdx',
captures: {
1: {
name: 'punctuation.definition.heading.mdx'
},
2: {
name: 'entity.name.section.mdx',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.mdx'
}
}
},
{
match:
'(?:^|\\G)[\\t ]*(#{4}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.4.mdx',
captures: {
1: {
name: 'punctuation.definition.heading.mdx'
},
2: {
name: 'entity.name.section.mdx',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.mdx'
}
}
},
{
match:
'(?:^|\\G)[\\t ]*(#{5}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.5.mdx',
captures: {
1: {
name: 'punctuation.definition.heading.mdx'
},
2: {
name: 'entity.name.section.mdx',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.mdx'
}
}
},
{
match:
'(?:^|\\G)[\\t ]*(#{6}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.6.mdx',
captures: {
1: {
name: 'punctuation.definition.heading.mdx'
},
2: {
name: 'entity.name.section.mdx',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.mdx'
}
}
}
]
},
'commonmark-heading-setext': {
patterns: [
{
match: '(?:^|\\G)[\\t ]*(={1,})[ \\t]*$',
name: 'markup.heading.setext.1.mdx'
},
{
match: '(?:^|\\G)[\\t ]*(-{1,})[ \\t]*$',
name: 'markup.heading.setext.2.mdx'
}
]
},
'commonmark-label-end': {
patterns: [
{
match:
'(\\])(\\()[\\t ]*(?:(?:(<)((?:[^\\n<\\\\>]|\\\\[<\\\\>]?)*)(>)|(\\g<destination_raw>))(?:[\\t ]+(?:(")((?:[^"\\\\]|\\\\["\\\\]?)*)(")|(\')((?:[^\'\\\\]|\\\\[\'\\\\]?)*)(\')|(\\()((?:[^\\)\\\\]|\\\\[\\)\\\\]?)*)(\\))))?)?[\\t ]*(\\))(?<destination_raw>(?!\\<)(?:(?:[^\\p{Cc}\\ \\\\\\(\\)]|\\\\[\\(\\)\\\\]?)|\\(\\g<destination_raw>*\\))+){0}',
captures: {
1: {
name: 'string.other.end.mdx'
},
2: {
name: 'string.other.begin.mdx'
},
3: {
name: 'string.other.begin.destination.mdx'
},
4: {
name: 'string.other.link.destination.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
5: {
name: 'string.other.end.destination.mdx'
},
6: {
name: 'string.other.link.destination.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
7: {
name: 'string.other.begin.mdx'
},
8: {
name: 'string.quoted.double.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
9: {
name: 'string.other.end.mdx'
},
10: {
name: 'string.other.begin.mdx'
},
11: {
name: 'string.quoted.single.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
12: {
name: 'string.other.end.mdx'
},
13: {
name: 'string.other.begin.mdx'
},
14: {
name: 'string.quoted.paren.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
15: {
name: 'string.other.end.mdx'
},
16: {
name: 'string.other.end.mdx'
}
}
},
{
match: '(\\])(\\[)((?:[^\\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+?)(\\])',
captures: {
1: {
name: 'string.other.end.mdx'
},
2: {
name: 'string.other.begin.mdx'
},
3: {
name: 'entity.name.identifier.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
4: {
name: 'string.other.end.mdx'
}
}
},
{
match: '(\\])',
captures: {
1: {
name: 'string.other.end.mdx'
}
}
}
]
},
'commonmark-label-start': {
patterns: [
{
match: '\\!\\[(?!\\^)',
name: 'string.other.begin.image.mdx'
},
{
match: '\\[',
name: 'string.other.begin.link.mdx'
}
]
},
'commonmark-list-item': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*((?:[*+-]))(?:[ ]{4}(?![ ])|\\t)(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'variable.unordered.list.mdx'
},
2: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{1}'
},
{
begin:
'(?:^|\\G)[\\t ]*((?:[*+-]))(?:[ ]{3}(?![ ]))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'variable.unordered.list.mdx'
},
2: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)'
},
{
begin:
'(?:^|\\G)[\\t ]*((?:[*+-]))(?:[ ]{2}(?![ ]))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'variable.unordered.list.mdx'
},
2: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)[ ]{3}'
},
{
begin:
'(?:^|\\G)[\\t ]*((?:[*+-]))(?:[ ]{1}|(?=\\n))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'variable.unordered.list.mdx'
},
2: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)[ ]{2}'
},
{
begin:
'(?:^|\\G)[\\t ]*([0-9]{9})((?:\\.|\\)))(?:[ ]{4}(?![ ])|\\t(?![\\t ]))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){3}[ ]{2}'
},
{
begin:
'(?:^|\\G)[\\t ]*(?:([0-9]{9})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{8})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'string.other.number.mdx'
},
4: {
name: 'variable.ordered.list.mdx'
},
5: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){3}[ ]{1}'
},
{
begin:
'(?:^|\\G)[\\t ]*(?:([0-9]{9})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{8})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{7})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'string.other.number.mdx'
},
4: {
name: 'variable.ordered.list.mdx'
},
5: {
name: 'string.other.number.mdx'
},
6: {
name: 'variable.ordered.list.mdx'
},
7: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){3}'
},
{
begin:
'(?:^|\\G)[\\t ]*(?:([0-9]{9})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{8})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{7})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{6})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'string.other.number.mdx'
},
4: {
name: 'variable.ordered.list.mdx'
},
5: {
name: 'string.other.number.mdx'
},
6: {
name: 'variable.ordered.list.mdx'
},
7: {
name: 'string.other.number.mdx'
},
8: {
name: 'variable.ordered.list.mdx'
},
9: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}[ ]{3}'
},
{
begin:
'(?:^|\\G)[\\t ]*(?:([0-9]{8})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{7})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{6})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{5})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'string.other.number.mdx'
},
4: {
name: 'variable.ordered.list.mdx'
},
5: {
name: 'string.other.number.mdx'
},
6: {
name: 'variable.ordered.list.mdx'
},
7: {
name: 'string.other.number.mdx'
},
8: {
name: 'variable.ordered.list.mdx'
},
9: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}[ ]{2}'
},
{
begin:
'(?:^|\\G)[\\t ]*(?:([0-9]{7})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{6})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{5})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{4})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'string.other.number.mdx'
},
4: {
name: 'variable.ordered.list.mdx'
},
5: {
name: 'string.other.number.mdx'
},
6: {
name: 'variable.ordered.list.mdx'
},
7: {
name: 'string.other.number.mdx'
},
8: {
name: 'variable.ordered.list.mdx'
},
9: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}[ ]{1}'
},
{
begin:
'(?:^|\\G)[\\t ]*(?:([0-9]{6})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{5})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{4})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{3})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'string.other.number.mdx'
},
4: {
name: 'variable.ordered.list.mdx'
},
5: {
name: 'string.other.number.mdx'
},
6: {
name: 'variable.ordered.list.mdx'
},
7: {
name: 'string.other.number.mdx'
},
8: {
name: 'variable.ordered.list.mdx'
},
9: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}'
},
{
begin:
'(?:^|\\G)[\\t ]*(?:([0-9]{5})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{4})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{3})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{2})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'string.other.number.mdx'
},
4: {
name: 'variable.ordered.list.mdx'
},
5: {
name: 'string.other.number.mdx'
},
6: {
name: 'variable.ordered.list.mdx'
},
7: {
name: 'string.other.number.mdx'
},
8: {
name: 'variable.ordered.list.mdx'
},
9: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{3}'
},
{
begin:
'(?:^|\\G)[\\t ]*(?:([0-9]{4})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{3})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{2})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{1})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'string.other.number.mdx'
},
4: {
name: 'variable.ordered.list.mdx'
},
5: {
name: 'string.other.number.mdx'
},
6: {
name: 'variable.ordered.list.mdx'
},
7: {
name: 'string.other.number.mdx'
},
8: {
name: 'variable.ordered.list.mdx'
},
9: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{2}'
},
{
begin:
'(?:^|\\G)[\\t ]*(?:([0-9]{3})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{2})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{1})((?:\\.|\\)))(?:[ ]{3}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'string.other.number.mdx'
},
4: {
name: 'variable.ordered.list.mdx'
},
5: {
name: 'string.other.number.mdx'
},
6: {
name: 'variable.ordered.list.mdx'
},
7: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{1}'
},
{
begin:
'(?:^|\\G)[\\t ]*(?:([0-9]{2})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9])((?:\\.|\\)))(?:[ ]{2}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'string.other.number.mdx'
},
4: {
name: 'variable.ordered.list.mdx'
},
5: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)'
},
{
begin:
'(?:^|\\G)[\\t ]*([0-9])((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.mdx'
},
2: {
name: 'variable.ordered.list.mdx'
},
3: {
name: 'keyword.other.tasklist.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)[ ]{3}'
}
]
},
'commonmark-paragraph': {
begin: '(?![\\t ]*$)',
name: 'meta.paragraph.mdx',
patterns: [
{
include: '#markdown-text'
}
],
while: '(?:^|\\G)(?:[ ]{4}|\\t)'
},
'commonmark-thematic-break': {
match: '(?:^|\\G)[\\t ]*([-*_])[ \\t]*(?:\\1[ \\t]*){2,}$',
name: 'meta.separator.mdx'
},
'extension-gfm-autolink-literal': {
patterns: [
{
match:
'(?<=^|[\\t\\n\\r \\(\\*\\_\\[\\]~])(?=(?i:www)\\.[^\\n\\r])(?:(?:[\\p{L}\\p{N}]|-|[\\._](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+\\g<path>?)?(?<path>(?:(?:[^\\t\\n\\r !"&\'\\(\\)\\*,\\.:;<\\?\\]_~]|&(?![A-Za-z]*;(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[])))|[!"\'\\)\\*,\\.:;\\?_~](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))|\\(\\g<path>*\\))+){0}',
name: 'string.other.link.autolink.literal.www.mdx'
},
{
match:
'(?<=^|[^A-Za-z])(?i:https?://)(?=[\\p{L}\\p{N}])(?:(?:[\\p{L}\\p{N}]|-|[\\._](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+\\g<path>?)?(?<path>(?:(?:[^\\t\\n\\r !"&\'\\(\\)\\*,\\.:;<\\?\\]_~]|&(?![A-Za-z]*;(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[])))|[!"\'\\)\\*,\\.:;\\?_~](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))|\\(\\g<path>*\\))+){0}',
name: 'string.other.link.autolink.literal.http.mdx'
},
{
match:
'(?<=^|[^A-Za-z/])(?i:mailto:|xmpp:)?(?:[0-9A-Za-z+\\-\\._])+@(?:(?:[0-9A-Za-z]|[-_](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+(?:\\.(?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[])))))+(?:[A-Za-z]|[-_](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+',
name: 'string.other.link.autolink.literal.email.mdx'
}
]
},
'extension-gfm-footnote-call': {
match: '(\\[)(\\^)((?:[^\\t\\n\\r \\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+)(\\])',
captures: {
1: {
name: 'string.other.begin.link.mdx'
},
2: {
name: 'string.other.begin.footnote.mdx'
},
3: {
name: 'entity.name.identifier.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
4: {
name: 'string.other.end.footnote.mdx'
}
}
},
'extension-gfm-footnote-definition': {
begin:
'(?:^|\\G)[\\t ]*(\\[)(\\^)((?:[^\\t\\n\\r \\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+)(\\])(:)[\\t ]*',
beginCaptures: {
1: {
name: 'string.other.begin.link.mdx'
},
2: {
name: 'string.other.begin.footnote.mdx'
},
3: {
name: 'entity.name.identifier.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
4: {
name: 'string.other.end.footnote.mdx'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)'
},
'extension-gfm-strikethrough': {
match: '(?<=\\S)(?<!~)~{1,2}(?!~)|(?<!~)~{1,2}(?=\\S)(?!~)',
name: 'string.other.strikethrough.mdx'
},
'extension-gfm-table': {
begin: '(?:^|\\G)[\\t ]*(?=\\|[^\\n\\r]+\\|[ \\t]*$)',
patterns: [
{
match:
'(?<=\\||(?:^|\\G))[\\t ]*((?:[^\\n\\r\\\\\\|]|\\\\[\\\\\\|]?)+?)[\\t ]*(?=\\||$)',
captures: {
1: {
patterns: [
{
include: '#markdown-text'
}
]
}
}
},
{
match: '(?:\\|)',
name: 'markup.list.table-delimiter.mdx'
}
],
end: '^(?=[\\t ]*$)|$'
},
'extension-github-gemoji': {
match:
'(:)((?:(?:(?:hand_with_index_finger_and_thumb_cros|mailbox_clo|fist_rai|confu)s|r(?:aised_hand_with_fingers_splay|e(?:gister|l(?:iev|ax)))|disappointed_reliev|confound|(?:a(?:ston|ngu)i|flu)sh|unamus|hush)e|(?:chart_with_(?:down|up)wards_tre|large_orange_diamo|small_(?:orang|blu)e_diamo|large_blue_diamo|parasol_on_grou|loud_sou|rewi)n|(?:rightwards_pushing_h|hourglass_flowing_s|leftwards_(?:pushing_)?h|(?:raised_back_of|palm_(?:down|up)|call_me)_h|(?:(?:(?:clippert|ascensi)on|norfolk)_is|christmas_is|desert_is|bouvet_is|new_zea|thai|eng|fin|ire)l|rightwards_h|pinching_h|writing_h|s(?:w(?:itzer|azi)|cot)l|magic_w|ok_h|icel)an|s(?:un_behind_(?:large|small|rain)_clou|hallow_pan_of_foo|tar_of_davi|leeping_be|kateboar|a(?:tisfie|uropo)|hiel|oun|qui)|(?:ear_with_hearing_a|pouring_liqu)i|(?:identification_c|(?:arrow_(?:back|for)|fast_for)w|credit_c|woman_be|biohaz|man_be|l(?:eop|iz))ar|m(?:usical_key|ortar_)boar|(?:drop_of_bl|canned_f)oo|c(?:apital_abc|upi)|person_bal|(?:black_bi|(?:cust|plac)a)r|(?:clip|key)boar|mermai|pea_po|worrie|po(?:la|u)n|threa|dv)d|(?:(?:(?:face_with_open_eyes_and_hand_over|face_with_diagonal|open|no)_mou|h(?:and_over_mou|yacin)|mammo)t|running_shirt_with_sas|(?:(?:fishing_pole_and_|blow)fi|(?:tropical_f|petri_d)i|(?:paint|tooth)bru|banglade|jellyfi)s|(?:camera_fl|wavy_d)as|triump|menora|pouc|blus|watc|das|has)h|(?:s(?:o(?:(?:uth_georgia_south_sandwich|lomon)_island|ck)|miling_face_with_three_heart|t_kitts_nevi|weat_drop|agittariu|c(?:orpiu|issor)|ymbol|hort)|twisted_rightwards_arrow|(?:northern_mariana|heard_mcdonald|(?:british_virgi|us_virgi|pitcair|cayma)n|turks_caicos|us_outlying|(?:falk|a)land|marshall|c(?:anary|ocos)|faroe)_island|(?:face_holding_back_tea|(?:c(?:ard_index_divid|rossed_fing)|pinched_fing)e|night_with_sta)r|(?:two_(?:wo)?men_holding|people_holding|heart|open)_hand|(?:sunrise_over_mountai|(?:congratul|united_n)atio|jea)n|(?:caribbean_)?netherland|(?:f(?:lower_playing_car|ace_in_clou)|crossed_swor|prayer_bea)d|(?:money_with_win|nest_with_eg|crossed_fla|hotsprin)g|revolving_heart|(?:high_brightne|(?:expression|wire)le|(?:tumbler|wine)_gla|milk_gla|compa|dre)s|performing_art|earth_america|orthodox_cros|l(?:ow_brightnes|a(?:tin_cros|o)|ung)|no_pedestrian|c(?:ontrol_kno|lu)b|b(?:ookmark_tab|rick|ean)|nesting_doll|cook_island|(?:fleur_de_l|tenn)i|(?:o(?:ncoming_b|phiuch|ctop)|hi(?:ppopotam|bisc)|trolleyb|m(?:(?:rs|x)_cla|auriti|inib)|belar|cact|abac|(?:cyp|tau)r)u|medal_sport|(?:chopstic|firewor)k|rhinocero|(?:p(?:aw_prin|eanu)|footprin)t|two_heart|princes|(?:hondur|baham)a|barbado|aquariu|c(?:ustom|hain)|maraca|comoro|flag|wale|hug|vh)s|(?:(?:diamond_shape_with_a_dot_ins|playground_sl)id|(?:(?:first_quarter|last_quarter|full|new)_moon_with|(?:zipper|money)_mouth|dotted_line|upside_down|c(?:rying_c|owboy_h)at|(?:disguis|nauseat)ed|neutral|monocle|panda|tired|woozy|clown|nerd|zany|fox)_fac|s(?:t(?:uck_out_tongue_winking_ey|eam_locomotiv)|(?:lightly_(?:frown|smil)|neez|h(?:ush|ak))ing_fac|(?:tudio_micropho|(?:hinto_shr|lot_mach)i|ierra_leo|axopho)n|mall_airplan|un_with_fac|a(?:luting_fac|tellit|k)|haved_ic|y(?:nagogu|ring)|n(?:owfl)?ak|urinam|pong)|(?:black_(?:medium_)?small|white_(?:(?:medium_)?small|large)|(?:black|white)_medium|black_large|orange|purple|yellow|b(?:rown|lue)|red)_squar|(?:(?:perso|woma)n_with_|man_with_)?probing_can|(?:p(?:ut_litter_in_its_pl|outing_f)|frowning_f|cold_f|wind_f|hot_f)ac|(?:arrows_c(?:ounterc)?lockwi|computer_mou|derelict_hou|carousel_hor|c(?:ity_sunri|hee)|heartpul|briefca|racehor|pig_no|lacros)s|(?:(?:face_with_head_band|ideograph_advant|adhesive_band|under|pack)a|currency_exchan|l(?:eft_l)?ugga|woman_jud|name_bad|man_jud|jud)g|face_with_peeking_ey|(?:(?:e(?:uropean_post_off|ar_of_r)|post_off)i|information_sour|ambulan)c|artificial_satellit|(?:busts?_in_silhouet|(?:vulcan_sal|parach)u|m(?:usical_no|ayot)|ro(?:ller_ska|set)|timor_les|ice_ska)t|(?:(?:incoming|red)_envelo|s(?:ao_tome_princi|tethosco)|(?:micro|tele)sco|citysca)p|(?:(?:(?:convenience|department)_st|musical_sc)o|f(?:light_depar|ramed_pic)tu|love_you_gestu|heart_on_fi|japanese_og|cote_divoi|perseve|singapo)r|b(?:ullettrain_sid|eliz|on)|(?:(?:female_|male_)?dete|radioa)ctiv|(?:christmas|deciduous|evergreen|tanabata|palm)_tre|(?:vibration_mo|cape_ver)d|(?:fortune_cook|neckt|self)i|(?:fork_and_)?knif|athletic_sho|(?:p(?:lead|arty)|drool|curs|melt|yawn|ly)ing_fac|vomiting_fac|(?:(?:c(?:urling_st|ycl)|meat_on_b|repeat_|headst)o|(?:fire_eng|tanger|ukra)i|rice_sce|(?:micro|i)pho|champag|pho)n|(?:cricket|video)_gam|(?:boxing_glo|oli)v|(?:d(?:ragon|izzy)|monkey)_fac|(?:m(?:artin|ozamb)iq|fond)u|wind_chim|test_tub|flat_sho|m(?:a(?:ns_sho|t)|icrob|oos|ut)|(?:handsh|fish_c|moon_c|cupc)ak|nail_car|zimbabw|ho(?:neybe|l)|ice_cub|airplan|pensiv|c(?:a(?:n(?:dl|o)|k)|o(?:ffe|oki))|tongu|purs|f(?:lut|iv)|d(?:at|ov)|n(?:iu|os)|kit|rag|ax)e|(?:(?:british_indian_ocean_territo|(?:plate_with_cutl|batt)e|medal_milita|low_batte|hunga|wea)r|family_(?:woman_(?:woman_(?:girl|boy)|girl|boy)|man_(?:woman_(?:girl|boy)|man_(?:girl|boy)|girl|boy))_bo|person_feeding_bab|woman_feeding_bab|s(?:u(?:spension_railwa|nn)|t(?:atue_of_libert|_barthelem|rawberr))|(?:m(?:ountain_cable|ilky_)|aerial_tram)wa|articulated_lorr|man_feeding_bab|mountain_railwa|partly_sunn|(?:vatican_c|infin)it|(?:outbox_tr|inbox_tr|birthd|motorw|paragu|urugu|norw|x_r)a|butterfl|ring_buo|t(?:urke|roph)|angr|fogg)y|(?:(?:perso|woma)n_in_motorized_wheelchai|(?:(?:notebook_with_decorative_c|four_leaf_cl)ov|(?:index_pointing_at_the_vie|white_flo)w|(?:face_with_thermome|non\\-potable_wa|woman_firefigh|desktop_compu|m(?:an_firefigh|otor_scoo)|(?:ro(?:ller_coa|o)|oy)s|potable_wa|kick_scoo|thermome|firefigh|helicop|ot)t|(?:woman_factory_wor|(?:woman_office|woman_health|health)_wor|man_(?:factory|office|health)_wor|(?:factory|office)_wor|rice_crac|black_jo|firecrac)k|telephone_receiv|(?:palms_up_toget|f(?:ire_extinguis|eat)|teac)h|(?:(?:open_)?file_fol|level_sli)d|police_offic|f(?:lying_sauc|arm)|woman_teach|roll_of_pap|(?:m(?:iddle_f|an_s)in|woman_sin|hambur|plun|dag)g|do_not_litt|wilted_flow|woman_farm|man_(?:teach|farm)|(?:bell_pe|hot_pe|fli)pp|l(?:o(?:udspeak|ve_lett|bst)|edg|add)|tokyo_tow|c(?:ucumb|lapp|anc)|b(?:e(?:ginn|av)|adg)|print|hamst)e|(?:perso|woma)n_in_manual_wheelchai|m(?:an(?:_in_motorized|(?:_in_man)?ual)|otorized)_wheelchai|(?:person_(?:white|curly|red)_|wheelc)hai|triangular_rule|(?:film_project|e(?:l_salv|cu)ad|elevat|tract|anch)o|s(?:traight_rul|pace_invad|crewdriv|nowboard|unflow|peak|wimm|ing|occ|how|urf|ki)e|r(?:ed_ca|unne|azo)|d(?:o(?:lla|o)|ee)|barbe)r|(?:(?:cloud_with_(?:lightning_and_)?ra|japanese_gobl|round_pushp|liechtenste|mandar|pengu|dolph|bahra|pushp|viol)i|(?:couple(?:_with_heart_wo|kiss_)man|construction_worker|(?:mountain_bik|bow|row)ing|lotus_position|(?:w(?:eight_lift|alk)|climb)ing|white_haired|curly_haired|raising_hand|super(?:villain|hero)|red_haired|basketball|s(?:(?:wimm|urf)ing|assy)|haircut|no_good|(?:vampir|massag)e|b(?:iking|ald)|zombie|fairy|mage|elf|ng)_(?:wo)?ma|(?:(?:couple_with_heart_man|isle_of)_m|(?:couplekiss_woman_|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_|frowning_|s(?:tanding|auna)_|po(?:uting_|lice)|running_|blonde_|o(?:lder|k)_)wom|(?:perso|woma)n_with_turb|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_m|f(?:olding_hand_f|rowning_m)|man_with_turb|(?:turkmen|afghan|pak)ist|s(?:tanding_m|(?:outh_s)?ud|auna_m)|po(?:uting_|lice)m|running_m|azerbaij|k(?:yrgyz|azakh)st|tajikist|uzbekist|o(?:lder_m|k_m|ce)|(?:orang|bh)ut|taiw|jord)a|s(?:mall_red_triangle_dow|(?:valbard_jan_may|int_maart|ev)e|afety_pi|top_sig|t_marti|(?:corpi|po|o)o|wede)|(?:heavy_(?:d(?:ivision|ollar)|equals|minus|plus)|no_entry|female|male)_sig|(?:arrow_(?:heading|double)_d|p(?:erson_with_cr|oint_d)|arrow_up_d|thumbsd)ow|(?:house_with_gard|l(?:ock_with_ink_p|eafy_gre)|dancing_(?:wo)?m|fountain_p|keycap_t|chick|ali|yem|od)e|(?:izakaya|jack_o)_lanter|(?:funeral_u|(?:po(?:stal_h|pc)|capric)o|unico)r|chess_paw|b(?:a(?:llo|c)o|eni|rai)|l(?:anter|io)|c(?:o(?:ff)?i|row)|melo|rame|oma|yar)n|(?:s(?:t(?:uck_out_tongue_closed_ey|_vincent_grenadin)|kull_and_crossbon|unglass|pad)|(?:french_souther|palestinia)n_territori|(?:face_with_spiral|kissing_smiling)_ey|united_arab_emirat|kissing_closed_ey|(?:clinking_|dark_sun|eye)glass|(?:no_mobile_|head)phon|womans_cloth|b(?:allet_sho|lueberri)|philippin|(?:no_bicyc|seychel)l|roll_ey|(?:cher|a)ri|p(?:ancak|isc)|maldiv|leav)es|(?:f(?:amily_(?:woman_(?:woman_)?|man_(?:woman_|man_)?)girl_gir|earfu)|(?:woman_playing_hand|m(?:an_playing_hand|irror_)|c(?:onfetti|rystal)_|volley|track|base|8)bal|(?:(?:m(?:ailbox_with_(?:no_)?m|onor)|cockt|e\\-m)a|(?:person|bride|woman)_with_ve|man_with_ve|light_ra|braz|ema)i|(?:transgender|baby)_symbo|passport_contro|(?:arrow_(?:down|up)_sm|rice_b|footb)al|(?:dromedary_cam|ferris_whe|love_hot|high_he|pretz|falaf|isra)e|page_with_cur|me(?:dical_symbo|ta)|(?:n(?:ewspaper_ro|o_be)|bellhop_be)l|rugby_footbal|s(?:chool_satche|(?:peak|ee)_no_evi|oftbal|crol|anda|nai|hel)|(?:peace|atom)_symbo|hear_no_evi|cora|hote|bage|labe|rof|ow)l|(?:(?:negative_squared_cross|heavy_exclamation|part_alternation)_mar|(?:eight_spoked_)?asteris|(?:ballot_box_with_che|(?:(?:mantelpiece|alarm|timer)_c|un)lo|(?:ha(?:(?:mmer_and|ir)_p|tch(?:ing|ed)_ch)|baby_ch|joyst)i|railway_tra|lipsti|peaco)c|heavy_check_mar|white_check_mar|tr(?:opical_drin|uc)|national_par|pickup_truc|diving_mas|floppy_dis|s(?:tar_struc|hamroc|kun|har)|chipmun|denmar|duc|hoo|lin)k|(?:leftwards_arrow_with_h|arrow_right_h|(?:o(?:range|pen)|closed|blue)_b)ook|(?:woman_playing_water_pol|m(?:an(?:_(?:playing_water_pol|with_gua_pi_ma|in_tuxed)|g)|ontenegr|o(?:roc|na)c|e(?:xic|tr|m))|(?:perso|woma)n_in_tuxed|(?:trinidad_toba|vir)g|water_buffal|b(?:urkina_fas|a(?:mbo|nj)|ent)|puerto_ric|water_pol|flaming|kangaro|(?:mosqu|burr)it|(?:avoc|torn)ad|curaca|lesoth|potat|ko(?:sov|k)|tomat|d(?:ang|od)|yo_y|hoch|t(?:ac|og)|zer)o|(?:c(?:entral_african|zech)|dominican)_republic|(?:eight_pointed_black_s|six_pointed_s|qa)tar|(?:business_suit_levitat|(?:classical_buil|breast_fee)d|(?:woman_cartwhee|m(?:an_(?:cartwhee|jugg)|en_wrest)|women_wrest|woman_jugg|face_exha|cartwhee|wrest|dump)l|c(?:hildren_cross|amp)|woman_facepalm|woman_shrugg|man_(?:facepalm|shrugg)|people_hugg|(?:person_fe|woman_da|man_da)nc|fist_oncom|horse_rac|(?:no_smo|thin)k|laugh|s(?:eedl|mok)|park|w(?:arn|edd))ing|f(?:a(?:mily(?:_(?:woman_(?:woman_(?:girl|boy)|girl|boy)|man_(?:woman_(?:girl|boy)|man_(?:girl|boy)|girl|boy)))?|ctory)|o(?:u(?:ntain|r)|ot|g)|r(?:owning)?|i(?:re|s[ht])|ly|u)|(?:(?:(?:information_desk|handball|bearded)_|(?:frowning|ok)_|juggling_|mer)pers|(?:previous_track|p(?:lay_or_p)?ause|black_square|white_square|next_track|r(?:ecord|adio)|eject)_butt|(?:wa[nx]ing_(?:crescent|gibbous)_m|bowl_with_sp|crescent_m|racc)o|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_pers|s(?:t(?:_pierre_miquel|op_butt|ati)|tanding_pers|peech_ballo|auna_pers)|r(?:eminder_r)?ibb|thought_ballo|watermel|badmint|c(?:amero|ray)|le(?:ban|m)|oni|bis)on|(?:heavy_heart_exclama|building_construc|heart_decora|exclama)tion|(?:(?:triangular_flag_on_po|(?:(?:woman_)?technolog|m(?:ountain_bicycl|an_technolog)|bicycl)i|(?:wo)?man_scienti|(?:wo)?man_arti|s(?:afety_ve|cienti)|empty_ne)s|(?:vertical_)?traffic_ligh|(?:rescue_worker_helm|military_helm|nazar_amul|city_suns|wastebask|dropl|t(?:rump|oil)|bouqu|buck|magn|secr)e|one_piece_swimsui|(?:(?:arrow_(?:low|upp)er|point)_r|bridge_at_n|copyr|mag_r)igh|(?:bullettrain_fro|(?:potted_pl|croiss|e(?:ggpl|leph))a)n|s(?:t(?:ar_and_cresc|ud)en|cream_ca|mi(?:ley?|rk)_ca|(?:peed|ail)boa|hir)|(?:arrow_(?:low|upp)er|point)_lef|woman_astronau|r(?:o(?:tating_ligh|cke)|eceip)|heart_eyes_ca|man_astronau|(?:woman_stud|circus_t|man_stud|trid)en|(?:ringed_pla|file_cabi)ne|nut_and_bol|(?:older_)?adul|k(?:i(?:ssing_ca|wi_frui)|uwai|no)|(?:pouting_c|c(?:ut_of_m|old_sw)e|womans_h|montserr|(?:(?:motor_|row)b|lab_c)o|heartbe|toph)a|(?:woman_pil|honey_p|man_pil|[cp]arr|teap|rob)o|hiking_boo|arrow_lef|fist_righ|flashligh|f(?:ist_lef|ee)|black_ca|astronau|(?:c(?:hest|oco)|dough)nu|innocen|joy_ca|artis|(?:acce|egy)p|co(?:me|a)|pilo)t|(?:heavy_multiplication_|t\\-re)x|(?:s(?:miling_face_with_te|piral_calend)|oncoming_police_c|chocolate_b|ra(?:ilway|cing)_c|police_c|polar_be|teddy_be|madagasc|blue_c|calend|myanm)ar|c(?:l(?:o(?:ud(?:_with_lightning)?|ck(?:1[0-2]?|[2-9]))|ap)?|o(?:uple(?:_with_heart|kiss)?|nstruction|mputer|ok|p|w)|a(?:r(?:d_index)?|mera)|r(?:icket|y)|h(?:art|ild))|(?:m(?:artial_arts_unifo|echanical_a)r|(?:cherry_)?blosso|b(?:aggage_clai|roo)|ice_?crea|facepal|mushroo|restroo|vietna|dru|yu)m|(?:woman_with_headscar|m(?:obile_phone_of|aple_lea)|fallen_lea|wol)f|(?:(?:closed_lock_with|old)_|field_hoc|ice_hoc|han|don)key|g(?:lobe_with_meridians|r(?:e(?:y_(?:exclama|ques)tion|e(?:n(?:_(?:square|circle|salad|apple|heart|book)|land)|ce)|y_heart|nada)|i(?:mac|nn)ing|apes)|u(?:inea_bissau|ernsey|am|n)|(?:(?:olfing|enie)_(?:wo)?|uards(?:wo)?)man|(?:inger_roo|oal_ne|hos)t|(?:uadeloup|ame_di|iraff|oos)e|ift_heart|i(?:braltar|rl)|(?:uatemal|(?:eorg|amb)i|orill|uyan|han)a|uide_dog|(?:oggl|lov)es|arlic|emini|uitar|abon|oat|ear|b)|construction_worker|(?:(?:envelope_with|bow_and)_ar|left_right_ar|raised_eyeb)row|(?:(?:oncoming_automob|crocod)i|right_anger_bubb|l(?:eft_speech_bubb|otion_bott|ady_beet)|congo_brazzavil|eye_speech_bubb|(?:large_blue|orange|purple|yellow|brown)_circ|(?:(?:european|japanese)_cas|baby_bot)t|b(?:alance_sca|eet)|s(?:ewing_need|weat_smi)|(?:black|white|red)_circ|(?:motor|re)cyc|pood|turt|tama|waff|musc|eag)le|first_quarter_moon|s(?:m(?:all_red_triangle|i(?:ley?|rk))|t(?:uck_out_tongue|ar)|hopping|leeping|p(?:arkle|ider)|unrise|nowman|chool|cream|k(?:ull|i)|weat|ix|a)|(?:(?:b(?:osnia_herzegovi|ana)|wallis_futu|(?:french_gui|botsw)a|argenti|st_hele)n|(?:(?:equatorial|papua_new)_guin|north_kor|eritr)e|t(?:ristan_da_cunh|ad)|(?:(?:(?:french_poly|indo)ne|tuni)s|(?:new_caledo|ma(?:urita|cedo)|lithua|(?:tanz|alb|rom)a|arme|esto)n|diego_garc|s(?:audi_arab|t_luc|lov(?:ak|en)|omal|erb)|e(?:arth_as|thiop)|m(?:icrone|alay)s|(?:austra|mongo)l|c(?:ambod|roat)|(?:bulga|alge)r|(?:colom|nami|zam)b|boliv|l(?:iber|atv))i|(?:wheel_of_dhar|cine|pana)m|(?:(?:(?:closed|beach|open)_)?umbrel|ceuta_melil|venezue|ang(?:uil|o)|koa)l|c(?:ongo_kinshas|anad|ub)|(?:western_saha|a(?:mpho|ndor)|zeb)r|american_samo|video_camer|m(?:o(?:vie_camer|ldov)|alt|eg)|(?:earth_af|costa_)ric|s(?:outh_afric|ri_lank|a(?:mo|nt))|bubble_te|(?:antarct|jama)ic|ni(?:caragu|geri|nj)|austri|pi(?:nat|zz)|arub|k(?:eny|aab)|indi|u7a7|l(?:lam|ib[ry])|dn)a|l(?:ast_quarter_moon|o(?:tus|ck)|ips|eo)|(?:hammer_and_wren|c(?:ockroa|hur)|facepun|wren|crut|pun)ch|s(?:nowman_with_snow|ignal_strength|weet_potato|miling_imp|p(?:ider_web|arkle[rs])|w(?:im_brief|an)|a(?:n(?:_marino|dwich)|lt)|topwatch|t(?:a(?:dium|r[2s])|ew)|l(?:e(?:epy|d)|oth)|hrimp|yria|carf|(?:hee|oa)p|ea[lt]|h(?:oe|i[pt])|o[bs])|(?:s(?:tuffed_flatbre|p(?:iral_notep|eaking_he))|(?:exploding_h|baguette_br|flatbr)e)ad|(?:arrow_(?:heading|double)_u|(?:p(?:lace_of_wor|assenger_)sh|film_str|tul)i|page_facing_u|biting_li|(?:billed_c|world_m)a|mouse_tra|(?:curly_lo|busst)o|thumbsu|lo(?:llip)?o|clam|im)p|(?:anatomical|light_blue|sparkling|kissing|mending|orange|purple|yellow|broken|b(?:rown|l(?:ack|ue))|pink)_heart|(?:(?:transgender|black)_fla|mechanical_le|(?:checkered|pirate)_fla|electric_plu|rainbow_fla|poultry_le|service_do|white_fla|luxembour|fried_eg|moneyba|h(?:edgeh|otd)o|shru)g|(?:cloud_with|mountain)_snow|(?:(?:antigua_barb|berm)u|(?:kh|ug)an|rwan)da|(?:3r|2n)d_place_medal|1(?:st_place_medal|234|00)|lotus_position|(?:w(?:eight_lift|alk)|climb)ing|(?:(?:cup_with_str|auto_ricksh)a|carpentry_sa|windo|jigsa)w|(?:(?:couch_and|diya)_la|f(?:ried_shri|uelpu))mp|(?:woman_mechan|man_mechan|alemb)ic|(?:european_un|accord|collis|reun)ion|(?:flight_arriv|hospit|portug|seneg|nep)al|card_file_box|(?:(?:oncoming_)?tax|m(?:o(?:unt_fuj|ya)|alaw)|s(?:paghett|ush|ar)|b(?:r(?:occol|une)|urund)|(?:djibou|kiriba)t|hait|fij)i|(?:shopping_c|white_he|bar_ch)art|d(?:isappointed|ominica|e(?:sert)?)|raising_hand|super(?:villain|hero)|b(?:e(?:verage_box|ers|d)|u(?:bbles|lb|g)|i(?:k(?:ini|e)|rd)|o(?:o(?:ks|t)|a[rt]|y)|read|a[cn]k)|ra(?:ised_hands|bbit2|t)|(?:hindu_tem|ap)ple|thong_sandal|a(?:r(?:row_(?:right|down|up)|t)|bc?|nt)?|r(?:a(?:i(?:sed_hand|nbow)|bbit|dio|m)|u(?:nning)?|epeat|i(?:ng|ce)|o(?:ck|se))|takeout_box|(?:flying_|mini)disc|(?:(?:interrob|yin_y)a|b(?:o(?:omera|wli)|angba)|(?:ping_p|hong_k)o|calli|mahjo)ng|b(?:a(?:llot_box|sket|th?|by)|o(?:o(?:k(?:mark)?|m)|w)|u(?:tter|s)|e(?:ll|er?|ar))?|heart_eyes|basketball|(?:paperclip|dancer|ticket)s|point_up_2|(?:wo)?man_cook|n(?:ew(?:spaper)?|o(?:tebook|_entry)|iger)|t(?:e(?:lephone|a)|o(?:oth|p)|r(?:oll)?|wo)|h(?:o(?:u(?:rglass|se)|rse)|a(?:mmer|nd)|eart)|paperclip|full_moon|(?:b(?:lack_ni|athtu|om)|her)b|(?:long|oil)_drum|pineapple|(?:clock(?:1[0-2]?|[2-9])3|u6e8)0|p(?:o(?:int_up|ut)|r(?:ince|ay)|i(?:ck|g)|en)|e(?:nvelope|ight|u(?:ro)?|gg|ar|ye|s)|m(?:o(?:u(?:ntain|se)|nkey|on)|echanic|a(?:ilbox|g|n)|irror)?|new_moon|d(?:iamonds|olls|art)|question|k(?:iss(?:ing)?|ey)|haircut|no_good|(?:vampir|massag)e|g(?:olf(?:ing)?|u(?:inea|ard)|e(?:nie|m)|ift|rin)|h(?:a(?:ndbag|msa)|ouses|earts|ut)|postbox|toolbox|(?:pencil|t(?:rain|iger)|whale|cat|dog)2|belgium|(?:volca|kimo)no|(?:vanuat|tuval|pala|naur|maca)u|tokelau|o(?:range|ne?|m|k)?|office|dancer|ticket|dragon|pencil|zombie|w(?:o(?:mens|rm|od)|ave|in[gk]|c)|m(?:o(?:sque|use2)|e(?:rman|ns)|a(?:li|sk))|jersey|tshirt|w(?:heel|oman)|dizzy|j(?:apan|oy)|t(?:rain|iger)|whale|fairy|a(?:nge[lr]|bcd|tm)|c(?:h(?:a(?:ir|d)|ile)|a(?:ndy|mel)|urry|rab|o(?:rn|ol|w2)|[dn])|p(?:ager|e(?:a(?:ch|r)|ru)|i(?:g2|ll|e)|oop)|n(?:otes|ine)|t(?:onga|hree|ent|ram|[mv])|f(?:erry|r(?:ies|ee|og)|ax)|u(?:7(?:533|981|121)|5(?:5b6|408|272)|6(?:307|70[89]))|mage|e(?:yes|nd)|i(?:ra[nq]|t)|cat|dog|elf|z(?:zz|ap)|yen|j(?:ar|p)|leg|id|u[kps]|ng|o[2x]|vs|kr|[\\+\\x2D]1|x|v)(:)',
name: 'string.emoji.mdx',
captures: {
1: {
name: 'punctuation.definition.gemoji.begin.mdx'
},
2: {
name: 'keyword.control.gemoji.mdx'
},
3: {
name: 'punctuation.definition.gemoji.end.mdx'
}
}
},
'extension-github-mention': {
match:
'(?<![0-9A-Za-z_`])(@)((?:[0-9A-Za-z][0-9A-Za-z-]{0,38})(?:\\/(?:[0-9A-Za-z][0-9A-Za-z-]{0,38}))?)(?![0-9A-Za-z_`])',
name: 'string.mention.mdx',
captures: {
1: {
name: 'punctuation.definition.mention.begin.mdx'
},
2: {
name: 'string.other.link.mention.mdx'
}
}
},
'extension-github-reference': {
patterns: [
{
match:
'(?<![0-9A-Za-z_])(?:((?i:ghsa-|cve-))([A-Za-z0-9]+)|((?i:gh-|#))([0-9]+))(?![0-9A-Za-z_])',
name: 'string.reference.mdx',
captures: {
1: {
name: 'punctuation.definition.reference.begin.mdx'
},
2: {
name: 'string.other.link.reference.security-advisory.mdx'
},
3: {
name: 'punctuation.definition.reference.begin.mdx'
},
4: {
name: 'string.other.link.reference.issue-or-pr.mdx'
}
}
},
{
match:
'(?<![^\\t\\n\\r \\(@\\[\\{])((?:[0-9A-Za-z][0-9A-Za-z-]{0,38})(?:\\/(?:(?:\\.git[0-9A-Za-z_-]|\\.(?!git)|[0-9A-Za-z_-])+))?)(#)([0-9]+)(?![0-9A-Za-z_])',
name: 'string.reference.mdx',
captures: {
1: {
name: 'string.other.link.reference.user.mdx'
},
2: {
name: 'punctuation.definition.reference.begin.mdx'
},
3: {
name: 'string.other.link.reference.issue-or-pr.mdx'
}
}
}
]
},
'extension-math-flow': {
begin: '(?:^|\\G)[\\t ]*(\\${2,})([^\\n\\r\\$]*)$',
beginCaptures: {
1: {
name: 'string.other.begin.math.flow.mdx'
},
2: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
contentName: 'markup.raw.math.flow.mdx',
end: '(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.math.flow.mdx'
}
},
name: 'markup.code.other.mdx'
},
'extension-math-text': {
match: '(?<!\\$)(\\${2,})(?!\\$)(.+?)(?<!\\$)(\\1)(?!\\$)',
captures: {
1: {
name: 'string.other.begin.math.mdx'
},
2: {
name: 'markup.raw.math.mdx markup.inline.raw.math.mdx'
},
3: {
name: 'string.other.end.math.mdx'
}
}
},
'extension-mdx-esm': {
name: 'meta.embedded.tsx',
begin: '(?:^|\\G)(?=(?i:export|import)[ ])',
end: '^(?=[\\t ]*$)|$',
patterns: [
{
include: 'source.tsx#statements'
}
]
},
'extension-mdx-expression-flow': {
begin: '(?:^|\\G)[\\t ]*(\\{)(?!.*\\}[\\t ]*.)',
beginCaptures: {
1: {
name: 'string.other.begin.expression.mdx.js'
}
},
contentName: 'meta.embedded.tsx',
end: '(\\})(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.begin.expression.mdx.js'
}
},
patterns: [
{
include: 'source.tsx#expression'
}
]
},
'extension-mdx-expression-text': {
begin: '\\{',
beginCaptures: {
0: {
name: 'string.other.begin.expression.mdx.js'
}
},
contentName: 'meta.embedded.tsx',
end: '\\}',
endCaptures: {
0: {
name: 'string.other.begin.expression.mdx.js'
}
},
patterns: [
{
include: 'source.tsx#expression'
}
]
},
'extension-mdx-jsx-flow': {
begin:
'(?<=^|\\G|\\>)[\\t ]*(<)(?=(?![\\t\\n\\r ]))(?:\\s*(/))?(?:\\s*(?:(?:((?:[_$[:alpha:]][-_$[:alnum:]]*))\\s*(:)\\s*((?:[_$[:alpha:]][-_$[:alnum:]]*)))|((?:(?:[_$[:alpha:]][_$[:alnum:]]*)(?:\\s*\\.\\s*(?:[_$[:alpha:]][-_$[:alnum:]]*))+))|((?:[_$[:upper:]][_$[:alnum:]]*))|((?:[_$[:alpha:]][-_$[:alnum:]]*)))(?=[\\s\\/\\>\\{]))?',
beginCaptures: {
1: {
name: 'punctuation.definition.tag.end.jsx'
},
2: {
name: 'punctuation.definition.tag.closing.jsx'
},
3: {
name: 'entity.name.tag.namespace.jsx'
},
4: {
name: 'punctuation.separator.namespace.jsx'
},
5: {
name: 'entity.name.tag.local.jsx'
},
6: {
name: 'support.class.component.jsx'
},
7: {
name: 'support.class.component.jsx'
},
8: {
name: 'entity.name.tag.jsx'
}
},
patterns: [
{
include: 'source.tsx#jsx-tag-attribute-name'
},
{
include: 'source.tsx#jsx-tag-attribute-assignment'
},
{
include: 'source.tsx#jsx-string-double-quoted'
},
{
include: 'source.tsx#jsx-string-single-quoted'
},
{
include: 'source.tsx#jsx-evaluated-code'
},
{
include: 'source.tsx#jsx-tag-attributes-illegal'
}
],
end: '(?:(\\/)\\s*)?(>)',
endCaptures: {
1: {
name: 'punctuation.definition.tag.self-closing.jsx'
},
2: {
name: 'punctuation.definition.tag.end.jsx'
}
}
},
'extension-mdx-jsx-text': {
begin:
'(<)(?=(?![\\t\\n\\r ]))(?:\\s*(/))?(?:\\s*(?:(?:((?:[_$[:alpha:]][-_$[:alnum:]]*))\\s*(:)\\s*((?:[_$[:alpha:]][-_$[:alnum:]]*)))|((?:(?:[_$[:alpha:]][_$[:alnum:]]*)(?:\\s*\\.\\s*(?:[_$[:alpha:]][-_$[:alnum:]]*))+))|((?:[_$[:upper:]][_$[:alnum:]]*))|((?:[_$[:alpha:]][-_$[:alnum:]]*)))(?=[\\s\\/\\>\\{]))?',
beginCaptures: {
1: {
name: 'punctuation.definition.tag.end.jsx'
},
2: {
name: 'punctuation.definition.tag.closing.jsx'
},
3: {
name: 'entity.name.tag.namespace.jsx'
},
4: {
name: 'punctuation.separator.namespace.jsx'
},
5: {
name: 'entity.name.tag.local.jsx'
},
6: {
name: 'support.class.component.jsx'
},
7: {
name: 'support.class.component.jsx'
},
8: {
name: 'entity.name.tag.jsx'
}
},
patterns: [
{
include: 'source.tsx#jsx-tag-attribute-name'
},
{
include: 'source.tsx#jsx-tag-attribute-assignment'
},
{
include: 'source.tsx#jsx-string-double-quoted'
},
{
include: 'source.tsx#jsx-string-single-quoted'
},
{
include: 'source.tsx#jsx-evaluated-code'
},
{
include: 'source.tsx#jsx-tag-attributes-illegal'
}
],
end: '(?:(\\/)\\s*)?(>)',
endCaptures: {
1: {
name: 'punctuation.definition.tag.self-closing.jsx'
},
2: {
name: 'punctuation.definition.tag.end.jsx'
}
}
},
'extension-toml': {
begin: '\\A\\+{3}$',
end: '^\\+{3}$',
beginCaptures: {
0: {
name: 'string.other.begin.toml'
}
},
endCaptures: {
0: {
name: 'string.other.end.toml'
}
},
contentName: 'meta.embedded.toml',
patterns: [
{
include: 'source.toml'
}
]
},
'extension-yaml': {
begin: '\\A-{3}$',
end: '^-{3}$',
beginCaptures: {
0: {
name: 'string.other.begin.yaml'
}
},
endCaptures: {
0: {
name: 'string.other.end.yaml'
}
},
contentName: 'meta.embedded.yaml',
patterns: [
{
include: 'source.yaml'
}
]
},
'whatwg-html-data-character-reference-named-terminated': {
match:
'(&)((?:C(?:(?:o(?:unterClockwiseCo)?|lockwiseCo)ntourIntegra|cedi)|(?:(?:Not(?:S(?:quareSu(?:per|b)set|u(?:cceeds|(?:per|b)set))|Precedes|Greater|Tilde|Less)|Not(?:Righ|Lef)tTriangle|(?:Not(?:(?:Succeed|Precede|Les)s|Greater)|(?:Precede|Succeed)s|Less)Slant|SquareSu(?:per|b)set|(?:Not(?:Greater|Tilde)|Tilde|Less)Full|RightTriangle|LeftTriangle|Greater(?:Slant|Full)|Precedes|Succeeds|Superset|NotHump|Subset|Tilde|Hump)Equ|int(?:er)?c|DotEqu)a|DoubleContourIntegra|(?:n(?:short)?parall|shortparall|p(?:arall|rur))e|(?:rightarrowta|l(?:eftarrowta|ced|ata|Ata)|sced|rata|perm|rced|rAta|ced)i|Proportiona|smepars|e(?:qvpars|pars|xc|um)|Integra|suphso|rarr[pt]|n(?:pars|tg)|l(?:arr[pt]|cei)|Rarrt|(?:hybu|fora)l|ForAl|[GKLNR-Tcknt]cedi|rcei|iexc|gime|fras|[uy]um|oso|dso|ium|Ium)l|D(?:o(?:uble(?:(?:L(?:ong(?:Left)?R|eftR)ight|L(?:ongL)?eft|UpDown|Right|Up)Arrow|Do(?:wnArrow|t))|wn(?:ArrowUpA|TeeA|a)rrow)|iacriticalDot|strok|ashv|cy)|(?:(?:(?:N(?:(?:otN)?estedGreater|ot(?:Greater|Less))|Less(?:Equal)?)Great|GreaterGreat|l[lr]corn|mark|east)e|Not(?:Double)?VerticalBa|(?:Not(?:Righ|Lef)tTriangleB|(?:(?:Righ|Lef)tDown|Right(?:Up)?|Left(?:Up)?)VectorB|RightTriangleB|Left(?:Triangle|Arrow)B|RightArrowB|V(?:er(?:ticalB|b)|b)|UpArrowB|l(?:ur(?:ds|u)h|dr(?:us|d)h|trP|owb|H)|profal|r(?:ulu|dld)h|b(?:igst|rvb)|(?:wed|ve[er])b|s(?:wn|es)w|n(?:wne|ese|sp|hp)|gtlP|d(?:oll|uh|H)|(?:hor|ov)b|u(?:dh|H)|r(?:lh|H)|ohb|hb|St)a|D(?:o(?:wn(?:(?:Left(?:Right|Tee)|RightTee)Vecto|(?:(?:Righ|Lef)tVector|Arrow)Ba)|ubleVerticalBa)|a(?:gge|r)|sc|f)|(?:(?:(?:Righ|Lef)tDown|(?:Righ|Lef)tUp)Tee|(?:Righ|Lef)tUpDown)Vecto|VerticalSeparato|(?:Left(?:Right|Tee)|RightTee)Vecto|less(?:eqq?)?gt|e(?:qslantgt|sc)|(?:RightF|LeftF|[lr]f)loo|u(?:[lr]corne|ar)|timesba|(?:plusa|cirs|apa)ci|U(?:arroci|f)|(?:dzigr|s(?:u(?:pl|br)|imr|[lr])|zigr|angz|nvH|l(?:tl|B)|r[Br])ar|UnderBa|(?:plus|harr|top|mid|of)ci|O(?:verBa|sc|f)|dd?agge|s(?:olba|sc)|g(?:t(?:rar|ci)|sc|f)|c(?:opys|u(?:po|ep)|sc|f)|(?:n(?:(?:v[lr]|w|r)A|l[Aa]|h[Aa]|eA)|x[hlr][Aa]|u(?:ua|da|A)|s[ew]A|rla|o[lr]a|rba|rAa|l[Ablr]a|h(?:oa|A)|era|d(?:ua|A)|cra|vA)r|o(?:lci|sc|ro|pa)|ropa|roar|l(?:o(?:pa|ar)|sc|Ar)|i(?:ma|s)c|ltci|dd?ar|a(?:ma|s)c|R(?:Bar|sc|f)|I(?:mac|f)|(?:u(?:ma|s)|oma|ema|Oma|Ema|[wyz]s|qs|ks|fs|Zs|Ys|Xs|Ws|Vs|Us|Ss|Qs|Ns|Ms|Ks|Is|Gs|Fs|Cs|Bs)c|Umac|x(?:sc|f)|v(?:sc|f)|rsc|n(?:ld|f)|m(?:sc|ld|ac|f)|rAr|h(?:sc|f)|b(?:sc|f)|psc|P(?:sc|f)|L(?:sc|ar|f)|jsc|J(?:sc|f)|E(?:sc|f)|[HT]sc|[yz]f|wf|tf|qf|pf|kf|jf|Zf|Yf|Xf|Wf|Vf|Tf|Sf|Qf|Nf|Mf|Kf|Hf|Gf|Ff|Cf|Bf)r|(?:Diacritical(?:Double)?A|[EINOSYZaisz]a)cute|(?:(?:N(?:egative(?:VeryThin|Thi(?:ck|n))|onBreaking)|NegativeMedium|ZeroWidth|VeryThin|Medium|Thi(?:ck|n))Spac|Filled(?:Very)?SmallSquar|Empty(?:Very)?SmallSquar|(?:N(?:ot(?:Succeeds|Greater|Tilde|Less)T|t)|DiacriticalT|VerticalT|PrecedesT|SucceedsT|NotEqualT|GreaterT|TildeT|EqualT|LessT|at|Ut|It)ild|(?:(?:DiacriticalG|[EIOUaiu]g)ra|(?:u|U)?bre|(?:o|e)?gra)v|(?:doublebar|curly|big|x)wedg|H(?:orizontalLin|ilbertSpac)|Double(?:Righ|Lef)tTe|(?:(?:measured|uw)ang|exponentia|dwang|ssmi|fema)l|(?:Poincarepla|reali|pho|oli)n|(?:black)?lozeng|(?:VerticalL|(?:prof|imag)l)in|SmallCircl|(?:black|dot)squar|rmoustach|l(?:moustach|angl)|(?:b(?:ack)?pr|(?:tri|xo)t|[qt]pr)im|[Tt]herefor|(?:DownB|[Gag]b)rev|(?:infint|nv[lr]tr)i|b(?:arwedg|owti)|an(?:dslop|gl)|(?:cu(?:rly)?v|rthr|lthr|b(?:ig|ar)v|xv)e|n(?:s(?:qsu[bp]|ccu)|prcu)|orslop|NewLin|maltes|Becaus|rangl|incar|(?:otil|Otil|t(?:ra|il))d|[inu]tild|s(?:mil|imn)|(?:sc|pr)cu|Wedg|Prim|Brev)e|(?:CloseCurly(?:Double)?Quo|OpenCurly(?:Double)?Quo|[ry]?acu)te|(?:Reverse(?:Up)?|Up)Equilibrium|C(?:apitalDifferentialD|(?:oproduc|(?:ircleD|enterD|d)o)t|on(?:grue|i)nt|conint|upCap|o(?:lone|pf)|OPY|hi)|(?:(?:(?:left)?rightsquig|(?:longleftr|twoheadr|nleftr|nLeftr|longr|hookr|nR|Rr)ight|(?:twohead|hook)left|longleft|updown|Updown|nright|Right|nleft|nLeft|down|up|Up)a|L(?:(?:ong(?:left)?righ|(?:ong)?lef)ta|eft(?:(?:right)?a|RightA|TeeA))|RightTeeA|LongLeftA|UpTeeA)rrow|(?:(?:RightArrow|Short|Upper|Lower)Left|(?:L(?:eftArrow|o(?:wer|ng))|LongLeft|Short|Upper)Right|ShortUp)Arrow|(?:b(?:lacktriangle(?:righ|lef)|ulle|no)|RightDoubleBracke|RightAngleBracke|Left(?:Doub|Ang)leBracke|(?:vartriangle|downharpoon|c(?:ircl|urv)earrow|upharpoon|looparrow)righ|(?:vartriangle|downharpoon|c(?:ircl|urv)earrow|upharpoon|looparrow|mapsto)lef|(?:UnderBrack|OverBrack|emptys|targ|Sups)e|diamondsui|c(?:ircledas|lubsui|are)|(?:spade|heart)sui|(?:(?:c(?:enter|t)|lmi|ino)d|(?:Triple|mD)D|n(?:otin|e)d|(?:ncong|doteq|su[bp]e|e[gl]s)d|l(?:ess|t)d|isind|c(?:ong|up|ap)?d|b(?:igod|N)|t(?:(?:ri)?d|opb)|s(?:ub|im)d|midd|g(?:tr?)?d|Lmid|DotD|(?:xo|ut|z)d|e(?:s?d|rD|fD|DD)|dtd|Zd|Id|Gd|Ed)o|realpar|i(?:magpar|iin)|S(?:uchTha|qr)|su[bp]mul|(?:(?:lt|i)que|gtque|(?:mid|low)a|e(?:que|xi))s|Produc|s(?:updo|e[cx])|r(?:parg|ec)|lparl|vangr|hamil|(?:homt|[lr]fis|ufis|dfis)h|phmma|t(?:wix|in)|quo|o(?:do|as)|fla|eDo)t|(?:(?:Square)?Intersecti|(?:straight|back|var)epsil|SquareUni|expectati|upsil|epsil|Upsil|eq?col|Epsil|(?:omic|Omic|rca|lca|eca|Sca|[NRTt]ca|Lca|Eca|[Zdz]ca|Dca)r|scar|ncar|herc|ccar|Ccar|iog|Iog)on|Not(?:S(?:quareSu(?:per|b)set|u(?:cceeds|(?:per|b)set))|Precedes|Greater|Tilde|Less)?|(?:(?:(?:Not(?:Reverse)?|Reverse)E|comp|E)leme|NotCongrue|(?:n[gl]|l)eqsla|geqsla|q(?:uat)?i|perc|iiii|coni|cwi|awi|oi)nt|(?:(?:rightleftharpo|leftrightharpo|quaterni)on|(?:(?:N(?:ot(?:NestedLess|Greater|Less)|estedLess)L|(?:eqslant|gtr(?:eqq?)?)l|LessL)e|Greater(?:Equal)?Le|cro)s|(?:rightright|leftleft|upup)arrow|rightleftarrow|(?:(?:(?:righ|lef)tthree|divideon|b(?:igo|ox)|[lr]o)t|InvisibleT)ime|downdownarrow|(?:(?:smallset|tri|dot|box)m|PlusM)inu|(?:RoundImpli|complex|Impli|Otim)e|C(?:ircle(?:Time|Minu|Plu)|ayley|ros)|(?:rationa|mode)l|NotExist|(?:(?:UnionP|MinusP|(?:b(?:ig[ou]|ox)|tri|s(?:u[bp]|im)|dot|xu|mn)p)l|(?:xo|u)pl|o(?:min|pl)|ropl|lopl|epl)u|otimesa|integer|e(?:linter|qual)|setminu|rarrbf|larrb?f|olcros|rarrf|mstpo|lesge|gesle|Exist|[lr]time|strn|napo|fltn|ccap|apo)s|(?:b(?:(?:lack|ig)triangledow|etwee)|(?:righ|lef)tharpoondow|(?:triangle|mapsto)dow|(?:nv|i)infi|ssetm|plusm|lagra|d(?:[lr]cor|isi)|c(?:ompf|aro)|s?frow|(?:hyph|curr)e|kgree|thor|ogo|ye)n|Not(?:Righ|Lef)tTriangle|(?:Up(?:Arrow)?|Short)DownArrow|(?:(?:n(?:triangle(?:righ|lef)t|succ|prec)|(?:trianglerigh|trianglelef|sqsu[bp]se|ques)t|backsim)e|lvertneq|gvertneq|(?:suc|pre)cneq|a(?:pprox|symp)e|(?:succ|prec|vee)e|circe)q|(?:UnderParenthes|OverParenthes|xn)is|(?:(?:Righ|Lef)tDown|Right(?:Up)?|Left(?:Up)?)Vector|D(?:o(?:wn(?:RightVector|LeftVector|Arrow|Tee)|t)|el|D)|l(?:eftrightarrows|br(?:k(?:sl[du]|e)|ac[ek])|tri[ef]|s(?:im[eg]|qb|h)|hard|a(?:tes|ngd|p)|o[pz]f|rm|gE|fr|eg|cy)|(?:NotHumpDownHum|(?:righ|lef)tharpoonu|big(?:(?:triangle|sqc)u|c[au])|HumpDownHum|m(?:apstou|lc)|(?:capbr|xsq)cu|smash|rarr[al]|(?:weie|sha)r|larrl|velli|(?:thin|punc)s|h(?:elli|airs)|(?:u[lr]c|vp)ro|d[lr]cro|c(?:upc[au]|apc[au])|thka|scna|prn?a|oper|n(?:ums|va|cu|bs)|ens|xc[au]|Ma)p|l(?:eftrightarrow|e(?:ftarrow|s(?:dot)?)?|moust|a(?:rrb?|te?|ng)|t(?:ri)?|sim|par|oz|l|g)|n(?:triangle(?:righ|lef)t|succ|prec)|SquareSu(?:per|b)set|(?:I(?:nvisibleComm|ot)|(?:varthe|iio)t|varkapp|(?:vars|S)igm|(?:diga|mco)mm|Cedill|lambd|Lambd|delt|Thet|omeg|Omeg|Kapp|Delt|nabl|zet|to[es]|rdc|ldc|iot|Zet|Bet|Et)a|b(?:lacktriangle|arwed|u(?:mpe?|ll)|sol|o(?:x[HVhv]|t)|brk|ne)|(?:trianglerigh|trianglelef|sqsu[bp]se|ques)t|RightT(?:riangl|e)e|(?:(?:varsu[bp]setn|su(?:psetn?|bsetn?))eq|nsu[bp]seteq|colone|(?:wedg|sim)e|nsime|lneq|gneq)q|DifferentialD|(?:(?:fall|ris)ingdots|(?:suc|pre)ccurly|ddots)eq|A(?:pplyFunction|ssign|(?:tild|grav|brev)e|acute|o(?:gon|pf)|lpha|(?:mac|sc|f)r|c(?:irc|y)|ring|Elig|uml|nd|MP)|(?:varsu[bp]setn|su(?:psetn?|bsetn?))eq|L(?:eft(?:T(?:riangl|e)e|Arrow)|l)|G(?:reaterEqual|amma)|E(?:xponentialE|quilibrium|sim|cy|TH|NG)|(?:(?:RightCeil|LeftCeil|varnoth|ar|Ur)in|(?:b(?:ack)?co|uri)n|vzigza|roan|loan|ffli|amal|sun|rin|n(?:tl|an)|Ran|Lan)g|(?:thick|succn?|precn?|less|g(?:tr|n)|ln|n)approx|(?:s(?:traightph|em)|(?:rtril|xu|u[lr]|xd|v[lr])tr|varph|l[lr]tr|b(?:sem|eps)|Ph)i|(?:circledd|osl|n(?:v[Dd]|V[Dd]|d)|hsl|V(?:vd|D)|Osl|v[Dd]|md)ash|(?:(?:RuleDelay|imp|cuw)e|(?:n(?:s(?:hort)?)?|short|rn)mi|D(?:Dotrah|iamon)|(?:i(?:nt)?pr|peri)o|odsol|llhar|c(?:opro|irmi)|(?:capa|anda|pou)n|Barwe|napi|api)d|(?:cu(?:rlyeq(?:suc|pre)|es)|telre|[ou]dbla|Udbla|Odbla|radi|lesc|gesc|dbla)c|(?:circled|big|eq|[is]|c|x|a|S|[hw]|W|H|G|E|C)circ|rightarrow|R(?:ightArrow|arr|e)|Pr(?:oportion)?|(?:longmapst|varpropt|p(?:lustw|ropt)|varrh|numer|(?:rsa|lsa|sb)qu|m(?:icr|h)|[lr]aqu|bdqu|eur)o|UnderBrace|ImaginaryI|B(?:ernoullis|a(?:ckslash|rv)|umpeq|cy)|(?:(?:Laplace|Mellin|zee)tr|Fo(?:uriertr|p)|(?:profsu|ssta)r|ordero|origo|[ps]op|nop|mop|i(?:op|mo)|h(?:op|al)|f(?:op|no)|dop|bop|Rop|Pop|Nop|Lop|Iop|Hop|Dop|[GJKMOQSTV-Zgjkoqvwyz]op|Bop)f|nsu[bp]seteq|t(?:ri(?:angleq|e)|imesd|he(?:tav|re4)|au)|O(?:verBrace|r)|(?:(?:pitchfo|checkma|t(?:opfo|b)|rob|rbb|l[bo]b)r|intlarh|b(?:brktbr|l(?:oc|an))|perten|NoBrea|rarrh|s[ew]arh|n[ew]arh|l(?:arrh|hbl)|uhbl|Hace)k|(?:NotCupC|(?:mu(?:lti)?|x)m|cupbrc)ap|t(?:riangle|imes|heta|opf?)|Precedes|Succeeds|Superset|NotEqual|(?:n(?:atural|exist|les)|s(?:qc[au]p|mte)|prime)s|c(?:ir(?:cled[RS]|[Ee])|u(?:rarrm|larrp|darr[lr]|ps)|o(?:mmat|pf)|aps|hi)|b(?:sol(?:hsu)?b|ump(?:eq|E)|ox(?:box|[Vv][HLRhlr]|[Hh][DUdu]|[DUdu][LRlr])|e(?:rnou|t[ah])|lk(?:34|1[24])|cy)|(?:l(?:esdot|squ|dqu)o|rsquo|rdquo|ngt)r|a(?:n(?:g(?:msda[a-h]|st|e)|d[dv])|st|p[Ee]|mp|fr|c[Edy])|(?:g(?:esdoto|E)|[lr]haru)l|(?:angrtvb|lrhar|nis)d|(?:(?:th(?:ic)?k|succn?|p(?:r(?:ecn?|n)?|lus)|rarr|l(?:ess|arr)|su[bp]|par|scn|g(?:tr|n)|ne|sc|n[glv]|ln|eq?)si|thetasy|ccupss|alefsy|botto)m|trpezium|(?:hks[ew]|dr?bk|bk)arow|(?:(?:[lr]a|d|c)empty|b(?:nequi|empty)|plank|nequi|odi)v|(?:(?:sc|rp|n)pol|point|fpart)int|(?:c(?:irf|wco)|awco)nint|PartialD|n(?:s(?:u[bp](?:set)?|c)|rarr|ot(?:ni|in)?|warr|e(?:arr)?|a(?:tur|p)|vlt|p(?:re?|ar)|um?|l[et]|ge|i)|n(?:atural|exist|les)|d(?:i(?:am(?:ond)?|v(?:ide)?)|tri|ash|ot|d)|backsim|l(?:esdot|squ|dqu)o|g(?:esdoto|E)|U(?:p(?:Arrow|si)|nion|arr)|angrtvb|p(?:l(?:anckh|us(?:d[ou]|[be]))|ar(?:sl|t)|r(?:od|nE|E)|erp|iv|m)|n(?:ot(?:niv[a-c]|in(?:v[a-c]|E))|rarr[cw]|s(?:u[bp][Ee]|c[er])|part|v(?:le|g[et])|g(?:es|E)|c(?:ap|y)|apE|lE|iv|Ll|Gg)|m(?:inus(?:du|b)|ale|cy|p)|rbr(?:k(?:sl[du]|e)|ac[ek])|(?:suphsu|tris|rcu|lcu)b|supdsub|(?:s[ew]a|n[ew]a)rrow|(?:b(?:ecaus|sim)|n(?:[lr]tri|bump)|csu[bp])e|equivDD|u(?:rcorn|lcorn|psi)|timesb|s(?:u(?:p(?:set)?|b(?:set)?)|q(?:su[bp]|u)|i(?:gma|m)|olb?|dot|mt|fr|ce?)|p(?:l(?:anck|us)|r(?:op|ec?)?|ara?|i)|o(?:times|r(?:d(?:er)?)?)|m(?:i(?:nusd?|d)|a(?:p(?:sto)?|lt)|u)|rmoust|g(?:e(?:s(?:dot|l)?|q)?|sim|n(?:ap|e)|t|l|g)|(?:spade|heart)s|c(?:u(?:rarr|larr|p)|o(?:m(?:ma|p)|lon|py|ng)|lubs|heck|cups|irc?|ent|ap)|colone|a(?:p(?:prox)?|n(?:g(?:msd|rt)?|d)|symp|f|c)|S(?:quare|u[bp]|c)|Subset|b(?:ecaus|sim)|vsu[bp]n[Ee]|s(?:u(?:psu[bp]|b(?:su[bp]|n[Ee]|E)|pn[Ee]|p[1-3E]|m)|q(?:u(?:ar[ef]|f)|su[bp]e)|igma[fv]|etmn|dot[be]|par|mid|hc?y|c[Ey])|f(?:rac(?:78|5[68]|45|3[458]|2[35]|1[2-68])|fr)|e(?:m(?:sp1[34]|ptyv)|psiv|c(?:irc|y)|t[ah]|ng|ll|fr|e)|(?:kappa|isins|vBar|fork|rho|phi|n[GL]t)v|divonx|V(?:dashl|ee)|gammad|G(?:ammad|cy|[Tgt])|[Ldhlt]strok|[HT]strok|(?:c(?:ylct|hc)|(?:s(?:oft|hch)|hard|S(?:OFT|HCH)|jser|J(?:ser|uk)|HARD|tsh|TSH|juk|iuk|I(?:uk|[EO])|zh|yi|nj|lj|k[hj]|gj|dj|ZH|Y[AIU]|NJ|LJ|K[HJ]|GJ|D[JSZ])c|ubrc|Ubrc|(?:yu|i[eo]|dz|v|p|f)c|TSc|SHc|CHc|Vc|Pc|Mc|Fc)y|(?:(?:wre|jm)at|dalet|a(?:ngs|le)p|imat|[lr]ds)h|[CLRUceglnou]acute|ff?llig|(?:f(?:fi|[ij])|sz|oe|ij|ae|OE|IJ)lig|r(?:a(?:tio|rr|ng)|tri|par|eal)|s[ew]arr|s(?:qc[au]p|mte)|prime|rarrb|i(?:n(?:fin|t)?|sin|t|i|c)|e(?:quiv|m(?:pty|sp)|p(?:si|ar)|cir|l|g)|kappa|isins|ncong|doteq|(?:wedg|sim)e|nsime|rsquo|rdquo|[lr]haru|V(?:dash|ert)|Tilde|lrhar|gamma|Equal|UpTee|n(?:[lr]tri|bump)|C(?:olon|up|ap)|v(?:arpi|ert)|u(?:psih|ml)|vnsu[bp]|r(?:tri[ef]|e(?:als|g)|a(?:rr[cw]|ng[de]|ce)|sh|lm|x)|rhard|sim[gl]E|i(?:sin[Ev]|mage|f[fr]|cy)|harrw|(?:n[gl]|l)eqq|g(?:sim[el]|tcc|e(?:qq|l)|nE|l[Eaj]|gg|ap)|ocirc|starf|utrif|d(?:trif|i(?:ams|e)|ashv|sc[ry]|fr|eg)|[du]har[lr]|T(?:HORN|a[bu])|(?:TRAD|[gl]vn)E|odash|[EUaeu]o(?:gon|pf)|alpha|[IJOUYgjuy]c(?:irc|y)|v(?:arr|ee)|succ|sim[gl]|harr|ln(?:ap|e)|lesg|(?:n[gl]|l)eq|ocir|star|utri|vBar|fork|su[bp]e|nsim|lneq|gneq|csu[bp]|zwn?j|yacy|x(?:opf|i)|scnE|o(?:r(?:d[fm]|v)|mid|lt|hm|gt|fr|cy|S)|scap|rsqb|ropf|ltcc|tsc[ry]|QUOT|[EOUYao]uml|rho|phi|n[GL]t|e[gl]s|ngt|I(?:nt|m)|nis|rfr|rcy|lnE|lEg|ufr|S(?:um|cy)|R(?:sh|ho)|psi|Ps?i|[NRTt]cy|L(?:sh|cy|[Tt])|kcy|Kcy|Hat|REG|[Zdz]cy|wr|lE|wp|Xi|Nu|Mu)(;)',
name: 'constant.language.character-reference.named.html',
captures: {
1: {
name: 'punctuation.definition.character-reference.begin.html'
},
2: {
name: 'keyword.control.character-reference.html'
},
3: {
name: 'punctuation.definition.character-reference.end.html'
}
}
},
'commonmark-code-fenced-apib': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:api\\x2dblueprint|(?:.*\\.)?apib))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.apib.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.apib',
patterns: [
{
include: 'text.html.markdown.source.gfm.apib'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:api\\x2dblueprint|(?:.*\\.)?apib))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.apib.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.apib',
patterns: [
{
include: 'text.html.markdown.source.gfm.apib'
}
]
}
]
}
]
},
'commonmark-code-fenced-asciidoc': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:adoc|asciidoc)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.asciidoc.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.asciidoc',
patterns: [
{
include: 'text.html.asciidoc'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:adoc|asciidoc)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.asciidoc.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.asciidoc',
patterns: [
{
include: 'text.html.asciidoc'
}
]
}
]
}
]
},
'commonmark-code-fenced-c': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:dtrace|dtrace\\x2dscript|oncrpc|rpc|rpcgen|unified\\x2dparallel\\x2dc|x\\x2dbitmap|x\\x2dpixmap|xdr|(?:.*\\.)?(?:c|cats|h|idc|opencl|upc|xbm|xpm|xs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.c.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.c',
patterns: [
{
include: 'source.c'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:dtrace|dtrace\\x2dscript|oncrpc|rpc|rpcgen|unified\\x2dparallel\\x2dc|x\\x2dbitmap|x\\x2dpixmap|xdr|(?:.*\\.)?(?:c|cats|h|idc|opencl|upc|xbm|xpm|xs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.c.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.c',
patterns: [
{
include: 'source.c'
}
]
}
]
}
]
},
'commonmark-code-fenced-clojure': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:clojure|rouge|(?:.*\\.)?(?:boot|cl2|clj|cljc|cljs|cljs\\.hl|cljscm|cljx|edn|hic|rg|wisp)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.clojure.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.clojure',
patterns: [
{
include: 'source.clojure'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:clojure|rouge|(?:.*\\.)?(?:boot|cl2|clj|cljc|cljs|cljs\\.hl|cljscm|cljx|edn|hic|rg|wisp)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.clojure.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.clojure',
patterns: [
{
include: 'source.clojure'
}
]
}
]
}
]
},
'commonmark-code-fenced-coffee': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:coffee\\x2dscript|coffeescript|(?:.*\\.)?(?:_coffee|cjsx|coffee|cson|em|emberscript|iced)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.coffee.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.coffee',
patterns: [
{
include: 'source.coffee'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:coffee\\x2dscript|coffeescript|(?:.*\\.)?(?:_coffee|cjsx|coffee|cson|em|emberscript|iced)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.coffee.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.coffee',
patterns: [
{
include: 'source.coffee'
}
]
}
]
}
]
},
'commonmark-code-fenced-console': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:pycon|python\\x2dconsole))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.console.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.console',
patterns: [
{
include: 'text.python.console'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:pycon|python\\x2dconsole))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.console.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.console',
patterns: [
{
include: 'text.python.console'
}
]
}
]
}
]
},
'commonmark-code-fenced-cpp': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:ags|ags\\x2dscript|asymptote|c\\+\\+|edje\\x2ddata\\x2dcollection|game\\x2dmaker\\x2dlanguage|swig|(?:.*\\.)?(?:asc|ash|asy|c\\+\\+|cc|cp|cpp|cppm|cxx|edc|gml|h\\+\\+|hh|hpp|hxx|inl|ino|ipp|ixx|metal|re|tcc|tpp|txx)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.cpp.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.cpp',
patterns: [
{
include: 'source.c++'
},
{
include: 'source.cpp'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:ags|ags\\x2dscript|asymptote|c\\+\\+|edje\\x2ddata\\x2dcollection|game\\x2dmaker\\x2dlanguage|swig|(?:.*\\.)?(?:asc|ash|asy|c\\+\\+|cc|cp|cpp|cppm|cxx|edc|gml|h\\+\\+|hh|hpp|hxx|inl|ino|ipp|ixx|metal|re|tcc|tpp|txx)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.cpp.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.cpp',
patterns: [
{
include: 'source.c++'
},
{
include: 'source.cpp'
}
]
}
]
}
]
},
'commonmark-code-fenced-cs': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:beef|c#|cakescript|csharp|(?:.*\\.)?(?:bf|cake|cs|cs\\.pp|csx|eq|linq|uno)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.cs.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.cs',
patterns: [
{
include: 'source.cs'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:beef|c#|cakescript|csharp|(?:.*\\.)?(?:bf|cake|cs|cs\\.pp|csx|eq|linq|uno)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.cs.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.cs',
patterns: [
{
include: 'source.cs'
}
]
}
]
}
]
},
'commonmark-code-fenced-css': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?css))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.css.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.css',
patterns: [
{
include: 'source.css'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?css))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.css.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.css',
patterns: [
{
include: 'source.css'
}
]
}
]
}
]
},
'commonmark-code-fenced-diff': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:udiff|(?:.*\\.)?(?:diff|patch)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.diff.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.diff',
patterns: [
{
include: 'source.diff'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:udiff|(?:.*\\.)?(?:diff|patch)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.diff.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.diff',
patterns: [
{
include: 'source.diff'
}
]
}
]
}
]
},
'commonmark-code-fenced-dockerfile': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:containerfile|(?:.*\\.)?dockerfile))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.dockerfile.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.dockerfile',
patterns: [
{
include: 'source.dockerfile'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:containerfile|(?:.*\\.)?dockerfile))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.dockerfile.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.dockerfile',
patterns: [
{
include: 'source.dockerfile'
}
]
}
]
}
]
},
'commonmark-code-fenced-elixir': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:elixir|(?:.*\\.)?(?:ex|exs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.elixir.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.elixir',
patterns: [
{
include: 'source.elixir'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:elixir|(?:.*\\.)?(?:ex|exs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.elixir.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.elixir',
patterns: [
{
include: 'source.elixir'
}
]
}
]
}
]
},
'commonmark-code-fenced-elm': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?elm))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.elm.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.elm',
patterns: [
{
include: 'source.elm'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?elm))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.elm.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.elm',
patterns: [
{
include: 'source.elm'
}
]
}
]
}
]
},
'commonmark-code-fenced-erlang': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:erlang|(?:.*\\.)?(?:app|app\\.src|erl|es|escript|hrl|xrl|yrl)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.erlang.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.erlang',
patterns: [
{
include: 'source.erlang'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:erlang|(?:.*\\.)?(?:app|app\\.src|erl|es|escript|hrl|xrl|yrl)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.erlang.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.erlang',
patterns: [
{
include: 'source.erlang'
}
]
}
]
}
]
},
'commonmark-code-fenced-gitconfig': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:git\\x2dconfig|gitmodules|(?:.*\\.)?gitconfig))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.gitconfig.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.gitconfig',
patterns: [
{
include: 'source.gitconfig'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:git\\x2dconfig|gitmodules|(?:.*\\.)?gitconfig))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.gitconfig.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.gitconfig',
patterns: [
{
include: 'source.gitconfig'
}
]
}
]
}
]
},
'commonmark-code-fenced-go': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:golang|(?:.*\\.)?go))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.go.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.go',
patterns: [
{
include: 'source.go'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:golang|(?:.*\\.)?go))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.go.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.go',
patterns: [
{
include: 'source.go'
}
]
}
]
}
]
},
'commonmark-code-fenced-graphql': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:gql|graphql|graphqls)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.graphql.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.graphql',
patterns: [
{
include: 'source.graphql'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:gql|graphql|graphqls)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.graphql.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.graphql',
patterns: [
{
include: 'source.graphql'
}
]
}
]
}
]
},
'commonmark-code-fenced-haskell': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:c2hs|c2hs\\x2dhaskell|frege|haskell|(?:.*\\.)?(?:chs|dhall|hs|hs\\x2dboot|hsc)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.haskell.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.haskell',
patterns: [
{
include: 'source.haskell'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:c2hs|c2hs\\x2dhaskell|frege|haskell|(?:.*\\.)?(?:chs|dhall|hs|hs\\x2dboot|hsc)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.haskell.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.haskell',
patterns: [
{
include: 'source.haskell'
}
]
}
]
}
]
},
'commonmark-code-fenced-html': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:html|(?:.*\\.)?(?:hta|htm|html\\.hl|kit|mtml|xht|xhtml)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.html.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.html',
patterns: [
{
include: 'text.html.basic'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:html|(?:.*\\.)?(?:hta|htm|html\\.hl|kit|mtml|xht|xhtml)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.html.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.html',
patterns: [
{
include: 'text.html.basic'
}
]
}
]
}
]
},
'commonmark-code-fenced-ini': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:altium|altium\\x2ddesigner|dosini|(?:.*\\.)?(?:cnf|dof|ini|lektorproject|outjob|pcbdoc|prefs|prjpcb|properties|schdoc|url)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.ini.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ini',
patterns: [
{
include: 'source.ini'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:altium|altium\\x2ddesigner|dosini|(?:.*\\.)?(?:cnf|dof|ini|lektorproject|outjob|pcbdoc|prefs|prjpcb|properties|schdoc|url)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.ini.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ini',
patterns: [
{
include: 'source.ini'
}
]
}
]
}
]
},
'commonmark-code-fenced-java': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:chuck|unrealscript|(?:.*\\.)?(?:ck|jav|java|jsh|uc)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.java.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.java',
patterns: [
{
include: 'source.java'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:chuck|unrealscript|(?:.*\\.)?(?:ck|jav|java|jsh|uc)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.java.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.java',
patterns: [
{
include: 'source.java'
}
]
}
]
}
]
},
'commonmark-code-fenced-js': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:cycript|javascript\\+erb|json\\x2dwith\\x2dcomments|node|qt\\x2dscript|(?:.*\\.)?(?:_js|bones|cjs|code\\x2dsnippets|code\\x2dworkspace|cy|es6|jake|javascript|js|js\\.erb|jsb|jscad|jsfl|jslib|jsm|json5|jsonc|jsonld|jspre|jss|jsx|mjs|njs|pac|sjs|ssjs|sublime\\x2dbuild|sublime\\x2dcolor\\x2dscheme|sublime\\x2dcommands|sublime\\x2dcompletions|sublime\\x2dkeymap|sublime\\x2dmacro|sublime\\x2dmenu|sublime\\x2dmousemap|sublime\\x2dproject|sublime\\x2dsettings|sublime\\x2dtheme|sublime\\x2dworkspace|sublime_metrics|sublime_session|xsjs|xsjslib)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.js.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.js',
patterns: [
{
include: 'source.js'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:cycript|javascript\\+erb|json\\x2dwith\\x2dcomments|node|qt\\x2dscript|(?:.*\\.)?(?:_js|bones|cjs|code\\x2dsnippets|code\\x2dworkspace|cy|es6|jake|javascript|js|js\\.erb|jsb|jscad|jsfl|jslib|jsm|json5|jsonc|jsonld|jspre|jss|jsx|mjs|njs|pac|sjs|ssjs|sublime\\x2dbuild|sublime\\x2dcolor\\x2dscheme|sublime\\x2dcommands|sublime\\x2dcompletions|sublime\\x2dkeymap|sublime\\x2dmacro|sublime\\x2dmenu|sublime\\x2dmousemap|sublime\\x2dproject|sublime\\x2dsettings|sublime\\x2dtheme|sublime\\x2dworkspace|sublime_metrics|sublime_session|xsjs|xsjslib)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.js.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.js',
patterns: [
{
include: 'source.js'
}
]
}
]
}
]
},
'commonmark-code-fenced-json': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:ecere\\x2dprojects|ipython\\x2dnotebook|jupyter\\x2dnotebook|max|max/msp|maxmsp|oasv2\\x2djson|oasv3\\x2djson|(?:.*\\.)?(?:4dform|4dproject|avsc|epj|geojson|gltf|har|ice|ipynb|json|json|json|json\\x2dtmlanguage|jsonl|maxhelp|maxpat|maxproj|mcmeta|mxt|pat|sarif|tfstate|tfstate\\.backup|topojson|webapp|webmanifest|yy|yyp)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.json.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.json',
patterns: [
{
include: 'source.json'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:ecere\\x2dprojects|ipython\\x2dnotebook|jupyter\\x2dnotebook|max|max/msp|maxmsp|oasv2\\x2djson|oasv3\\x2djson|(?:.*\\.)?(?:4dform|4dproject|avsc|epj|geojson|gltf|har|ice|ipynb|json|json|json|json\\x2dtmlanguage|jsonl|maxhelp|maxpat|maxproj|mcmeta|mxt|pat|sarif|tfstate|tfstate\\.backup|topojson|webapp|webmanifest|yy|yyp)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.json.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.json',
patterns: [
{
include: 'source.json'
}
]
}
]
}
]
},
'commonmark-code-fenced-julia': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:julia|(?:.*\\.)?jl))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.julia.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.julia',
patterns: [
{
include: 'source.julia'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:julia|(?:.*\\.)?jl))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.julia.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.julia',
patterns: [
{
include: 'source.julia'
}
]
}
]
}
]
},
'commonmark-code-fenced-kotlin': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:gradle\\x2dkotlin\\x2ddsl|kotlin|(?:.*\\.)?(?:gradle\\.kts|kt|ktm|kts)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.kotlin.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.kotlin',
patterns: [
{
include: 'source.kotlin'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:gradle\\x2dkotlin\\x2ddsl|kotlin|(?:.*\\.)?(?:gradle\\.kts|kt|ktm|kts)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.kotlin.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.kotlin',
patterns: [
{
include: 'source.kotlin'
}
]
}
]
}
]
},
'commonmark-code-fenced-less': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:less\\x2dcss|(?:.*\\.)?less))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.less.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.less',
patterns: [
{
include: 'source.css.less'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:less\\x2dcss|(?:.*\\.)?less))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.less.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.less',
patterns: [
{
include: 'source.css.less'
}
]
}
]
}
]
},
'commonmark-code-fenced-lua': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:fcgi|lua|nse|p8|pd_lua|rbxs|rockspec|wlua)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.lua.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.lua',
patterns: [
{
include: 'source.lua'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:fcgi|lua|nse|p8|pd_lua|rbxs|rockspec|wlua)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.lua.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.lua',
patterns: [
{
include: 'source.lua'
}
]
}
]
}
]
},
'commonmark-code-fenced-makefile': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:bsdmake|mf|(?:.*\\.)?(?:mak|make|makefile|mk|mkfile)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.makefile.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.makefile',
patterns: [
{
include: 'source.makefile'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:bsdmake|mf|(?:.*\\.)?(?:mak|make|makefile|mk|mkfile)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.makefile.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.makefile',
patterns: [
{
include: 'source.makefile'
}
]
}
]
}
]
},
'commonmark-code-fenced-md': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:md|pandoc|rmarkdown|(?:.*\\.)?(?:livemd|markdown|mdown|mdwn|mkd|mkdn|mkdown|qmd|rmd|ronn|scd|workbook)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.md.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.md',
patterns: [
{
include: 'text.md'
},
{
include: 'source.gfm'
},
{
include: 'text.html.markdown'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:md|pandoc|rmarkdown|(?:.*\\.)?(?:livemd|markdown|mdown|mdwn|mkd|mkdn|mkdown|qmd|rmd|ronn|scd|workbook)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.md.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.md',
patterns: [
{
include: 'text.md'
},
{
include: 'source.gfm'
},
{
include: 'text.html.markdown'
}
]
}
]
}
]
},
'commonmark-code-fenced-mdx': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?mdx))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.mdx.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.mdx',
patterns: [
{
include: 'source.mdx'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?mdx))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.mdx.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.mdx',
patterns: [
{
include: 'source.mdx'
}
]
}
]
}
]
},
'commonmark-code-fenced-objc': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:obj\\x2dc|objc|objective\\x2dc|objectivec))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.objc.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.objc',
patterns: [
{
include: 'source.objc'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:obj\\x2dc|objc|objective\\x2dc|objectivec))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.objc.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.objc',
patterns: [
{
include: 'source.objc'
}
]
}
]
}
]
},
'commonmark-code-fenced-perl': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:cperl|(?:.*\\.)?(?:cgi|perl|ph|pl|plx|pm|psgi|t)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.perl.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.perl',
patterns: [
{
include: 'source.perl'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:cperl|(?:.*\\.)?(?:cgi|perl|ph|pl|plx|pm|psgi|t)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.perl.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.perl',
patterns: [
{
include: 'source.perl'
}
]
}
]
}
]
},
'commonmark-code-fenced-php': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:html\\+php|inc|php|(?:.*\\.)?(?:aw|ctp|php3|php4|php5|phps|phpt|phtml)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.php.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.php',
patterns: [
{
include: 'text.html.php'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:html\\+php|inc|php|(?:.*\\.)?(?:aw|ctp|php3|php4|php5|phps|phpt|phtml)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.php.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.php',
patterns: [
{
include: 'text.html.php'
}
]
}
]
}
]
},
'commonmark-code-fenced-python': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:bazel|easybuild|python|python3|rusthon|snakemake|starlark|xonsh|(?:.*\\.)?(?:bzl|eb|gyp|gypi|lmi|py|py3|pyde|pyi|pyp|pyt|pyw|rpy|sage|sagews|smk|snakefile|spec|tac|wsgi|xpy|xsh)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.python.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.python',
patterns: [
{
include: 'source.python'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:bazel|easybuild|python|python3|rusthon|snakemake|starlark|xonsh|(?:.*\\.)?(?:bzl|eb|gyp|gypi|lmi|py|py3|pyde|pyi|pyp|pyt|pyw|rpy|sage|sagews|smk|snakefile|spec|tac|wsgi|xpy|xsh)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.python.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.python',
patterns: [
{
include: 'source.python'
}
]
}
]
}
]
},
'commonmark-code-fenced-r': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:rscript|splus|(?:.*\\.)?(?:r|rd|rsx)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.r.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.r',
patterns: [
{
include: 'source.r'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:rscript|splus|(?:.*\\.)?(?:r|rd|rsx)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.r.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.r',
patterns: [
{
include: 'source.r'
}
]
}
]
}
]
},
'commonmark-code-fenced-raku': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:perl\\x2d6|perl6|pod\\x2d6|(?:.*\\.)?(?:6pl|6pm|nqp|p6|p6l|p6m|pl6|pm6|pod|pod6|raku|rakumod)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.raku.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.raku',
patterns: [
{
include: 'source.raku'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:perl\\x2d6|perl6|pod\\x2d6|(?:.*\\.)?(?:6pl|6pm|nqp|p6|p6l|p6m|pl6|pm6|pod|pod6|raku|rakumod)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.raku.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.raku',
patterns: [
{
include: 'source.raku'
}
]
}
]
}
]
},
'commonmark-code-fenced-ruby': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:jruby|macruby|(?:.*\\.)?(?:builder|druby|duby|eye|gemspec|god|jbuilder|mirah|mspec|pluginspec|podspec|prawn|rabl|rake|rb|rbi|rbuild|rbw|rbx|ru|ruby|thor|watchr)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.ruby.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ruby',
patterns: [
{
include: 'source.ruby'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:jruby|macruby|(?:.*\\.)?(?:builder|druby|duby|eye|gemspec|god|jbuilder|mirah|mspec|pluginspec|podspec|prawn|rabl|rake|rb|rbi|rbuild|rbw|rbx|ru|ruby|thor|watchr)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.ruby.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ruby',
patterns: [
{
include: 'source.ruby'
}
]
}
]
}
]
},
'commonmark-code-fenced-rust': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:rust|(?:.*\\.)?(?:rs|rs\\.in)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.rust.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.rust',
patterns: [
{
include: 'source.rust'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:rust|(?:.*\\.)?(?:rs|rs\\.in)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.rust.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.rust',
patterns: [
{
include: 'source.rust'
}
]
}
]
}
]
},
'commonmark-code-fenced-scala': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:kojo|sbt|sc|scala)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.scala.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.scala',
patterns: [
{
include: 'source.scala'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:kojo|sbt|sc|scala)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.scala.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.scala',
patterns: [
{
include: 'source.scala'
}
]
}
]
}
]
},
'commonmark-code-fenced-scss': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?scss))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.scss.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.scss',
patterns: [
{
include: 'source.css.scss'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?scss))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.scss.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.scss',
patterns: [
{
include: 'source.css.scss'
}
]
}
]
}
]
},
'commonmark-code-fenced-shell': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:abuild|alpine\\x2dabuild|apkbuild|envrc|gentoo\\x2debuild|gentoo\\x2declass|openrc|openrc\\x2drunscript|shell|shell\\x2dscript|(?:.*\\.)?(?:bash|bats|command|csh|ebuild|eclass|ksh|sh|sh\\.in|tcsh|tmux|tool|zsh|zsh\\x2dtheme)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.shell.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.shell',
patterns: [
{
include: 'source.shell'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:abuild|alpine\\x2dabuild|apkbuild|envrc|gentoo\\x2debuild|gentoo\\x2declass|openrc|openrc\\x2drunscript|shell|shell\\x2dscript|(?:.*\\.)?(?:bash|bats|command|csh|ebuild|eclass|ksh|sh|sh\\.in|tcsh|tmux|tool|zsh|zsh\\x2dtheme)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.shell.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.shell',
patterns: [
{
include: 'source.shell'
}
]
}
]
}
]
},
'commonmark-code-fenced-shell-session': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:bash\\x2dsession|console|shellsession|(?:.*\\.)?sh\\x2dsession))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.shell-session.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.shell-session',
patterns: [
{
include: 'text.shell-session'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:bash\\x2dsession|console|shellsession|(?:.*\\.)?sh\\x2dsession))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.shell-session.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.shell-session',
patterns: [
{
include: 'text.shell-session'
}
]
}
]
}
]
},
'commonmark-code-fenced-sql': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:plpgsql|sqlpl|(?:.*\\.)?(?:cql|db2|ddl|mysql|pgsql|prc|sql|sql|sql|tab|udf|viw)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.sql.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.sql',
patterns: [
{
include: 'source.sql'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:plpgsql|sqlpl|(?:.*\\.)?(?:cql|db2|ddl|mysql|pgsql|prc|sql|sql|sql|tab|udf|viw)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.sql.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.sql',
patterns: [
{
include: 'source.sql'
}
]
}
]
}
]
},
'commonmark-code-fenced-svg': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?svg))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.svg.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.svg',
patterns: [
{
include: 'text.xml.svg'
},
{
include: 'text.xml'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?svg))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.svg.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.svg',
patterns: [
{
include: 'text.xml.svg'
},
{
include: 'text.xml'
}
]
}
]
}
]
},
'commonmark-code-fenced-swift': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?swift))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.swift.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.swift',
patterns: [
{
include: 'source.swift'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?swift))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.swift.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.swift',
patterns: [
{
include: 'source.swift'
}
]
}
]
}
]
},
'commonmark-code-fenced-toml': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?toml))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.toml.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.toml',
patterns: [
{
include: 'source.toml'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?toml))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.toml.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.toml',
patterns: [
{
include: 'source.toml'
}
]
}
]
}
]
},
'commonmark-code-fenced-ts': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:typescript|(?:.*\\.)?(?:cts|mts|ts)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.ts.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ts',
patterns: [
{
include: 'source.ts'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:typescript|(?:.*\\.)?(?:cts|mts|ts)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.ts.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ts',
patterns: [
{
include: 'source.ts'
}
]
}
]
}
]
},
'commonmark-code-fenced-tsx': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?tsx))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.tsx.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.tsx',
patterns: [
{
include: 'source.tsx'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?tsx))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.tsx.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.tsx',
patterns: [
{
include: 'source.tsx'
}
]
}
]
}
]
},
'commonmark-code-fenced-vbnet': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:fb|freebasic|realbasic|vb\\x2d\\.net|vb\\.net|vbnet|vbscript|visual\\x2dbasic|visual\\x2dbasic\\x2d\\.net|(?:.*\\.)?(?:bi|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.vbnet.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.vbnet',
patterns: [
{
include: 'source.vbnet'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:fb|freebasic|realbasic|vb\\x2d\\.net|vb\\.net|vbnet|vbscript|visual\\x2dbasic|visual\\x2dbasic\\x2d\\.net|(?:.*\\.)?(?:bi|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.vbnet.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.vbnet',
patterns: [
{
include: 'source.vbnet'
}
]
}
]
}
]
},
'commonmark-code-fenced-xml': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:collada|eagle|labview|web\\x2dontology\\x2dlanguage|xpages|(?:.*\\.)?(?:adml|admx|ant|axaml|axml|brd|builds|ccproj|ccxml|clixml|cproject|cscfg|csdef|csproj|ct|dae|depproj|dita|ditamap|ditaval|dll\\.config|dotsettings|filters|fsproj|fxml|glade|gmx|grxml|hzp|iml|ivy|jelly|jsproj|kml|launch|lvclass|lvlib|lvproj|mdpolicy|mjml|mxml|natvis|ndproj|nproj|nuspec|odd|osm|owl|pkgproj|proj|props|ps1xml|psc1|pt|qhelp|rdf|resx|rss|sch|sch|scxml|sfproj|shproj|srdf|storyboard|sublime\\x2dsnippet|targets|tml|ui|urdf|ux|vbproj|vcxproj|vsixmanifest|vssettings|vstemplate|vxml|wixproj|wsdl|wsf|wxi|wxl|wxs|x3d|xacro|xaml|xib|xlf|xliff|xmi|xml|xml\\.dist|xmp|xpl|xproc|xproj|xsd|xsp\\x2dconfig|xsp\\.metadata|xspec|xul|zcml)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.xml.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.xml',
patterns: [
{
include: 'text.xml'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:collada|eagle|labview|web\\x2dontology\\x2dlanguage|xpages|(?:.*\\.)?(?:adml|admx|ant|axaml|axml|brd|builds|ccproj|ccxml|clixml|cproject|cscfg|csdef|csproj|ct|dae|depproj|dita|ditamap|ditaval|dll\\.config|dotsettings|filters|fsproj|fxml|glade|gmx|grxml|hzp|iml|ivy|jelly|jsproj|kml|launch|lvclass|lvlib|lvproj|mdpolicy|mjml|mxml|natvis|ndproj|nproj|nuspec|odd|osm|owl|pkgproj|proj|props|ps1xml|psc1|pt|qhelp|rdf|resx|rss|sch|sch|scxml|sfproj|shproj|srdf|storyboard|sublime\\x2dsnippet|targets|tml|ui|urdf|ux|vbproj|vcxproj|vsixmanifest|vssettings|vstemplate|vxml|wixproj|wsdl|wsf|wxi|wxl|wxs|x3d|xacro|xaml|xib|xlf|xliff|xmi|xml|xml\\.dist|xmp|xpl|xproc|xproj|xsd|xsp\\x2dconfig|xsp\\.metadata|xspec|xul|zcml)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.xml.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.xml',
patterns: [
{
include: 'text.xml'
}
]
}
]
}
]
},
'commonmark-code-fenced-yaml': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:jar\\x2dmanifest|kaitai\\x2dstruct|oasv2\\x2dyaml|oasv3\\x2dyaml|unity3d\\x2dasset|yaml|yml|(?:.*\\.)?(?:anim|asset|ksy|lkml|lookml|mat|meta|mir|prefab|raml|reek|rviz|sublime\\x2dsyntax|syntax|unity|yaml\\x2dtmlanguage|yaml\\.sed|yml\\.mysql)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.yaml.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.yaml',
patterns: [
{
include: 'source.yaml'
}
]
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:jar\\x2dmanifest|kaitai\\x2dstruct|oasv2\\x2dyaml|oasv3\\x2dyaml|unity3d\\x2dasset|yaml|yml|(?:.*\\.)?(?:anim|asset|ksy|lkml|lookml|mat|meta|mir|prefab|raml|reek|rviz|sublime\\x2dsyntax|syntax|unity|yaml\\x2dtmlanguage|yaml\\.sed|yml\\.mysql)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.mdx'
},
2: {
name: 'entity.name.function.mdx',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.mdx'
}
},
name: 'markup.code.yaml.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.yaml',
patterns: [
{
include: 'source.yaml'
}
]
}
]
}
]
}
},
scopeName: 'source.mdx'
}
export default grammar
| wooorm/markdown-tm-language | 51 | really good syntax highlighting for markdown and MDX | JavaScript | wooorm | Titus | |
text.md.js | JavaScript | /* eslint-disable no-template-curly-in-string */
/**
* @import {Grammar} from "@wooorm/starry-night"
*/
/** @type {Grammar} */
const grammar = {
extensions: [
'.md',
'.livemd',
'.markdown',
'.mdown',
'.mdwn',
'.mkd',
'.mkdn',
'.mkdown',
'.ronn',
'.scd',
'.workbook'
],
names: ['markdown', 'md', 'pandoc'],
patterns: [
{
include: '#markdown-frontmatter'
},
{
include: '#markdown-sections'
}
],
repository: {
'markdown-frontmatter': {
patterns: [
{
include: '#extension-toml'
},
{
include: '#extension-yaml'
}
]
},
'markdown-sections': {
patterns: [
{
include: '#commonmark-block-quote'
},
{
include: '#commonmark-code-fenced'
},
{
include: '#commonmark-code-indented'
},
{
include: '#extension-gfm-footnote-definition'
},
{
include: '#commonmark-definition'
},
{
include: '#commonmark-heading-atx'
},
{
include: '#commonmark-thematic-break'
},
{
include: '#commonmark-heading-setext'
},
{
include: '#commonmark-html-flow'
},
{
include: '#commonmark-list-item'
},
{
include: '#extension-directive-leaf'
},
{
include: '#extension-directive-container'
},
{
include: '#extension-gfm-table'
},
{
include: '#extension-math-flow'
},
{
include: '#commonmark-paragraph'
}
]
},
'markdown-string': {
patterns: [
{
include: '#commonmark-character-escape'
},
{
include: '#commonmark-character-reference'
}
]
},
'markdown-text': {
patterns: [
{
include: '#commonmark-attention'
},
{
include: '#commonmark-autolink'
},
{
include: '#commonmark-character-escape'
},
{
include: '#commonmark-character-reference'
},
{
include: '#commonmark-code-text'
},
{
include: '#commonmark-hard-break-trailing'
},
{
include: '#commonmark-hard-break-escape'
},
{
include: '#commonmark-html-text'
},
{
include: '#commonmark-label-end'
},
{
include: '#extension-gfm-footnote-call'
},
{
include: '#commonmark-label-start'
},
{
include: '#extension-directive-text'
},
{
include: '#extension-gfm-autolink-literal'
},
{
include: '#extension-gfm-strikethrough'
},
{
include: '#extension-github-gemoji'
},
{
include: '#extension-github-mention'
},
{
include: '#extension-github-reference'
},
{
include: '#extension-math-text'
}
]
},
'commonmark-autolink': {
patterns: [
{
match:
"(<)((?:[0-9A-Za-z!\"#$%&'*+\\-\\/=?^_`{|}~'])+@(?:[0-9A-Za-z](?:[0-9A-Za-z-]{0,61}[0-9A-Za-z])?(?:\\.[0-9A-Za-z](?:[0-9A-Za-z-]{0,61}[A-Za-z])?)*))(>)",
captures: {
1: {
name: 'string.other.begin.autolink.md'
},
2: {
name: 'string.other.link.autolink.email.md'
},
3: {
name: 'string.other.end.autolink.md'
}
}
},
{
match: '(<)((?:[A-Za-z][+\\-.0-9A-Za-z]{0,31}):[^\\p{Cc}\\ ]*?)(>)',
captures: {
1: {
name: 'string.other.begin.autolink.md'
},
2: {
name: 'string.other.link.autolink.protocol.md'
},
3: {
name: 'string.other.end.autolink.md'
}
}
}
]
},
'commonmark-attention': {
patterns: [
{
match: '(?<=\\S)\\*{3,}|\\*{3,}(?=\\S)',
name: 'string.other.strong.emphasis.asterisk.md'
},
{
match:
'(?<=[\\p{L}\\p{N}])_{3,}(?![\\p{L}\\p{N}])|(?<=\\p{P})_{3,}|(?<![\\p{L}\\p{N}]|\\p{P})_{3,}(?!\\s)',
name: 'string.other.strong.emphasis.underscore.md'
},
{
match: '(?<=\\S)\\*{2}|\\*{2}(?=\\S)',
name: 'string.other.strong.asterisk.md'
},
{
match:
'(?<=[\\p{L}\\p{N}])_{2}(?![\\p{L}\\p{N}])|(?<=\\p{P})_{2}|(?<![\\p{L}\\p{N}]|\\p{P})_{2}(?!\\s)',
name: 'string.other.strong.underscore.md'
},
{
match: '(?<=\\S)\\*|\\*(?=\\S)',
name: 'string.other.emphasis.asterisk.md'
},
{
match:
'(?<=[\\p{L}\\p{N}])_(?![\\p{L}\\p{N}])|(?<=\\p{P})_|(?<![\\p{L}\\p{N}]|\\p{P})_(?!\\s)',
name: 'string.other.emphasis.underscore.md'
}
]
},
'commonmark-block-quote': {
begin: '(?:^|\\G)[ ]{0,3}(>)[ ]?',
beginCaptures: {
0: {
name: 'markup.quote.md'
},
1: {
name: 'punctuation.definition.quote.begin.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
name: 'markup.quote.md',
while: '(>)[ ]?',
whileCaptures: {
0: {
name: 'markup.quote.md'
},
1: {
name: 'punctuation.definition.quote.begin.md'
}
}
},
'commonmark-character-escape': {
match: '\\\\(?:[!"#$%&\'()*+,\\-.\\/:;<=>?@\\[\\\\\\]^_`{|}~])',
name: 'constant.language.character-escape.md'
},
'commonmark-character-reference': {
patterns: [
{
include: '#whatwg-html-data-character-reference-named-terminated'
},
{
match: '(&)(#)([Xx])([0-9A-Fa-f]{1,6})(;)',
name: 'constant.language.character-reference.numeric.hexadecimal.html',
captures: {
1: {
name: 'punctuation.definition.character-reference.begin.html'
},
2: {
name: 'punctuation.definition.character-reference.numeric.html'
},
3: {
name: 'punctuation.definition.character-reference.numeric.hexadecimal.html'
},
4: {
name: 'constant.numeric.integer.hexadecimal.html'
},
5: {
name: 'punctuation.definition.character-reference.end.html'
}
}
},
{
match: '(&)(#)([0-9]{1,7})(;)',
name: 'constant.language.character-reference.numeric.decimal.html',
captures: {
1: {
name: 'punctuation.definition.character-reference.begin.html'
},
2: {
name: 'punctuation.definition.character-reference.numeric.html'
},
3: {
name: 'constant.numeric.integer.decimal.html'
},
4: {
name: 'punctuation.definition.character-reference.end.html'
}
}
}
]
},
'commonmark-code-fenced': {
patterns: [
{
include: '#commonmark-code-fenced-apib'
},
{
include: '#commonmark-code-fenced-asciidoc'
},
{
include: '#commonmark-code-fenced-c'
},
{
include: '#commonmark-code-fenced-clojure'
},
{
include: '#commonmark-code-fenced-coffee'
},
{
include: '#commonmark-code-fenced-console'
},
{
include: '#commonmark-code-fenced-cpp'
},
{
include: '#commonmark-code-fenced-cs'
},
{
include: '#commonmark-code-fenced-css'
},
{
include: '#commonmark-code-fenced-diff'
},
{
include: '#commonmark-code-fenced-dockerfile'
},
{
include: '#commonmark-code-fenced-elixir'
},
{
include: '#commonmark-code-fenced-elm'
},
{
include: '#commonmark-code-fenced-erlang'
},
{
include: '#commonmark-code-fenced-gitconfig'
},
{
include: '#commonmark-code-fenced-go'
},
{
include: '#commonmark-code-fenced-graphql'
},
{
include: '#commonmark-code-fenced-haskell'
},
{
include: '#commonmark-code-fenced-html'
},
{
include: '#commonmark-code-fenced-ini'
},
{
include: '#commonmark-code-fenced-java'
},
{
include: '#commonmark-code-fenced-js'
},
{
include: '#commonmark-code-fenced-json'
},
{
include: '#commonmark-code-fenced-julia'
},
{
include: '#commonmark-code-fenced-kotlin'
},
{
include: '#commonmark-code-fenced-less'
},
{
include: '#commonmark-code-fenced-less'
},
{
include: '#commonmark-code-fenced-lua'
},
{
include: '#commonmark-code-fenced-makefile'
},
{
include: '#commonmark-code-fenced-md'
},
{
include: '#commonmark-code-fenced-mdx'
},
{
include: '#commonmark-code-fenced-objc'
},
{
include: '#commonmark-code-fenced-perl'
},
{
include: '#commonmark-code-fenced-php'
},
{
include: '#commonmark-code-fenced-php'
},
{
include: '#commonmark-code-fenced-python'
},
{
include: '#commonmark-code-fenced-r'
},
{
include: '#commonmark-code-fenced-raku'
},
{
include: '#commonmark-code-fenced-ruby'
},
{
include: '#commonmark-code-fenced-rust'
},
{
include: '#commonmark-code-fenced-scala'
},
{
include: '#commonmark-code-fenced-scss'
},
{
include: '#commonmark-code-fenced-shell'
},
{
include: '#commonmark-code-fenced-shell-session'
},
{
include: '#commonmark-code-fenced-sql'
},
{
include: '#commonmark-code-fenced-svg'
},
{
include: '#commonmark-code-fenced-swift'
},
{
include: '#commonmark-code-fenced-toml'
},
{
include: '#commonmark-code-fenced-ts'
},
{
include: '#commonmark-code-fenced-tsx'
},
{
include: '#commonmark-code-fenced-vbnet'
},
{
include: '#commonmark-code-fenced-xml'
},
{
include: '#commonmark-code-fenced-yaml'
},
{
include: '#commonmark-code-fenced-unknown'
}
]
},
'commonmark-code-fenced-unknown': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?:[^\\t\\n\\r` ])+)(?:[\\t ]+((?:[^\\n\\r`])+))?)?(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
contentName: 'markup.raw.code.fenced.md',
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.other.md'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?:[^\\t\\n\\r ])+)(?:[\\t ]+((?:[^\\n\\r])+))?)?(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
contentName: 'markup.raw.code.fenced.md',
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.other.md'
}
]
},
'commonmark-code-indented': {
match: '(?:^|\\G)(?:[ ]{4}|\\t)(.+?)$',
captures: {
1: {
name: 'markup.raw.code.indented.md'
}
},
name: 'markup.code.other.md'
},
'commonmark-code-text': {
match: '(?<!`)(`+)(?!`)(.+?)(?<!`)(\\1)(?!`)',
name: 'markup.code.other.md',
captures: {
1: {
name: 'string.other.begin.code.md'
},
2: {
name: 'markup.raw.code.md markup.inline.raw.code.md'
},
3: {
name: 'string.other.end.code.md'
}
}
},
'commonmark-definition': {
match:
'(?:^|\\G)[ ]{0,3}(\\[)((?:[^\\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+?)(\\])(:)[ \\t]*(?:(<)((?:[^\\n<\\\\>]|\\\\[<\\\\>]?)*)(>)|(\\g<destination_raw>))(?:[\\t ]+(?:(")((?:[^"\\\\]|\\\\["\\\\]?)*)(")|(\')((?:[^\'\\\\]|\\\\[\'\\\\]?)*)(\')|(\\()((?:[^\\)\\\\]|\\\\[\\)\\\\]?)*)(\\))))?$(?<destination_raw>(?!\\<)(?:(?:[^\\p{Cc}\\ \\\\\\(\\)]|\\\\[\\(\\)\\\\]?)|\\(\\g<destination_raw>*\\))+){0}',
name: 'meta.link.reference.def.md',
captures: {
1: {
name: 'string.other.begin.md'
},
2: {
name: 'entity.name.identifier.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
name: 'string.other.end.md'
},
4: {
name: 'punctuation.separator.key-value.md'
},
5: {
name: 'string.other.begin.destination.md'
},
6: {
name: 'string.other.link.destination.md',
patterns: [
{
include: '#markdown-string'
}
]
},
7: {
name: 'string.other.end.destination.md'
},
8: {
name: 'string.other.link.destination.md',
patterns: [
{
include: '#markdown-string'
}
]
},
9: {
name: 'string.other.begin.md'
},
10: {
name: 'string.quoted.double.md',
patterns: [
{
include: '#markdown-string'
}
]
},
11: {
name: 'string.other.end.md'
},
12: {
name: 'string.other.begin.md'
},
13: {
name: 'string.quoted.single.md',
patterns: [
{
include: '#markdown-string'
}
]
},
14: {
name: 'string.other.end.md'
},
15: {
name: 'string.other.begin.md'
},
16: {
name: 'string.quoted.paren.md',
patterns: [
{
include: '#markdown-string'
}
]
},
17: {
name: 'string.other.end.md'
}
}
},
'commonmark-hard-break-escape': {
match: '\\\\$',
name: 'constant.language.character-escape.line-ending.md'
},
'commonmark-hard-break-trailing': {
match: '( ){2,}$',
name: 'carriage-return constant.language.character-escape.line-ending.md'
},
'commonmark-heading-atx': {
patterns: [
{
match:
'(?:^|\\G)[ ]{0,3}(#{1}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.1.md',
captures: {
1: {
name: 'punctuation.definition.heading.md'
},
2: {
name: 'entity.name.section.md',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.md'
}
}
},
{
match:
'(?:^|\\G)[ ]{0,3}(#{2}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.2.md',
captures: {
1: {
name: 'punctuation.definition.heading.md'
},
2: {
name: 'entity.name.section.md',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.md'
}
}
},
{
match:
'(?:^|\\G)[ ]{0,3}(#{3}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.3.md',
captures: {
1: {
name: 'punctuation.definition.heading.md'
},
2: {
name: 'entity.name.section.md',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.md'
}
}
},
{
match:
'(?:^|\\G)[ ]{0,3}(#{4}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.4.md',
captures: {
1: {
name: 'punctuation.definition.heading.md'
},
2: {
name: 'entity.name.section.md',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.md'
}
}
},
{
match:
'(?:^|\\G)[ ]{0,3}(#{5}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.5.md',
captures: {
1: {
name: 'punctuation.definition.heading.md'
},
2: {
name: 'entity.name.section.md',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.md'
}
}
},
{
match:
'(?:^|\\G)[ ]{0,3}(#{6}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$',
name: 'markup.heading.atx.6.md',
captures: {
1: {
name: 'punctuation.definition.heading.md'
},
2: {
name: 'entity.name.section.md',
patterns: [
{
include: '#markdown-text'
}
]
},
3: {
name: 'punctuation.definition.heading.md'
}
}
}
]
},
'commonmark-heading-setext': {
patterns: [
{
match: '(?:^|\\G)[ ]{0,3}(={1,})[ \\t]*$',
name: 'markup.heading.setext.1.md'
},
{
match: '(?:^|\\G)[ ]{0,3}(-{1,})[ \\t]*$',
name: 'markup.heading.setext.2.md'
}
]
},
'commonmark-html-flow': {
patterns: [
{
match: '(?:^|\\G)[ ]{0,3}<!---?>[^\\n\\r]*$',
name: 'text.html.basic',
captures: {
0: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
begin: '(?=(?:^|\\G)[ ]{0,3}<!--)',
name: 'text.html.basic',
patterns: [
{
include: '#whatwg-html'
}
],
end: '(?<=-->)([^\\n\\r]*)$',
endCaptures: {
1: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
match: '(?:^|\\G)[ ]{0,3}<\\?>[^\\n\\r]*$',
name: 'text.html.basic',
captures: {
0: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
begin: '(?=(?:^|\\G)[ ]{0,3}<\\?)',
name: 'text.html.basic',
patterns: [
{
include: '#whatwg-html'
}
],
end: '(?<=\\?>)([^\\n\\r]*)$',
endCaptures: {
1: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
begin: '(?=(?:^|\\G)[ ]{0,3}<![A-Za-z])',
name: 'text.html.basic',
patterns: [
{
include: '#whatwg-html'
}
],
end: '(?<=\\>)([^\\n\\r]*)$',
endCaptures: {
1: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
begin: '(?=(?:^|\\G)[ ]{0,3}<!\\[CDATA\\[)',
name: 'text.html.basic',
patterns: [
{
include: '#whatwg-html'
}
],
end: '(?<=\\]\\]>)([^\\n\\r]*)$',
endCaptures: {
1: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
begin:
'(?=(?:^|\\G)[ ]{0,3}<(?i:textarea|script|style|pre)[\\t\\n\\r >])',
name: 'text.html.basic',
patterns: [
{
include: '#whatwg-html'
}
],
end: '</(?i:textarea|script|style|pre)[^\\n\\r]*$',
endCaptures: {
0: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
begin:
'(?=(?:^|\\G)[ ]{0,3}</?(?i:figcaption|(?:blockquot|ifram|figur)e|(?:menuite|para)m|optgroup|c(?:olgroup|aption|enter)|(?:f(?:rame|ield)se|tfoo)t|b(?:asefont|ody)|(?:noframe|detail)s|section|summary|a(?:(?:rticl|sid)e|ddress)|search|l(?:egend|ink)|d(?:i(?:alog|[rv])|[dlt])|header|footer|option|frame|track|thead|tbody|t(?:it|ab)le|menu|head|base|h(?:tml|[1-6r])|form|main|col|nav|t[hr]|li|td|ol|ul|p)(?:[\\t >]|\\/>|$))',
name: 'text.html.basic',
patterns: [
{
include: '#whatwg-html'
}
],
end: '^(?=[\\t ]*$)|$'
},
{
begin:
'(?=(?:^|\\G)[ ]{0,3}</[A-Za-z][-0-9A-Za-z]*[\\t\\n\\r ]*>(?:[\\t ]*$))',
name: 'text.html.basic',
patterns: [
{
include: '#whatwg-html'
}
],
end: '^(?=[\\t ]*$)|$'
},
{
begin:
'(?=(?:^|\\G)[ ]{0,3}<[A-Za-z][-0-9A-Za-z]*(?:[\\t\\n\\r ]+[:A-Z_a-z][\\-\\.0-9:A-Z_a-z]*(?:[\\t\\n\\r ]*=[\\t\\n\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\r "\'\\/<=>`]+))?)*(?:[\\t\\n\\r ]*\\/)?[\\t\\n\\r ]*>(?:[\\t ]*$))',
name: 'text.html.basic',
patterns: [
{
include: '#whatwg-html'
}
],
end: '^(?=[\\t ]*$)|$'
}
]
},
'commonmark-html-text': {
patterns: [
{
match: '<!--.*?-->',
name: 'text.html.basic',
captures: {
0: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
match: '<\\?.*?\\?>',
name: 'text.html.basic',
captures: {
0: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
match: '<![A-Za-z].*?>',
name: 'text.html.basic',
captures: {
0: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
match: '<!\\[CDATA\\[.*?\\]\\]>',
name: 'text.html.basic',
captures: {
0: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
match: '</[A-Za-z][-0-9A-Za-z]*[\\t\\n\\r ]*>',
name: 'text.html.basic',
captures: {
0: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
},
{
match:
'<[A-Za-z][-0-9A-Za-z]*(?:[\\t\\n\\r ]+[:A-Z_a-z][\\-\\.0-9:A-Z_a-z]*(?:[\\t\\n\\r ]*=[\\t\\n\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\r "\'\\/<=>`]+))?)*(?:[\\t\\n\\r ]*\\/)?[\\t\\n\\r ]*>',
name: 'text.html.basic',
captures: {
0: {
patterns: [
{
include: '#whatwg-html'
}
]
}
}
}
]
},
'commonmark-label-end': {
patterns: [
{
match:
'(\\])(\\()[\\t ]*(?:(?:(<)((?:[^\\n<\\\\>]|\\\\[<\\\\>]?)*)(>)|(\\g<destination_raw>))(?:[\\t ]+(?:(")((?:[^"\\\\]|\\\\["\\\\]?)*)(")|(\')((?:[^\'\\\\]|\\\\[\'\\\\]?)*)(\')|(\\()((?:[^\\)\\\\]|\\\\[\\)\\\\]?)*)(\\))))?)?[\\t ]*(\\))(?<destination_raw>(?!\\<)(?:(?:[^\\p{Cc}\\ \\\\\\(\\)]|\\\\[\\(\\)\\\\]?)|\\(\\g<destination_raw>*\\))+){0}',
captures: {
1: {
name: 'string.other.end.md'
},
2: {
name: 'string.other.begin.md'
},
3: {
name: 'string.other.begin.destination.md'
},
4: {
name: 'string.other.link.destination.md',
patterns: [
{
include: '#markdown-string'
}
]
},
5: {
name: 'string.other.end.destination.md'
},
6: {
name: 'string.other.link.destination.md',
patterns: [
{
include: '#markdown-string'
}
]
},
7: {
name: 'string.other.begin.md'
},
8: {
name: 'string.quoted.double.md',
patterns: [
{
include: '#markdown-string'
}
]
},
9: {
name: 'string.other.end.md'
},
10: {
name: 'string.other.begin.md'
},
11: {
name: 'string.quoted.single.md',
patterns: [
{
include: '#markdown-string'
}
]
},
12: {
name: 'string.other.end.md'
},
13: {
name: 'string.other.begin.md'
},
14: {
name: 'string.quoted.paren.md',
patterns: [
{
include: '#markdown-string'
}
]
},
15: {
name: 'string.other.end.md'
},
16: {
name: 'string.other.end.md'
}
}
},
{
match: '(\\])(\\[)((?:[^\\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+?)(\\])',
captures: {
1: {
name: 'string.other.end.md'
},
2: {
name: 'string.other.begin.md'
},
3: {
name: 'entity.name.identifier.md',
patterns: [
{
include: '#markdown-string'
}
]
},
4: {
name: 'string.other.end.md'
}
}
},
{
match: '(\\])',
captures: {
1: {
name: 'string.other.end.md'
}
}
}
]
},
'commonmark-label-start': {
patterns: [
{
match: '\\!\\[(?!\\^)',
name: 'string.other.begin.image.md'
},
{
match: '\\[',
name: 'string.other.begin.link.md'
}
]
},
'commonmark-list-item': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}((?:[*+-]))(?:[ ]{4}(?![ ])|\\t)(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'variable.unordered.list.md'
},
2: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{1}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}((?:[*+-]))(?:[ ]{3}(?![ ]))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'variable.unordered.list.md'
},
2: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)'
},
{
begin:
'(?:^|\\G)[ ]{0,3}((?:[*+-]))(?:[ ]{2}(?![ ]))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'variable.unordered.list.md'
},
2: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)[ ]{3}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}((?:[*+-]))(?:[ ]{1}|(?=\\n))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'variable.unordered.list.md'
},
2: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)[ ]{2}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}([0-9]{9})((?:\\.|\\)))(?:[ ]{4}(?![ ])|\\t(?![\\t ]))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){3}[ ]{2}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(?:([0-9]{9})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{8})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'string.other.number.md'
},
4: {
name: 'variable.ordered.list.md'
},
5: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){3}[ ]{1}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(?:([0-9]{9})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{8})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{7})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'string.other.number.md'
},
4: {
name: 'variable.ordered.list.md'
},
5: {
name: 'string.other.number.md'
},
6: {
name: 'variable.ordered.list.md'
},
7: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){3}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(?:([0-9]{9})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{8})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{7})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{6})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'string.other.number.md'
},
4: {
name: 'variable.ordered.list.md'
},
5: {
name: 'string.other.number.md'
},
6: {
name: 'variable.ordered.list.md'
},
7: {
name: 'string.other.number.md'
},
8: {
name: 'variable.ordered.list.md'
},
9: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}[ ]{3}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(?:([0-9]{8})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{7})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{6})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{5})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'string.other.number.md'
},
4: {
name: 'variable.ordered.list.md'
},
5: {
name: 'string.other.number.md'
},
6: {
name: 'variable.ordered.list.md'
},
7: {
name: 'string.other.number.md'
},
8: {
name: 'variable.ordered.list.md'
},
9: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}[ ]{2}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(?:([0-9]{7})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{6})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{5})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{4})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'string.other.number.md'
},
4: {
name: 'variable.ordered.list.md'
},
5: {
name: 'string.other.number.md'
},
6: {
name: 'variable.ordered.list.md'
},
7: {
name: 'string.other.number.md'
},
8: {
name: 'variable.ordered.list.md'
},
9: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}[ ]{1}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(?:([0-9]{6})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{5})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{4})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{3})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'string.other.number.md'
},
4: {
name: 'variable.ordered.list.md'
},
5: {
name: 'string.other.number.md'
},
6: {
name: 'variable.ordered.list.md'
},
7: {
name: 'string.other.number.md'
},
8: {
name: 'variable.ordered.list.md'
},
9: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(?:([0-9]{5})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{4})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{3})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{2})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'string.other.number.md'
},
4: {
name: 'variable.ordered.list.md'
},
5: {
name: 'string.other.number.md'
},
6: {
name: 'variable.ordered.list.md'
},
7: {
name: 'string.other.number.md'
},
8: {
name: 'variable.ordered.list.md'
},
9: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{3}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(?:([0-9]{4})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{3})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{2})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{1})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'string.other.number.md'
},
4: {
name: 'variable.ordered.list.md'
},
5: {
name: 'string.other.number.md'
},
6: {
name: 'variable.ordered.list.md'
},
7: {
name: 'string.other.number.md'
},
8: {
name: 'variable.ordered.list.md'
},
9: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{2}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(?:([0-9]{3})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{2})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{1})((?:\\.|\\)))(?:[ ]{3}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'string.other.number.md'
},
4: {
name: 'variable.ordered.list.md'
},
5: {
name: 'string.other.number.md'
},
6: {
name: 'variable.ordered.list.md'
},
7: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{1}'
},
{
begin:
'(?:^|\\G)[ ]{0,3}(?:([0-9]{2})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9])((?:\\.|\\)))(?:[ ]{2}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'string.other.number.md'
},
4: {
name: 'variable.ordered.list.md'
},
5: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)'
},
{
begin:
'(?:^|\\G)[ ]{0,3}([0-9])((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?',
beginCaptures: {
1: {
name: 'string.other.number.md'
},
2: {
name: 'variable.ordered.list.md'
},
3: {
name: 'keyword.other.tasklist.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)[ ]{3}'
}
]
},
'commonmark-paragraph': {
begin: '(?![\\t ]*$)',
name: 'meta.paragraph.md',
patterns: [
{
include: '#markdown-text'
}
],
while: '(?:^|\\G)(?:[ ]{4}|\\t)'
},
'commonmark-thematic-break': {
match: '(?:^|\\G)[ ]{0,3}([-*_])[ \\t]*(?:\\1[ \\t]*){2,}$',
name: 'meta.separator.md'
},
'extension-directive-text': {
match:
'(?<!:)(:)((?:[A-Za-z][0-9A-Za-z\\-_]*))(?![0-9A-Za-z\\-_:])(?:(\\[)(\\g<directive_label>*)(\\]))?(?:(\\{)((?:(?:[A-Za-z:_][0-9A-Za-z\\-\\.:_]*)(?:[\\t ]*=[\\t ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\r "\'<=>`\\}]+))?|[\\.#](?:[^\\t\\n\\r "#\'\\.<=>`\\}][^\\t\\n\\r "#\'\\.<=>`\\}]*)|[\\t ])*)(\\}))?(?<directive_label>(?:[^\\\\\\[\\]]|\\\\[\\\\\\[\\]]?)|\\[\\g<directive_label>*\\]){0}',
name: 'meta.tag.${2:/downcase}.md',
captures: {
1: {
name: 'string.other.begin.directive.md'
},
2: {
name: 'entity.name.function.md'
},
3: {
name: 'string.other.begin.directive.label.md'
},
4: {
patterns: [
{
include: '#markdown-text'
}
]
},
5: {
name: 'string.other.end.directive.label.md'
},
6: {
name: 'string.other.begin.directive.attributes.md'
},
7: {
patterns: [
{
include: '#extension-directive-attribute'
}
]
},
8: {
name: 'string.other.end.directive.attributes.md'
}
}
},
'extension-directive-leaf': {
match:
'(?:^|\\G)[ ]{0,3}(:{2})((?:[A-Za-z][0-9A-Za-z\\-_]*))(?:(\\[)(\\g<directive_label>*)(\\]))?(?:(\\{)((?:(?:[A-Za-z:_][0-9A-Za-z\\-\\.:_]*)(?:[\\t ]*=[\\t ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\r "\'<=>`\\}]+))?|[\\.#](?:[^\\t\\n\\r "#\'\\.<=>`\\}][^\\t\\n\\r "#\'\\.<=>`\\}]*)|[\\t ])*)(\\}))?(?:[\\t ]*$)(?<directive_label>(?:[^\\\\\\[\\]]|\\\\[\\\\\\[\\]]?)|\\[\\g<directive_label>*\\]){0}',
name: 'meta.tag.${2:/downcase}.md',
captures: {
1: {
name: 'string.other.begin.directive.md'
},
2: {
name: 'entity.name.function.md'
},
3: {
name: 'string.other.begin.directive.label.md'
},
4: {
patterns: [
{
include: '#markdown-text'
}
]
},
5: {
name: 'string.other.end.directive.label.md'
},
6: {
name: 'string.other.begin.directive.attributes.md'
},
7: {
patterns: [
{
include: '#extension-directive-attribute'
}
]
},
8: {
name: 'string.other.end.directive.attributes.md'
}
}
},
'extension-directive-container': {
begin:
'(?:^|\\G)[ ]{0,3}(:{3,})((?:[A-Za-z][0-9A-Za-z\\-_]*))(?:(\\[)(\\g<directive_label>*)(\\]))?(?:(\\{)((?:(?:[A-Za-z:_][0-9A-Za-z\\-\\.:_]*)(?:[\\t ]*=[\\t ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\r "\'<=>`\\}]+))?|[\\.#](?:[^\\t\\n\\r "#\'\\.<=>`\\}][^\\t\\n\\r "#\'\\.<=>`\\}]*)|[\\t ])*)(\\}))?(?:[\\t ]*$)(?<directive_label>(?:[^\\\\\\[\\]]|\\\\[\\\\\\[\\]]?)|\\[\\g<directive_label>*\\]){0}',
beginCaptures: {
1: {
name: 'string.other.begin.directive.md'
},
2: {
name: 'entity.name.function.md'
},
3: {
name: 'string.other.begin.directive.label.md'
},
4: {
patterns: [
{
include: '#markdown-text'
}
]
},
5: {
name: 'string.other.end.directive.label.md'
},
6: {
name: 'string.other.begin.directive.attributes.md'
},
7: {
patterns: [
{
include: '#extension-directive-attribute'
}
]
},
8: {
name: 'string.other.end.directive.attributes.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
end: '(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.directive.md'
}
}
},
'extension-directive-attribute': {
match:
'((?:[A-Za-z:_][0-9A-Za-z\\-\\.:_]*))(?:[\\t ]*(=)[\\t ]*(?:(")([^"]*)(")|(\')([^\']*)(\')|([^\\t\\n\\r "\'<=>`\\}]+)))?|(\\.)((?:[^\\t\\n\\r "#\'\\.<=>`\\}][^\\t\\n\\r "#\'\\.<=>`\\}]*))|(#)((?:[^\\t\\n\\r "#\'\\.<=>`\\}][^\\t\\n\\r "#\'\\.<=>`\\}]*))',
captures: {
1: {
name: 'entity.other.attribute-name.md'
},
2: {
name: 'punctuation.separator.key-value.md'
},
3: {
name: 'string.other.begin.md'
},
4: {
name: 'string.quoted.double.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
}
]
},
5: {
name: 'string.other.end.md'
},
6: {
name: 'string.other.begin.md'
},
7: {
name: 'string.quoted.single.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
}
]
},
8: {
name: 'string.other.end.md'
},
9: {
name: 'string.unquoted.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
}
]
},
10: {
name: 'entity.other.attribute-name.class.md'
},
11: {
name: 'string.unquoted.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
}
]
},
12: {
name: 'entity.other.attribute-name.id.md'
},
13: {
name: 'string.unquoted.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
}
]
}
}
},
'extension-gfm-autolink-literal': {
patterns: [
{
match:
'(?<=^|[\\t\\n\\r \\(\\*\\_\\[\\]~])(?=(?i:www)\\.[^\\n\\r])(?:(?:[\\p{L}\\p{N}]|-|[\\._](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+\\g<path>?)?(?<path>(?:(?:[^\\t\\n\\r !"&\'\\(\\)\\*,\\.:;<\\?\\]_~]|&(?![A-Za-z]*;(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[])))|[!"\'\\)\\*,\\.:;\\?_~](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))|\\(\\g<path>*\\))+){0}',
name: 'string.other.link.autolink.literal.www.md'
},
{
match:
'(?<=^|[^A-Za-z])(?i:https?://)(?=[\\p{L}\\p{N}])(?:(?:[\\p{L}\\p{N}]|-|[\\._](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+\\g<path>?)?(?<path>(?:(?:[^\\t\\n\\r !"&\'\\(\\)\\*,\\.:;<\\?\\]_~]|&(?![A-Za-z]*;(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[])))|[!"\'\\)\\*,\\.:;\\?_~](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))|\\(\\g<path>*\\))+){0}',
name: 'string.other.link.autolink.literal.http.md'
},
{
match:
'(?<=^|[^A-Za-z/])(?i:mailto:|xmpp:)?(?:[0-9A-Za-z+\\-\\._])+@(?:(?:[0-9A-Za-z]|[-_](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+(?:\\.(?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[])))))+(?:[A-Za-z]|[-_](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+',
name: 'string.other.link.autolink.literal.email.md'
}
]
},
'extension-gfm-footnote-call': {
match: '(\\[)(\\^)((?:[^\\t\\n\\r \\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+)(\\])',
captures: {
1: {
name: 'string.other.begin.link.md'
},
2: {
name: 'string.other.begin.footnote.md'
},
3: {
name: 'entity.name.identifier.md',
patterns: [
{
include: '#markdown-string'
}
]
},
4: {
name: 'string.other.end.footnote.md'
}
}
},
'extension-gfm-footnote-definition': {
begin:
'(?:^|\\G)[ ]{0,3}(\\[)(\\^)((?:[^\\t\\n\\r \\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+)(\\])(:)[\\t ]*',
beginCaptures: {
1: {
name: 'string.other.begin.link.md'
},
2: {
name: 'string.other.begin.footnote.md'
},
3: {
name: 'entity.name.identifier.md',
patterns: [
{
include: '#markdown-string'
}
]
},
4: {
name: 'string.other.end.footnote.md'
}
},
patterns: [
{
include: '#markdown-sections'
}
],
while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)'
},
'extension-gfm-strikethrough': {
match: '(?<=\\S)(?<!~)~{1,2}(?!~)|(?<!~)~{1,2}(?=\\S)(?!~)',
name: 'string.other.strikethrough.md'
},
'extension-gfm-table': {
begin: '(?:^|\\G)[ ]{0,3}(?=\\|[^\\n\\r]+\\|[ \\t]*$)',
patterns: [
{
match:
'(?<=\\||(?:^|\\G))[\\t ]*((?:[^\\n\\r\\\\\\|]|\\\\[\\\\\\|]?)+?)[\\t ]*(?=\\||$)',
captures: {
1: {
patterns: [
{
include: '#markdown-text'
}
]
}
}
},
{
match: '(?:\\|)',
name: 'markup.list.table-delimiter.md'
}
],
end: '^(?=[\\t ]*$)|$'
},
'extension-github-gemoji': {
match:
'(:)((?:(?:(?:hand_with_index_finger_and_thumb_cros|mailbox_clo|fist_rai|confu)s|r(?:aised_hand_with_fingers_splay|e(?:gister|l(?:iev|ax)))|disappointed_reliev|confound|(?:a(?:ston|ngu)i|flu)sh|unamus|hush)e|(?:chart_with_(?:down|up)wards_tre|large_orange_diamo|small_(?:orang|blu)e_diamo|large_blue_diamo|parasol_on_grou|loud_sou|rewi)n|(?:rightwards_pushing_h|hourglass_flowing_s|leftwards_(?:pushing_)?h|(?:raised_back_of|palm_(?:down|up)|call_me)_h|(?:(?:(?:clippert|ascensi)on|norfolk)_is|christmas_is|desert_is|bouvet_is|new_zea|thai|eng|fin|ire)l|rightwards_h|pinching_h|writing_h|s(?:w(?:itzer|azi)|cot)l|magic_w|ok_h|icel)an|s(?:un_behind_(?:large|small|rain)_clou|hallow_pan_of_foo|tar_of_davi|leeping_be|kateboar|a(?:tisfie|uropo)|hiel|oun|qui)|(?:ear_with_hearing_a|pouring_liqu)i|(?:identification_c|(?:arrow_(?:back|for)|fast_for)w|credit_c|woman_be|biohaz|man_be|l(?:eop|iz))ar|m(?:usical_key|ortar_)boar|(?:drop_of_bl|canned_f)oo|c(?:apital_abc|upi)|person_bal|(?:black_bi|(?:cust|plac)a)r|(?:clip|key)boar|mermai|pea_po|worrie|po(?:la|u)n|threa|dv)d|(?:(?:(?:face_with_open_eyes_and_hand_over|face_with_diagonal|open|no)_mou|h(?:and_over_mou|yacin)|mammo)t|running_shirt_with_sas|(?:(?:fishing_pole_and_|blow)fi|(?:tropical_f|petri_d)i|(?:paint|tooth)bru|banglade|jellyfi)s|(?:camera_fl|wavy_d)as|triump|menora|pouc|blus|watc|das|has)h|(?:s(?:o(?:(?:uth_georgia_south_sandwich|lomon)_island|ck)|miling_face_with_three_heart|t_kitts_nevi|weat_drop|agittariu|c(?:orpiu|issor)|ymbol|hort)|twisted_rightwards_arrow|(?:northern_mariana|heard_mcdonald|(?:british_virgi|us_virgi|pitcair|cayma)n|turks_caicos|us_outlying|(?:falk|a)land|marshall|c(?:anary|ocos)|faroe)_island|(?:face_holding_back_tea|(?:c(?:ard_index_divid|rossed_fing)|pinched_fing)e|night_with_sta)r|(?:two_(?:wo)?men_holding|people_holding|heart|open)_hand|(?:sunrise_over_mountai|(?:congratul|united_n)atio|jea)n|(?:caribbean_)?netherland|(?:f(?:lower_playing_car|ace_in_clou)|crossed_swor|prayer_bea)d|(?:money_with_win|nest_with_eg|crossed_fla|hotsprin)g|revolving_heart|(?:high_brightne|(?:expression|wire)le|(?:tumbler|wine)_gla|milk_gla|compa|dre)s|performing_art|earth_america|orthodox_cros|l(?:ow_brightnes|a(?:tin_cros|o)|ung)|no_pedestrian|c(?:ontrol_kno|lu)b|b(?:ookmark_tab|rick|ean)|nesting_doll|cook_island|(?:fleur_de_l|tenn)i|(?:o(?:ncoming_b|phiuch|ctop)|hi(?:ppopotam|bisc)|trolleyb|m(?:(?:rs|x)_cla|auriti|inib)|belar|cact|abac|(?:cyp|tau)r)u|medal_sport|(?:chopstic|firewor)k|rhinocero|(?:p(?:aw_prin|eanu)|footprin)t|two_heart|princes|(?:hondur|baham)a|barbado|aquariu|c(?:ustom|hain)|maraca|comoro|flag|wale|hug|vh)s|(?:(?:diamond_shape_with_a_dot_ins|playground_sl)id|(?:(?:first_quarter|last_quarter|full|new)_moon_with|(?:zipper|money)_mouth|dotted_line|upside_down|c(?:rying_c|owboy_h)at|(?:disguis|nauseat)ed|neutral|monocle|panda|tired|woozy|clown|nerd|zany|fox)_fac|s(?:t(?:uck_out_tongue_winking_ey|eam_locomotiv)|(?:lightly_(?:frown|smil)|neez|h(?:ush|ak))ing_fac|(?:tudio_micropho|(?:hinto_shr|lot_mach)i|ierra_leo|axopho)n|mall_airplan|un_with_fac|a(?:luting_fac|tellit|k)|haved_ic|y(?:nagogu|ring)|n(?:owfl)?ak|urinam|pong)|(?:black_(?:medium_)?small|white_(?:(?:medium_)?small|large)|(?:black|white)_medium|black_large|orange|purple|yellow|b(?:rown|lue)|red)_squar|(?:(?:perso|woma)n_with_|man_with_)?probing_can|(?:p(?:ut_litter_in_its_pl|outing_f)|frowning_f|cold_f|wind_f|hot_f)ac|(?:arrows_c(?:ounterc)?lockwi|computer_mou|derelict_hou|carousel_hor|c(?:ity_sunri|hee)|heartpul|briefca|racehor|pig_no|lacros)s|(?:(?:face_with_head_band|ideograph_advant|adhesive_band|under|pack)a|currency_exchan|l(?:eft_l)?ugga|woman_jud|name_bad|man_jud|jud)g|face_with_peeking_ey|(?:(?:e(?:uropean_post_off|ar_of_r)|post_off)i|information_sour|ambulan)c|artificial_satellit|(?:busts?_in_silhouet|(?:vulcan_sal|parach)u|m(?:usical_no|ayot)|ro(?:ller_ska|set)|timor_les|ice_ska)t|(?:(?:incoming|red)_envelo|s(?:ao_tome_princi|tethosco)|(?:micro|tele)sco|citysca)p|(?:(?:(?:convenience|department)_st|musical_sc)o|f(?:light_depar|ramed_pic)tu|love_you_gestu|heart_on_fi|japanese_og|cote_divoi|perseve|singapo)r|b(?:ullettrain_sid|eliz|on)|(?:(?:female_|male_)?dete|radioa)ctiv|(?:christmas|deciduous|evergreen|tanabata|palm)_tre|(?:vibration_mo|cape_ver)d|(?:fortune_cook|neckt|self)i|(?:fork_and_)?knif|athletic_sho|(?:p(?:lead|arty)|drool|curs|melt|yawn|ly)ing_fac|vomiting_fac|(?:(?:c(?:urling_st|ycl)|meat_on_b|repeat_|headst)o|(?:fire_eng|tanger|ukra)i|rice_sce|(?:micro|i)pho|champag|pho)n|(?:cricket|video)_gam|(?:boxing_glo|oli)v|(?:d(?:ragon|izzy)|monkey)_fac|(?:m(?:artin|ozamb)iq|fond)u|wind_chim|test_tub|flat_sho|m(?:a(?:ns_sho|t)|icrob|oos|ut)|(?:handsh|fish_c|moon_c|cupc)ak|nail_car|zimbabw|ho(?:neybe|l)|ice_cub|airplan|pensiv|c(?:a(?:n(?:dl|o)|k)|o(?:ffe|oki))|tongu|purs|f(?:lut|iv)|d(?:at|ov)|n(?:iu|os)|kit|rag|ax)e|(?:(?:british_indian_ocean_territo|(?:plate_with_cutl|batt)e|medal_milita|low_batte|hunga|wea)r|family_(?:woman_(?:woman_(?:girl|boy)|girl|boy)|man_(?:woman_(?:girl|boy)|man_(?:girl|boy)|girl|boy))_bo|person_feeding_bab|woman_feeding_bab|s(?:u(?:spension_railwa|nn)|t(?:atue_of_libert|_barthelem|rawberr))|(?:m(?:ountain_cable|ilky_)|aerial_tram)wa|articulated_lorr|man_feeding_bab|mountain_railwa|partly_sunn|(?:vatican_c|infin)it|(?:outbox_tr|inbox_tr|birthd|motorw|paragu|urugu|norw|x_r)a|butterfl|ring_buo|t(?:urke|roph)|angr|fogg)y|(?:(?:perso|woma)n_in_motorized_wheelchai|(?:(?:notebook_with_decorative_c|four_leaf_cl)ov|(?:index_pointing_at_the_vie|white_flo)w|(?:face_with_thermome|non\\-potable_wa|woman_firefigh|desktop_compu|m(?:an_firefigh|otor_scoo)|(?:ro(?:ller_coa|o)|oy)s|potable_wa|kick_scoo|thermome|firefigh|helicop|ot)t|(?:woman_factory_wor|(?:woman_office|woman_health|health)_wor|man_(?:factory|office|health)_wor|(?:factory|office)_wor|rice_crac|black_jo|firecrac)k|telephone_receiv|(?:palms_up_toget|f(?:ire_extinguis|eat)|teac)h|(?:(?:open_)?file_fol|level_sli)d|police_offic|f(?:lying_sauc|arm)|woman_teach|roll_of_pap|(?:m(?:iddle_f|an_s)in|woman_sin|hambur|plun|dag)g|do_not_litt|wilted_flow|woman_farm|man_(?:teach|farm)|(?:bell_pe|hot_pe|fli)pp|l(?:o(?:udspeak|ve_lett|bst)|edg|add)|tokyo_tow|c(?:ucumb|lapp|anc)|b(?:e(?:ginn|av)|adg)|print|hamst)e|(?:perso|woma)n_in_manual_wheelchai|m(?:an(?:_in_motorized|(?:_in_man)?ual)|otorized)_wheelchai|(?:person_(?:white|curly|red)_|wheelc)hai|triangular_rule|(?:film_project|e(?:l_salv|cu)ad|elevat|tract|anch)o|s(?:traight_rul|pace_invad|crewdriv|nowboard|unflow|peak|wimm|ing|occ|how|urf|ki)e|r(?:ed_ca|unne|azo)|d(?:o(?:lla|o)|ee)|barbe)r|(?:(?:cloud_with_(?:lightning_and_)?ra|japanese_gobl|round_pushp|liechtenste|mandar|pengu|dolph|bahra|pushp|viol)i|(?:couple(?:_with_heart_wo|kiss_)man|construction_worker|(?:mountain_bik|bow|row)ing|lotus_position|(?:w(?:eight_lift|alk)|climb)ing|white_haired|curly_haired|raising_hand|super(?:villain|hero)|red_haired|basketball|s(?:(?:wimm|urf)ing|assy)|haircut|no_good|(?:vampir|massag)e|b(?:iking|ald)|zombie|fairy|mage|elf|ng)_(?:wo)?ma|(?:(?:couple_with_heart_man|isle_of)_m|(?:couplekiss_woman_|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_|frowning_|s(?:tanding|auna)_|po(?:uting_|lice)|running_|blonde_|o(?:lder|k)_)wom|(?:perso|woma)n_with_turb|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_m|f(?:olding_hand_f|rowning_m)|man_with_turb|(?:turkmen|afghan|pak)ist|s(?:tanding_m|(?:outh_s)?ud|auna_m)|po(?:uting_|lice)m|running_m|azerbaij|k(?:yrgyz|azakh)st|tajikist|uzbekist|o(?:lder_m|k_m|ce)|(?:orang|bh)ut|taiw|jord)a|s(?:mall_red_triangle_dow|(?:valbard_jan_may|int_maart|ev)e|afety_pi|top_sig|t_marti|(?:corpi|po|o)o|wede)|(?:heavy_(?:d(?:ivision|ollar)|equals|minus|plus)|no_entry|female|male)_sig|(?:arrow_(?:heading|double)_d|p(?:erson_with_cr|oint_d)|arrow_up_d|thumbsd)ow|(?:house_with_gard|l(?:ock_with_ink_p|eafy_gre)|dancing_(?:wo)?m|fountain_p|keycap_t|chick|ali|yem|od)e|(?:izakaya|jack_o)_lanter|(?:funeral_u|(?:po(?:stal_h|pc)|capric)o|unico)r|chess_paw|b(?:a(?:llo|c)o|eni|rai)|l(?:anter|io)|c(?:o(?:ff)?i|row)|melo|rame|oma|yar)n|(?:s(?:t(?:uck_out_tongue_closed_ey|_vincent_grenadin)|kull_and_crossbon|unglass|pad)|(?:french_souther|palestinia)n_territori|(?:face_with_spiral|kissing_smiling)_ey|united_arab_emirat|kissing_closed_ey|(?:clinking_|dark_sun|eye)glass|(?:no_mobile_|head)phon|womans_cloth|b(?:allet_sho|lueberri)|philippin|(?:no_bicyc|seychel)l|roll_ey|(?:cher|a)ri|p(?:ancak|isc)|maldiv|leav)es|(?:f(?:amily_(?:woman_(?:woman_)?|man_(?:woman_|man_)?)girl_gir|earfu)|(?:woman_playing_hand|m(?:an_playing_hand|irror_)|c(?:onfetti|rystal)_|volley|track|base|8)bal|(?:(?:m(?:ailbox_with_(?:no_)?m|onor)|cockt|e\\-m)a|(?:person|bride|woman)_with_ve|man_with_ve|light_ra|braz|ema)i|(?:transgender|baby)_symbo|passport_contro|(?:arrow_(?:down|up)_sm|rice_b|footb)al|(?:dromedary_cam|ferris_whe|love_hot|high_he|pretz|falaf|isra)e|page_with_cur|me(?:dical_symbo|ta)|(?:n(?:ewspaper_ro|o_be)|bellhop_be)l|rugby_footbal|s(?:chool_satche|(?:peak|ee)_no_evi|oftbal|crol|anda|nai|hel)|(?:peace|atom)_symbo|hear_no_evi|cora|hote|bage|labe|rof|ow)l|(?:(?:negative_squared_cross|heavy_exclamation|part_alternation)_mar|(?:eight_spoked_)?asteris|(?:ballot_box_with_che|(?:(?:mantelpiece|alarm|timer)_c|un)lo|(?:ha(?:(?:mmer_and|ir)_p|tch(?:ing|ed)_ch)|baby_ch|joyst)i|railway_tra|lipsti|peaco)c|heavy_check_mar|white_check_mar|tr(?:opical_drin|uc)|national_par|pickup_truc|diving_mas|floppy_dis|s(?:tar_struc|hamroc|kun|har)|chipmun|denmar|duc|hoo|lin)k|(?:leftwards_arrow_with_h|arrow_right_h|(?:o(?:range|pen)|closed|blue)_b)ook|(?:woman_playing_water_pol|m(?:an(?:_(?:playing_water_pol|with_gua_pi_ma|in_tuxed)|g)|ontenegr|o(?:roc|na)c|e(?:xic|tr|m))|(?:perso|woma)n_in_tuxed|(?:trinidad_toba|vir)g|water_buffal|b(?:urkina_fas|a(?:mbo|nj)|ent)|puerto_ric|water_pol|flaming|kangaro|(?:mosqu|burr)it|(?:avoc|torn)ad|curaca|lesoth|potat|ko(?:sov|k)|tomat|d(?:ang|od)|yo_y|hoch|t(?:ac|og)|zer)o|(?:c(?:entral_african|zech)|dominican)_republic|(?:eight_pointed_black_s|six_pointed_s|qa)tar|(?:business_suit_levitat|(?:classical_buil|breast_fee)d|(?:woman_cartwhee|m(?:an_(?:cartwhee|jugg)|en_wrest)|women_wrest|woman_jugg|face_exha|cartwhee|wrest|dump)l|c(?:hildren_cross|amp)|woman_facepalm|woman_shrugg|man_(?:facepalm|shrugg)|people_hugg|(?:person_fe|woman_da|man_da)nc|fist_oncom|horse_rac|(?:no_smo|thin)k|laugh|s(?:eedl|mok)|park|w(?:arn|edd))ing|f(?:a(?:mily(?:_(?:woman_(?:woman_(?:girl|boy)|girl|boy)|man_(?:woman_(?:girl|boy)|man_(?:girl|boy)|girl|boy)))?|ctory)|o(?:u(?:ntain|r)|ot|g)|r(?:owning)?|i(?:re|s[ht])|ly|u)|(?:(?:(?:information_desk|handball|bearded)_|(?:frowning|ok)_|juggling_|mer)pers|(?:previous_track|p(?:lay_or_p)?ause|black_square|white_square|next_track|r(?:ecord|adio)|eject)_butt|(?:wa[nx]ing_(?:crescent|gibbous)_m|bowl_with_sp|crescent_m|racc)o|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_pers|s(?:t(?:_pierre_miquel|op_butt|ati)|tanding_pers|peech_ballo|auna_pers)|r(?:eminder_r)?ibb|thought_ballo|watermel|badmint|c(?:amero|ray)|le(?:ban|m)|oni|bis)on|(?:heavy_heart_exclama|building_construc|heart_decora|exclama)tion|(?:(?:triangular_flag_on_po|(?:(?:woman_)?technolog|m(?:ountain_bicycl|an_technolog)|bicycl)i|(?:wo)?man_scienti|(?:wo)?man_arti|s(?:afety_ve|cienti)|empty_ne)s|(?:vertical_)?traffic_ligh|(?:rescue_worker_helm|military_helm|nazar_amul|city_suns|wastebask|dropl|t(?:rump|oil)|bouqu|buck|magn|secr)e|one_piece_swimsui|(?:(?:arrow_(?:low|upp)er|point)_r|bridge_at_n|copyr|mag_r)igh|(?:bullettrain_fro|(?:potted_pl|croiss|e(?:ggpl|leph))a)n|s(?:t(?:ar_and_cresc|ud)en|cream_ca|mi(?:ley?|rk)_ca|(?:peed|ail)boa|hir)|(?:arrow_(?:low|upp)er|point)_lef|woman_astronau|r(?:o(?:tating_ligh|cke)|eceip)|heart_eyes_ca|man_astronau|(?:woman_stud|circus_t|man_stud|trid)en|(?:ringed_pla|file_cabi)ne|nut_and_bol|(?:older_)?adul|k(?:i(?:ssing_ca|wi_frui)|uwai|no)|(?:pouting_c|c(?:ut_of_m|old_sw)e|womans_h|montserr|(?:(?:motor_|row)b|lab_c)o|heartbe|toph)a|(?:woman_pil|honey_p|man_pil|[cp]arr|teap|rob)o|hiking_boo|arrow_lef|fist_righ|flashligh|f(?:ist_lef|ee)|black_ca|astronau|(?:c(?:hest|oco)|dough)nu|innocen|joy_ca|artis|(?:acce|egy)p|co(?:me|a)|pilo)t|(?:heavy_multiplication_|t\\-re)x|(?:s(?:miling_face_with_te|piral_calend)|oncoming_police_c|chocolate_b|ra(?:ilway|cing)_c|police_c|polar_be|teddy_be|madagasc|blue_c|calend|myanm)ar|c(?:l(?:o(?:ud(?:_with_lightning)?|ck(?:1[0-2]?|[2-9]))|ap)?|o(?:uple(?:_with_heart|kiss)?|nstruction|mputer|ok|p|w)|a(?:r(?:d_index)?|mera)|r(?:icket|y)|h(?:art|ild))|(?:m(?:artial_arts_unifo|echanical_a)r|(?:cherry_)?blosso|b(?:aggage_clai|roo)|ice_?crea|facepal|mushroo|restroo|vietna|dru|yu)m|(?:woman_with_headscar|m(?:obile_phone_of|aple_lea)|fallen_lea|wol)f|(?:(?:closed_lock_with|old)_|field_hoc|ice_hoc|han|don)key|g(?:lobe_with_meridians|r(?:e(?:y_(?:exclama|ques)tion|e(?:n(?:_(?:square|circle|salad|apple|heart|book)|land)|ce)|y_heart|nada)|i(?:mac|nn)ing|apes)|u(?:inea_bissau|ernsey|am|n)|(?:(?:olfing|enie)_(?:wo)?|uards(?:wo)?)man|(?:inger_roo|oal_ne|hos)t|(?:uadeloup|ame_di|iraff|oos)e|ift_heart|i(?:braltar|rl)|(?:uatemal|(?:eorg|amb)i|orill|uyan|han)a|uide_dog|(?:oggl|lov)es|arlic|emini|uitar|abon|oat|ear|b)|construction_worker|(?:(?:envelope_with|bow_and)_ar|left_right_ar|raised_eyeb)row|(?:(?:oncoming_automob|crocod)i|right_anger_bubb|l(?:eft_speech_bubb|otion_bott|ady_beet)|congo_brazzavil|eye_speech_bubb|(?:large_blue|orange|purple|yellow|brown)_circ|(?:(?:european|japanese)_cas|baby_bot)t|b(?:alance_sca|eet)|s(?:ewing_need|weat_smi)|(?:black|white|red)_circ|(?:motor|re)cyc|pood|turt|tama|waff|musc|eag)le|first_quarter_moon|s(?:m(?:all_red_triangle|i(?:ley?|rk))|t(?:uck_out_tongue|ar)|hopping|leeping|p(?:arkle|ider)|unrise|nowman|chool|cream|k(?:ull|i)|weat|ix|a)|(?:(?:b(?:osnia_herzegovi|ana)|wallis_futu|(?:french_gui|botsw)a|argenti|st_hele)n|(?:(?:equatorial|papua_new)_guin|north_kor|eritr)e|t(?:ristan_da_cunh|ad)|(?:(?:(?:french_poly|indo)ne|tuni)s|(?:new_caledo|ma(?:urita|cedo)|lithua|(?:tanz|alb|rom)a|arme|esto)n|diego_garc|s(?:audi_arab|t_luc|lov(?:ak|en)|omal|erb)|e(?:arth_as|thiop)|m(?:icrone|alay)s|(?:austra|mongo)l|c(?:ambod|roat)|(?:bulga|alge)r|(?:colom|nami|zam)b|boliv|l(?:iber|atv))i|(?:wheel_of_dhar|cine|pana)m|(?:(?:(?:closed|beach|open)_)?umbrel|ceuta_melil|venezue|ang(?:uil|o)|koa)l|c(?:ongo_kinshas|anad|ub)|(?:western_saha|a(?:mpho|ndor)|zeb)r|american_samo|video_camer|m(?:o(?:vie_camer|ldov)|alt|eg)|(?:earth_af|costa_)ric|s(?:outh_afric|ri_lank|a(?:mo|nt))|bubble_te|(?:antarct|jama)ic|ni(?:caragu|geri|nj)|austri|pi(?:nat|zz)|arub|k(?:eny|aab)|indi|u7a7|l(?:lam|ib[ry])|dn)a|l(?:ast_quarter_moon|o(?:tus|ck)|ips|eo)|(?:hammer_and_wren|c(?:ockroa|hur)|facepun|wren|crut|pun)ch|s(?:nowman_with_snow|ignal_strength|weet_potato|miling_imp|p(?:ider_web|arkle[rs])|w(?:im_brief|an)|a(?:n(?:_marino|dwich)|lt)|topwatch|t(?:a(?:dium|r[2s])|ew)|l(?:e(?:epy|d)|oth)|hrimp|yria|carf|(?:hee|oa)p|ea[lt]|h(?:oe|i[pt])|o[bs])|(?:s(?:tuffed_flatbre|p(?:iral_notep|eaking_he))|(?:exploding_h|baguette_br|flatbr)e)ad|(?:arrow_(?:heading|double)_u|(?:p(?:lace_of_wor|assenger_)sh|film_str|tul)i|page_facing_u|biting_li|(?:billed_c|world_m)a|mouse_tra|(?:curly_lo|busst)o|thumbsu|lo(?:llip)?o|clam|im)p|(?:anatomical|light_blue|sparkling|kissing|mending|orange|purple|yellow|broken|b(?:rown|l(?:ack|ue))|pink)_heart|(?:(?:transgender|black)_fla|mechanical_le|(?:checkered|pirate)_fla|electric_plu|rainbow_fla|poultry_le|service_do|white_fla|luxembour|fried_eg|moneyba|h(?:edgeh|otd)o|shru)g|(?:cloud_with|mountain)_snow|(?:(?:antigua_barb|berm)u|(?:kh|ug)an|rwan)da|(?:3r|2n)d_place_medal|1(?:st_place_medal|234|00)|lotus_position|(?:w(?:eight_lift|alk)|climb)ing|(?:(?:cup_with_str|auto_ricksh)a|carpentry_sa|windo|jigsa)w|(?:(?:couch_and|diya)_la|f(?:ried_shri|uelpu))mp|(?:woman_mechan|man_mechan|alemb)ic|(?:european_un|accord|collis|reun)ion|(?:flight_arriv|hospit|portug|seneg|nep)al|card_file_box|(?:(?:oncoming_)?tax|m(?:o(?:unt_fuj|ya)|alaw)|s(?:paghett|ush|ar)|b(?:r(?:occol|une)|urund)|(?:djibou|kiriba)t|hait|fij)i|(?:shopping_c|white_he|bar_ch)art|d(?:isappointed|ominica|e(?:sert)?)|raising_hand|super(?:villain|hero)|b(?:e(?:verage_box|ers|d)|u(?:bbles|lb|g)|i(?:k(?:ini|e)|rd)|o(?:o(?:ks|t)|a[rt]|y)|read|a[cn]k)|ra(?:ised_hands|bbit2|t)|(?:hindu_tem|ap)ple|thong_sandal|a(?:r(?:row_(?:right|down|up)|t)|bc?|nt)?|r(?:a(?:i(?:sed_hand|nbow)|bbit|dio|m)|u(?:nning)?|epeat|i(?:ng|ce)|o(?:ck|se))|takeout_box|(?:flying_|mini)disc|(?:(?:interrob|yin_y)a|b(?:o(?:omera|wli)|angba)|(?:ping_p|hong_k)o|calli|mahjo)ng|b(?:a(?:llot_box|sket|th?|by)|o(?:o(?:k(?:mark)?|m)|w)|u(?:tter|s)|e(?:ll|er?|ar))?|heart_eyes|basketball|(?:paperclip|dancer|ticket)s|point_up_2|(?:wo)?man_cook|n(?:ew(?:spaper)?|o(?:tebook|_entry)|iger)|t(?:e(?:lephone|a)|o(?:oth|p)|r(?:oll)?|wo)|h(?:o(?:u(?:rglass|se)|rse)|a(?:mmer|nd)|eart)|paperclip|full_moon|(?:b(?:lack_ni|athtu|om)|her)b|(?:long|oil)_drum|pineapple|(?:clock(?:1[0-2]?|[2-9])3|u6e8)0|p(?:o(?:int_up|ut)|r(?:ince|ay)|i(?:ck|g)|en)|e(?:nvelope|ight|u(?:ro)?|gg|ar|ye|s)|m(?:o(?:u(?:ntain|se)|nkey|on)|echanic|a(?:ilbox|g|n)|irror)?|new_moon|d(?:iamonds|olls|art)|question|k(?:iss(?:ing)?|ey)|haircut|no_good|(?:vampir|massag)e|g(?:olf(?:ing)?|u(?:inea|ard)|e(?:nie|m)|ift|rin)|h(?:a(?:ndbag|msa)|ouses|earts|ut)|postbox|toolbox|(?:pencil|t(?:rain|iger)|whale|cat|dog)2|belgium|(?:volca|kimo)no|(?:vanuat|tuval|pala|naur|maca)u|tokelau|o(?:range|ne?|m|k)?|office|dancer|ticket|dragon|pencil|zombie|w(?:o(?:mens|rm|od)|ave|in[gk]|c)|m(?:o(?:sque|use2)|e(?:rman|ns)|a(?:li|sk))|jersey|tshirt|w(?:heel|oman)|dizzy|j(?:apan|oy)|t(?:rain|iger)|whale|fairy|a(?:nge[lr]|bcd|tm)|c(?:h(?:a(?:ir|d)|ile)|a(?:ndy|mel)|urry|rab|o(?:rn|ol|w2)|[dn])|p(?:ager|e(?:a(?:ch|r)|ru)|i(?:g2|ll|e)|oop)|n(?:otes|ine)|t(?:onga|hree|ent|ram|[mv])|f(?:erry|r(?:ies|ee|og)|ax)|u(?:7(?:533|981|121)|5(?:5b6|408|272)|6(?:307|70[89]))|mage|e(?:yes|nd)|i(?:ra[nq]|t)|cat|dog|elf|z(?:zz|ap)|yen|j(?:ar|p)|leg|id|u[kps]|ng|o[2x]|vs|kr|[\\+\\x2D]1|x|v)(:)',
name: 'string.emoji.md',
captures: {
1: {
name: 'punctuation.definition.gemoji.begin.md'
},
2: {
name: 'keyword.control.gemoji.md'
},
3: {
name: 'punctuation.definition.gemoji.end.md'
}
}
},
'extension-github-mention': {
match:
'(?<![0-9A-Za-z_`])(@)((?:[0-9A-Za-z][0-9A-Za-z-]{0,38})(?:\\/(?:[0-9A-Za-z][0-9A-Za-z-]{0,38}))?)(?![0-9A-Za-z_`])',
name: 'string.mention.md',
captures: {
1: {
name: 'punctuation.definition.mention.begin.md'
},
2: {
name: 'string.other.link.mention.md'
}
}
},
'extension-github-reference': {
patterns: [
{
match:
'(?<![0-9A-Za-z_])(?:((?i:ghsa-|cve-))([A-Za-z0-9]+)|((?i:gh-|#))([0-9]+))(?![0-9A-Za-z_])',
name: 'string.reference.md',
captures: {
1: {
name: 'punctuation.definition.reference.begin.md'
},
2: {
name: 'string.other.link.reference.security-advisory.md'
},
3: {
name: 'punctuation.definition.reference.begin.md'
},
4: {
name: 'string.other.link.reference.issue-or-pr.md'
}
}
},
{
match:
'(?<![^\\t\\n\\r \\(@\\[\\{])((?:[0-9A-Za-z][0-9A-Za-z-]{0,38})(?:\\/(?:(?:\\.git[0-9A-Za-z_-]|\\.(?!git)|[0-9A-Za-z_-])+))?)(#)([0-9]+)(?![0-9A-Za-z_])',
name: 'string.reference.md',
captures: {
1: {
name: 'string.other.link.reference.user.md'
},
2: {
name: 'punctuation.definition.reference.begin.md'
},
3: {
name: 'string.other.link.reference.issue-or-pr.md'
}
}
}
]
},
'extension-math-flow': {
begin: '(?:^|\\G)[ ]{0,3}(\\${2,})([^\\n\\r\\$]*)$',
beginCaptures: {
1: {
name: 'string.other.begin.math.flow.md'
},
2: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
contentName: 'markup.raw.math.flow.md',
end: '(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.math.flow.md'
}
},
name: 'markup.code.other.md'
},
'extension-math-text': {
match: '(?<!\\$)(\\${2,})(?!\\$)(.+?)(?<!\\$)(\\1)(?!\\$)',
captures: {
1: {
name: 'string.other.begin.math.md'
},
2: {
name: 'markup.raw.math.md markup.inline.raw.math.md'
},
3: {
name: 'string.other.end.math.md'
}
}
},
'extension-toml': {
begin: '\\A\\+{3}$',
end: '^\\+{3}$',
beginCaptures: {
0: {
name: 'string.other.begin.toml'
}
},
endCaptures: {
0: {
name: 'string.other.end.toml'
}
},
contentName: 'meta.embedded.toml',
patterns: [
{
include: 'source.toml'
}
]
},
'extension-yaml': {
begin: '\\A-{3}$',
end: '^-{3}$',
beginCaptures: {
0: {
name: 'string.other.begin.yaml'
}
},
endCaptures: {
0: {
name: 'string.other.end.yaml'
}
},
contentName: 'meta.embedded.yaml',
patterns: [
{
include: 'source.yaml'
}
]
},
'whatwg-html': {
patterns: [
{
include: '#whatwg-html-data-character-reference'
},
{
include: '#whatwg-html-data-comment'
},
{
include: '#whatwg-html-data-comment-bogus'
},
{
include: '#whatwg-html-rawtext-tag'
},
{
include: '#whatwg-html-rawtext-tag-style'
},
{
include: '#whatwg-html-rcdata-tag'
},
{
include: '#whatwg-html-script-data-tag'
},
{
include: '#whatwg-html-data-tag'
}
]
},
'whatwg-html-data-character-reference': {
patterns: [
{
include: '#whatwg-html-data-character-reference-named-terminated'
},
{
include: '#whatwg-html-data-character-reference-named-unterminated'
},
{
include: '#whatwg-html-data-character-reference-numeric-hexadecimal'
},
{
include: '#whatwg-html-data-character-reference-numeric-decimal'
}
]
},
'whatwg-html-data-character-reference-named-terminated': {
match:
'(&)((?:C(?:(?:o(?:unterClockwiseCo)?|lockwiseCo)ntourIntegra|cedi)|(?:(?:Not(?:S(?:quareSu(?:per|b)set|u(?:cceeds|(?:per|b)set))|Precedes|Greater|Tilde|Less)|Not(?:Righ|Lef)tTriangle|(?:Not(?:(?:Succeed|Precede|Les)s|Greater)|(?:Precede|Succeed)s|Less)Slant|SquareSu(?:per|b)set|(?:Not(?:Greater|Tilde)|Tilde|Less)Full|RightTriangle|LeftTriangle|Greater(?:Slant|Full)|Precedes|Succeeds|Superset|NotHump|Subset|Tilde|Hump)Equ|int(?:er)?c|DotEqu)a|DoubleContourIntegra|(?:n(?:short)?parall|shortparall|p(?:arall|rur))e|(?:rightarrowta|l(?:eftarrowta|ced|ata|Ata)|sced|rata|perm|rced|rAta|ced)i|Proportiona|smepars|e(?:qvpars|pars|xc|um)|Integra|suphso|rarr[pt]|n(?:pars|tg)|l(?:arr[pt]|cei)|Rarrt|(?:hybu|fora)l|ForAl|[GKLNR-Tcknt]cedi|rcei|iexc|gime|fras|[uy]um|oso|dso|ium|Ium)l|D(?:o(?:uble(?:(?:L(?:ong(?:Left)?R|eftR)ight|L(?:ongL)?eft|UpDown|Right|Up)Arrow|Do(?:wnArrow|t))|wn(?:ArrowUpA|TeeA|a)rrow)|iacriticalDot|strok|ashv|cy)|(?:(?:(?:N(?:(?:otN)?estedGreater|ot(?:Greater|Less))|Less(?:Equal)?)Great|GreaterGreat|l[lr]corn|mark|east)e|Not(?:Double)?VerticalBa|(?:Not(?:Righ|Lef)tTriangleB|(?:(?:Righ|Lef)tDown|Right(?:Up)?|Left(?:Up)?)VectorB|RightTriangleB|Left(?:Triangle|Arrow)B|RightArrowB|V(?:er(?:ticalB|b)|b)|UpArrowB|l(?:ur(?:ds|u)h|dr(?:us|d)h|trP|owb|H)|profal|r(?:ulu|dld)h|b(?:igst|rvb)|(?:wed|ve[er])b|s(?:wn|es)w|n(?:wne|ese|sp|hp)|gtlP|d(?:oll|uh|H)|(?:hor|ov)b|u(?:dh|H)|r(?:lh|H)|ohb|hb|St)a|D(?:o(?:wn(?:(?:Left(?:Right|Tee)|RightTee)Vecto|(?:(?:Righ|Lef)tVector|Arrow)Ba)|ubleVerticalBa)|a(?:gge|r)|sc|f)|(?:(?:(?:Righ|Lef)tDown|(?:Righ|Lef)tUp)Tee|(?:Righ|Lef)tUpDown)Vecto|VerticalSeparato|(?:Left(?:Right|Tee)|RightTee)Vecto|less(?:eqq?)?gt|e(?:qslantgt|sc)|(?:RightF|LeftF|[lr]f)loo|u(?:[lr]corne|ar)|timesba|(?:plusa|cirs|apa)ci|U(?:arroci|f)|(?:dzigr|s(?:u(?:pl|br)|imr|[lr])|zigr|angz|nvH|l(?:tl|B)|r[Br])ar|UnderBa|(?:plus|harr|top|mid|of)ci|O(?:verBa|sc|f)|dd?agge|s(?:olba|sc)|g(?:t(?:rar|ci)|sc|f)|c(?:opys|u(?:po|ep)|sc|f)|(?:n(?:(?:v[lr]|w|r)A|l[Aa]|h[Aa]|eA)|x[hlr][Aa]|u(?:ua|da|A)|s[ew]A|rla|o[lr]a|rba|rAa|l[Ablr]a|h(?:oa|A)|era|d(?:ua|A)|cra|vA)r|o(?:lci|sc|ro|pa)|ropa|roar|l(?:o(?:pa|ar)|sc|Ar)|i(?:ma|s)c|ltci|dd?ar|a(?:ma|s)c|R(?:Bar|sc|f)|I(?:mac|f)|(?:u(?:ma|s)|oma|ema|Oma|Ema|[wyz]s|qs|ks|fs|Zs|Ys|Xs|Ws|Vs|Us|Ss|Qs|Ns|Ms|Ks|Is|Gs|Fs|Cs|Bs)c|Umac|x(?:sc|f)|v(?:sc|f)|rsc|n(?:ld|f)|m(?:sc|ld|ac|f)|rAr|h(?:sc|f)|b(?:sc|f)|psc|P(?:sc|f)|L(?:sc|ar|f)|jsc|J(?:sc|f)|E(?:sc|f)|[HT]sc|[yz]f|wf|tf|qf|pf|kf|jf|Zf|Yf|Xf|Wf|Vf|Tf|Sf|Qf|Nf|Mf|Kf|Hf|Gf|Ff|Cf|Bf)r|(?:Diacritical(?:Double)?A|[EINOSYZaisz]a)cute|(?:(?:N(?:egative(?:VeryThin|Thi(?:ck|n))|onBreaking)|NegativeMedium|ZeroWidth|VeryThin|Medium|Thi(?:ck|n))Spac|Filled(?:Very)?SmallSquar|Empty(?:Very)?SmallSquar|(?:N(?:ot(?:Succeeds|Greater|Tilde|Less)T|t)|DiacriticalT|VerticalT|PrecedesT|SucceedsT|NotEqualT|GreaterT|TildeT|EqualT|LessT|at|Ut|It)ild|(?:(?:DiacriticalG|[EIOUaiu]g)ra|(?:u|U)?bre|(?:o|e)?gra)v|(?:doublebar|curly|big|x)wedg|H(?:orizontalLin|ilbertSpac)|Double(?:Righ|Lef)tTe|(?:(?:measured|uw)ang|exponentia|dwang|ssmi|fema)l|(?:Poincarepla|reali|pho|oli)n|(?:black)?lozeng|(?:VerticalL|(?:prof|imag)l)in|SmallCircl|(?:black|dot)squar|rmoustach|l(?:moustach|angl)|(?:b(?:ack)?pr|(?:tri|xo)t|[qt]pr)im|[Tt]herefor|(?:DownB|[Gag]b)rev|(?:infint|nv[lr]tr)i|b(?:arwedg|owti)|an(?:dslop|gl)|(?:cu(?:rly)?v|rthr|lthr|b(?:ig|ar)v|xv)e|n(?:s(?:qsu[bp]|ccu)|prcu)|orslop|NewLin|maltes|Becaus|rangl|incar|(?:otil|Otil|t(?:ra|il))d|[inu]tild|s(?:mil|imn)|(?:sc|pr)cu|Wedg|Prim|Brev)e|(?:CloseCurly(?:Double)?Quo|OpenCurly(?:Double)?Quo|[ry]?acu)te|(?:Reverse(?:Up)?|Up)Equilibrium|C(?:apitalDifferentialD|(?:oproduc|(?:ircleD|enterD|d)o)t|on(?:grue|i)nt|conint|upCap|o(?:lone|pf)|OPY|hi)|(?:(?:(?:left)?rightsquig|(?:longleftr|twoheadr|nleftr|nLeftr|longr|hookr|nR|Rr)ight|(?:twohead|hook)left|longleft|updown|Updown|nright|Right|nleft|nLeft|down|up|Up)a|L(?:(?:ong(?:left)?righ|(?:ong)?lef)ta|eft(?:(?:right)?a|RightA|TeeA))|RightTeeA|LongLeftA|UpTeeA)rrow|(?:(?:RightArrow|Short|Upper|Lower)Left|(?:L(?:eftArrow|o(?:wer|ng))|LongLeft|Short|Upper)Right|ShortUp)Arrow|(?:b(?:lacktriangle(?:righ|lef)|ulle|no)|RightDoubleBracke|RightAngleBracke|Left(?:Doub|Ang)leBracke|(?:vartriangle|downharpoon|c(?:ircl|urv)earrow|upharpoon|looparrow)righ|(?:vartriangle|downharpoon|c(?:ircl|urv)earrow|upharpoon|looparrow|mapsto)lef|(?:UnderBrack|OverBrack|emptys|targ|Sups)e|diamondsui|c(?:ircledas|lubsui|are)|(?:spade|heart)sui|(?:(?:c(?:enter|t)|lmi|ino)d|(?:Triple|mD)D|n(?:otin|e)d|(?:ncong|doteq|su[bp]e|e[gl]s)d|l(?:ess|t)d|isind|c(?:ong|up|ap)?d|b(?:igod|N)|t(?:(?:ri)?d|opb)|s(?:ub|im)d|midd|g(?:tr?)?d|Lmid|DotD|(?:xo|ut|z)d|e(?:s?d|rD|fD|DD)|dtd|Zd|Id|Gd|Ed)o|realpar|i(?:magpar|iin)|S(?:uchTha|qr)|su[bp]mul|(?:(?:lt|i)que|gtque|(?:mid|low)a|e(?:que|xi))s|Produc|s(?:updo|e[cx])|r(?:parg|ec)|lparl|vangr|hamil|(?:homt|[lr]fis|ufis|dfis)h|phmma|t(?:wix|in)|quo|o(?:do|as)|fla|eDo)t|(?:(?:Square)?Intersecti|(?:straight|back|var)epsil|SquareUni|expectati|upsil|epsil|Upsil|eq?col|Epsil|(?:omic|Omic|rca|lca|eca|Sca|[NRTt]ca|Lca|Eca|[Zdz]ca|Dca)r|scar|ncar|herc|ccar|Ccar|iog|Iog)on|Not(?:S(?:quareSu(?:per|b)set|u(?:cceeds|(?:per|b)set))|Precedes|Greater|Tilde|Less)?|(?:(?:(?:Not(?:Reverse)?|Reverse)E|comp|E)leme|NotCongrue|(?:n[gl]|l)eqsla|geqsla|q(?:uat)?i|perc|iiii|coni|cwi|awi|oi)nt|(?:(?:rightleftharpo|leftrightharpo|quaterni)on|(?:(?:N(?:ot(?:NestedLess|Greater|Less)|estedLess)L|(?:eqslant|gtr(?:eqq?)?)l|LessL)e|Greater(?:Equal)?Le|cro)s|(?:rightright|leftleft|upup)arrow|rightleftarrow|(?:(?:(?:righ|lef)tthree|divideon|b(?:igo|ox)|[lr]o)t|InvisibleT)ime|downdownarrow|(?:(?:smallset|tri|dot|box)m|PlusM)inu|(?:RoundImpli|complex|Impli|Otim)e|C(?:ircle(?:Time|Minu|Plu)|ayley|ros)|(?:rationa|mode)l|NotExist|(?:(?:UnionP|MinusP|(?:b(?:ig[ou]|ox)|tri|s(?:u[bp]|im)|dot|xu|mn)p)l|(?:xo|u)pl|o(?:min|pl)|ropl|lopl|epl)u|otimesa|integer|e(?:linter|qual)|setminu|rarrbf|larrb?f|olcros|rarrf|mstpo|lesge|gesle|Exist|[lr]time|strn|napo|fltn|ccap|apo)s|(?:b(?:(?:lack|ig)triangledow|etwee)|(?:righ|lef)tharpoondow|(?:triangle|mapsto)dow|(?:nv|i)infi|ssetm|plusm|lagra|d(?:[lr]cor|isi)|c(?:ompf|aro)|s?frow|(?:hyph|curr)e|kgree|thor|ogo|ye)n|Not(?:Righ|Lef)tTriangle|(?:Up(?:Arrow)?|Short)DownArrow|(?:(?:n(?:triangle(?:righ|lef)t|succ|prec)|(?:trianglerigh|trianglelef|sqsu[bp]se|ques)t|backsim)e|lvertneq|gvertneq|(?:suc|pre)cneq|a(?:pprox|symp)e|(?:succ|prec|vee)e|circe)q|(?:UnderParenthes|OverParenthes|xn)is|(?:(?:Righ|Lef)tDown|Right(?:Up)?|Left(?:Up)?)Vector|D(?:o(?:wn(?:RightVector|LeftVector|Arrow|Tee)|t)|el|D)|l(?:eftrightarrows|br(?:k(?:sl[du]|e)|ac[ek])|tri[ef]|s(?:im[eg]|qb|h)|hard|a(?:tes|ngd|p)|o[pz]f|rm|gE|fr|eg|cy)|(?:NotHumpDownHum|(?:righ|lef)tharpoonu|big(?:(?:triangle|sqc)u|c[au])|HumpDownHum|m(?:apstou|lc)|(?:capbr|xsq)cu|smash|rarr[al]|(?:weie|sha)r|larrl|velli|(?:thin|punc)s|h(?:elli|airs)|(?:u[lr]c|vp)ro|d[lr]cro|c(?:upc[au]|apc[au])|thka|scna|prn?a|oper|n(?:ums|va|cu|bs)|ens|xc[au]|Ma)p|l(?:eftrightarrow|e(?:ftarrow|s(?:dot)?)?|moust|a(?:rrb?|te?|ng)|t(?:ri)?|sim|par|oz|l|g)|n(?:triangle(?:righ|lef)t|succ|prec)|SquareSu(?:per|b)set|(?:I(?:nvisibleComm|ot)|(?:varthe|iio)t|varkapp|(?:vars|S)igm|(?:diga|mco)mm|Cedill|lambd|Lambd|delt|Thet|omeg|Omeg|Kapp|Delt|nabl|zet|to[es]|rdc|ldc|iot|Zet|Bet|Et)a|b(?:lacktriangle|arwed|u(?:mpe?|ll)|sol|o(?:x[HVhv]|t)|brk|ne)|(?:trianglerigh|trianglelef|sqsu[bp]se|ques)t|RightT(?:riangl|e)e|(?:(?:varsu[bp]setn|su(?:psetn?|bsetn?))eq|nsu[bp]seteq|colone|(?:wedg|sim)e|nsime|lneq|gneq)q|DifferentialD|(?:(?:fall|ris)ingdots|(?:suc|pre)ccurly|ddots)eq|A(?:pplyFunction|ssign|(?:tild|grav|brev)e|acute|o(?:gon|pf)|lpha|(?:mac|sc|f)r|c(?:irc|y)|ring|Elig|uml|nd|MP)|(?:varsu[bp]setn|su(?:psetn?|bsetn?))eq|L(?:eft(?:T(?:riangl|e)e|Arrow)|l)|G(?:reaterEqual|amma)|E(?:xponentialE|quilibrium|sim|cy|TH|NG)|(?:(?:RightCeil|LeftCeil|varnoth|ar|Ur)in|(?:b(?:ack)?co|uri)n|vzigza|roan|loan|ffli|amal|sun|rin|n(?:tl|an)|Ran|Lan)g|(?:thick|succn?|precn?|less|g(?:tr|n)|ln|n)approx|(?:s(?:traightph|em)|(?:rtril|xu|u[lr]|xd|v[lr])tr|varph|l[lr]tr|b(?:sem|eps)|Ph)i|(?:circledd|osl|n(?:v[Dd]|V[Dd]|d)|hsl|V(?:vd|D)|Osl|v[Dd]|md)ash|(?:(?:RuleDelay|imp|cuw)e|(?:n(?:s(?:hort)?)?|short|rn)mi|D(?:Dotrah|iamon)|(?:i(?:nt)?pr|peri)o|odsol|llhar|c(?:opro|irmi)|(?:capa|anda|pou)n|Barwe|napi|api)d|(?:cu(?:rlyeq(?:suc|pre)|es)|telre|[ou]dbla|Udbla|Odbla|radi|lesc|gesc|dbla)c|(?:circled|big|eq|[is]|c|x|a|S|[hw]|W|H|G|E|C)circ|rightarrow|R(?:ightArrow|arr|e)|Pr(?:oportion)?|(?:longmapst|varpropt|p(?:lustw|ropt)|varrh|numer|(?:rsa|lsa|sb)qu|m(?:icr|h)|[lr]aqu|bdqu|eur)o|UnderBrace|ImaginaryI|B(?:ernoullis|a(?:ckslash|rv)|umpeq|cy)|(?:(?:Laplace|Mellin|zee)tr|Fo(?:uriertr|p)|(?:profsu|ssta)r|ordero|origo|[ps]op|nop|mop|i(?:op|mo)|h(?:op|al)|f(?:op|no)|dop|bop|Rop|Pop|Nop|Lop|Iop|Hop|Dop|[GJKMOQSTV-Zgjkoqvwyz]op|Bop)f|nsu[bp]seteq|t(?:ri(?:angleq|e)|imesd|he(?:tav|re4)|au)|O(?:verBrace|r)|(?:(?:pitchfo|checkma|t(?:opfo|b)|rob|rbb|l[bo]b)r|intlarh|b(?:brktbr|l(?:oc|an))|perten|NoBrea|rarrh|s[ew]arh|n[ew]arh|l(?:arrh|hbl)|uhbl|Hace)k|(?:NotCupC|(?:mu(?:lti)?|x)m|cupbrc)ap|t(?:riangle|imes|heta|opf?)|Precedes|Succeeds|Superset|NotEqual|(?:n(?:atural|exist|les)|s(?:qc[au]p|mte)|prime)s|c(?:ir(?:cled[RS]|[Ee])|u(?:rarrm|larrp|darr[lr]|ps)|o(?:mmat|pf)|aps|hi)|b(?:sol(?:hsu)?b|ump(?:eq|E)|ox(?:box|[Vv][HLRhlr]|[Hh][DUdu]|[DUdu][LRlr])|e(?:rnou|t[ah])|lk(?:34|1[24])|cy)|(?:l(?:esdot|squ|dqu)o|rsquo|rdquo|ngt)r|a(?:n(?:g(?:msda[a-h]|st|e)|d[dv])|st|p[Ee]|mp|fr|c[Edy])|(?:g(?:esdoto|E)|[lr]haru)l|(?:angrtvb|lrhar|nis)d|(?:(?:th(?:ic)?k|succn?|p(?:r(?:ecn?|n)?|lus)|rarr|l(?:ess|arr)|su[bp]|par|scn|g(?:tr|n)|ne|sc|n[glv]|ln|eq?)si|thetasy|ccupss|alefsy|botto)m|trpezium|(?:hks[ew]|dr?bk|bk)arow|(?:(?:[lr]a|d|c)empty|b(?:nequi|empty)|plank|nequi|odi)v|(?:(?:sc|rp|n)pol|point|fpart)int|(?:c(?:irf|wco)|awco)nint|PartialD|n(?:s(?:u[bp](?:set)?|c)|rarr|ot(?:ni|in)?|warr|e(?:arr)?|a(?:tur|p)|vlt|p(?:re?|ar)|um?|l[et]|ge|i)|n(?:atural|exist|les)|d(?:i(?:am(?:ond)?|v(?:ide)?)|tri|ash|ot|d)|backsim|l(?:esdot|squ|dqu)o|g(?:esdoto|E)|U(?:p(?:Arrow|si)|nion|arr)|angrtvb|p(?:l(?:anckh|us(?:d[ou]|[be]))|ar(?:sl|t)|r(?:od|nE|E)|erp|iv|m)|n(?:ot(?:niv[a-c]|in(?:v[a-c]|E))|rarr[cw]|s(?:u[bp][Ee]|c[er])|part|v(?:le|g[et])|g(?:es|E)|c(?:ap|y)|apE|lE|iv|Ll|Gg)|m(?:inus(?:du|b)|ale|cy|p)|rbr(?:k(?:sl[du]|e)|ac[ek])|(?:suphsu|tris|rcu|lcu)b|supdsub|(?:s[ew]a|n[ew]a)rrow|(?:b(?:ecaus|sim)|n(?:[lr]tri|bump)|csu[bp])e|equivDD|u(?:rcorn|lcorn|psi)|timesb|s(?:u(?:p(?:set)?|b(?:set)?)|q(?:su[bp]|u)|i(?:gma|m)|olb?|dot|mt|fr|ce?)|p(?:l(?:anck|us)|r(?:op|ec?)?|ara?|i)|o(?:times|r(?:d(?:er)?)?)|m(?:i(?:nusd?|d)|a(?:p(?:sto)?|lt)|u)|rmoust|g(?:e(?:s(?:dot|l)?|q)?|sim|n(?:ap|e)|t|l|g)|(?:spade|heart)s|c(?:u(?:rarr|larr|p)|o(?:m(?:ma|p)|lon|py|ng)|lubs|heck|cups|irc?|ent|ap)|colone|a(?:p(?:prox)?|n(?:g(?:msd|rt)?|d)|symp|f|c)|S(?:quare|u[bp]|c)|Subset|b(?:ecaus|sim)|vsu[bp]n[Ee]|s(?:u(?:psu[bp]|b(?:su[bp]|n[Ee]|E)|pn[Ee]|p[1-3E]|m)|q(?:u(?:ar[ef]|f)|su[bp]e)|igma[fv]|etmn|dot[be]|par|mid|hc?y|c[Ey])|f(?:rac(?:78|5[68]|45|3[458]|2[35]|1[2-68])|fr)|e(?:m(?:sp1[34]|ptyv)|psiv|c(?:irc|y)|t[ah]|ng|ll|fr|e)|(?:kappa|isins|vBar|fork|rho|phi|n[GL]t)v|divonx|V(?:dashl|ee)|gammad|G(?:ammad|cy|[Tgt])|[Ldhlt]strok|[HT]strok|(?:c(?:ylct|hc)|(?:s(?:oft|hch)|hard|S(?:OFT|HCH)|jser|J(?:ser|uk)|HARD|tsh|TSH|juk|iuk|I(?:uk|[EO])|zh|yi|nj|lj|k[hj]|gj|dj|ZH|Y[AIU]|NJ|LJ|K[HJ]|GJ|D[JSZ])c|ubrc|Ubrc|(?:yu|i[eo]|dz|v|p|f)c|TSc|SHc|CHc|Vc|Pc|Mc|Fc)y|(?:(?:wre|jm)at|dalet|a(?:ngs|le)p|imat|[lr]ds)h|[CLRUceglnou]acute|ff?llig|(?:f(?:fi|[ij])|sz|oe|ij|ae|OE|IJ)lig|r(?:a(?:tio|rr|ng)|tri|par|eal)|s[ew]arr|s(?:qc[au]p|mte)|prime|rarrb|i(?:n(?:fin|t)?|sin|t|i|c)|e(?:quiv|m(?:pty|sp)|p(?:si|ar)|cir|l|g)|kappa|isins|ncong|doteq|(?:wedg|sim)e|nsime|rsquo|rdquo|[lr]haru|V(?:dash|ert)|Tilde|lrhar|gamma|Equal|UpTee|n(?:[lr]tri|bump)|C(?:olon|up|ap)|v(?:arpi|ert)|u(?:psih|ml)|vnsu[bp]|r(?:tri[ef]|e(?:als|g)|a(?:rr[cw]|ng[de]|ce)|sh|lm|x)|rhard|sim[gl]E|i(?:sin[Ev]|mage|f[fr]|cy)|harrw|(?:n[gl]|l)eqq|g(?:sim[el]|tcc|e(?:qq|l)|nE|l[Eaj]|gg|ap)|ocirc|starf|utrif|d(?:trif|i(?:ams|e)|ashv|sc[ry]|fr|eg)|[du]har[lr]|T(?:HORN|a[bu])|(?:TRAD|[gl]vn)E|odash|[EUaeu]o(?:gon|pf)|alpha|[IJOUYgjuy]c(?:irc|y)|v(?:arr|ee)|succ|sim[gl]|harr|ln(?:ap|e)|lesg|(?:n[gl]|l)eq|ocir|star|utri|vBar|fork|su[bp]e|nsim|lneq|gneq|csu[bp]|zwn?j|yacy|x(?:opf|i)|scnE|o(?:r(?:d[fm]|v)|mid|lt|hm|gt|fr|cy|S)|scap|rsqb|ropf|ltcc|tsc[ry]|QUOT|[EOUYao]uml|rho|phi|n[GL]t|e[gl]s|ngt|I(?:nt|m)|nis|rfr|rcy|lnE|lEg|ufr|S(?:um|cy)|R(?:sh|ho)|psi|Ps?i|[NRTt]cy|L(?:sh|cy|[Tt])|kcy|Kcy|Hat|REG|[Zdz]cy|wr|lE|wp|Xi|Nu|Mu)(;)',
name: 'constant.language.character-reference.named.html',
captures: {
1: {
name: 'punctuation.definition.character-reference.begin.html'
},
2: {
name: 'keyword.control.character-reference.html'
},
3: {
name: 'punctuation.definition.character-reference.end.html'
}
}
},
'whatwg-html-data-character-reference-named-unterminated': {
match:
'(&)(frac(?:34|1[24])|(?:plusm|thor|ye)n|(?:middo|iques|sec|quo|no|g)t|c(?:urren|opy|ent)|brvbar|oslash|Oslash|(?:ccedi|Ccedi|iexc|cedi|um)l|(?:(?:divi|[NOano]til)d|[EIOUaeiou]grav)e|[EIOUYaeiouy]acute|A(?:(?:tild|grav)e|acute|circ|ring|Elig|uml|MP)|times|p(?:ound|ara)|micro|raquo|l(?:aquo|t)|THORN|acirc|[EIOUeiou]circ|acute|(?:arin|[dr]e)g|(?:sz|ae)lig|sup[1-3]|ord[fm]|macr|nbsp|(?:QUO|[GL])T|COPY|[EIOUaeiouy]uml|shy|amp|REG|eth|ETH)',
name: 'constant.language.character-reference.named.html',
captures: {
1: {
name: 'punctuation.definition.character-reference.begin.html'
},
2: {
name: 'keyword.control.character-reference.html'
}
}
},
'whatwg-html-data-character-reference-numeric-hexadecimal': {
match: '(&)(#)([Xx])([A-Fa-f0-9]*)(;)?',
name: 'constant.language.character-reference.numeric.hexadecimal.html',
captures: {
1: {
name: 'punctuation.definition.character-reference.begin.html'
},
2: {
name: 'punctuation.definition.character-reference.numeric.html'
},
3: {
name: 'punctuation.definition.character-reference.numeric.hexadecimal.html'
},
4: {
name: 'constant.numeric.integer.hexadecimal.html'
},
5: {
name: 'punctuation.definition.character-reference.end.html'
}
}
},
'whatwg-html-data-character-reference-numeric-decimal': {
match: '(&)(#)([0-9]*)(;)?',
name: 'constant.language.character-reference.numeric.decimal.html',
captures: {
1: {
name: 'punctuation.definition.character-reference.begin.html'
},
2: {
name: 'punctuation.definition.character-reference.numeric.html'
},
3: {
name: 'constant.numeric.integer.decimal.html'
},
4: {
name: 'punctuation.definition.character-reference.end.html'
}
}
},
'whatwg-html-data-comment': {
patterns: [
{
match: '(<!--)(>|->)',
captures: {
1: {
name: 'punctuation.definition.comment.start.html'
},
2: {
name: 'punctuation.definition.comment.end.html'
}
},
name: 'comment.block.html'
},
{
begin: '(<!--)',
end: '(--!?>)',
beginCaptures: {
1: {
name: 'punctuation.definition.comment.start.html'
}
},
endCaptures: {
1: {
name: 'punctuation.definition.comment.end.html'
}
},
name: 'comment.block.html'
}
]
},
'whatwg-html-data-comment-bogus': {
patterns: [
{
begin: '(<!)',
end: '(>)',
beginCaptures: {
1: {
name: 'punctuation.definition.comment.start.html'
}
},
endCaptures: {
1: {
name: 'punctuation.definition.comment.end.html'
}
},
name: 'comment.block.html'
},
{
begin: '(<\\?)',
end: '(>)',
beginCaptures: {
1: {
name: 'punctuation.definition.comment.start.html'
}
},
endCaptures: {
1: {
name: 'punctuation.definition.comment.end.html'
}
},
name: 'comment.block.html'
}
]
},
'whatwg-html-data-tag': {
patterns: [
{
match:
'(<)(/)?((?:[A-Za-z][^\\t\\n\\f\\r />]*))((?:(?:[\\t\\n\\f\\r ]+|(?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+)(?:[\\t\\n\\f\\r ]*=[\\t\\n\\f\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\f\\r >]+))?|\\/)*))(>)',
name: 'meta.tag.${3:/downcase}.html',
captures: {
1: {
name: 'punctuation.definition.tag.begin.html'
},
2: {
name: 'punctuation.definition.tag.closing.html'
},
3: {
name: 'entity.name.tag.html'
},
4: {
patterns: [
{
include: '#whatwg-html-attribute'
},
{
include: '#whatwg-html-self-closing-start-tag'
}
]
},
5: {
name: 'punctuation.definition.tag.end.html'
}
}
},
{
match: '</>',
name: 'comment.block.html'
},
{
begin: '(?:</)',
beginCaptures: {
0: {
name: 'punctuation.definition.comment.start.html'
}
},
end: '(?:>)',
endCaptures: {
0: {
name: 'punctuation.definition.comment.end.html'
}
},
name: 'comment.block.html'
}
]
},
'whatwg-html-rawtext-tag': {
begin:
'<((?i:iframe|noembed|noframes|xmp))(?![A-Za-z])(?:(?:[\\t\\n\\f\\r ]+|(?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+)(?:[\\t\\n\\f\\r ]*=[\\t\\n\\f\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\f\\r >]+))?|\\/)*)>',
beginCaptures: {
0: {
patterns: [
{
include: '#whatwg-html-data-tag'
}
]
}
},
contentName: 'markup.raw.text.html',
end: '(?=</(?i:\\1)(?:[\\t\\n\\f\\r \\/>]|$))'
},
'whatwg-html-rawtext-tag-style': {
begin:
'<((?i:style))(?![A-Za-z])(?:(?:[\\t\\n\\f\\r ]+|(?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+)(?:[\\t\\n\\f\\r ]*=[\\t\\n\\f\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\f\\r >]+))?|\\/)*)>',
beginCaptures: {
0: {
patterns: [
{
include: '#whatwg-html-data-tag'
}
]
}
},
patterns: [
{
include: 'source.css'
}
],
end: '(?=</(?i:\\1)(?:[\\t\\n\\f\\r \\/>]|$))'
},
'whatwg-html-rcdata-tag': {
begin:
'<((?i:textarea|title))(?![A-Za-z])(?:(?:[\\t\\n\\f\\r ]+|(?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+)(?:[\\t\\n\\f\\r ]*=[\\t\\n\\f\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\f\\r >]+))?|\\/)*)>',
beginCaptures: {
0: {
patterns: [
{
include: '#whatwg-html-data-tag'
}
]
}
},
contentName: 'markup.raw.text.html',
patterns: [
{
include: '#whatwg-html-data-character-reference'
}
],
end: '(?=</(?i:\\1)(?:[\\t\\n\\f\\r \\/>]|$))'
},
'whatwg-html-script-data-tag': {
begin:
'<((?i:script))(?![A-Za-z])(?:(?:[\\t\\n\\f\\r ]+|(?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+)(?:[\\t\\n\\f\\r ]*=[\\t\\n\\f\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\f\\r >]+))?|\\/)*)>',
beginCaptures: {
0: {
patterns: [
{
include: '#whatwg-html-data-tag'
}
]
}
},
patterns: [
{
include: 'source.js'
}
],
end: '(?=</(?i:\\1)(?:[\\t\\n\\f\\r \\/>]|$))'
},
'whatwg-html-attribute': {
patterns: [
{
include: '#whatwg-html-attribute-event-handler'
},
{
include: '#whatwg-html-attribute-style'
},
{
include: '#whatwg-html-attribute-unknown'
}
]
},
'whatwg-html-attribute-event-handler': {
match:
'((?i:on[a-z]+))(?:[\\t\\n\\f\\r ]*(=)[\\t\\n\\f\\r ]*(?:(")([^"]*)(")|(\')([^\']*)(\')|([^\\t\\n\\f\\r >]+)))',
captures: {
1: {
name: 'entity.other.attribute-name.html.md'
},
2: {
name: 'punctuation.separator.key-value.html.md'
},
3: {
name: 'string.other.begin.html.md'
},
4: {
name: 'string.quoted.double.html.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
},
{
include: 'source.js'
}
]
},
5: {
name: 'string.other.end.html.md'
},
6: {
name: 'string.other.begin.html.md'
},
7: {
name: 'string.quoted.single.html.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
},
{
include: 'source.js'
}
]
},
8: {
name: 'string.other.end.html.md'
},
9: {
name: 'string.unquoted.html.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
},
{
include: 'source.js'
}
]
}
}
},
'whatwg-html-attribute-style': {
match:
'((?i:style))(?:[\\t\\n\\f\\r ]*(=)[\\t\\n\\f\\r ]*(?:(")([^"]*)(")|(\')([^\']*)(\')|([^\\t\\n\\f\\r >]+)))',
captures: {
1: {
name: 'entity.other.attribute-name.html.md'
},
2: {
name: 'punctuation.separator.key-value.html.md'
},
3: {
name: 'string.other.begin.html.md'
},
4: {
name: 'string.quoted.double.html.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
},
{
include: 'source.css#rule-list-innards'
}
]
},
5: {
name: 'string.other.end.html.md'
},
6: {
name: 'string.other.begin.html.md'
},
7: {
name: 'string.quoted.single.html.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
},
{
include: 'source.css#rule-list-innards'
}
]
},
8: {
name: 'string.other.end.html.md'
},
9: {
name: 'string.unquoted.html.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
},
{
include: 'source.css#rule-list-innards'
}
]
}
}
},
'whatwg-html-attribute-unknown': {
match:
'((?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+))(?:[\\t\\n\\f\\r ]*(=)[\\t\\n\\f\\r ]*(?:(")([^"]*)(")|(\')([^\']*)(\')|([^\\t\\n\\f\\r >]+)))?',
captures: {
1: {
name: 'entity.other.attribute-name.html.md'
},
2: {
name: 'punctuation.separator.key-value.html.md'
},
3: {
name: 'string.other.begin.html.md'
},
4: {
name: 'string.quoted.double.html.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
}
]
},
5: {
name: 'string.other.end.html.md'
},
6: {
name: 'string.other.begin.html.md'
},
7: {
name: 'string.quoted.single.html.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
}
]
},
8: {
name: 'string.other.end.html.md'
},
9: {
name: 'string.unquoted.html.md',
patterns: [
{
include: '#whatwg-html-data-character-reference'
}
]
}
}
},
'whatwg-html-self-closing-start-tag': {
match: '\\/',
name: 'punctuation.definition.tag.self-closing.html'
},
'commonmark-code-fenced-apib': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:api\\x2dblueprint|(?:.*\\.)?apib))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.apib.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.apib',
patterns: [
{
include: 'text.html.markdown.source.gfm.apib'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:api\\x2dblueprint|(?:.*\\.)?apib))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.apib.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.apib',
patterns: [
{
include: 'text.html.markdown.source.gfm.apib'
}
]
}
]
}
]
},
'commonmark-code-fenced-asciidoc': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:adoc|asciidoc)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.asciidoc.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.asciidoc',
patterns: [
{
include: 'text.html.asciidoc'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:adoc|asciidoc)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.asciidoc.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.asciidoc',
patterns: [
{
include: 'text.html.asciidoc'
}
]
}
]
}
]
},
'commonmark-code-fenced-c': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:dtrace|dtrace\\x2dscript|oncrpc|rpc|rpcgen|unified\\x2dparallel\\x2dc|x\\x2dbitmap|x\\x2dpixmap|xdr|(?:.*\\.)?(?:c|cats|h|idc|opencl|upc|xbm|xpm|xs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.c.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.c',
patterns: [
{
include: 'source.c'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:dtrace|dtrace\\x2dscript|oncrpc|rpc|rpcgen|unified\\x2dparallel\\x2dc|x\\x2dbitmap|x\\x2dpixmap|xdr|(?:.*\\.)?(?:c|cats|h|idc|opencl|upc|xbm|xpm|xs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.c.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.c',
patterns: [
{
include: 'source.c'
}
]
}
]
}
]
},
'commonmark-code-fenced-clojure': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:clojure|rouge|(?:.*\\.)?(?:boot|cl2|clj|cljc|cljs|cljs\\.hl|cljscm|cljx|edn|hic|rg|wisp)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.clojure.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.clojure',
patterns: [
{
include: 'source.clojure'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:clojure|rouge|(?:.*\\.)?(?:boot|cl2|clj|cljc|cljs|cljs\\.hl|cljscm|cljx|edn|hic|rg|wisp)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.clojure.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.clojure',
patterns: [
{
include: 'source.clojure'
}
]
}
]
}
]
},
'commonmark-code-fenced-coffee': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:coffee\\x2dscript|coffeescript|(?:.*\\.)?(?:_coffee|cjsx|coffee|cson|em|emberscript|iced)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.coffee.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.coffee',
patterns: [
{
include: 'source.coffee'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:coffee\\x2dscript|coffeescript|(?:.*\\.)?(?:_coffee|cjsx|coffee|cson|em|emberscript|iced)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.coffee.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.coffee',
patterns: [
{
include: 'source.coffee'
}
]
}
]
}
]
},
'commonmark-code-fenced-console': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:pycon|python\\x2dconsole))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.console.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.console',
patterns: [
{
include: 'text.python.console'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:pycon|python\\x2dconsole))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.console.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.console',
patterns: [
{
include: 'text.python.console'
}
]
}
]
}
]
},
'commonmark-code-fenced-cpp': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:ags|ags\\x2dscript|asymptote|c\\+\\+|edje\\x2ddata\\x2dcollection|game\\x2dmaker\\x2dlanguage|swig|(?:.*\\.)?(?:asc|ash|asy|c\\+\\+|cc|cp|cpp|cppm|cxx|edc|gml|h\\+\\+|hh|hpp|hxx|inl|ino|ipp|ixx|metal|re|tcc|tpp|txx)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.cpp.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.cpp',
patterns: [
{
include: 'source.c++'
},
{
include: 'source.cpp'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:ags|ags\\x2dscript|asymptote|c\\+\\+|edje\\x2ddata\\x2dcollection|game\\x2dmaker\\x2dlanguage|swig|(?:.*\\.)?(?:asc|ash|asy|c\\+\\+|cc|cp|cpp|cppm|cxx|edc|gml|h\\+\\+|hh|hpp|hxx|inl|ino|ipp|ixx|metal|re|tcc|tpp|txx)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.cpp.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.cpp',
patterns: [
{
include: 'source.c++'
},
{
include: 'source.cpp'
}
]
}
]
}
]
},
'commonmark-code-fenced-cs': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:beef|c#|cakescript|csharp|(?:.*\\.)?(?:bf|cake|cs|cs\\.pp|csx|eq|linq|uno)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.cs.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.cs',
patterns: [
{
include: 'source.cs'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:beef|c#|cakescript|csharp|(?:.*\\.)?(?:bf|cake|cs|cs\\.pp|csx|eq|linq|uno)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.cs.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.cs',
patterns: [
{
include: 'source.cs'
}
]
}
]
}
]
},
'commonmark-code-fenced-css': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?css))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.css.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.css',
patterns: [
{
include: 'source.css'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?css))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.css.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.css',
patterns: [
{
include: 'source.css'
}
]
}
]
}
]
},
'commonmark-code-fenced-diff': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:udiff|(?:.*\\.)?(?:diff|patch)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.diff.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.diff',
patterns: [
{
include: 'source.diff'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:udiff|(?:.*\\.)?(?:diff|patch)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.diff.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.diff',
patterns: [
{
include: 'source.diff'
}
]
}
]
}
]
},
'commonmark-code-fenced-dockerfile': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:containerfile|(?:.*\\.)?dockerfile))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.dockerfile.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.dockerfile',
patterns: [
{
include: 'source.dockerfile'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:containerfile|(?:.*\\.)?dockerfile))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.dockerfile.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.dockerfile',
patterns: [
{
include: 'source.dockerfile'
}
]
}
]
}
]
},
'commonmark-code-fenced-elixir': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:elixir|(?:.*\\.)?(?:ex|exs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.elixir.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.elixir',
patterns: [
{
include: 'source.elixir'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:elixir|(?:.*\\.)?(?:ex|exs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.elixir.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.elixir',
patterns: [
{
include: 'source.elixir'
}
]
}
]
}
]
},
'commonmark-code-fenced-elm': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?elm))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.elm.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.elm',
patterns: [
{
include: 'source.elm'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?elm))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.elm.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.elm',
patterns: [
{
include: 'source.elm'
}
]
}
]
}
]
},
'commonmark-code-fenced-erlang': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:erlang|(?:.*\\.)?(?:app|app\\.src|erl|es|escript|hrl|xrl|yrl)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.erlang.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.erlang',
patterns: [
{
include: 'source.erlang'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:erlang|(?:.*\\.)?(?:app|app\\.src|erl|es|escript|hrl|xrl|yrl)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.erlang.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.erlang',
patterns: [
{
include: 'source.erlang'
}
]
}
]
}
]
},
'commonmark-code-fenced-gitconfig': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:git\\x2dconfig|gitmodules|(?:.*\\.)?gitconfig))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.gitconfig.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.gitconfig',
patterns: [
{
include: 'source.gitconfig'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:git\\x2dconfig|gitmodules|(?:.*\\.)?gitconfig))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.gitconfig.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.gitconfig',
patterns: [
{
include: 'source.gitconfig'
}
]
}
]
}
]
},
'commonmark-code-fenced-go': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:golang|(?:.*\\.)?go))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.go.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.go',
patterns: [
{
include: 'source.go'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:golang|(?:.*\\.)?go))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.go.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.go',
patterns: [
{
include: 'source.go'
}
]
}
]
}
]
},
'commonmark-code-fenced-graphql': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:gql|graphql|graphqls)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.graphql.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.graphql',
patterns: [
{
include: 'source.graphql'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:gql|graphql|graphqls)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.graphql.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.graphql',
patterns: [
{
include: 'source.graphql'
}
]
}
]
}
]
},
'commonmark-code-fenced-haskell': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:c2hs|c2hs\\x2dhaskell|frege|haskell|(?:.*\\.)?(?:chs|dhall|hs|hs\\x2dboot|hsc)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.haskell.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.haskell',
patterns: [
{
include: 'source.haskell'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:c2hs|c2hs\\x2dhaskell|frege|haskell|(?:.*\\.)?(?:chs|dhall|hs|hs\\x2dboot|hsc)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.haskell.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.haskell',
patterns: [
{
include: 'source.haskell'
}
]
}
]
}
]
},
'commonmark-code-fenced-html': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:html|(?:.*\\.)?(?:hta|htm|html\\.hl|kit|mtml|xht|xhtml)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.html.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.html',
patterns: [
{
include: 'text.html.basic'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:html|(?:.*\\.)?(?:hta|htm|html\\.hl|kit|mtml|xht|xhtml)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.html.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.html',
patterns: [
{
include: 'text.html.basic'
}
]
}
]
}
]
},
'commonmark-code-fenced-ini': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:altium|altium\\x2ddesigner|dosini|(?:.*\\.)?(?:cnf|dof|ini|lektorproject|outjob|pcbdoc|prefs|prjpcb|properties|schdoc|url)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.ini.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ini',
patterns: [
{
include: 'source.ini'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:altium|altium\\x2ddesigner|dosini|(?:.*\\.)?(?:cnf|dof|ini|lektorproject|outjob|pcbdoc|prefs|prjpcb|properties|schdoc|url)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.ini.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ini',
patterns: [
{
include: 'source.ini'
}
]
}
]
}
]
},
'commonmark-code-fenced-java': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:chuck|unrealscript|(?:.*\\.)?(?:ck|jav|java|jsh|uc)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.java.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.java',
patterns: [
{
include: 'source.java'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:chuck|unrealscript|(?:.*\\.)?(?:ck|jav|java|jsh|uc)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.java.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.java',
patterns: [
{
include: 'source.java'
}
]
}
]
}
]
},
'commonmark-code-fenced-js': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:cycript|javascript\\+erb|json\\x2dwith\\x2dcomments|node|qt\\x2dscript|(?:.*\\.)?(?:_js|bones|cjs|code\\x2dsnippets|code\\x2dworkspace|cy|es6|jake|javascript|js|js\\.erb|jsb|jscad|jsfl|jslib|jsm|json5|jsonc|jsonld|jspre|jss|jsx|mjs|njs|pac|sjs|ssjs|sublime\\x2dbuild|sublime\\x2dcolor\\x2dscheme|sublime\\x2dcommands|sublime\\x2dcompletions|sublime\\x2dkeymap|sublime\\x2dmacro|sublime\\x2dmenu|sublime\\x2dmousemap|sublime\\x2dproject|sublime\\x2dsettings|sublime\\x2dtheme|sublime\\x2dworkspace|sublime_metrics|sublime_session|xsjs|xsjslib)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.js.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.js',
patterns: [
{
include: 'source.js'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:cycript|javascript\\+erb|json\\x2dwith\\x2dcomments|node|qt\\x2dscript|(?:.*\\.)?(?:_js|bones|cjs|code\\x2dsnippets|code\\x2dworkspace|cy|es6|jake|javascript|js|js\\.erb|jsb|jscad|jsfl|jslib|jsm|json5|jsonc|jsonld|jspre|jss|jsx|mjs|njs|pac|sjs|ssjs|sublime\\x2dbuild|sublime\\x2dcolor\\x2dscheme|sublime\\x2dcommands|sublime\\x2dcompletions|sublime\\x2dkeymap|sublime\\x2dmacro|sublime\\x2dmenu|sublime\\x2dmousemap|sublime\\x2dproject|sublime\\x2dsettings|sublime\\x2dtheme|sublime\\x2dworkspace|sublime_metrics|sublime_session|xsjs|xsjslib)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.js.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.js',
patterns: [
{
include: 'source.js'
}
]
}
]
}
]
},
'commonmark-code-fenced-json': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:ecere\\x2dprojects|ipython\\x2dnotebook|jupyter\\x2dnotebook|max|max/msp|maxmsp|oasv2\\x2djson|oasv3\\x2djson|(?:.*\\.)?(?:4dform|4dproject|avsc|epj|geojson|gltf|har|ice|ipynb|json|json|json|json\\x2dtmlanguage|jsonl|maxhelp|maxpat|maxproj|mcmeta|mxt|pat|sarif|tfstate|tfstate\\.backup|topojson|webapp|webmanifest|yy|yyp)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.json.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.json',
patterns: [
{
include: 'source.json'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:ecere\\x2dprojects|ipython\\x2dnotebook|jupyter\\x2dnotebook|max|max/msp|maxmsp|oasv2\\x2djson|oasv3\\x2djson|(?:.*\\.)?(?:4dform|4dproject|avsc|epj|geojson|gltf|har|ice|ipynb|json|json|json|json\\x2dtmlanguage|jsonl|maxhelp|maxpat|maxproj|mcmeta|mxt|pat|sarif|tfstate|tfstate\\.backup|topojson|webapp|webmanifest|yy|yyp)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.json.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.json',
patterns: [
{
include: 'source.json'
}
]
}
]
}
]
},
'commonmark-code-fenced-julia': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:julia|(?:.*\\.)?jl))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.julia.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.julia',
patterns: [
{
include: 'source.julia'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:julia|(?:.*\\.)?jl))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.julia.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.julia',
patterns: [
{
include: 'source.julia'
}
]
}
]
}
]
},
'commonmark-code-fenced-kotlin': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:gradle\\x2dkotlin\\x2ddsl|kotlin|(?:.*\\.)?(?:gradle\\.kts|kt|ktm|kts)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.kotlin.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.kotlin',
patterns: [
{
include: 'source.kotlin'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:gradle\\x2dkotlin\\x2ddsl|kotlin|(?:.*\\.)?(?:gradle\\.kts|kt|ktm|kts)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.kotlin.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.kotlin',
patterns: [
{
include: 'source.kotlin'
}
]
}
]
}
]
},
'commonmark-code-fenced-less': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:less\\x2dcss|(?:.*\\.)?less))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.less.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.less',
patterns: [
{
include: 'source.css.less'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:less\\x2dcss|(?:.*\\.)?less))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.less.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.less',
patterns: [
{
include: 'source.css.less'
}
]
}
]
}
]
},
'commonmark-code-fenced-lua': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:fcgi|lua|nse|p8|pd_lua|rbxs|rockspec|wlua)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.lua.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.lua',
patterns: [
{
include: 'source.lua'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:fcgi|lua|nse|p8|pd_lua|rbxs|rockspec|wlua)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.lua.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.lua',
patterns: [
{
include: 'source.lua'
}
]
}
]
}
]
},
'commonmark-code-fenced-makefile': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:bsdmake|mf|(?:.*\\.)?(?:mak|make|makefile|mk|mkfile)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.makefile.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.makefile',
patterns: [
{
include: 'source.makefile'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:bsdmake|mf|(?:.*\\.)?(?:mak|make|makefile|mk|mkfile)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.makefile.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.makefile',
patterns: [
{
include: 'source.makefile'
}
]
}
]
}
]
},
'commonmark-code-fenced-md': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:md|pandoc|rmarkdown|(?:.*\\.)?(?:livemd|markdown|mdown|mdwn|mkd|mkdn|mkdown|qmd|rmd|ronn|scd|workbook)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.md.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.md',
patterns: [
{
include: 'text.md'
},
{
include: 'source.gfm'
},
{
include: 'text.html.markdown'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:md|pandoc|rmarkdown|(?:.*\\.)?(?:livemd|markdown|mdown|mdwn|mkd|mkdn|mkdown|qmd|rmd|ronn|scd|workbook)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.md.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.md',
patterns: [
{
include: 'text.md'
},
{
include: 'source.gfm'
},
{
include: 'text.html.markdown'
}
]
}
]
}
]
},
'commonmark-code-fenced-mdx': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?mdx))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.mdx.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.mdx',
patterns: [
{
include: 'source.mdx'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?mdx))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.mdx.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.mdx',
patterns: [
{
include: 'source.mdx'
}
]
}
]
}
]
},
'commonmark-code-fenced-objc': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:obj\\x2dc|objc|objective\\x2dc|objectivec))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.objc.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.objc',
patterns: [
{
include: 'source.objc'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:obj\\x2dc|objc|objective\\x2dc|objectivec))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.objc.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.objc',
patterns: [
{
include: 'source.objc'
}
]
}
]
}
]
},
'commonmark-code-fenced-perl': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:cperl|(?:.*\\.)?(?:cgi|perl|ph|pl|plx|pm|psgi|t)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.perl.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.perl',
patterns: [
{
include: 'source.perl'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:cperl|(?:.*\\.)?(?:cgi|perl|ph|pl|plx|pm|psgi|t)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.perl.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.perl',
patterns: [
{
include: 'source.perl'
}
]
}
]
}
]
},
'commonmark-code-fenced-php': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:html\\+php|inc|php|(?:.*\\.)?(?:aw|ctp|php3|php4|php5|phps|phpt|phtml)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.php.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.php',
patterns: [
{
include: 'text.html.php'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:html\\+php|inc|php|(?:.*\\.)?(?:aw|ctp|php3|php4|php5|phps|phpt|phtml)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.php.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.php',
patterns: [
{
include: 'text.html.php'
}
]
}
]
}
]
},
'commonmark-code-fenced-python': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:bazel|easybuild|python|python3|rusthon|snakemake|starlark|xonsh|(?:.*\\.)?(?:bzl|eb|gyp|gypi|lmi|py|py3|pyde|pyi|pyp|pyt|pyw|rpy|sage|sagews|smk|snakefile|spec|tac|wsgi|xpy|xsh)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.python.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.python',
patterns: [
{
include: 'source.python'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:bazel|easybuild|python|python3|rusthon|snakemake|starlark|xonsh|(?:.*\\.)?(?:bzl|eb|gyp|gypi|lmi|py|py3|pyde|pyi|pyp|pyt|pyw|rpy|sage|sagews|smk|snakefile|spec|tac|wsgi|xpy|xsh)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.python.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.python',
patterns: [
{
include: 'source.python'
}
]
}
]
}
]
},
'commonmark-code-fenced-r': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:rscript|splus|(?:.*\\.)?(?:r|rd|rsx)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.r.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.r',
patterns: [
{
include: 'source.r'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:rscript|splus|(?:.*\\.)?(?:r|rd|rsx)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.r.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.r',
patterns: [
{
include: 'source.r'
}
]
}
]
}
]
},
'commonmark-code-fenced-raku': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:perl\\x2d6|perl6|pod\\x2d6|(?:.*\\.)?(?:6pl|6pm|nqp|p6|p6l|p6m|pl6|pm6|pod|pod6|raku|rakumod)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.raku.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.raku',
patterns: [
{
include: 'source.raku'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:perl\\x2d6|perl6|pod\\x2d6|(?:.*\\.)?(?:6pl|6pm|nqp|p6|p6l|p6m|pl6|pm6|pod|pod6|raku|rakumod)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.raku.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.raku',
patterns: [
{
include: 'source.raku'
}
]
}
]
}
]
},
'commonmark-code-fenced-ruby': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:jruby|macruby|(?:.*\\.)?(?:builder|druby|duby|eye|gemspec|god|jbuilder|mirah|mspec|pluginspec|podspec|prawn|rabl|rake|rb|rbi|rbuild|rbw|rbx|ru|ruby|thor|watchr)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.ruby.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ruby',
patterns: [
{
include: 'source.ruby'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:jruby|macruby|(?:.*\\.)?(?:builder|druby|duby|eye|gemspec|god|jbuilder|mirah|mspec|pluginspec|podspec|prawn|rabl|rake|rb|rbi|rbuild|rbw|rbx|ru|ruby|thor|watchr)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.ruby.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ruby',
patterns: [
{
include: 'source.ruby'
}
]
}
]
}
]
},
'commonmark-code-fenced-rust': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:rust|(?:.*\\.)?(?:rs|rs\\.in)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.rust.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.rust',
patterns: [
{
include: 'source.rust'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:rust|(?:.*\\.)?(?:rs|rs\\.in)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.rust.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.rust',
patterns: [
{
include: 'source.rust'
}
]
}
]
}
]
},
'commonmark-code-fenced-scala': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:kojo|sbt|sc|scala)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.scala.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.scala',
patterns: [
{
include: 'source.scala'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:kojo|sbt|sc|scala)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.scala.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.scala',
patterns: [
{
include: 'source.scala'
}
]
}
]
}
]
},
'commonmark-code-fenced-scss': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?scss))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.scss.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.scss',
patterns: [
{
include: 'source.css.scss'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?scss))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.scss.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.scss',
patterns: [
{
include: 'source.css.scss'
}
]
}
]
}
]
},
'commonmark-code-fenced-shell': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:abuild|alpine\\x2dabuild|apkbuild|envrc|gentoo\\x2debuild|gentoo\\x2declass|openrc|openrc\\x2drunscript|shell|shell\\x2dscript|(?:.*\\.)?(?:bash|bats|command|csh|ebuild|eclass|ksh|sh|sh\\.in|tcsh|tmux|tool|zsh|zsh\\x2dtheme)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.shell.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.shell',
patterns: [
{
include: 'source.shell'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:abuild|alpine\\x2dabuild|apkbuild|envrc|gentoo\\x2debuild|gentoo\\x2declass|openrc|openrc\\x2drunscript|shell|shell\\x2dscript|(?:.*\\.)?(?:bash|bats|command|csh|ebuild|eclass|ksh|sh|sh\\.in|tcsh|tmux|tool|zsh|zsh\\x2dtheme)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.shell.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.shell',
patterns: [
{
include: 'source.shell'
}
]
}
]
}
]
},
'commonmark-code-fenced-shell-session': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:bash\\x2dsession|console|shellsession|(?:.*\\.)?sh\\x2dsession))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.shell-session.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.shell-session',
patterns: [
{
include: 'text.shell-session'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:bash\\x2dsession|console|shellsession|(?:.*\\.)?sh\\x2dsession))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.shell-session.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.shell-session',
patterns: [
{
include: 'text.shell-session'
}
]
}
]
}
]
},
'commonmark-code-fenced-sql': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:plpgsql|sqlpl|(?:.*\\.)?(?:cql|db2|ddl|mysql|pgsql|prc|sql|sql|sql|tab|udf|viw)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.sql.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.sql',
patterns: [
{
include: 'source.sql'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:plpgsql|sqlpl|(?:.*\\.)?(?:cql|db2|ddl|mysql|pgsql|prc|sql|sql|sql|tab|udf|viw)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.sql.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.sql',
patterns: [
{
include: 'source.sql'
}
]
}
]
}
]
},
'commonmark-code-fenced-svg': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?svg))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.svg.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.svg',
patterns: [
{
include: 'text.xml.svg'
},
{
include: 'text.xml'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?svg))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.svg.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.svg',
patterns: [
{
include: 'text.xml.svg'
},
{
include: 'text.xml'
}
]
}
]
}
]
},
'commonmark-code-fenced-swift': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?swift))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.swift.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.swift',
patterns: [
{
include: 'source.swift'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?swift))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.swift.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.swift',
patterns: [
{
include: 'source.swift'
}
]
}
]
}
]
},
'commonmark-code-fenced-toml': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?toml))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.toml.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.toml',
patterns: [
{
include: 'source.toml'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?toml))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.toml.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.toml',
patterns: [
{
include: 'source.toml'
}
]
}
]
}
]
},
'commonmark-code-fenced-ts': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:typescript|(?:.*\\.)?(?:cts|mts|ts)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.ts.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ts',
patterns: [
{
include: 'source.ts'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:typescript|(?:.*\\.)?(?:cts|mts|ts)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.ts.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.ts',
patterns: [
{
include: 'source.ts'
}
]
}
]
}
]
},
'commonmark-code-fenced-tsx': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?tsx))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.tsx.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.tsx',
patterns: [
{
include: 'source.tsx'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?tsx))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.tsx.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.tsx',
patterns: [
{
include: 'source.tsx'
}
]
}
]
}
]
},
'commonmark-code-fenced-vbnet': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:fb|freebasic|realbasic|vb\\x2d\\.net|vb\\.net|vbnet|vbscript|visual\\x2dbasic|visual\\x2dbasic\\x2d\\.net|(?:.*\\.)?(?:bi|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.vbnet.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.vbnet',
patterns: [
{
include: 'source.vbnet'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:fb|freebasic|realbasic|vb\\x2d\\.net|vb\\.net|vbnet|vbscript|visual\\x2dbasic|visual\\x2dbasic\\x2d\\.net|(?:.*\\.)?(?:bi|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.vbnet.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.vbnet',
patterns: [
{
include: 'source.vbnet'
}
]
}
]
}
]
},
'commonmark-code-fenced-xml': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:collada|eagle|labview|web\\x2dontology\\x2dlanguage|xpages|(?:.*\\.)?(?:adml|admx|ant|axaml|axml|brd|builds|ccproj|ccxml|clixml|cproject|cscfg|csdef|csproj|ct|dae|depproj|dita|ditamap|ditaval|dll\\.config|dotsettings|filters|fsproj|fxml|glade|gmx|grxml|hzp|iml|ivy|jelly|jsproj|kml|launch|lvclass|lvlib|lvproj|mdpolicy|mjml|mxml|natvis|ndproj|nproj|nuspec|odd|osm|owl|pkgproj|proj|props|ps1xml|psc1|pt|qhelp|rdf|resx|rss|sch|sch|scxml|sfproj|shproj|srdf|storyboard|sublime\\x2dsnippet|targets|tml|ui|urdf|ux|vbproj|vcxproj|vsixmanifest|vssettings|vstemplate|vxml|wixproj|wsdl|wsf|wxi|wxl|wxs|x3d|xacro|xaml|xib|xlf|xliff|xmi|xml|xml\\.dist|xmp|xpl|xproc|xproj|xsd|xsp\\x2dconfig|xsp\\.metadata|xspec|xul|zcml)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.xml.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.xml',
patterns: [
{
include: 'text.xml'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:collada|eagle|labview|web\\x2dontology\\x2dlanguage|xpages|(?:.*\\.)?(?:adml|admx|ant|axaml|axml|brd|builds|ccproj|ccxml|clixml|cproject|cscfg|csdef|csproj|ct|dae|depproj|dita|ditamap|ditaval|dll\\.config|dotsettings|filters|fsproj|fxml|glade|gmx|grxml|hzp|iml|ivy|jelly|jsproj|kml|launch|lvclass|lvlib|lvproj|mdpolicy|mjml|mxml|natvis|ndproj|nproj|nuspec|odd|osm|owl|pkgproj|proj|props|ps1xml|psc1|pt|qhelp|rdf|resx|rss|sch|sch|scxml|sfproj|shproj|srdf|storyboard|sublime\\x2dsnippet|targets|tml|ui|urdf|ux|vbproj|vcxproj|vsixmanifest|vssettings|vstemplate|vxml|wixproj|wsdl|wsf|wxi|wxl|wxs|x3d|xacro|xaml|xib|xlf|xliff|xmi|xml|xml\\.dist|xmp|xpl|xproc|xproj|xsd|xsp\\x2dconfig|xsp\\.metadata|xspec|xul|zcml)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.xml.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.xml',
patterns: [
{
include: 'text.xml'
}
]
}
]
}
]
},
'commonmark-code-fenced-yaml': {
patterns: [
{
begin:
'(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:jar\\x2dmanifest|kaitai\\x2dstruct|oasv2\\x2dyaml|oasv3\\x2dyaml|unity3d\\x2dasset|yaml|yml|(?:.*\\.)?(?:anim|asset|ksy|lkml|lookml|mat|meta|mir|prefab|raml|reek|rviz|sublime\\x2dsyntax|syntax|unity|yaml\\x2dtmlanguage|yaml\\.sed|yml\\.mysql)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.yaml.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.yaml',
patterns: [
{
include: 'source.yaml'
}
]
}
]
},
{
begin:
'(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:jar\\x2dmanifest|kaitai\\x2dstruct|oasv2\\x2dyaml|oasv3\\x2dyaml|unity3d\\x2dasset|yaml|yml|(?:.*\\.)?(?:anim|asset|ksy|lkml|lookml|mat|meta|mir|prefab|raml|reek|rviz|sublime\\x2dsyntax|syntax|unity|yaml\\x2dtmlanguage|yaml\\.sed|yml\\.mysql)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)',
beginCaptures: {
1: {
name: 'string.other.begin.code.fenced.md'
},
2: {
name: 'entity.name.function.md',
patterns: [
{
include: '#markdown-string'
}
]
},
3: {
patterns: [
{
include: '#markdown-string'
}
]
}
},
end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)',
endCaptures: {
1: {
name: 'string.other.end.code.fenced.md'
}
},
name: 'markup.code.yaml.md',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)',
contentName: 'meta.embedded.yaml',
patterns: [
{
include: 'source.yaml'
}
]
}
]
}
]
}
},
scopeName: 'text.md'
}
export default grammar
| wooorm/markdown-tm-language | 51 | really good syntax highlighting for markdown and MDX | JavaScript | wooorm | Titus | |
examples/lib.rs | Rust | extern crate mdxjs;
/// Example that compiles the example MDX document from <https://mdxjs.com>
/// to JavaScript.
fn main() -> Result<(), markdown::message::Message> {
println!(
"{}",
mdxjs::compile(
r##"
import {Chart} from './snowfall.js'
export const year = 2018
# Last year’s snowfall
In {year}, the snowfall was above average.
It was followed by a warm spring which caused
flood conditions in many of the nearby rivers.
<Chart year={year} color="#fcb32c" />
"##,
&Default::default()
)?
);
Ok(())
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
src/configuration.rs | Rust | //! Configuration.
use crate::mdx_plugin_recma_document::JsxRuntime;
/// Like `Constructs` from `markdown-rs`.
///
/// You can’t use:
///
/// * `autolink`
/// * `code_indented`
/// * `html_flow`
/// * `html_text`
/// * `mdx_esm`
/// * `mdx_expression_flow`
/// * `mdx_expression_text`
/// * `mdx_jsx_flow`
/// * `mdx_jsx_text`
///
// To do: link all docs when `markdown-rs` is stable.
#[derive(Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serializable", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serializable", serde(rename_all = "camelCase", default))]
pub struct MdxConstructs {
pub attention: bool,
pub block_quote: bool,
pub character_escape: bool,
pub character_reference: bool,
pub code_fenced: bool,
pub code_text: bool,
pub definition: bool,
pub frontmatter: bool,
pub gfm_autolink_literal: bool,
pub gfm_footnote_definition: bool,
pub gfm_label_start_footnote: bool,
pub gfm_strikethrough: bool,
pub gfm_table: bool,
pub gfm_task_list_item: bool,
pub hard_break_escape: bool,
pub hard_break_trailing: bool,
pub heading_atx: bool,
pub heading_setext: bool,
pub label_start_image: bool,
pub label_start_link: bool,
pub label_end: bool,
pub list_item: bool,
pub math_flow: bool,
pub math_text: bool,
pub thematic_break: bool,
}
impl Default for MdxConstructs {
/// MDX with `CommonMark`.
///
/// `CommonMark` is a relatively strong specification of how markdown
/// works.
/// Most markdown parsers try to follow it.
///
/// For more information, see the `CommonMark` specification:
/// <https://spec.commonmark.org>.
fn default() -> Self {
Self {
attention: true,
block_quote: true,
character_escape: true,
character_reference: true,
code_fenced: true,
code_text: true,
definition: true,
frontmatter: false,
gfm_autolink_literal: false,
gfm_label_start_footnote: false,
gfm_footnote_definition: false,
gfm_strikethrough: false,
gfm_table: false,
gfm_task_list_item: false,
hard_break_escape: true,
hard_break_trailing: true,
heading_atx: true,
heading_setext: true,
label_start_image: true,
label_start_link: true,
label_end: true,
list_item: true,
math_flow: false,
math_text: false,
thematic_break: true,
}
}
}
impl MdxConstructs {
/// MDX with GFM.
///
/// GFM stands for **GitHub flavored markdown**.
/// GFM extends `CommonMark` and adds support for autolink literals,
/// footnotes, strikethrough, tables, and tasklists.
///
/// For more information, see the GFM specification:
/// <https://github.github.com/gfm/>.
pub fn gfm() -> Self {
Self {
gfm_autolink_literal: true,
gfm_footnote_definition: true,
gfm_label_start_footnote: true,
gfm_strikethrough: true,
gfm_table: true,
gfm_task_list_item: true,
..Self::default()
}
}
}
// To do: link all docs when `markdown-rs` is stable.
/// Like `ParseOptions` from `markdown-rs`.
///
/// The constructs you can pass are limited.
///
/// Additionally, you can’t use:
///
/// * `mdx_expression_parse`
/// * `mdx_esm_parse`
#[derive(Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serializable", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serializable", serde(rename_all = "camelCase", default))]
pub struct MdxParseOptions {
pub constructs: MdxConstructs,
pub gfm_strikethrough_single_tilde: bool,
pub math_text_single_dollar: bool,
}
impl Default for MdxParseOptions {
/// MDX with `CommonMark` defaults.
fn default() -> Self {
Self {
constructs: MdxConstructs::default(),
gfm_strikethrough_single_tilde: true,
math_text_single_dollar: true,
}
}
}
impl MdxParseOptions {
/// MDX with GFM.
///
/// GFM stands for GitHub flavored markdown.
/// GFM extends `CommonMark` and adds support for autolink literals,
/// footnotes, strikethrough, tables, and tasklists.
///
/// For more information, see the GFM specification:
/// <https://github.github.com/gfm/>
pub fn gfm() -> Self {
Self {
constructs: MdxConstructs::gfm(),
..Self::default()
}
}
}
/// Configuration (optional).
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serializable", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serializable", serde(rename_all = "camelCase", default))]
pub struct Options {
/// Configuration that describes how to parse from markdown.
pub parse: MdxParseOptions,
/// Whether to add extra information to error messages in generated code
/// (default: `false`).
///
/// When in the automatic JSX runtime, this also enabled its development
/// functionality.
pub development: bool,
// To do: some alternative to generate source maps.
// SourceMapGenerator
/// Place to import a provider from (default: `None`, example:
/// `Some("@mdx-js/react").into()`).
///
/// Useful for runtimes that support context (React, Preact).
/// The provider must export a `useMDXComponents`, which is called to
/// access an object of components.
pub provider_import_source: Option<String>,
/// Whether to keep JSX (default: `false`).
///
/// The default is to compile JSX away so that the resulting file is
/// immediately runnable.
pub jsx: bool,
/// JSX runtime to use (default: `Some(JsxRuntime::Automatic)`).
///
/// The classic runtime compiles to calls such as `h('p')`, the automatic
/// runtime compiles to
/// `import _jsx from '$importSource/jsx-runtime'\n_jsx('p')`.
pub jsx_runtime: Option<JsxRuntime>,
/// Place to import automatic JSX runtimes from (`Option<String>`, default:
/// `Some("react".into())`).
///
/// When in the automatic runtime, this is used to define an import for
/// `_Fragment`, `_jsx`, and `_jsxs`.
pub jsx_import_source: Option<String>,
/// Pragma for JSX (default: `Some("React.createElement".into())`).
///
/// When in the classic runtime, this is used as an identifier for function
/// calls: `<x />` to `React.createElement('x')`.
///
/// You should most probably define `pragma_frag` and `pragma_import_source`
/// too when changing this.
pub pragma: Option<String>,
/// Pragma for JSX fragments (default: `Some("React.Fragment".into())`).
///
/// When in the classic runtime, this is used as an identifier for
/// fragments: `<>` to `React.createElement(React.Fragment)`.
///
/// You should most probably define `pragma` and `pragma_import_source`
/// too when changing this.
pub pragma_frag: Option<String>,
/// Where to import the identifier of `pragma` from (default:
/// `Some("react".into())`).
///
/// When in the classic runtime, this is used to import the `pragma`
/// function.
/// To illustrate with an example: when `pragma` is `"a.b"` and
/// `pragma_import_source` is `"c"`, the following will be generated:
/// `import a from 'c'`.
pub pragma_import_source: Option<String>,
// New:
/// File path to the source file (example:
/// `Some("path/to/example.mdx".into())`).
///
/// Used when `development: true` to improve error messages.
pub filepath: Option<String>,
}
impl Default for Options {
/// Default options to use the automatic JSX runtime with React
/// and handle MDX according to `CommonMark`.
fn default() -> Self {
Self {
parse: MdxParseOptions::default(),
development: false,
provider_import_source: None,
jsx: false,
jsx_runtime: Some(JsxRuntime::default()),
jsx_import_source: None,
pragma: None,
pragma_frag: None,
pragma_import_source: None,
filepath: None,
}
}
}
impl Options {
/// MDX with GFM.
///
/// GFM stands for GitHub flavored markdown.
/// GFM extends `CommonMark` and adds support for autolink literals,
/// footnotes, strikethrough, tables, and tasklists.
/// On the compilation side, GFM turns on the GFM tag filter.
/// The tagfilter is useless, but it’s included here for consistency.
///
/// For more information, see the GFM specification:
/// <https://github.github.com/gfm/>
pub fn gfm() -> Self {
Self {
parse: MdxParseOptions::gfm(),
..Self::default()
}
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_constructs() {
let constructs = MdxConstructs::default();
assert!(constructs.attention, "should default to `CommonMark` (1)");
assert!(
!constructs.gfm_autolink_literal,
"should default to `CommonMark` (2)"
);
assert!(
!constructs.frontmatter,
"should default to `CommonMark` (3)"
);
let constructs = MdxConstructs::gfm();
assert!(constructs.attention, "should support `gfm` shortcut (1)");
assert!(
constructs.gfm_autolink_literal,
"should support `gfm` shortcut (2)"
);
assert!(!constructs.frontmatter, "should support `gfm` shortcut (3)");
}
#[test]
fn test_parse_options() {
let options = MdxParseOptions::default();
assert!(
options.constructs.attention,
"should default to `CommonMark` (1)"
);
assert!(
!options.constructs.gfm_autolink_literal,
"should default to `CommonMark` (2)"
);
assert!(
!options.constructs.frontmatter,
"should default to `CommonMark` (3)"
);
let options = MdxParseOptions::gfm();
assert!(
options.constructs.attention,
"should support `gfm` shortcut (1)"
);
assert!(
options.constructs.gfm_autolink_literal,
"should support `gfm` shortcut (2)"
);
assert!(
!options.constructs.frontmatter,
"should support `gfm` shortcut (3)"
);
}
#[test]
fn test_options() {
let options = Options::default();
assert!(
options.parse.constructs.attention,
"should default to `CommonMark` (1)"
);
assert!(
!options.parse.constructs.gfm_autolink_literal,
"should default to `CommonMark` (2)"
);
assert!(
!options.parse.constructs.frontmatter,
"should default to `CommonMark` (3)"
);
let options = Options::gfm();
assert!(
options.parse.constructs.attention,
"should support `gfm` shortcut (1)"
);
assert!(
options.parse.constructs.gfm_autolink_literal,
"should support `gfm` shortcut (2)"
);
assert!(
!options.parse.constructs.frontmatter,
"should support `gfm` shortcut (3)"
);
}
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
src/hast.rs | Rust | //! HTML syntax tree: [hast][].
//!
//! [hast]: https://github.com/syntax-tree/hast
#![allow(dead_code)]
#![allow(clippy::to_string_trait_impl)]
extern crate alloc;
extern crate markdown;
#[allow(unused_imports)]
pub use markdown::mdast::MdxJsxAttribute;
pub use markdown::mdast::{AttributeContent, AttributeValue, Stop};
use markdown::unist::Position;
/// Nodes.
#[derive(Clone, PartialEq, Eq)]
pub enum Node {
/// Root.
Root(Root),
/// Element.
Element(Element),
/// Document type.
Doctype(Doctype),
/// Comment.
Comment(Comment),
/// Text.
Text(Text),
// MDX being passed through.
/// MDX: JSX element.
MdxJsxElement(MdxJsxElement),
/// MDX.js ESM.
MdxjsEsm(MdxjsEsm),
// MDX: expression.
MdxExpression(MdxExpression),
}
impl alloc::fmt::Debug for Node {
/// Debug the wrapped struct.
fn fmt(&self, f: &mut alloc::fmt::Formatter<'_>) -> alloc::fmt::Result {
match self {
Node::Root(x) => write!(f, "{:?}", x),
Node::Element(x) => write!(f, "{:?}", x),
Node::Doctype(x) => write!(f, "{:?}", x),
Node::Comment(x) => write!(f, "{:?}", x),
Node::Text(x) => write!(f, "{:?}", x),
Node::MdxJsxElement(x) => write!(f, "{:?}", x),
Node::MdxExpression(x) => write!(f, "{:?}", x),
Node::MdxjsEsm(x) => write!(f, "{:?}", x),
}
}
}
/// Turn a slice of hast nodes into a string.
fn children_to_string(children: &[Node]) -> String {
children.iter().map(ToString::to_string).collect()
}
impl ToString for Node {
/// Turn a hast node into a string.
fn to_string(&self) -> String {
match self {
// Parents.
Node::Root(x) => children_to_string(&x.children),
Node::Element(x) => children_to_string(&x.children),
Node::MdxJsxElement(x) => children_to_string(&x.children),
// Literals.
Node::Comment(x) => x.value.clone(),
Node::Text(x) => x.value.clone(),
Node::MdxExpression(x) => x.value.clone(),
Node::MdxjsEsm(x) => x.value.clone(),
// Voids.
Node::Doctype(_) => String::new(),
}
}
}
impl Node {
/// Get children of a hast node.
#[must_use]
pub fn children(&self) -> Option<&Vec<Node>> {
match self {
// Parent.
Node::Root(x) => Some(&x.children),
Node::Element(x) => Some(&x.children),
Node::MdxJsxElement(x) => Some(&x.children),
// Non-parent.
_ => None,
}
}
/// Get children of a hast node, mutably.
pub fn children_mut(&mut self) -> Option<&mut Vec<Node>> {
match self {
// Parent.
Node::Root(x) => Some(&mut x.children),
Node::Element(x) => Some(&mut x.children),
Node::MdxJsxElement(x) => Some(&mut x.children),
// Non-parent.
_ => None,
}
}
/// Get the position of a hast node.
pub fn position(&self) -> Option<&Position> {
match self {
Node::Root(x) => x.position.as_ref(),
Node::Element(x) => x.position.as_ref(),
Node::Doctype(x) => x.position.as_ref(),
Node::Comment(x) => x.position.as_ref(),
Node::Text(x) => x.position.as_ref(),
Node::MdxJsxElement(x) => x.position.as_ref(),
Node::MdxExpression(x) => x.position.as_ref(),
Node::MdxjsEsm(x) => x.position.as_ref(),
}
}
/// Get the position of a hast node, mutably.
pub fn position_mut(&mut self) -> Option<&mut Position> {
match self {
Node::Root(x) => x.position.as_mut(),
Node::Element(x) => x.position.as_mut(),
Node::Doctype(x) => x.position.as_mut(),
Node::Comment(x) => x.position.as_mut(),
Node::Text(x) => x.position.as_mut(),
Node::MdxJsxElement(x) => x.position.as_mut(),
Node::MdxExpression(x) => x.position.as_mut(),
Node::MdxjsEsm(x) => x.position.as_mut(),
}
}
/// Set the position of a hast node.
pub fn position_set(&mut self, position: Option<Position>) {
match self {
Node::Root(x) => x.position = position,
Node::Element(x) => x.position = position,
Node::Doctype(x) => x.position = position,
Node::Comment(x) => x.position = position,
Node::Text(x) => x.position = position,
Node::MdxJsxElement(x) => x.position = position,
Node::MdxExpression(x) => x.position = position,
Node::MdxjsEsm(x) => x.position = position,
}
}
}
/// Document.
///
/// ```html
/// > | a
/// ^
/// ```
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Root {
// Parent.
/// Content model.
pub children: Vec<Node>,
/// Positional info.
pub position: Option<Position>,
}
/// Document type.
///
/// ```html
/// > | <!doctype html>
/// ^^^^^^^^^^^^^^^
/// ```
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Element {
/// Tag name.
pub tag_name: String,
/// Properties.
pub properties: Vec<(String, PropertyValue)>,
// Parent.
/// Children.
pub children: Vec<Node>,
/// Positional info.
pub position: Option<Position>,
}
/// Property value.
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum PropertyValue {
/// A boolean.
Boolean(bool),
/// A string.
String(String),
/// A comma-separated list of strings.
CommaSeparated(Vec<String>),
/// A space-separated list of strings.
SpaceSeparated(Vec<String>),
}
/// Document type.
///
/// ```html
/// > | <!doctype html>
/// ^^^^^^^^^^^^^^^
/// ```
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Doctype {
// Void.
/// Positional info.
pub position: Option<Position>,
}
/// Comment.
///
/// ```html
/// > | <!-- a -->
/// ^^^^^^^^^^
/// ```
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Comment {
// Text.
/// Content model.
pub value: String,
/// Positional info.
pub position: Option<Position>,
}
/// Text.
///
/// ```html
/// > | a
/// ^
/// ```
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Text {
// Text.
/// Content model.
pub value: String,
/// Positional info.
pub position: Option<Position>,
}
/// MDX: JSX element.
///
/// ```markdown
/// > | <a />
/// ^^^^^
/// ```
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct MdxJsxElement {
// JSX element.
/// Name.
///
/// Fragments have no name.
pub name: Option<String>,
/// Attributes.
pub attributes: Vec<AttributeContent>,
// Parent.
/// Content model.
pub children: Vec<Node>,
/// Positional info.
pub position: Option<Position>,
}
/// MDX: expression.
///
/// ```markdown
/// > | {a}
/// ^^^
/// ```
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct MdxExpression {
// Literal.
/// Content model.
pub value: String,
/// Positional info.
pub position: Option<Position>,
/// Custom data on where each slice of `value` came from.
pub stops: Vec<Stop>,
}
/// MDX: ESM.
///
/// ```markdown
/// > | import a from 'b'
/// ^^^^^^^^^^^^^^^^^
/// ```
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct MdxjsEsm {
// Literal.
/// Content model.
pub value: String,
/// Positional info.
pub position: Option<Position>,
/// Custom data on where each slice of `value` came from.
pub stops: Vec<Stop>,
}
#[cfg(test)]
mod tests {
use super::*;
use markdown::unist::Position;
use pretty_assertions::assert_eq;
// Literals.
#[test]
fn text() {
let mut node = Node::Text(Text {
value: "a".into(),
position: None,
});
assert_eq!(
format!("{:?}", node),
"Text { value: \"a\", position: None }",
"should support `Debug`"
);
assert_eq!(node.to_string(), "a", "should support `ToString`");
assert_eq!(node.children_mut(), None, "should support `children_mut`");
assert_eq!(node.children(), None, "should support `children`");
assert_eq!(node.position(), None, "should support `position`");
assert_eq!(node.position_mut(), None, "should support `position`");
node.position_set(Some(Position::new(1, 1, 0, 1, 2, 1)));
assert_eq!(
format!("{:?}", node),
"Text { value: \"a\", position: Some(1:1-1:2 (0-1)) }",
"should support `position_set`"
);
}
#[test]
fn comment() {
let mut node = Node::Comment(Comment {
value: "a".into(),
position: None,
});
assert_eq!(
format!("{:?}", node),
"Comment { value: \"a\", position: None }",
"should support `Debug`"
);
assert_eq!(node.to_string(), "a", "should support `ToString`");
assert_eq!(node.children_mut(), None, "should support `children_mut`");
assert_eq!(node.children(), None, "should support `children`");
assert_eq!(node.position(), None, "should support `position`");
assert_eq!(node.position_mut(), None, "should support `position`");
node.position_set(Some(Position::new(1, 1, 0, 1, 2, 1)));
assert_eq!(
format!("{:?}", node),
"Comment { value: \"a\", position: Some(1:1-1:2 (0-1)) }",
"should support `position_set`"
);
}
#[test]
fn mdx_expression() {
let mut node = Node::MdxExpression(MdxExpression {
value: "a".into(),
stops: vec![],
position: None,
});
assert_eq!(
format!("{:?}", node),
"MdxExpression { value: \"a\", position: None, stops: [] }",
"should support `Debug`"
);
assert_eq!(node.to_string(), "a", "should support `ToString`");
assert_eq!(node.children_mut(), None, "should support `children_mut`");
assert_eq!(node.children(), None, "should support `children`");
assert_eq!(node.position(), None, "should support `position`");
assert_eq!(node.position_mut(), None, "should support `position`");
node.position_set(Some(Position::new(1, 1, 0, 1, 2, 1)));
assert_eq!(
format!("{:?}", node),
"MdxExpression { value: \"a\", position: Some(1:1-1:2 (0-1)), stops: [] }",
"should support `position_set`"
);
}
#[test]
fn mdxjs_esm() {
let mut node = Node::MdxjsEsm(MdxjsEsm {
value: "a".into(),
stops: vec![],
position: None,
});
assert_eq!(
format!("{:?}", node),
"MdxjsEsm { value: \"a\", position: None, stops: [] }",
"should support `Debug`"
);
assert_eq!(node.to_string(), "a", "should support `ToString`");
assert_eq!(node.children_mut(), None, "should support `children_mut`");
assert_eq!(node.children(), None, "should support `children`");
assert_eq!(node.position(), None, "should support `position`");
assert_eq!(node.position_mut(), None, "should support `position`");
node.position_set(Some(Position::new(1, 1, 0, 1, 2, 1)));
assert_eq!(
format!("{:?}", node),
"MdxjsEsm { value: \"a\", position: Some(1:1-1:2 (0-1)), stops: [] }",
"should support `position_set`"
);
}
// Voids.
#[test]
fn doctype() {
let mut node = Node::Doctype(Doctype { position: None });
assert_eq!(
format!("{:?}", node),
"Doctype { position: None }",
"should support `Debug`"
);
assert_eq!(node.to_string(), "", "should support `ToString`");
assert_eq!(node.children_mut(), None, "should support `children_mut`");
assert_eq!(node.children(), None, "should support `children`");
assert_eq!(node.position(), None, "should support `position`");
assert_eq!(node.position_mut(), None, "should support `position`");
node.position_set(Some(Position::new(1, 1, 0, 1, 2, 1)));
assert_eq!(
format!("{:?}", node),
"Doctype { position: Some(1:1-1:2 (0-1)) }",
"should support `position_set`"
);
}
// Parents.
#[test]
fn root() {
let mut node = Node::Root(Root {
position: None,
children: vec![],
});
assert_eq!(
format!("{:?}", node),
"Root { children: [], position: None }",
"should support `Debug`"
);
assert_eq!(node.to_string(), "", "should support `ToString`");
assert_eq!(
node.children_mut(),
Some(&mut vec![]),
"should support `children_mut`"
);
assert_eq!(node.children(), Some(&vec![]), "should support `children`");
assert_eq!(node.position(), None, "should support `position`");
assert_eq!(node.position_mut(), None, "should support `position`");
node.position_set(Some(Position::new(1, 1, 0, 1, 2, 1)));
assert_eq!(
format!("{:?}", node),
"Root { children: [], position: Some(1:1-1:2 (0-1)) }",
"should support `position_set`"
);
}
#[test]
fn element() {
let mut node = Node::Element(Element {
tag_name: "a".into(),
properties: vec![],
position: None,
children: vec![],
});
assert_eq!(
format!("{:?}", node),
"Element { tag_name: \"a\", properties: [], children: [], position: None }",
"should support `Debug`"
);
assert_eq!(node.to_string(), "", "should support `ToString`");
assert_eq!(
node.children_mut(),
Some(&mut vec![]),
"should support `children_mut`"
);
assert_eq!(node.children(), Some(&vec![]), "should support `children`");
assert_eq!(node.position(), None, "should support `position`");
assert_eq!(node.position_mut(), None, "should support `position`");
node.position_set(Some(Position::new(1, 1, 0, 1, 2, 1)));
assert_eq!(
format!("{:?}", node),
"Element { tag_name: \"a\", properties: [], children: [], position: Some(1:1-1:2 (0-1)) }",
"should support `position_set`"
);
}
#[test]
fn mdx_jsx_element() {
let mut node = Node::MdxJsxElement(MdxJsxElement {
name: None,
attributes: vec![],
position: None,
children: vec![],
});
assert_eq!(
format!("{:?}", node),
"MdxJsxElement { name: None, attributes: [], children: [], position: None }",
"should support `Debug`"
);
assert_eq!(node.to_string(), "", "should support `ToString`");
assert_eq!(
node.children_mut(),
Some(&mut vec![]),
"should support `children_mut`"
);
assert_eq!(node.children(), Some(&vec![]), "should support `children`");
assert_eq!(node.position(), None, "should support `position`");
assert_eq!(node.position_mut(), None, "should support `position`");
node.position_set(Some(Position::new(1, 1, 0, 1, 2, 1)));
assert_eq!(
format!("{:?}", node),
"MdxJsxElement { name: None, attributes: [], children: [], position: Some(1:1-1:2 (0-1)) }",
"should support `position_set`"
);
}
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
src/hast_util_to_swc.rs | Rust | //! Turn an HTML AST into a JavaScript AST.
//!
//! Port of <https://github.com/syntax-tree/hast-util-to-estree>, by the same
//! author:
//!
//! (The MIT License)
//!
//! Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
//!
//! Permission is hereby granted, free of charge, to any person obtaining
//! a copy of this software and associated documentation files (the
//! 'Software'), to deal in the Software without restriction, including
//! without limitation the rights to use, copy, modify, merge, publish,
//! distribute, sublicense, and/or sell copies of the Software, and to
//! permit persons to whom the Software is furnished to do so, subject to
//! the following conditions:
//!
//! The above copyright notice and this permission notice shall be
//! included in all copies or substantial portions of the Software.
//!
//! THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
//! EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
//! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
//! IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
//! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
//! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
//! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
use crate::hast;
use crate::swc::{parse_esm_to_tree, parse_expression_to_tree, serialize};
use crate::swc_utils::{
create_jsx_attr_name_from_str, create_jsx_name_from_str, inter_element_whitespace,
position_to_span,
};
use core::str;
use markdown::{Location, MdxExpressionKind};
use rustc_hash::FxHashSet;
use swc_core::common::Span;
use swc_core::ecma::ast::{
Expr, ExprStmt, JSXAttr, JSXAttrOrSpread, JSXAttrValue, JSXClosingElement, JSXClosingFragment,
JSXElement, JSXElementChild, JSXEmptyExpr, JSXExpr, JSXExprContainer, JSXFragment,
JSXOpeningElement, JSXOpeningFragment, Lit, Module, ModuleItem, SpreadElement, Stmt, Str,
};
/// Result.
#[derive(Debug, PartialEq, Eq)]
pub struct Program {
/// File path.
pub path: Option<String>,
/// JS AST.
pub module: Module,
/// Comments relating to AST.
pub comments: Vec<swc_core::common::comments::Comment>,
}
impl Program {
/// Serialize to JS.
pub fn serialize(&mut self) -> String {
serialize(&mut self.module, Some(&self.comments))
}
}
/// Whether we’re in HTML or SVG.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
enum Space {
/// The HTML space.
Html,
/// The SVG space.
Svg,
}
/// Context used to compile hast into SWC’s ES AST.
#[derive(Debug)]
struct Context<'a> {
/// Whether we’re in HTML or SVG.
///
/// Not used yet, likely useful in the future.
space: Space,
/// Comments we gather.
comments: Vec<swc_core::common::comments::Comment>,
/// Declarations and stuff.
esm: Vec<ModuleItem>,
/// Optional way to turn relative positions into points.
location: Option<&'a Location>,
}
/// Compile hast into SWC’s ES AST.
pub fn hast_util_to_swc(
tree: &hast::Node,
path: Option<String>,
location: Option<&Location>,
explicit_jsxs: &mut FxHashSet<Span>,
) -> Result<Program, markdown::message::Message> {
let mut context = Context {
space: Space::Html,
comments: vec![],
esm: vec![],
location,
};
let expr = match one(&mut context, tree, explicit_jsxs)? {
Some(JSXElementChild::JSXFragment(x)) => Some(Expr::JSXFragment(x)),
Some(JSXElementChild::JSXElement(x)) => Some(Expr::JSXElement(x)),
Some(child) => Some(Expr::JSXFragment(create_fragment(vec![child], tree))),
None => None,
};
// Add the ESM.
let mut module = Module {
shebang: None,
body: context.esm,
span: position_to_span(tree.position()),
};
// We have some content, wrap it.
if let Some(expr) = expr {
module.body.push(ModuleItem::Stmt(Stmt::Expr(ExprStmt {
expr: Box::new(expr),
span: swc_core::common::DUMMY_SP,
})));
}
Ok(Program {
path,
module,
comments: context.comments,
})
}
/// Transform one node.
fn one(
context: &mut Context,
node: &hast::Node,
explicit_jsxs: &mut FxHashSet<Span>,
) -> Result<Option<JSXElementChild>, markdown::message::Message> {
let value = match node {
hast::Node::Comment(x) => Some(transform_comment(context, node, x)),
hast::Node::Element(x) => transform_element(context, node, x, explicit_jsxs)?,
hast::Node::MdxJsxElement(x) => transform_mdx_jsx_element(context, node, x, explicit_jsxs)?,
hast::Node::MdxExpression(x) => transform_mdx_expression(context, node, x)?,
hast::Node::MdxjsEsm(x) => transform_mdxjs_esm(context, node, x)?,
hast::Node::Root(x) => transform_root(context, node, x, explicit_jsxs)?,
hast::Node::Text(x) => transform_text(context, node, x),
// Ignore:
hast::Node::Doctype(_) => None,
};
Ok(value)
}
/// Transform children of `parent`.
fn all(
context: &mut Context,
parent: &hast::Node,
explicit_jsxs: &mut FxHashSet<Span>,
) -> Result<Vec<JSXElementChild>, markdown::message::Message> {
let mut result = vec![];
if let Some(children) = parent.children() {
let mut index = 0;
while index < children.len() {
let child = &children[index];
// To do: remove line endings between table elements?
// <https://github.com/syntax-tree/hast-util-to-estree/blob/6c45f166d106ea3a165c14ec50c35ed190055e65/lib/index.js>
if let Some(child) = one(context, child, explicit_jsxs)? {
result.push(child);
}
index += 1;
}
}
Ok(result)
}
/// [`Comment`][hast::Comment].
fn transform_comment(
context: &mut Context,
node: &hast::Node,
comment: &hast::Comment,
) -> JSXElementChild {
context.comments.push(swc_core::common::comments::Comment {
kind: swc_core::common::comments::CommentKind::Block,
text: comment.value.clone().into(),
span: position_to_span(node.position()),
});
// Might be useless.
// Might be useful when transforming to acorn/babel later.
// This is done in the JS version too:
// <https://github.com/syntax-tree/hast-util-to-estree/blob/6c45f166d106ea3a165c14ec50c35ed190055e65/lib/index.js#L168>
JSXElementChild::JSXExprContainer(JSXExprContainer {
expr: JSXExpr::JSXEmptyExpr(JSXEmptyExpr {
span: position_to_span(node.position()),
}),
span: position_to_span(node.position()),
})
}
/// [`Element`][hast::Element].
fn transform_element(
context: &mut Context,
node: &hast::Node,
element: &hast::Element,
explicit_jsxs: &mut FxHashSet<Span>,
) -> Result<Option<JSXElementChild>, markdown::message::Message> {
let space = context.space;
if space == Space::Html && element.tag_name == "svg" {
context.space = Space::Svg;
}
let children = all(context, node, explicit_jsxs)?;
context.space = space;
let mut attrs = vec![];
let mut index = 0;
while index < element.properties.len() {
let prop = &element.properties[index];
// To do: turn style props into objects.
let value = match &prop.1 {
hast::PropertyValue::Boolean(x) => {
// No value is same as `{true}` / Ignore `false`.
if *x {
None
} else {
index += 1;
continue;
}
}
hast::PropertyValue::String(x) => Some(Lit::Str(Str {
value: x.clone().into(),
span: swc_core::common::DUMMY_SP,
raw: None,
})),
hast::PropertyValue::CommaSeparated(x) => Some(Lit::Str(Str {
value: x.join(", ").into(),
span: swc_core::common::DUMMY_SP,
raw: None,
})),
hast::PropertyValue::SpaceSeparated(x) => Some(Lit::Str(Str {
value: x.join(" ").into(),
span: swc_core::common::DUMMY_SP,
raw: None,
})),
};
// Turn property case into either React-specific case, or HTML
// attribute case.
// To do: create a spread if this is an invalid attr name.
let attr_name = prop_to_attr_name(&prop.0);
attrs.push(JSXAttrOrSpread::JSXAttr(JSXAttr {
name: create_jsx_attr_name_from_str(&attr_name),
value: value.map(JSXAttrValue::Lit),
span: swc_core::common::DUMMY_SP,
}));
index += 1;
}
Ok(Some(JSXElementChild::JSXElement(Box::new(create_element(
&element.tag_name,
attrs,
children,
node,
)))))
}
/// [`MdxJsxElement`][hast::MdxJsxElement].
fn transform_mdx_jsx_element(
context: &mut Context,
node: &hast::Node,
element: &hast::MdxJsxElement,
explicit_jsxs: &mut FxHashSet<Span>,
) -> Result<Option<JSXElementChild>, markdown::message::Message> {
let space = context.space;
if let Some(name) = &element.name {
if space == Space::Html && name == "svg" {
context.space = Space::Svg;
}
}
let children = all(context, node, explicit_jsxs)?;
context.space = space;
let mut attrs = vec![];
let mut index = 0;
while index < element.attributes.len() {
let attr = match &element.attributes[index] {
hast::AttributeContent::Property(prop) => {
let value = match prop.value.as_ref() {
Some(hast::AttributeValue::Literal(x)) => {
Some(JSXAttrValue::Lit(Lit::Str(Str {
value: x.clone().into(),
span: swc_core::common::DUMMY_SP,
raw: None,
})))
}
Some(hast::AttributeValue::Expression(expression)) => {
Some(JSXAttrValue::JSXExprContainer(JSXExprContainer {
expr: JSXExpr::Expr(
parse_expression_to_tree(
&expression.value,
&MdxExpressionKind::AttributeValueExpression,
&expression.stops,
context.location,
)?
.unwrap(),
),
span: swc_core::common::DUMMY_SP,
}))
}
None => None,
};
JSXAttrOrSpread::JSXAttr(JSXAttr {
span: swc_core::common::DUMMY_SP,
name: create_jsx_attr_name_from_str(&prop.name),
value,
})
}
hast::AttributeContent::Expression(d) => {
let expr = parse_expression_to_tree(
&d.value,
&MdxExpressionKind::AttributeExpression,
&d.stops,
context.location,
)?;
JSXAttrOrSpread::SpreadElement(SpreadElement {
dot3_token: swc_core::common::DUMMY_SP,
expr: expr.unwrap(),
})
}
};
attrs.push(attr);
index += 1;
}
Ok(Some(if let Some(name) = &element.name {
explicit_jsxs.insert(position_to_span(node.position()));
JSXElementChild::JSXElement(Box::new(create_element(name, attrs, children, node)))
} else {
JSXElementChild::JSXFragment(create_fragment(children, node))
}))
}
/// [`MdxExpression`][hast::MdxExpression].
fn transform_mdx_expression(
context: &mut Context,
node: &hast::Node,
expression: &hast::MdxExpression,
) -> Result<Option<JSXElementChild>, markdown::message::Message> {
let expr = parse_expression_to_tree(
&expression.value,
&MdxExpressionKind::Expression,
&expression.stops,
context.location,
)?;
let span = position_to_span(node.position());
let child = if let Some(expr) = expr {
JSXExpr::Expr(expr)
} else {
JSXExpr::JSXEmptyExpr(JSXEmptyExpr { span })
};
Ok(Some(JSXElementChild::JSXExprContainer(JSXExprContainer {
expr: child,
span,
})))
}
/// [`MdxjsEsm`][hast::MdxjsEsm].
fn transform_mdxjs_esm(
context: &mut Context,
_node: &hast::Node,
esm: &hast::MdxjsEsm,
) -> Result<Option<JSXElementChild>, markdown::message::Message> {
let mut module = parse_esm_to_tree(&esm.value, &esm.stops, context.location)?;
context.esm.append(&mut module.body);
Ok(None)
}
/// [`Root`][hast::Root].
fn transform_root(
context: &mut Context,
node: &hast::Node,
_root: &hast::Root,
explicit_jsxs: &mut FxHashSet<Span>,
) -> Result<Option<JSXElementChild>, markdown::message::Message> {
let mut children = all(context, node, explicit_jsxs)?;
let mut queue = vec![];
let mut nodes = vec![];
let mut seen = false;
children.reverse();
// Remove initial/final whitespace.
while let Some(child) = children.pop() {
let mut stash = false;
if let JSXElementChild::JSXExprContainer(container) = &child {
if let JSXExpr::Expr(expr) = &container.expr {
if let Expr::Lit(Lit::Str(str)) = (*expr).as_ref() {
if inter_element_whitespace(str.value.as_ref()) {
stash = true;
}
}
}
}
if stash {
if seen {
queue.push(child);
}
} else {
if !queue.is_empty() {
nodes.append(&mut queue);
}
nodes.push(child);
seen = true;
}
}
Ok(Some(JSXElementChild::JSXFragment(create_fragment(
nodes, node,
))))
}
/// [`Text`][hast::Text].
fn transform_text(
_context: &mut Context,
node: &hast::Node,
text: &hast::Text,
) -> Option<JSXElementChild> {
if text.value.is_empty() {
None
} else {
Some(JSXElementChild::JSXExprContainer(JSXExprContainer {
expr: JSXExpr::Expr(Box::new(Expr::Lit(Lit::Str(Str {
value: text.value.clone().into(),
span: position_to_span(node.position()),
raw: None,
})))),
span: position_to_span(node.position()),
}))
}
}
/// Create an element.
///
/// Creates a void one if there are no children.
fn create_element(
name: &str,
attrs: Vec<JSXAttrOrSpread>,
children: Vec<JSXElementChild>,
node: &hast::Node,
) -> JSXElement {
let span = position_to_span(node.position());
JSXElement {
opening: JSXOpeningElement {
name: create_jsx_name_from_str(name),
attrs,
self_closing: children.is_empty(),
type_args: None,
span: swc_core::common::DUMMY_SP,
},
closing: if children.is_empty() {
None
} else {
Some(JSXClosingElement {
name: create_jsx_name_from_str(name),
span: swc_core::common::DUMMY_SP,
})
},
children,
span,
}
}
/// Create a fragment.
fn create_fragment(children: Vec<JSXElementChild>, node: &hast::Node) -> JSXFragment {
JSXFragment {
opening: JSXOpeningFragment {
span: swc_core::common::DUMMY_SP,
},
closing: JSXClosingFragment {
span: swc_core::common::DUMMY_SP,
},
children,
span: position_to_span(node.position()),
}
}
/// Turn a hast property into something that particularly React understands.
fn prop_to_attr_name(prop: &str) -> String {
// Arbitrary data props, kebab case them.
if prop.len() > 4 && prop.starts_with("data") {
// Assume like two dashes maybe?
let mut result = String::with_capacity(prop.len() + 2);
let bytes = prop.as_bytes();
let mut index = 4;
let mut start = index;
let mut valid = true;
result.push_str("data");
while index < bytes.len() {
let byte = bytes[index];
let mut dash = index == 4;
match byte {
b'A'..=b'Z' => dash = true,
b'-' | b'.' | b':' | b'0'..=b'9' | b'a'..=b'z' => {}
_ => {
valid = false;
break;
}
}
if dash {
result.push_str(&prop[start..index]);
if byte != b'-' {
result.push('-');
}
result.push(byte.to_ascii_lowercase().into());
start = index + 1;
}
index += 1;
}
if valid {
result.push_str(&prop[start..]);
return result;
}
}
// Look up if prop differs from attribute case.
// Unknown things are passed through.
PROP_TO_REACT_PROP
.iter()
.find(|d| d.0 == prop)
.or_else(|| PROP_TO_ATTR_EXCEPTIONS_SHARED.iter().find(|d| d.0 == prop))
.map_or_else(|| prop.into(), |d| d.1.into())
}
// Below data is generated with:
//
// Note: there are currently no HTML and SVG specific exceptions.
// If those would start appearing, the logic that uses these lists needs
// To support spaces.
//
// ```js
// import * as x from "property-information";
//
// /** @type {Record<string, string>} */
// let shared = {};
// /** @type {Record<string, string>} */
// let html = {};
// /** @type {Record<string, string>} */
// let svg = {};
//
// Object.keys(x.html.property).forEach((prop) => {
// let attr = x.html.property[prop].attribute;
// if (!x.html.property[prop].space && prop !== attr) {
// html[prop] = attr;
// }
// });
//
// Object.keys(x.svg.property).forEach((prop) => {
// let attr = x.svg.property[prop].attribute;
// if (!x.svg.property[prop].space && prop !== attr) {
// // Shared.
// if (prop in html && html[prop] === attr) {
// shared[prop] = attr;
// delete html[prop];
// } else {
// svg[prop] = attr;
// }
// }
// });
//
// /** @type {Array<[string, Array<[string, string]>]>} */
// const all = [
// ["PROP_TO_REACT_PROP", Object.entries(x.hastToReact)],
// ["PROP_TO_ATTR_EXCEPTIONS", Object.entries(shared)],
// ["PROP_TO_ATTR_EXCEPTIONS_HTML", Object.entries(html)],
// ["PROP_TO_ATTR_EXCEPTIONS_SVG", Object.entries(svg)],
// ];
//
// console.log(
// all
// .map((d) => {
// return `const ${d[0]}: [(&str, &str); ${d[1].length}] = [
// ${d[1].map((d) => ` ("${d[0]}", "${d[1]}")`).join(",\n")}
// ];`;
// })
// .join("\n\n")
// );
// ```
/// hast property names to React property names, if they differ.
const PROP_TO_REACT_PROP: [(&str, &str); 17] = [
("classId", "classID"),
("dataType", "datatype"),
("itemId", "itemID"),
("strokeDashArray", "strokeDasharray"),
("strokeDashOffset", "strokeDashoffset"),
("strokeLineCap", "strokeLinecap"),
("strokeLineJoin", "strokeLinejoin"),
("strokeMiterLimit", "strokeMiterlimit"),
("typeOf", "typeof"),
("xLinkActuate", "xlinkActuate"),
("xLinkArcRole", "xlinkArcrole"),
("xLinkHref", "xlinkHref"),
("xLinkRole", "xlinkRole"),
("xLinkShow", "xlinkShow"),
("xLinkTitle", "xlinkTitle"),
("xLinkType", "xlinkType"),
("xmlnsXLink", "xmlnsXlink"),
];
/// hast property names to HTML attribute names, if they differ.
const PROP_TO_ATTR_EXCEPTIONS_SHARED: [(&str, &str); 48] = [
("ariaActiveDescendant", "aria-activedescendant"),
("ariaAtomic", "aria-atomic"),
("ariaAutoComplete", "aria-autocomplete"),
("ariaBusy", "aria-busy"),
("ariaChecked", "aria-checked"),
("ariaColCount", "aria-colcount"),
("ariaColIndex", "aria-colindex"),
("ariaColSpan", "aria-colspan"),
("ariaControls", "aria-controls"),
("ariaCurrent", "aria-current"),
("ariaDescribedBy", "aria-describedby"),
("ariaDetails", "aria-details"),
("ariaDisabled", "aria-disabled"),
("ariaDropEffect", "aria-dropeffect"),
("ariaErrorMessage", "aria-errormessage"),
("ariaExpanded", "aria-expanded"),
("ariaFlowTo", "aria-flowto"),
("ariaGrabbed", "aria-grabbed"),
("ariaHasPopup", "aria-haspopup"),
("ariaHidden", "aria-hidden"),
("ariaInvalid", "aria-invalid"),
("ariaKeyShortcuts", "aria-keyshortcuts"),
("ariaLabel", "aria-label"),
("ariaLabelledBy", "aria-labelledby"),
("ariaLevel", "aria-level"),
("ariaLive", "aria-live"),
("ariaModal", "aria-modal"),
("ariaMultiLine", "aria-multiline"),
("ariaMultiSelectable", "aria-multiselectable"),
("ariaOrientation", "aria-orientation"),
("ariaOwns", "aria-owns"),
("ariaPlaceholder", "aria-placeholder"),
("ariaPosInSet", "aria-posinset"),
("ariaPressed", "aria-pressed"),
("ariaReadOnly", "aria-readonly"),
("ariaRelevant", "aria-relevant"),
("ariaRequired", "aria-required"),
("ariaRoleDescription", "aria-roledescription"),
("ariaRowCount", "aria-rowcount"),
("ariaRowIndex", "aria-rowindex"),
("ariaRowSpan", "aria-rowspan"),
("ariaSelected", "aria-selected"),
("ariaSetSize", "aria-setsize"),
("ariaSort", "aria-sort"),
("ariaValueMax", "aria-valuemax"),
("ariaValueMin", "aria-valuemin"),
("ariaValueNow", "aria-valuenow"),
("ariaValueText", "aria-valuetext"),
];
#[cfg(test)]
mod tests {
use super::*;
use crate::hast;
use crate::hast_util_to_swc::{hast_util_to_swc, Program};
use crate::markdown::mdast;
use crate::swc::serialize;
use pretty_assertions::assert_eq;
use swc_core::common::SyntaxContext;
use swc_core::ecma::ast::{
Ident, IdentName, ImportDecl, ImportDefaultSpecifier, ImportPhase, ImportSpecifier,
JSXAttrName, JSXElementName, ModuleDecl,
};
#[test]
fn comments() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
let mut comment_ast = hast_util_to_swc(
&hast::Node::Comment(hast::Comment {
value: "a".into(),
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?;
assert_eq!(
comment_ast,
Program {
path: None,
module: Module {
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
expr: Box::new(Expr::JSXFragment(JSXFragment {
opening: JSXOpeningFragment {
span: swc_core::common::DUMMY_SP,
},
closing: JSXClosingFragment {
span: swc_core::common::DUMMY_SP,
},
children: vec![JSXElementChild::JSXExprContainer(JSXExprContainer {
expr: JSXExpr::JSXEmptyExpr(JSXEmptyExpr {
span: swc_core::common::DUMMY_SP,
}),
span: swc_core::common::DUMMY_SP,
},)],
span: swc_core::common::DUMMY_SP,
})),
span: swc_core::common::DUMMY_SP,
},))],
span: swc_core::common::DUMMY_SP,
},
comments: vec![swc_core::common::comments::Comment {
kind: swc_core::common::comments::CommentKind::Block,
text: "a".into(),
span: swc_core::common::DUMMY_SP,
}],
},
"should support a `Comment`",
);
assert_eq!(
serialize(&mut comment_ast.module, Some(&comment_ast.comments)),
// To do: comment should be in this.
"<>{}</>;\n",
"should support a `Comment` (serialize)",
);
Ok(())
}
#[test]
fn elements() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
let mut element_ast = hast_util_to_swc(
&hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["b".into()]),
)],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?;
assert_eq!(
element_ast,
Program {
path: None,
module: Module {
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
expr: Box::new(Expr::JSXElement(Box::new(JSXElement {
opening: JSXOpeningElement {
name: JSXElementName::Ident(Ident {
span: swc_core::common::DUMMY_SP,
sym: "a".into(),
optional: false,
ctxt: SyntaxContext::empty()
}),
attrs: vec![JSXAttrOrSpread::JSXAttr(JSXAttr {
name: JSXAttrName::Ident(IdentName {
sym: "className".into(),
span: swc_core::common::DUMMY_SP,
}),
value: Some(JSXAttrValue::Lit(Lit::Str(Str {
value: "b".into(),
span: swc_core::common::DUMMY_SP,
raw: None,
}))),
span: swc_core::common::DUMMY_SP,
},)],
self_closing: true,
type_args: None,
span: swc_core::common::DUMMY_SP,
},
closing: None,
children: vec![],
span: swc_core::common::DUMMY_SP,
}))),
span: swc_core::common::DUMMY_SP,
},))],
span: swc_core::common::DUMMY_SP,
},
comments: vec![],
},
"should support an `Element`",
);
assert_eq!(
serialize(&mut element_ast.module, Some(&element_ast.comments)),
"<a className=\"b\"/>;\n",
"should support an `Element` (serialize)",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None,
})],
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?
.module,
None,
),
"<a>{\"a\"}</a>;\n",
"should support an `Element` w/ children",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::Element(hast::Element {
tag_name: "svg".into(),
properties: vec![],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?
.module,
None
),
"<svg/>;\n",
"should support an `Element` in the SVG space",
);
Ok(())
}
#[test]
fn element_attributes() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![("b".into(), hast::PropertyValue::String("c".into()),)],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?
.module,
None
),
"<a b=\"c\"/>;\n",
"should support an `Element` w/ a string attribute",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![("b".into(), hast::PropertyValue::Boolean(true),)],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?
.module,
None
),
"<a b/>;\n",
"should support an `Element` w/ a boolean (true) attribute",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![("b".into(), hast::PropertyValue::Boolean(false),)],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?
.module,
None
),
"<a/>;\n",
"should support an `Element` w/ a boolean (false) attribute",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![(
"b".into(),
hast::PropertyValue::CommaSeparated(vec!["c".into(), "d".into()]),
)],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a b=\"c, d\"/>;\n",
"should support an `Element` w/ a comma-separated attribute",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
("data123".into(), hast::PropertyValue::Boolean(true)),
("dataFoo".into(), hast::PropertyValue::Boolean(true)),
("dataBAR".into(), hast::PropertyValue::Boolean(true)),
("data+invalid".into(), hast::PropertyValue::Boolean(true)),
("data--x".into(), hast::PropertyValue::Boolean(true))
],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a data-123 data-foo data-b-a-r data+invalid data--x/>;\n",
"should support an `Element` w/ data attributes",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
("role".into(), hast::PropertyValue::Boolean(true),),
("ariaValueNow".into(), hast::PropertyValue::Boolean(true),),
("ariaDescribedBy".into(), hast::PropertyValue::Boolean(true),)
],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a role aria-valuenow aria-describedby/>;\n",
"should support an `Element` w/ aria attributes",
);
Ok(())
}
#[test]
fn mdx_element() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
let mut mdx_element_ast = hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: None,
attributes: vec![],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?;
assert_eq!(
mdx_element_ast,
Program {
path: None,
module: Module {
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
expr: Box::new(Expr::JSXFragment(JSXFragment {
opening: JSXOpeningFragment {
span: swc_core::common::DUMMY_SP,
},
closing: JSXClosingFragment {
span: swc_core::common::DUMMY_SP,
},
children: vec![],
span: swc_core::common::DUMMY_SP,
})),
span: swc_core::common::DUMMY_SP,
},))],
span: swc_core::common::DUMMY_SP,
},
comments: vec![],
},
"should support an `MdxElement` (fragment)",
);
assert_eq!(
serialize(&mut mdx_element_ast.module, Some(&mdx_element_ast.comments)),
"<></>;\n",
"should support an `MdxElement` (fragment, serialize)",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a".into()),
attributes: vec![],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a/>;\n",
"should support an `MdxElement` (element, no children)",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a".into()),
attributes: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "b".into(),
position: None,
})],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a>{\"b\"}</a>;\n",
"should support an `MdxElement` (element, children)",
);
Ok(())
}
#[test]
fn mdx_element_name() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a:b".into()),
attributes: vec![],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a:b/>;\n",
"should support an `MdxElement` (element, namespace id)",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a.b.c".into()),
attributes: vec![],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a.b.c/>;\n",
"should support an `MdxElement` (element, member expression)",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("svg".into()),
attributes: vec![],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<svg/>;\n",
"should support an `MdxElement` (element, `<svg>`)",
);
Ok(())
}
#[test]
fn mdx_element_attributes() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a".into()),
attributes: vec![hast::AttributeContent::Property(hast::MdxJsxAttribute {
name: "b:c".into(),
value: None
})],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a b:c/>;\n",
"should support an `MdxElement` (element, namespace attribute name)",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a".into()),
attributes: vec![hast::AttributeContent::Property(hast::MdxJsxAttribute {
name: "b".into(),
value: None
})],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a b/>;\n",
"should support an `MdxElement` (element, boolean attribute)",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a".into()),
attributes: vec![hast::AttributeContent::Property(hast::MdxJsxAttribute {
name: "b".into(),
value: Some(hast::AttributeValue::Literal("c".into()))
})],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a b=\"c\"/>;\n",
"should support an `MdxElement` (element, attribute w/ literal value)",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a".into()),
attributes: vec![hast::AttributeContent::Property(hast::MdxJsxAttribute {
name: "b".into(),
value: Some(hast::AttributeValue::Expression(
mdast::AttributeValueExpression {
value: "c".into(),
stops: vec![]
}
))
})],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None
),
"<a b={c}/>;\n",
"should support an `MdxElement` (element, attribute w/ expression value)",
);
assert_eq!(
hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a".into()),
attributes: vec![hast::AttributeContent::Property(hast::MdxJsxAttribute {
name: "b".into(),
value: Some(hast::AttributeValue::Expression(
mdast::AttributeValueExpression {
value: "!".into(),
stops: vec![]
}
))
})],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)
.err()
.unwrap()
.to_string(),
"Could not parse expression with swc: Unexpected eof (mdxjs-rs:swc)",
"should support an `MdxElement` (element, attribute w/ broken expression value)",
);
assert_eq!(
serialize(
&mut hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a".into()),
attributes: vec![hast::AttributeContent::Expression(
mdast::MdxJsxExpressionAttribute {
value: "...b".into(),
stops: vec![]
}
)],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
)?
.module,
None,
),
"<a {...b}/>;\n",
"should support an `MdxElement` (element, expression attribute)",
);
assert_eq!(
hast_util_to_swc(
&hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: Some("a".into()),
attributes: vec![
hast::AttributeContent::Expression(
mdast::MdxJsxExpressionAttribute {
value: "...b,c".into(),
stops: vec![]
}
)
],
children: vec![],
position: None,
}),
None,
None,
&mut explicit_jsxs
).err().unwrap().to_string(),
"Unexpected extra content in spread (such as `{...x,y}`): only a single spread is supported (such as `{...x}`) (mdxjs-rs:swc)",
"should support an `MdxElement` (element, broken expression attribute)",
);
Ok(())
}
#[test]
fn mdx_expression() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
let mut mdx_expression_ast = hast_util_to_swc(
&hast::Node::MdxExpression(hast::MdxExpression {
value: "a".into(),
position: None,
stops: vec![],
}),
None,
None,
&mut explicit_jsxs,
)?;
assert_eq!(
mdx_expression_ast,
Program {
path: None,
module: Module {
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
expr: Box::new(Expr::JSXFragment(JSXFragment {
opening: JSXOpeningFragment {
span: swc_core::common::DUMMY_SP,
},
closing: JSXClosingFragment {
span: swc_core::common::DUMMY_SP,
},
children: vec![JSXElementChild::JSXExprContainer(JSXExprContainer {
expr: JSXExpr::Expr(Box::new(Expr::Ident(Ident {
sym: "a".into(),
span: swc_core::common::DUMMY_SP,
optional: false,
ctxt: SyntaxContext::empty()
}))),
span: swc_core::common::DUMMY_SP,
},)],
span: swc_core::common::DUMMY_SP,
})),
span: swc_core::common::DUMMY_SP,
},))],
span: swc_core::common::DUMMY_SP,
},
comments: vec![],
},
"should support an `MdxExpression`",
);
assert_eq!(
serialize(
&mut mdx_expression_ast.module,
Some(&mdx_expression_ast.comments)
),
"<>{a}</>;\n",
"should support an `MdxExpression` (serialize)",
);
Ok(())
}
#[test]
fn mdx_esm() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
let mut mdxjs_esm_ast = hast_util_to_swc(
&hast::Node::MdxjsEsm(hast::MdxjsEsm {
value: "import a from 'b'".into(),
position: None,
stops: vec![],
}),
None,
None,
&mut explicit_jsxs,
)?;
assert_eq!(
mdxjs_esm_ast,
Program {
path: None,
module: Module {
shebang: None,
body: vec![ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl {
specifiers: vec![ImportSpecifier::Default(ImportDefaultSpecifier {
local: Ident {
sym: "a".into(),
optional: false,
span: swc_core::common::DUMMY_SP,
ctxt: SyntaxContext::empty()
},
span: swc_core::common::DUMMY_SP,
})],
src: Box::new(Str {
value: "b".into(),
span: swc_core::common::DUMMY_SP,
raw: Some("\'b\'".into()),
}),
type_only: false,
with: None,
phase: ImportPhase::default(),
span: swc_core::common::DUMMY_SP,
}))],
span: swc_core::common::DUMMY_SP,
},
comments: vec![],
},
"should support an `MdxjsEsm`",
);
assert_eq!(
serialize(&mut mdxjs_esm_ast.module, Some(&mdxjs_esm_ast.comments)),
"import a from 'b';\n",
"should support an `MdxjsEsm` (serialize)",
);
assert_eq!(
hast_util_to_swc(
&hast::Node::MdxjsEsm(hast::MdxjsEsm {
value: "import 1/1".into(),
position: None,
stops: vec![],
}),
None,
None,
&mut explicit_jsxs
)
.err()
.unwrap()
.to_string(),
"Could not parse esm with swc: Expected 'from', got 'numeric literal (1, 1)' (mdxjs-rs:swc)",
"should support an `MdxjsEsm` (w/ broken content)",
);
Ok(())
}
#[test]
fn root() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
let mut root_ast = hast_util_to_swc(
&hast::Node::Root(hast::Root {
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None,
})],
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?;
assert_eq!(
root_ast,
Program {
path: None,
module: Module {
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
expr: Box::new(Expr::JSXFragment(JSXFragment {
opening: JSXOpeningFragment {
span: swc_core::common::DUMMY_SP,
},
closing: JSXClosingFragment {
span: swc_core::common::DUMMY_SP,
},
children: vec![JSXElementChild::JSXExprContainer(JSXExprContainer {
expr: JSXExpr::Expr(Box::new(Expr::Lit(Lit::Str(Str {
value: "a".into(),
span: swc_core::common::DUMMY_SP,
raw: None,
}),))),
span: swc_core::common::DUMMY_SP,
},)],
span: swc_core::common::DUMMY_SP,
})),
span: swc_core::common::DUMMY_SP,
},))],
span: swc_core::common::DUMMY_SP,
},
comments: vec![],
},
"should support a `Root`",
);
assert_eq!(
serialize(&mut root_ast.module, Some(&root_ast.comments)),
"<>{\"a\"}</>;\n",
"should support a `Root` (serialize)",
);
Ok(())
}
#[test]
fn text() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
let mut text_ast = hast_util_to_swc(
&hast::Node::Text(hast::Text {
value: "a".into(),
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?;
assert_eq!(
text_ast,
Program {
path: None,
module: Module {
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
expr: Box::new(Expr::JSXFragment(JSXFragment {
opening: JSXOpeningFragment {
span: swc_core::common::DUMMY_SP,
},
closing: JSXClosingFragment {
span: swc_core::common::DUMMY_SP,
},
children: vec![JSXElementChild::JSXExprContainer(JSXExprContainer {
expr: JSXExpr::Expr(Box::new(Expr::Lit(Lit::Str(Str {
value: "a".into(),
span: swc_core::common::DUMMY_SP,
raw: None,
}),))),
span: swc_core::common::DUMMY_SP,
},)],
span: swc_core::common::DUMMY_SP,
})),
span: swc_core::common::DUMMY_SP,
},))],
span: swc_core::common::DUMMY_SP,
},
comments: vec![],
},
"should support a `Text`",
);
assert_eq!(
serialize(&mut text_ast.module, Some(&text_ast.comments)),
"<>{\"a\"}</>;\n",
"should support a `Text` (serialize)",
);
Ok(())
}
#[test]
fn text_empty() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
let text_ast = hast_util_to_swc(
&hast::Node::Text(hast::Text {
value: String::new(),
position: None,
}),
None,
None,
&mut explicit_jsxs,
)?;
assert_eq!(
text_ast,
Program {
path: None,
module: Module {
shebang: None,
body: vec![],
span: swc_core::common::DUMMY_SP,
},
comments: vec![],
},
"should support an empty `Text`",
);
Ok(())
}
#[test]
fn doctype() -> Result<(), markdown::message::Message> {
let mut explicit_jsxs = FxHashSet::default();
let mut doctype_ast = hast_util_to_swc(
&hast::Node::Doctype(hast::Doctype { position: None }),
None,
None,
&mut explicit_jsxs,
)?;
assert_eq!(
doctype_ast,
Program {
path: None,
module: Module {
shebang: None,
body: vec![],
span: swc_core::common::DUMMY_SP,
},
comments: vec![],
},
"should support a `Doctype`",
);
assert_eq!(
serialize(&mut doctype_ast.module, Some(&doctype_ast.comments)),
"",
"should support a `Doctype` (serialize)",
);
Ok(())
}
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
src/lib.rs | Rust | //! Public API of `mdxjs-rs`.
//!
//! This module exposes primarily [`compile()`][].
//!
//! * [`compile()`][]
//! — turn MDX into JavaScript
#![deny(clippy::pedantic)]
#![allow(clippy::implicit_hasher)]
#![allow(clippy::must_use_candidate)]
#![allow(clippy::too_many_lines)]
#![allow(clippy::struct_excessive_bools)]
#![allow(clippy::cast_possible_truncation)]
#![allow(clippy::cast_precision_loss)]
extern crate markdown;
mod configuration;
pub mod hast;
mod hast_util_to_swc;
mod mdast_util_to_hast;
mod mdx_plugin_recma_document;
mod mdx_plugin_recma_jsx_rewrite;
mod swc;
mod swc_util_build_jsx;
mod swc_utils;
use crate::{
hast_util_to_swc::hast_util_to_swc as to_swc,
mdx_plugin_recma_document::{
mdx_plugin_recma_document as recma_document, Options as DocumentOptions,
},
mdx_plugin_recma_jsx_rewrite::{
mdx_plugin_recma_jsx_rewrite as recma_jsx_rewrite, Options as RewriteOptions,
},
swc::{parse_esm, parse_expression, serialize},
swc_util_build_jsx::{swc_util_build_jsx, Options as BuildOptions},
};
use hast_util_to_swc::Program;
use markdown::{
message::{self, Message},
to_mdast, Constructs, Location, ParseOptions,
};
use rustc_hash::FxHashSet;
use swc_core::common::Span;
pub use crate::configuration::{MdxConstructs, MdxParseOptions, Options};
pub use crate::mdast_util_to_hast::mdast_util_to_hast;
pub use crate::mdx_plugin_recma_document::JsxRuntime;
/// Turn MDX into JavaScript.
///
/// ## Examples
///
/// ```
/// use mdxjs::compile;
/// # fn main() -> Result<(), markdown::message::Message> {
///
/// assert_eq!(compile("# Hi!", &Default::default())?, "import { jsx as _jsx } from \"react/jsx-runtime\";\nfunction _createMdxContent(props) {\n const _components = Object.assign({\n h1: \"h1\"\n }, props.components);\n return _jsx(_components.h1, {\n children: \"Hi!\"\n });\n}\nfunction MDXContent(props = {}) {\n const { wrapper: MDXLayout } = props.components || {};\n return MDXLayout ? _jsx(MDXLayout, Object.assign({}, props, {\n children: _jsx(_createMdxContent, props)\n })) : _createMdxContent(props);\n}\nexport default MDXContent;\n");
/// # Ok(())
/// # }
/// ```
///
/// ## Errors
///
/// This project errors for many different reasons, such as syntax errors in
/// the MDX format or misconfiguration.
pub fn compile(value: &str, options: &Options) -> Result<String, message::Message> {
let mdast = mdast_util_from_mdx(value, options)?;
let hast = mdast_util_to_hast(&mdast);
let location = Location::new(value.as_bytes());
let mut explicit_jsxs = FxHashSet::default();
let mut program = hast_util_to_swc(&hast, options, Some(&location), &mut explicit_jsxs)?;
mdx_plugin_recma_document(&mut program, options, Some(&location))?;
mdx_plugin_recma_jsx_rewrite(&mut program, options, Some(&location), &explicit_jsxs)?;
Ok(serialize(&mut program.module, Some(&program.comments)))
}
/// Turn MDX into a syntax tree.
///
/// ## Errors
///
/// There are several errors that can occur with how
/// JSX, expressions, or ESM are written.
///
/// ## Examples
///
/// ```
/// use mdxjs::{mdast_util_from_mdx, Options};
/// # fn main() -> Result<(), markdown::message::Message> {
///
/// let tree = mdast_util_from_mdx("# Hey, *you*!", &Options::default())?;
///
/// println!("{:?}", tree);
/// // => Root { children: [Heading { children: [Text { value: "Hey, ", position: Some(1:3-1:8 (2-7)) }, Emphasis { children: [Text { value: "you", position: Some(1:9-1:12 (8-11)) }], position: Some(1:8-1:13 (7-12)) }, Text { value: "!", position: Some(1:13-1:14 (12-13)) }], position: Some(1:1-1:14 (0-13)), depth: 1 }], position: Some(1:1-1:14 (0-13)) }
/// # Ok(())
/// # }
/// ```
pub fn mdast_util_from_mdx(
value: &str,
options: &Options,
) -> Result<markdown::mdast::Node, Message> {
let parse_options = ParseOptions {
constructs: Constructs {
attention: options.parse.constructs.attention,
autolink: false,
block_quote: options.parse.constructs.block_quote,
character_escape: options.parse.constructs.character_escape,
character_reference: options.parse.constructs.character_reference,
code_fenced: options.parse.constructs.code_fenced,
code_indented: false,
code_text: options.parse.constructs.code_text,
definition: options.parse.constructs.definition,
frontmatter: options.parse.constructs.frontmatter,
gfm_autolink_literal: options.parse.constructs.gfm_autolink_literal,
gfm_footnote_definition: options.parse.constructs.gfm_footnote_definition,
gfm_label_start_footnote: options.parse.constructs.gfm_label_start_footnote,
gfm_strikethrough: options.parse.constructs.gfm_strikethrough,
gfm_table: options.parse.constructs.gfm_table,
gfm_task_list_item: options.parse.constructs.gfm_task_list_item,
hard_break_escape: options.parse.constructs.hard_break_escape,
hard_break_trailing: options.parse.constructs.hard_break_trailing,
html_flow: false,
html_text: false,
heading_atx: options.parse.constructs.heading_atx,
heading_setext: options.parse.constructs.heading_setext,
label_start_image: options.parse.constructs.label_start_image,
label_start_link: options.parse.constructs.label_start_link,
label_end: options.parse.constructs.label_end,
list_item: options.parse.constructs.list_item,
math_flow: options.parse.constructs.math_flow,
math_text: options.parse.constructs.math_text,
mdx_esm: true,
mdx_expression_flow: true,
mdx_expression_text: true,
mdx_jsx_flow: true,
mdx_jsx_text: true,
thematic_break: options.parse.constructs.thematic_break,
},
gfm_strikethrough_single_tilde: options.parse.gfm_strikethrough_single_tilde,
math_text_single_dollar: options.parse.math_text_single_dollar,
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
};
to_mdast(value, &parse_options)
}
/// Compile hast into SWC’s ES AST.
///
/// ## Errors
///
/// This function currently does not emit errors.
pub fn hast_util_to_swc(
hast: &hast::Node,
options: &Options,
location: Option<&Location>,
explicit_jsxs: &mut FxHashSet<Span>,
) -> Result<Program, markdown::message::Message> {
to_swc(hast, options.filepath.clone(), location, explicit_jsxs)
}
/// Wrap the SWC ES AST nodes coming from hast into a whole document.
///
/// ## Errors
///
/// This functions errors for double layouts (default exports).
pub fn mdx_plugin_recma_document(
program: &mut Program,
options: &Options,
location: Option<&Location>,
) -> Result<(), markdown::message::Message> {
let document_options = DocumentOptions {
pragma: options.pragma.clone(),
pragma_frag: options.pragma_frag.clone(),
pragma_import_source: options.pragma_import_source.clone(),
jsx_import_source: options.jsx_import_source.clone(),
jsx_runtime: options.jsx_runtime,
};
recma_document(program, &document_options, location)
}
/// Rewrite JSX in an MDX file so that components can be passed in and provided.
/// Also compiles JSX to function calls unless `options.jsx` is true.
///
/// ## Errors
///
/// This functions errors for incorrect JSX runtime configuration *inside*
/// MDX files and problems with SWC (broken JS syntax).
pub fn mdx_plugin_recma_jsx_rewrite(
program: &mut Program,
options: &Options,
location: Option<&Location>,
explicit_jsxs: &FxHashSet<Span>,
) -> Result<(), markdown::message::Message> {
let rewrite_options = RewriteOptions {
development: options.development,
provider_import_source: options.provider_import_source.clone(),
};
recma_jsx_rewrite(program, &rewrite_options, location, explicit_jsxs);
if !options.jsx {
let build_options = BuildOptions {
development: options.development,
};
swc_util_build_jsx(program, &build_options, location)?;
}
Ok(())
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
src/mdast_util_to_hast.rs | Rust | //! Turn a markdown AST into an HTML AST.
//!
//! Port of <https://github.com/syntax-tree/mdast-util-to-hast>, by the same
//! author:
//!
//! (The MIT License)
//!
//! Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
//!
//! Permission is hereby granted, free of charge, to any person obtaining
//! a copy of this software and associated documentation files (the
//! 'Software'), to deal in the Software without restriction, including
//! without limitation the rights to use, copy, modify, merge, publish,
//! distribute, sublicense, and/or sell copies of the Software, and to
//! permit persons to whom the Software is furnished to do so, subject to
//! the following conditions:
//!
//! The above copyright notice and this permission notice shall be
//! included in all copies or substantial portions of the Software.
//!
//! THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
//! EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
//! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
//! IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
//! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
//! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
//! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
use crate::hast;
use crate::swc_utils::inter_element_whitespace;
use markdown::{mdast, sanitize, unist::Position};
// To do: support these compile options:
// ```
// pub gfm_footnote_label: Option<String>,
// pub gfm_footnote_label_tag_name: Option<String>,
// pub gfm_footnote_label_attributes: Option<String>,
// pub gfm_footnote_back_label: Option<String>,
// pub gfm_footnote_clobber_prefix: Option<String>,
// ```
//
// Maybe also:
// * option to persist `meta`?
// * option to generate a `style` attribute instead of `align`?
// * support `Raw` nodes for HTML?
//
// To do:
// * revert references when undefined?
// <https://github.com/syntax-tree/mdast-util-to-hast/blob/c393d0a/lib/revert.js>
// * when externalizing, move mdx unraveling somewhere else.
/// State needed to turn mdast into hast.
#[derive(Debug)]
struct State {
/// List of gathered definitions.
///
/// The field at `0` is the identifier, `1` the URL, and `2` the title.
definitions: Vec<(String, String, Option<String>)>,
/// List of gathered GFM footnote definitions.
///
/// The field at `0` is the identifier, `1` the node.
footnote_definitions: Vec<(String, Vec<hast::Node>)>,
/// List of gathered GFM footnote calls.
///
/// The field at `0` is the identifier, `1` a counter of how many times
/// it is used.
footnote_calls: Vec<(String, usize)>,
}
/// Result of turning something into hast.
#[derive(Debug)]
enum Result {
/// Multiple nodes.
Fragment(Vec<hast::Node>),
/// Single nodes.
Node(hast::Node),
/// Nothing.
None,
}
/// Turn mdast into hast.
pub fn mdast_util_to_hast(mdast: &mdast::Node) -> hast::Node {
let mut definitions = vec![];
// Collect definitions.
// Calls take info from their definition.
// Calls can come come before definitions.
// Footnote calls can also come before footnote definitions, but those
// calls *do not* take info from their definitions, so we don’t care
// about footnotes here.
visit(mdast, |node| {
if let mdast::Node::Definition(definition) = node {
definitions.push((
definition.identifier.clone(),
definition.url.clone(),
definition.title.clone(),
));
}
});
let mut state = State {
definitions,
footnote_definitions: vec![],
footnote_calls: vec![],
};
let result = one(&mut state, mdast, None);
if state.footnote_calls.is_empty() {
if let Result::Node(node) = result {
return node;
}
}
// We either have to generate a footer, or we don’t have a single node.
// So we need a root.
let mut root = hast::Root {
children: vec![],
position: None,
};
match result {
Result::Fragment(children) => root.children = children,
Result::Node(node) => {
if let hast::Node::Root(existing) = node {
root = existing;
} else {
root.children.push(node);
}
}
Result::None => {}
}
if !state.footnote_calls.is_empty() {
let mut items = vec![];
let mut index = 0;
while index < state.footnote_calls.len() {
let (id, count) = &state.footnote_calls[index];
let safe_id = sanitize(&id.to_lowercase());
// Find definition: we’ll always find it.
let mut definition_index = 0;
while definition_index < state.footnote_definitions.len() {
if &state.footnote_definitions[definition_index].0 == id {
break;
}
definition_index += 1;
}
debug_assert_ne!(
definition_index,
state.footnote_definitions.len(),
"expected definition"
);
// We’ll find each used definition once, so we can split off to take the content.
let mut content = state.footnote_definitions[definition_index].1.split_off(0);
let mut reference_index = 0;
let mut backreferences = vec![];
while reference_index < *count {
let mut backref_children = vec![hast::Node::Text(hast::Text {
value: "↩".into(),
position: None,
})];
if reference_index != 0 {
backreferences.push(hast::Node::Text(hast::Text {
value: " ".into(),
position: None,
}));
backref_children.push(hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: (reference_index + 1).to_string(),
position: None,
})],
position: None,
}));
}
backreferences.push(hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String(format!(
"#fnref-{}{}",
safe_id,
if reference_index == 0 {
String::new()
} else {
format!("-{}", &(reference_index + 1).to_string())
}
)),
),
(
"dataFootnoteBackref".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaLabel".into(),
hast::PropertyValue::String("Back to content".into()),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec![
"data-footnote-backref".into()
]),
),
],
children: backref_children,
position: None,
}));
reference_index += 1;
}
let mut backreference_opt = Some(backreferences);
if let Some(hast::Node::Element(tail_element)) = content.last_mut() {
if tail_element.tag_name == "p" {
if let Some(hast::Node::Text(text)) = tail_element.children.last_mut() {
text.value.push(' ');
} else {
tail_element.children.push(hast::Node::Text(hast::Text {
value: " ".into(),
position: None,
}));
}
if let Some(mut backreference) = backreference_opt {
backreference_opt = None;
tail_element.children.append(&mut backreference);
}
}
}
// No paragraph, just push them.
if let Some(mut backreference) = backreference_opt {
content.append(&mut backreference);
}
items.push(hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"id".into(),
hast::PropertyValue::String(format!("#fn-{}", safe_id)),
)],
children: wrap(content, true),
position: None,
}));
index += 1;
}
root.children.push(hast::Node::Text(hast::Text {
value: "\n".into(),
position: None,
}));
root.children.push(hast::Node::Element(hast::Element {
tag_name: "section".into(),
properties: vec![
("dataFootnotes".into(), hast::PropertyValue::Boolean(true)),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["footnotes".into()]),
),
],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "h2".into(),
properties: vec![
(
"id".into(),
hast::PropertyValue::String("footnote-label".into()),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["sr-only".into()]),
),
],
children: vec![hast::Node::Text(hast::Text {
value: "Footnotes".into(),
position: None,
})],
position: None,
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None,
}),
hast::Node::Element(hast::Element {
tag_name: "ol".into(),
properties: vec![],
children: wrap(items, true),
position: None,
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None,
}),
],
position: None,
}));
root.children.push(hast::Node::Text(hast::Text {
value: "\n".into(),
position: None,
}));
}
hast::Node::Root(root)
}
/// Turn one mdast node into hast.
fn one(state: &mut State, node: &mdast::Node, parent: Option<&mdast::Node>) -> Result {
match node {
mdast::Node::Blockquote(d) => transform_block_quote(state, node, d),
mdast::Node::Break(d) => transform_break(state, node, d),
mdast::Node::Code(d) => transform_code(state, node, d),
mdast::Node::Delete(d) => transform_delete(state, node, d),
mdast::Node::Emphasis(d) => transform_emphasis(state, node, d),
mdast::Node::FootnoteDefinition(d) => transform_footnote_definition(state, node, d),
mdast::Node::FootnoteReference(d) => transform_footnote_reference(state, node, d),
mdast::Node::Heading(d) => transform_heading(state, node, d),
mdast::Node::Image(d) => transform_image(state, node, d),
mdast::Node::ImageReference(d) => transform_image_reference(state, node, d),
mdast::Node::InlineCode(d) => transform_inline_code(state, node, d),
mdast::Node::InlineMath(d) => transform_inline_math(state, node, d),
mdast::Node::Link(d) => transform_link(state, node, d),
mdast::Node::LinkReference(d) => transform_link_reference(state, node, d),
mdast::Node::ListItem(d) => transform_list_item(state, node, parent, d),
mdast::Node::List(d) => transform_list(state, node, d),
mdast::Node::Math(d) => transform_math(state, node, d),
mdast::Node::MdxFlowExpression(_) | mdast::Node::MdxTextExpression(_) => {
transform_mdx_expression(state, node)
}
mdast::Node::MdxJsxFlowElement(_) | mdast::Node::MdxJsxTextElement(_) => {
transform_mdx_jsx_element(state, node)
}
mdast::Node::MdxjsEsm(d) => transform_mdxjs_esm(state, node, d),
mdast::Node::Paragraph(d) => transform_paragraph(state, node, d),
mdast::Node::Root(d) => transform_root(state, node, d),
mdast::Node::Strong(d) => transform_strong(state, node, d),
// Note: this is only called here if there is a single cell passed, not when one is found in a table.
mdast::Node::TableCell(d) => {
transform_table_cell(state, node, false, mdast::AlignKind::None, d)
}
// Note: this is only called here if there is a single row passed, not when one is found in a table.
mdast::Node::TableRow(d) => transform_table_row(state, node, false, None, d),
mdast::Node::Table(d) => transform_table(state, node, d),
mdast::Node::Text(d) => transform_text(state, node, d),
mdast::Node::ThematicBreak(d) => transform_thematic_break(state, node, d),
// Ignore.
mdast::Node::Definition(_)
| mdast::Node::Html(_)
| mdast::Node::Yaml(_)
| mdast::Node::Toml(_) => Result::None,
}
}
/// [`Blockquote`][mdast::Blockquote].
fn transform_block_quote(
state: &mut State,
node: &mdast::Node,
block_quote: &mdast::Blockquote,
) -> Result {
Result::Node(hast::Node::Element(hast::Element {
tag_name: "blockquote".into(),
properties: vec![],
children: wrap(all(state, node), true),
position: block_quote.position.clone(),
}))
}
/// [`Break`][mdast::Break].
fn transform_break(_state: &mut State, _node: &mdast::Node, break_: &mdast::Break) -> Result {
Result::Fragment(vec![
hast::Node::Element(hast::Element {
tag_name: "br".into(),
properties: vec![],
children: vec![],
position: break_.position.clone(),
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None,
}),
])
}
/// [`Code`][mdast::Code].
fn transform_code(_state: &mut State, _node: &mdast::Node, code: &mdast::Code) -> Result {
let mut value = code.value.clone();
value.push('\n');
let mut properties = vec![];
if let Some(lang) = code.lang.as_ref() {
properties.push((
"className".into(),
hast::PropertyValue::SpaceSeparated(vec![format!("language-{}", lang)]),
));
}
Result::Node(hast::Node::Element(hast::Element {
tag_name: "pre".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "code".into(),
properties,
children: vec![hast::Node::Text(hast::Text {
value,
position: None,
})],
position: code.position.clone(),
})],
position: code.position.clone(),
}))
}
/// [`Delete`][mdast::Delete].
fn transform_delete(state: &mut State, node: &mdast::Node, delete: &mdast::Delete) -> Result {
Result::Node(hast::Node::Element(hast::Element {
tag_name: "del".into(),
properties: vec![],
children: all(state, node),
position: delete.position.clone(),
}))
}
/// [`Emphasis`][mdast::Emphasis].
fn transform_emphasis(state: &mut State, node: &mdast::Node, emphasis: &mdast::Emphasis) -> Result {
Result::Node(hast::Node::Element(hast::Element {
tag_name: "em".into(),
properties: vec![],
children: all(state, node),
position: emphasis.position.clone(),
}))
}
/// [`FootnoteDefinition`][mdast::FootnoteDefinition].
fn transform_footnote_definition(
state: &mut State,
node: &mdast::Node,
footnote_definition: &mdast::FootnoteDefinition,
) -> Result {
let children = all(state, node);
// Set aside.
state
.footnote_definitions
.push((footnote_definition.identifier.clone(), children));
Result::None
}
/// [`FootnoteReference`][mdast::FootnoteReference].
fn transform_footnote_reference(
state: &mut State,
_node: &mdast::Node,
footnote_reference: &mdast::FootnoteReference,
) -> Result {
let safe_id = sanitize(&footnote_reference.identifier.to_lowercase());
let mut call_index = 0;
// See if this has been called before.
while call_index < state.footnote_calls.len() {
if state.footnote_calls[call_index].0 == footnote_reference.identifier {
break;
}
call_index += 1;
}
// New.
if call_index == state.footnote_calls.len() {
state
.footnote_calls
.push((footnote_reference.identifier.clone(), 0));
}
// Increment.
state.footnote_calls[call_index].1 += 1;
let reuse_counter = state.footnote_calls[call_index].1;
Result::Node(hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String(format!("#fn-{}", safe_id)),
),
(
"id".into(),
hast::PropertyValue::String(format!(
"fnref-{}{}",
safe_id,
if reuse_counter > 1 {
format!("-{}", reuse_counter)
} else {
String::new()
}
)),
),
("dataFootnoteRef".into(), hast::PropertyValue::Boolean(true)),
(
"ariaDescribedBy".into(),
hast::PropertyValue::String("footnote-label".into()),
),
],
children: vec![hast::Node::Text(hast::Text {
value: (call_index + 1).to_string(),
position: None,
})],
position: None,
})],
position: footnote_reference.position.clone(),
}))
}
/// [`Heading`][mdast::Heading].
fn transform_heading(state: &mut State, node: &mdast::Node, heading: &mdast::Heading) -> Result {
Result::Node(hast::Node::Element(hast::Element {
tag_name: format!("h{}", heading.depth),
properties: vec![],
children: all(state, node),
position: heading.position.clone(),
}))
}
/// [`Image`][mdast::Image].
fn transform_image(_state: &mut State, _node: &mdast::Node, image: &mdast::Image) -> Result {
let mut properties = vec![];
properties.push((
"src".into(),
hast::PropertyValue::String(sanitize(&image.url)),
));
properties.push(("alt".into(), hast::PropertyValue::String(image.alt.clone())));
if let Some(value) = image.title.as_ref() {
properties.push(("title".into(), hast::PropertyValue::String(value.into())));
}
Result::Node(hast::Node::Element(hast::Element {
tag_name: "img".into(),
properties,
children: vec![],
position: image.position.clone(),
}))
}
/// [`ImageReference`][mdast::ImageReference].
fn transform_image_reference(
state: &State,
_node: &mdast::Node,
image_reference: &mdast::ImageReference,
) -> Result {
let mut properties = vec![];
let definition = state
.definitions
.iter()
.find(|d| d.0 == image_reference.identifier);
let (_, url, title) =
definition.expect("expected reference to have a corresponding definition");
properties.push(("src".into(), hast::PropertyValue::String(sanitize(url))));
properties.push((
"alt".into(),
hast::PropertyValue::String(image_reference.alt.clone()),
));
if let Some(value) = title {
properties.push(("title".into(), hast::PropertyValue::String(value.into())));
}
Result::Node(hast::Node::Element(hast::Element {
tag_name: "img".into(),
properties,
children: vec![],
position: image_reference.position.clone(),
}))
}
/// [`InlineCode`][mdast::InlineCode].
fn transform_inline_code(
_state: &mut State,
_node: &mdast::Node,
inline_code: &mdast::InlineCode,
) -> Result {
Result::Node(hast::Node::Element(hast::Element {
tag_name: "code".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: replace_eols_with_spaces(&inline_code.value),
position: None,
})],
position: inline_code.position.clone(),
}))
}
/// [`InlineMath`][mdast::InlineMath].
fn transform_inline_math(
_state: &mut State,
_node: &mdast::Node,
inline_math: &mdast::InlineMath,
) -> Result {
Result::Node(hast::Node::Element(hast::Element {
tag_name: "code".into(),
properties: vec![(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["language-math".into(), "math-inline".into()]),
)],
children: vec![hast::Node::Text(hast::Text {
value: replace_eols_with_spaces(&inline_math.value),
position: None,
})],
position: inline_math.position.clone(),
}))
}
/// [`Link`][mdast::Link].
fn transform_link(state: &mut State, node: &mdast::Node, link: &mdast::Link) -> Result {
let mut properties = vec![];
properties.push((
"href".into(),
hast::PropertyValue::String(sanitize(&link.url)),
));
if let Some(value) = link.title.as_ref() {
properties.push(("title".into(), hast::PropertyValue::String(value.into())));
}
Result::Node(hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties,
children: all(state, node),
position: link.position.clone(),
}))
}
/// [`LinkReference`][mdast::LinkReference].
fn transform_link_reference(
state: &mut State,
node: &mdast::Node,
link_reference: &mdast::LinkReference,
) -> Result {
let mut properties = vec![];
let definition = state
.definitions
.iter()
.find(|d| d.0 == link_reference.identifier);
let (_, url, title) =
definition.expect("expected reference to have a corresponding definition");
properties.push(("href".into(), hast::PropertyValue::String(sanitize(url))));
if let Some(value) = title {
properties.push(("title".into(), hast::PropertyValue::String(value.into())));
}
Result::Node(hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties,
children: all(state, node),
position: link_reference.position.clone(),
}))
}
/// [`ListItem`][mdast::ListItem].
fn transform_list_item(
state: &mut State,
node: &mdast::Node,
parent: Option<&mdast::Node>,
list_item: &mdast::ListItem,
) -> Result {
let mut children = all(state, node);
let mut loose = list_item_loose(node);
if let Some(parent) = parent {
if matches!(parent, mdast::Node::List(_)) {
loose = list_loose(parent);
}
}
let mut properties = vec![];
// Inject a checkbox.
if let Some(checked) = list_item.checked {
// According to github-markdown-css, this class hides bullet.
// See: <https://github.com/sindresorhus/github-markdown-css>.
properties.push((
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["task-list-item".into()]),
));
let mut input = Some(hast::Node::Element(hast::Element {
tag_name: "input".into(),
properties: vec![
(
"type".into(),
hast::PropertyValue::String("checkbox".into()),
),
("checked".into(), hast::PropertyValue::Boolean(checked)),
("disabled".into(), hast::PropertyValue::Boolean(true)),
],
children: vec![],
position: None,
}));
if let Some(hast::Node::Element(x)) = children.first_mut() {
if x.tag_name == "p" {
if !x.children.is_empty() {
x.children.insert(
0,
hast::Node::Text(hast::Text {
value: " ".into(),
position: None,
}),
);
}
x.children.insert(0, input.take().unwrap());
}
}
// If the input wasn‘t injected yet, inject a paragraph.
if let Some(input) = input {
children.insert(
0,
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![input],
position: None,
}),
);
}
}
children.reverse();
let mut result = vec![];
let mut head = true;
let empty = children.is_empty();
let mut tail_p = false;
while let Some(child) = children.pop() {
let mut is_p = false;
if let hast::Node::Element(el) = &child {
if el.tag_name == "p" {
is_p = true;
}
}
// Add eols before nodes, except if this is a tight, first paragraph.
if loose || !head || !is_p {
result.push(hast::Node::Text(hast::Text {
value: "\n".into(),
position: None,
}));
}
if is_p && !loose {
// Unwrap the paragraph.
if let hast::Node::Element(mut el) = child {
result.append(&mut el.children);
}
} else {
result.push(child);
}
head = false;
tail_p = is_p;
}
// Add eol after last node, except if it is tight or a paragraph.
if !empty && (loose || !tail_p) {
result.push(hast::Node::Text(hast::Text {
value: "\n".into(),
position: None,
}));
}
Result::Node(hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties,
children: result,
position: list_item.position.clone(),
}))
}
/// [`List`][mdast::List].
fn transform_list(state: &mut State, node: &mdast::Node, list: &mdast::List) -> Result {
let mut contains_task_list = false;
let mut index = 0;
while index < list.children.len() {
if let mdast::Node::ListItem(item) = &list.children[index] {
if item.checked.is_some() {
contains_task_list = true;
}
}
index += 1;
}
let mut properties = vec![];
// Add start.
if let Some(start) = list.start {
if list.ordered && start != 1 {
properties.push((
"start".into(),
hast::PropertyValue::String(start.to_string()),
));
}
}
// Like GitHub, add a class for custom styling.
if contains_task_list {
properties.push((
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["contains-task-list".into()]),
));
}
Result::Node(hast::Node::Element(hast::Element {
tag_name: if list.ordered {
"ol".into()
} else {
"ul".into()
},
properties,
children: wrap(all(state, node), true),
position: list.position.clone(),
}))
}
/// [`Math`][mdast::Math].
fn transform_math(_state: &mut State, _node: &mdast::Node, math: &mdast::Math) -> Result {
let mut value = math.value.clone();
value.push('\n');
Result::Node(hast::Node::Element(hast::Element {
tag_name: "pre".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "code".into(),
properties: vec![(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec![
"language-math".into(),
"math-display".into(),
]),
)],
children: vec![hast::Node::Text(hast::Text {
value,
position: None,
})],
position: math.position.clone(),
})],
position: math.position.clone(),
}))
}
/// [`MdxFlowExpression`][mdast::MdxFlowExpression],[`MdxTextExpression`][mdast::MdxTextExpression].
fn transform_mdx_expression(_state: &mut State, node: &mdast::Node) -> Result {
match node {
mdast::Node::MdxFlowExpression(node) => {
Result::Node(hast::Node::MdxExpression(hast::MdxExpression {
value: node.value.clone(),
position: node.position.clone(),
stops: node.stops.clone(),
}))
}
mdast::Node::MdxTextExpression(node) => {
Result::Node(hast::Node::MdxExpression(hast::MdxExpression {
value: node.value.clone(),
position: node.position.clone(),
stops: node.stops.clone(),
}))
}
_ => unreachable!("expected expression"),
}
}
/// [`MdxJsxFlowElement`][mdast::MdxJsxFlowElement],[`MdxJsxTextElement`][mdast::MdxJsxTextElement].
fn transform_mdx_jsx_element(state: &mut State, node: &mdast::Node) -> Result {
let (name, attributes) = match node {
mdast::Node::MdxJsxFlowElement(n) => (&n.name, &n.attributes),
mdast::Node::MdxJsxTextElement(n) => (&n.name, &n.attributes),
_ => unreachable!("expected mdx jsx element"),
};
Result::Node(hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: name.clone(),
attributes: attributes.clone(),
children: all(state, node),
position: node.position().cloned(),
}))
}
/// [`MdxjsEsm`][mdast::MdxjsEsm].
fn transform_mdxjs_esm(
_state: &mut State,
_node: &mdast::Node,
mdxjs_esm: &mdast::MdxjsEsm,
) -> Result {
Result::Node(hast::Node::MdxjsEsm(hast::MdxjsEsm {
value: mdxjs_esm.value.clone(),
position: mdxjs_esm.position.clone(),
stops: mdxjs_esm.stops.clone(),
}))
}
/// [`Paragraph`][mdast::Paragraph].
fn transform_paragraph(
state: &mut State,
node: &mdast::Node,
paragraph: &mdast::Paragraph,
) -> Result {
let children = all(state, node);
let mut all = true;
let mut one_or_more = false;
let mut index = 0;
while index < children.len() {
match &children[index] {
hast::Node::MdxJsxElement(_) | hast::Node::MdxExpression(_) => {
one_or_more = true;
index += 1;
continue;
}
hast::Node::Text(node) => {
if inter_element_whitespace(&node.value) {
index += 1;
continue;
}
}
_ => {}
}
all = false;
break;
}
if all && one_or_more {
Result::Fragment(children)
} else {
Result::Node(hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children,
position: paragraph.position.clone(),
}))
}
}
/// [`Root`][mdast::Root].
fn transform_root(state: &mut State, node: &mdast::Node, root: &mdast::Root) -> Result {
Result::Node(hast::Node::Root(hast::Root {
children: wrap(all(state, node), false),
position: root.position.clone(),
}))
}
/// [`Strong`][mdast::Strong].
fn transform_strong(state: &mut State, node: &mdast::Node, strong: &mdast::Strong) -> Result {
Result::Node(hast::Node::Element(hast::Element {
tag_name: "strong".into(),
properties: vec![],
children: all(state, node),
position: strong.position.clone(),
}))
}
/// [`TableCell`][mdast::TableCell].
fn transform_table_cell(
state: &mut State,
node: &mdast::Node,
head: bool,
align: mdast::AlignKind,
table_cell: &mdast::TableCell,
) -> Result {
let align_value = match align {
mdast::AlignKind::None => None,
mdast::AlignKind::Left => Some("left"),
mdast::AlignKind::Right => Some("right"),
mdast::AlignKind::Center => Some("center"),
};
let mut properties = vec![];
if let Some(value) = align_value {
properties.push(("align".into(), hast::PropertyValue::String(value.into())));
}
Result::Node(hast::Node::Element(hast::Element {
tag_name: if head { "th".into() } else { "td".into() },
properties,
children: all(state, node),
position: table_cell.position.clone(),
}))
}
/// [`TableRow`][mdast::TableRow].
fn transform_table_row(
state: &mut State,
_node: &mdast::Node,
head: bool,
align: Option<&[mdast::AlignKind]>,
table_row: &mdast::TableRow,
) -> Result {
let mut children = vec![];
let mut index = 0;
#[allow(clippy::redundant_closure_for_method_calls)]
let len = align.map_or(table_row.children.len(), |d| d.len());
let empty_cell = mdast::Node::TableCell(mdast::TableCell {
children: vec![],
position: None,
});
while index < len {
let align_value = align
.and_then(|d| d.get(index))
.unwrap_or(&mdast::AlignKind::None);
let child = table_row.children.get(index).unwrap_or(&empty_cell);
let result = if let mdast::Node::TableCell(table_cell) = child {
transform_table_cell(state, child, head, *align_value, table_cell)
} else {
unreachable!("expected tale cell in table row")
};
append_result(&mut children, result);
index += 1;
}
Result::Node(hast::Node::Element(hast::Element {
tag_name: "tr".into(),
properties: vec![],
children: wrap(children, true),
position: table_row.position.clone(),
}))
}
/// [`Table`][mdast::Table].
fn transform_table(state: &mut State, _node: &mdast::Node, table: &mdast::Table) -> Result {
let mut rows = vec![];
let mut index = 0;
while index < table.children.len() {
let child = &table.children[index];
let result = if let mdast::Node::TableRow(table_row) = child {
transform_table_row(
state,
&table.children[index],
index == 0,
Some(&table.align),
table_row,
)
} else {
unreachable!("expected table row as child of table")
};
append_result(&mut rows, result);
index += 1;
}
let body_rows = rows.split_off(1);
let head_row = rows.pop();
let mut children = vec![];
if let Some(row) = head_row {
let position = row.position().cloned();
children.push(hast::Node::Element(hast::Element {
tag_name: "thead".into(),
properties: vec![],
children: wrap(vec![row], true),
position,
}));
}
if !body_rows.is_empty() {
let mut position = None;
if let Some(position_start) = body_rows.first().and_then(hast::Node::position) {
if let Some(position_end) = body_rows.last().and_then(hast::Node::position) {
position = Some(Position {
start: position_start.start.clone(),
end: position_end.end.clone(),
});
}
}
children.push(hast::Node::Element(hast::Element {
tag_name: "tbody".into(),
properties: vec![],
children: wrap(body_rows, true),
position,
}));
}
Result::Node(hast::Node::Element(hast::Element {
tag_name: "table".into(),
properties: vec![],
children: wrap(children, true),
position: table.position.clone(),
}))
}
/// [`Text`][mdast::Text].
fn transform_text(_state: &mut State, _node: &mdast::Node, text: &mdast::Text) -> Result {
Result::Node(hast::Node::Text(hast::Text {
value: text.value.clone(),
position: text.position.clone(),
}))
}
/// [`ThematicBreak`][mdast::ThematicBreak].
fn transform_thematic_break(
_state: &mut State,
_node: &mdast::Node,
thematic_break: &mdast::ThematicBreak,
) -> Result {
Result::Node(hast::Node::Element(hast::Element {
tag_name: "hr".into(),
properties: vec![],
children: vec![],
position: thematic_break.position.clone(),
}))
}
/// Transform children of `parent`.
fn all(state: &mut State, parent: &mdast::Node) -> Vec<hast::Node> {
let mut nodes = vec![];
if let Some(children) = parent.children() {
let mut index = 0;
while index < children.len() {
let child = &children[index];
let result = one(state, child, Some(parent));
append_result(&mut nodes, result);
index += 1;
}
}
nodes
}
/// Wrap `nodes` with line feeds between each entry.
/// Optionally adds line feeds at the start and end.
fn wrap(mut nodes: Vec<hast::Node>, loose: bool) -> Vec<hast::Node> {
let mut result = vec![];
let was_empty = nodes.is_empty();
let mut head = true;
nodes.reverse();
if loose {
result.push(hast::Node::Text(hast::Text {
value: "\n".into(),
position: None,
}));
}
while let Some(item) = nodes.pop() {
// Inject when there’s more:
if !head {
result.push(hast::Node::Text(hast::Text {
value: "\n".into(),
position: None,
}));
}
head = false;
result.push(item);
}
if loose && !was_empty {
result.push(hast::Node::Text(hast::Text {
value: "\n".into(),
position: None,
}));
}
result
}
/// Visit.
fn visit<Visitor>(node: &mdast::Node, visitor: Visitor)
where
Visitor: FnMut(&mdast::Node),
{
visit_impl(node, visitor);
}
/// Internal implementation to visit.
fn visit_impl<Visitor>(node: &mdast::Node, mut visitor: Visitor) -> Visitor
where
Visitor: FnMut(&mdast::Node),
{
visitor(node);
if let Some(children) = node.children() {
let mut index = 0;
while index < children.len() {
let child = &children[index];
visitor = visit_impl(child, visitor);
index += 1;
}
}
visitor
}
// To do: trim arounds breaks: <https://github.com/syntax-tree/mdast-util-to-hast/blob/c393d0a/lib/traverse.js>.
/// Append an optional, variadic result.
fn append_result(list: &mut Vec<hast::Node>, result: Result) {
match result {
Result::Fragment(mut fragment) => list.append(&mut fragment),
Result::Node(node) => list.push(node),
Result::None => {}
}
}
/// Replace line endings (CR, LF, CRLF) with spaces.
///
/// Used for inline code and inline math.
fn replace_eols_with_spaces(value: &str) -> String {
// It’ll grow a bit small for each CR+LF.
let mut result = String::with_capacity(value.len());
let bytes = value.as_bytes();
let mut index = 0;
let mut start = 0;
while index < bytes.len() {
let byte = bytes[index];
if byte == b'\r' || byte == b'\n' {
result.push_str(&value[start..index]);
result.push(' ');
if index + 1 < bytes.len() && byte == b'\r' && bytes[index + 1] == b'\n' {
index += 1;
}
start = index + 1;
}
index += 1;
}
result.push_str(&value[start..]);
result
}
/// Check if a list is loose.
fn list_loose(node: &mdast::Node) -> bool {
if let mdast::Node::List(list) = node {
if list.spread {
return true;
}
if let Some(children) = node.children() {
let mut index = 0;
while index < children.len() {
if list_item_loose(&children[index]) {
return true;
}
index += 1;
}
}
}
false
}
/// Check if a list item is loose.
fn list_item_loose(node: &mdast::Node) -> bool {
if let mdast::Node::ListItem(item) = node {
item.spread
} else {
false
}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::hast;
use pretty_assertions::assert_eq;
#[test]
fn blockquote() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Blockquote(mdast::Blockquote {
children: vec![],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "blockquote".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
})],
position: None
}),
"should support a `Blockquote`",
);
}
#[test]
fn br() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Break(mdast::Break { position: None })),
hast::Node::Root(hast::Root {
children: vec![
hast::Node::Element(hast::Element {
tag_name: "br".into(),
properties: vec![],
children: vec![],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
})
],
position: None
}),
"should support a `Break`",
);
}
#[test]
fn code() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Code(mdast::Code {
lang: Some("b".into()),
meta: None,
value: "a".into(),
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "pre".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "code".into(),
properties: vec![(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["language-b".into()]),
),],
children: vec![hast::Node::Text(hast::Text {
value: "a\n".into(),
position: None
})],
position: None
})],
position: None
}),
"should support a `Code`",
);
}
#[test]
fn definition() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Definition(mdast::Definition {
url: "b".into(),
title: None,
identifier: "a".into(),
label: None,
position: None
})),
hast::Node::Root(hast::Root {
children: vec![],
position: None
}),
"should support a `Definition`",
);
}
#[test]
fn delete() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Delete(mdast::Delete {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "del".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
})],
position: None
}),
"should support a `Delete`",
);
}
#[test]
fn emphasis() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Emphasis(mdast::Emphasis {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "em".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
})],
position: None
}),
"should support an `Emphasis`",
);
}
#[test]
fn footnote_definition() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::FootnoteDefinition(
mdast::FootnoteDefinition {
identifier: "a".into(),
label: None,
children: vec![],
position: None
}
)),
hast::Node::Root(hast::Root {
children: vec![],
position: None
}),
"should support a `FootnoteDefinition`",
);
}
#[test]
fn footnote_reference() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![
mdast::Node::FootnoteDefinition(mdast::FootnoteDefinition {
children: vec![mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::Text(mdast::Text {
value: "b".into(),
position: None
})],
position: None
}),],
identifier: "a".into(),
label: None,
position: None
}),
mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::FootnoteReference(mdast::FootnoteReference {
identifier: "a".into(),
label: None,
position: None,
})],
position: None
}),
],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![
// Main.
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
("href".into(), hast::PropertyValue::String("#fn-a".into()),),
("id".into(), hast::PropertyValue::String("fnref-a".into()),),
("dataFootnoteRef".into(), hast::PropertyValue::Boolean(true),),
(
"ariaDescribedBy".into(),
hast::PropertyValue::String("footnote-label".into()),
)
],
children: vec![hast::Node::Text(hast::Text {
value: "1".into(),
position: None
})],
position: None
}),],
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
// Footer.
hast::Node::Element(hast::Element {
tag_name: "section".into(),
properties: vec![
("dataFootnotes".into(), hast::PropertyValue::Boolean(true),),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["footnotes".into()]),
),
],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "h2".into(),
properties: vec![
(
"id".into(),
hast::PropertyValue::String("footnote-label".into()),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["sr-only".into(),]
),
),
],
children: vec![hast::Node::Text(hast::Text {
value: "Footnotes".into(),
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "ol".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"id".into(),
hast::PropertyValue::String("#fn-a".into()),
)],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "b ".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String(
"#fnref-a".into()
),
),
(
"dataFootnoteBackref".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaLabel".into(),
hast::PropertyValue::String(
"Back to content".into()
),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["data-footnote-backref"
.into()]
),
)
],
children: vec![hast::Node::Text(
hast::Text {
value: "↩".into(),
position: None
}
),],
position: None
})
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
"should support a `FootnoteReference`",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![
mdast::Node::FootnoteDefinition(mdast::FootnoteDefinition {
children: vec![mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::Text(mdast::Text {
value: "b".into(),
position: None
})],
position: None
}),],
identifier: "a".into(),
label: None,
position: None
}),
mdast::Node::Paragraph(mdast::Paragraph {
children: vec![
mdast::Node::FootnoteReference(mdast::FootnoteReference {
identifier: "a".into(),
label: None,
position: None,
}),
mdast::Node::FootnoteReference(mdast::FootnoteReference {
identifier: "a".into(),
label: None,
position: None,
})
],
position: None
}),
],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![
// Main.
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String("#fn-a".into()),
),
(
"id".into(),
hast::PropertyValue::String("fnref-a".into()),
),
(
"dataFootnoteRef".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaDescribedBy".into(),
hast::PropertyValue::String("footnote-label".into()),
)
],
children: vec![hast::Node::Text(hast::Text {
value: "1".into(),
position: None
})],
position: None
}),],
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String("#fn-a".into()),
),
(
"id".into(),
hast::PropertyValue::String("fnref-a-2".into()),
),
(
"dataFootnoteRef".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaDescribedBy".into(),
hast::PropertyValue::String("footnote-label".into()),
)
],
children: vec![hast::Node::Text(hast::Text {
value: "1".into(),
position: None
})],
position: None
}),],
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
// Footer.
hast::Node::Element(hast::Element {
tag_name: "section".into(),
properties: vec![
("dataFootnotes".into(), hast::PropertyValue::Boolean(true),),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["footnotes".into()]),
),
],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "h2".into(),
properties: vec![
(
"id".into(),
hast::PropertyValue::String("footnote-label".into()),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["sr-only".into(),]
),
),
],
children: vec![hast::Node::Text(hast::Text {
value: "Footnotes".into(),
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "ol".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"id".into(),
hast::PropertyValue::String("#fn-a".into()),
)],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "b ".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String(
"#fnref-a".into()
),
),
(
"dataFootnoteBackref".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaLabel".into(),
hast::PropertyValue::String(
"Back to content".into()
),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["data-footnote-backref"
.into()]
),
)
],
children: vec![hast::Node::Text(
hast::Text {
value: "↩".into(),
position: None
}
),],
position: None
}),
hast::Node::Text(hast::Text {
value: " ".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String(
"#fnref-a-2".into()
),
),
(
"dataFootnoteBackref".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaLabel".into(),
hast::PropertyValue::String(
"Back to content".into()
),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["data-footnote-backref"
.into()]
),
)
],
children: vec![
hast::Node::Text(hast::Text {
value: "↩".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Text(
hast::Text {
value: "2".into(),
position: None
}
),],
position: None
})
],
position: None
})
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
"should support a `FootnoteReference` (multiple calls to the same definition)",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![
mdast::Node::FootnoteDefinition(mdast::FootnoteDefinition {
children: vec![mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::Text(mdast::Text {
value: "b".into(),
position: None
})],
position: None
}),],
identifier: "a".into(),
label: None,
position: None
}),
mdast::Node::FootnoteDefinition(mdast::FootnoteDefinition {
children: vec![mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::Text(mdast::Text {
value: "d".into(),
position: None
})],
position: None
}),],
identifier: "c".into(),
label: None,
position: None
}),
mdast::Node::Paragraph(mdast::Paragraph {
children: vec![
mdast::Node::FootnoteReference(mdast::FootnoteReference {
identifier: "a".into(),
label: None,
position: None,
}),
mdast::Node::Text(mdast::Text {
value: " and ".into(),
position: None,
}),
mdast::Node::FootnoteReference(mdast::FootnoteReference {
identifier: "c".into(),
label: None,
position: None,
})
],
position: None
}),
],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![
// Main.
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String("#fn-a".into()),
),
(
"id".into(),
hast::PropertyValue::String("fnref-a".into()),
),
(
"dataFootnoteRef".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaDescribedBy".into(),
hast::PropertyValue::String("footnote-label".into()),
)
],
children: vec![hast::Node::Text(hast::Text {
value: "1".into(),
position: None
})],
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: " and ".into(),
position: None,
}),
hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String("#fn-c".into()),
),
(
"id".into(),
hast::PropertyValue::String("fnref-c".into()),
),
(
"dataFootnoteRef".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaDescribedBy".into(),
hast::PropertyValue::String("footnote-label".into()),
)
],
children: vec![hast::Node::Text(hast::Text {
value: "2".into(),
position: None
})],
position: None
}),],
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
// Footer.
hast::Node::Element(hast::Element {
tag_name: "section".into(),
properties: vec![
("dataFootnotes".into(), hast::PropertyValue::Boolean(true),),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["footnotes".into()]),
),
],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "h2".into(),
properties: vec![
(
"id".into(),
hast::PropertyValue::String("footnote-label".into()),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["sr-only".into(),]
),
),
],
children: vec![hast::Node::Text(hast::Text {
value: "Footnotes".into(),
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "ol".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"id".into(),
hast::PropertyValue::String("#fn-a".into()),
)],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "b ".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String(
"#fnref-a".into()
),
),
(
"dataFootnoteBackref".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaLabel".into(),
hast::PropertyValue::String(
"Back to content".into()
),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["data-footnote-backref"
.into()]
),
)
],
children: vec![hast::Node::Text(
hast::Text {
value: "↩".into(),
position: None
}
),],
position: None
})
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"id".into(),
hast::PropertyValue::String("#fn-c".into()),
)],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "d ".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String(
"#fnref-c".into()
),
),
(
"dataFootnoteBackref".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaLabel".into(),
hast::PropertyValue::String(
"Back to content".into()
),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["data-footnote-backref"
.into()]
),
)
],
children: vec![hast::Node::Text(
hast::Text {
value: "↩".into(),
position: None
}
),],
position: None
})
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
"should support a `FootnoteReference` (different definitions)",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![
mdast::Node::FootnoteDefinition(mdast::FootnoteDefinition {
children: vec![mdast::Node::Heading(mdast::Heading {
depth: 1,
children: vec![mdast::Node::Text(mdast::Text {
value: "b".into(),
position: None
})],
position: None
}),],
identifier: "a".into(),
label: None,
position: None
}),
mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::FootnoteReference(mdast::FootnoteReference {
identifier: "a".into(),
label: None,
position: None,
})],
position: None
}),
],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![
// Main.
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
("href".into(), hast::PropertyValue::String("#fn-a".into()),),
("id".into(), hast::PropertyValue::String("fnref-a".into()),),
("dataFootnoteRef".into(), hast::PropertyValue::Boolean(true),),
(
"ariaDescribedBy".into(),
hast::PropertyValue::String("footnote-label".into()),
)
],
children: vec![hast::Node::Text(hast::Text {
value: "1".into(),
position: None
})],
position: None
}),],
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
// Footer.
hast::Node::Element(hast::Element {
tag_name: "section".into(),
properties: vec![
("dataFootnotes".into(), hast::PropertyValue::Boolean(true),),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["footnotes".into()]),
),
],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "h2".into(),
properties: vec![
(
"id".into(),
hast::PropertyValue::String("footnote-label".into()),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["sr-only".into(),]
),
),
],
children: vec![hast::Node::Text(hast::Text {
value: "Footnotes".into(),
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "ol".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"id".into(),
hast::PropertyValue::String("#fn-a".into()),
)],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "h1".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "b".into(),
position: None
}),],
position: None,
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String(
"#fnref-a".into()
),
),
(
"dataFootnoteBackref".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaLabel".into(),
hast::PropertyValue::String(
"Back to content".into()
),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec![
"data-footnote-backref".into()
]),
)
],
children: vec![hast::Node::Text(hast::Text {
value: "↩".into(),
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
"should support a `FootnoteReference` (no paragraph in definition)",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![
mdast::Node::FootnoteDefinition(mdast::FootnoteDefinition {
children: vec![mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::InlineCode(mdast::InlineCode {
value: "b".into(),
position: None
})],
position: None
}),],
identifier: "a".into(),
label: None,
position: None
}),
mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::FootnoteReference(mdast::FootnoteReference {
identifier: "a".into(),
label: None,
position: None,
})],
position: None
}),
],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![
// Main.
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
("href".into(), hast::PropertyValue::String("#fn-a".into()),),
("id".into(), hast::PropertyValue::String("fnref-a".into()),),
("dataFootnoteRef".into(), hast::PropertyValue::Boolean(true),),
(
"ariaDescribedBy".into(),
hast::PropertyValue::String("footnote-label".into()),
)
],
children: vec![hast::Node::Text(hast::Text {
value: "1".into(),
position: None
})],
position: None
}),],
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
// Footer.
hast::Node::Element(hast::Element {
tag_name: "section".into(),
properties: vec![
("dataFootnotes".into(), hast::PropertyValue::Boolean(true),),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["footnotes".into()]),
),
],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "h2".into(),
properties: vec![
(
"id".into(),
hast::PropertyValue::String("footnote-label".into()),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["sr-only".into(),]
),
),
],
children: vec![hast::Node::Text(hast::Text {
value: "Footnotes".into(),
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "ol".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"id".into(),
hast::PropertyValue::String("#fn-a".into()),
)],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "code".into(),
properties: vec![],
children: vec![hast::Node::Text(
hast::Text {
value: "b".into(),
position: None
}
),],
position: None
}),
hast::Node::Text(hast::Text {
value: " ".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String(
"#fnref-a".into()
),
),
(
"dataFootnoteBackref".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaLabel".into(),
hast::PropertyValue::String(
"Back to content".into()
),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["data-footnote-backref"
.into()]
),
)
],
children: vec![hast::Node::Text(
hast::Text {
value: "↩".into(),
position: None
}
),],
position: None
})
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
"should support a `FootnoteReference` (no final text in definition content)",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::Blockquote(mdast::Blockquote {
children: vec![
mdast::Node::FootnoteDefinition(mdast::FootnoteDefinition {
children: vec![mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::InlineCode(mdast::InlineCode {
value: "b".into(),
position: None
})],
position: None
}),],
identifier: "a".into(),
label: None,
position: None
}),
mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::FootnoteReference(mdast::FootnoteReference {
identifier: "a".into(),
label: None,
position: None,
})],
position: None
}),
],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![
// Main.
hast::Node::Element(hast::Element {
tag_name: "blockquote".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "sup".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String("#fn-a".into()),
),
(
"id".into(),
hast::PropertyValue::String("fnref-a".into()),
),
(
"dataFootnoteRef".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaDescribedBy".into(),
hast::PropertyValue::String(
"footnote-label".into()
),
)
],
children: vec![hast::Node::Text(hast::Text {
value: "1".into(),
position: None
})],
position: None
}),],
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
// Footer.
hast::Node::Element(hast::Element {
tag_name: "section".into(),
properties: vec![
("dataFootnotes".into(), hast::PropertyValue::Boolean(true),),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["footnotes".into()]),
),
],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "h2".into(),
properties: vec![
(
"id".into(),
hast::PropertyValue::String("footnote-label".into()),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["sr-only".into(),]
),
),
],
children: vec![hast::Node::Text(hast::Text {
value: "Footnotes".into(),
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "ol".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"id".into(),
hast::PropertyValue::String("#fn-a".into()),
)],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "code".into(),
properties: vec![],
children: vec![hast::Node::Text(
hast::Text {
value: "b".into(),
position: None
}
),],
position: None
}),
hast::Node::Text(hast::Text {
value: " ".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
(
"href".into(),
hast::PropertyValue::String(
"#fnref-a".into()
),
),
(
"dataFootnoteBackref".into(),
hast::PropertyValue::Boolean(true),
),
(
"ariaLabel".into(),
hast::PropertyValue::String(
"Back to content".into()
),
),
(
"className".into(),
hast::PropertyValue::SpaceSeparated(
vec!["data-footnote-backref"
.into()]
),
)
],
children: vec![hast::Node::Text(
hast::Text {
value: "↩".into(),
position: None
}
),],
position: None
})
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
"should support a `FootnoteReference` (not in a root)",
);
}
#[test]
fn heading() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Heading(mdast::Heading {
depth: 1,
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "h1".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
})],
position: None
}),
"should support a `Heading`",
);
}
#[test]
fn html() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Html(mdast::Html {
value: "<div>".into(),
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![],
position: None
}),
"should support an `Html`",
);
}
#[test]
fn image() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Image(mdast::Image {
url: "a".into(),
alt: "b".into(),
title: Some("c".into()),
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "img".into(),
properties: vec![
("src".into(), hast::PropertyValue::String("a".into())),
("alt".into(), hast::PropertyValue::String("b".into())),
("title".into(), hast::PropertyValue::String("c".into()))
],
children: vec![],
position: None
}),
"should support an `Image`",
);
}
#[test]
fn image_reference() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![
mdast::Node::Definition(mdast::Definition {
url: "b".into(),
title: Some("c".into()),
identifier: "a".into(),
label: None,
position: None
}),
mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::ImageReference(mdast::ImageReference {
reference_kind: mdast::ReferenceKind::Full,
identifier: "a".into(),
alt: "d".into(),
label: None,
position: None,
})],
position: None
}),
],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "img".into(),
properties: vec![
("src".into(), hast::PropertyValue::String("b".into()),),
("alt".into(), hast::PropertyValue::String("d".into()),),
("title".into(), hast::PropertyValue::String("c".into()),)
],
children: vec![],
position: None
}),],
position: None
}),],
position: None
}),
"should support an `ImageReference`",
);
}
#[test]
fn inline_code() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::InlineCode(mdast::InlineCode {
value: "a\nb".into(),
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "code".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a b".into(),
position: None
})],
position: None
}),
"should support an `InlineCode`",
);
}
#[test]
fn inline_math() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::InlineMath(mdast::InlineMath {
value: "a\nb".into(),
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "code".into(),
properties: vec![(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec![
"language-math".into(),
"math-inline".into()
]),
),],
children: vec![hast::Node::Text(hast::Text {
value: "a b".into(),
position: None
})],
position: None
}),
"should support an `InlineMath`",
);
}
#[test]
fn link() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Link(mdast::Link {
url: "a".into(),
title: Some("b".into()),
children: vec![mdast::Node::Text(mdast::Text {
value: "c".into(),
position: None
})],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
("href".into(), hast::PropertyValue::String("a".into())),
("title".into(), hast::PropertyValue::String("b".into())),
],
children: vec![hast::Node::Text(hast::Text {
value: "c".into(),
position: None
})],
position: None
}),
"should support a `Link`",
);
}
#[test]
fn link_reference() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![
mdast::Node::Definition(mdast::Definition {
url: "b".into(),
title: Some("c".into()),
identifier: "a".into(),
label: None,
position: None
}),
mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::LinkReference(mdast::LinkReference {
reference_kind: mdast::ReferenceKind::Full,
identifier: "a".into(),
label: None,
children: vec![mdast::Node::Text(mdast::Text {
value: "c".into(),
position: None
})],
position: None,
})],
position: None
}),
],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "a".into(),
properties: vec![
("href".into(), hast::PropertyValue::String("b".into())),
("title".into(), hast::PropertyValue::String("c".into())),
],
children: vec![hast::Node::Text(hast::Text {
value: "c".into(),
position: None
})],
position: None
}),],
position: None
}),],
position: None
}),
"should support a `LinkReference`",
);
}
#[test]
fn list_item() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![mdast::Node::ListItem(mdast::ListItem {
spread: false,
checked: None,
children: vec![mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None
}),],
position: None
}),],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
}),],
position: None
}),],
position: None
}),
"should support a `ListItem`",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![mdast::Node::ListItem(mdast::ListItem {
spread: true,
checked: None,
children: vec![mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None
}),],
position: None
}),],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),],
position: None
}),
"should support a `ListItem` (spread: true)",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![mdast::Node::ListItem(mdast::ListItem {
spread: false,
checked: Some(true),
children: vec![],
position: None
}),],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["task-list-item".into()])
)],
children: vec![hast::Node::Element(hast::Element {
tag_name: "input".into(),
properties: vec![
(
"type".into(),
hast::PropertyValue::String("checkbox".into()),
),
("checked".into(), hast::PropertyValue::Boolean(true)),
("disabled".into(), hast::PropertyValue::Boolean(true)),
],
children: vec![],
position: None
}),],
position: None
}),],
position: None
}),
"should support a `ListItem` (checked, w/o paragraph)",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![mdast::Node::ListItem(mdast::ListItem {
spread: false,
checked: Some(false),
children: vec![mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None
}),],
position: None
}),],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["task-list-item".into()])
)],
children: vec![
hast::Node::Element(hast::Element {
tag_name: "input".into(),
properties: vec![
(
"type".into(),
hast::PropertyValue::String("checkbox".into()),
),
("checked".into(), hast::PropertyValue::Boolean(false)),
("disabled".into(), hast::PropertyValue::Boolean(true)),
],
children: vec![],
position: None
}),
hast::Node::Text(hast::Text {
value: " ".into(),
position: None
}),
hast::Node::Text(hast::Text {
value: "a".into(),
position: None
}),
],
position: None
}),],
position: None
}),
"should support a `ListItem` (unchecked, w/ paragraph)",
);
}
#[test]
fn list() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::List(mdast::List {
ordered: true,
start: Some(1),
spread: false,
children: vec![mdast::Node::ListItem(mdast::ListItem {
spread: false,
checked: None,
children: vec![mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None
}),],
position: None
}),],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "ol".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
"should support a `List` (ordered, start: 1)",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::List(mdast::List {
ordered: true,
start: Some(123),
spread: false,
children: vec![],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "ol".into(),
properties: vec![("start".into(), hast::PropertyValue::String("123".into()),),],
children: vec![hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
})],
position: None
}),
"should support a `List` (ordered, start: 123)",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::List(mdast::List {
ordered: false,
start: None,
spread: false,
children: vec![],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "ul".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
})],
position: None
}),
"should support a `List` (unordered)",
);
assert_eq!(
mdast_util_to_hast(&mdast::Node::List(mdast::List {
ordered: false,
start: None,
spread: false,
children: vec![mdast::Node::ListItem(mdast::ListItem {
spread: false,
checked: Some(true),
children: vec![],
position: None
}),],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "ul".into(),
properties: vec![(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["contains-task-list".into()])
)],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "li".into(),
properties: vec![(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec!["task-list-item".into()])
)],
children: vec![hast::Node::Element(hast::Element {
tag_name: "input".into(),
properties: vec![
(
"type".into(),
hast::PropertyValue::String("checkbox".into()),
),
("checked".into(), hast::PropertyValue::Boolean(true)),
("disabled".into(), hast::PropertyValue::Boolean(true)),
],
children: vec![],
position: None
}),],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
"should support a `List` (w/ checked item)",
);
}
#[test]
fn math() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Math(mdast::Math {
meta: None,
value: "a".into(),
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "pre".into(),
properties: vec![],
children: vec![hast::Node::Element(hast::Element {
tag_name: "code".into(),
properties: vec![(
"className".into(),
hast::PropertyValue::SpaceSeparated(vec![
"language-math".into(),
"math-display".into()
]),
),],
children: vec![hast::Node::Text(hast::Text {
value: "a\n".into(),
position: None
})],
position: None
})],
position: None
}),
"should support a `Math`",
);
}
#[test]
fn mdx_flow_expression() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::MdxFlowExpression(mdast::MdxFlowExpression {
value: "a".into(),
position: None,
stops: vec![]
})),
hast::Node::MdxExpression(hast::MdxExpression {
value: "a".into(),
position: None,
stops: vec![]
}),
"should support an `MdxFlowExpression`",
);
}
#[test]
fn mdx_text_expression() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::MdxTextExpression(mdast::MdxTextExpression {
value: "a".into(),
position: None,
stops: vec![]
})),
hast::Node::MdxExpression(hast::MdxExpression {
value: "a".into(),
position: None,
stops: vec![]
}),
"should support an `MdxTextExpression`",
);
}
#[test]
fn mdx_jsx_flow_element() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::MdxJsxFlowElement(mdast::MdxJsxFlowElement {
name: None,
attributes: vec![],
children: vec![],
position: None,
})),
hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: None,
attributes: vec![],
children: vec![],
position: None,
}),
"should support an `MdxJsxFlowElement`",
);
}
#[test]
fn mdx_jsx_text_element() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::MdxJsxTextElement(mdast::MdxJsxTextElement {
name: None,
attributes: vec![],
children: vec![],
position: None,
})),
hast::Node::MdxJsxElement(hast::MdxJsxElement {
name: None,
attributes: vec![],
children: vec![],
position: None,
}),
"should support an `MdxJsxTextElement`",
);
}
#[test]
fn mdxjs_esm() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::MdxjsEsm(mdast::MdxjsEsm {
value: "a".into(),
position: None,
stops: vec![]
})),
hast::Node::MdxjsEsm(hast::MdxjsEsm {
value: "a".into(),
position: None,
stops: vec![]
}),
"should support an `MdxjsEsm`",
);
}
#[test]
fn paragraph() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Paragraph(mdast::Paragraph {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "p".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
})],
position: None
}),
"should support a `Paragraph`",
);
}
#[test]
fn root() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Root(mdast::Root {
children: vec![],
position: None,
})),
hast::Node::Root(hast::Root {
children: vec![],
position: None
}),
"should support a `Root`",
);
}
#[test]
fn strong() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Strong(mdast::Strong {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "strong".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
})],
position: None
}),
"should support a `Strong`",
);
}
#[test]
fn table_cell() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::TableCell(mdast::TableCell {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "td".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
})],
position: None
}),
"should support a `TableCell`",
);
}
#[test]
fn table_row() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::TableRow(mdast::TableRow {
children: vec![
mdast::Node::TableCell(mdast::TableCell {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None,
}),
mdast::Node::TableCell(mdast::TableCell {
children: vec![mdast::Node::Text(mdast::Text {
value: "b".into(),
position: None
})],
position: None,
})
],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "tr".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "td".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
})],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "td".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "b".into(),
position: None
})],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
"should support a `TableRow`",
);
}
#[test]
fn table() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Table(mdast::Table {
align: vec![
mdast::AlignKind::None,
mdast::AlignKind::Left,
mdast::AlignKind::Center,
mdast::AlignKind::Right
],
children: vec![
mdast::Node::TableRow(mdast::TableRow {
children: vec![
mdast::Node::TableCell(mdast::TableCell {
children: vec![mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None
})],
position: None,
}),
mdast::Node::TableCell(mdast::TableCell {
children: vec![mdast::Node::Text(mdast::Text {
value: "b".into(),
position: None
})],
position: None,
}),
mdast::Node::TableCell(mdast::TableCell {
children: vec![mdast::Node::Text(mdast::Text {
value: "c".into(),
position: None
})],
position: None,
}),
mdast::Node::TableCell(mdast::TableCell {
children: vec![mdast::Node::Text(mdast::Text {
value: "d".into(),
position: None
})],
position: None,
})
],
position: None,
}),
mdast::Node::TableRow(mdast::TableRow {
children: vec![
mdast::Node::TableCell(mdast::TableCell {
children: vec![mdast::Node::Text(mdast::Text {
value: "e".into(),
position: None
})],
position: None,
}),
mdast::Node::TableCell(mdast::TableCell {
children: vec![mdast::Node::Text(mdast::Text {
value: "f".into(),
position: None
})],
position: None,
})
],
position: None,
})
],
position: None,
})),
hast::Node::Element(hast::Element {
tag_name: "table".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "thead".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "tr".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "th".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "a".into(),
position: None
})],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "th".into(),
properties: vec![(
"align".into(),
hast::PropertyValue::String("left".into()),
),],
children: vec![hast::Node::Text(hast::Text {
value: "b".into(),
position: None
})],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "th".into(),
properties: vec![(
"align".into(),
hast::PropertyValue::String("center".into()),
),],
children: vec![hast::Node::Text(hast::Text {
value: "c".into(),
position: None
})],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "th".into(),
properties: vec![(
"align".into(),
hast::PropertyValue::String("right".into()),
),],
children: vec![hast::Node::Text(hast::Text {
value: "d".into(),
position: None
})],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "tbody".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "tr".into(),
properties: vec![],
children: vec![
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "td".into(),
properties: vec![],
children: vec![hast::Node::Text(hast::Text {
value: "e".into(),
position: None
})],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "td".into(),
properties: vec![(
"align".into(),
hast::PropertyValue::String("left".into()),
)],
children: vec![hast::Node::Text(hast::Text {
value: "f".into(),
position: None
})],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "td".into(),
properties: vec![(
"align".into(),
hast::PropertyValue::String("center".into()),
)],
children: vec![],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
hast::Node::Element(hast::Element {
tag_name: "td".into(),
properties: vec![(
"align".into(),
hast::PropertyValue::String("right".into()),
)],
children: vec![],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
hast::Node::Text(hast::Text {
value: "\n".into(),
position: None
}),
],
position: None
}),
"should support a `Table`",
);
}
#[test]
fn text() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Text(mdast::Text {
value: "a".into(),
position: None,
})),
hast::Node::Text(hast::Text {
value: "a".into(),
position: None
}),
"should support a `Text`",
);
}
#[test]
fn thematic_break() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::ThematicBreak(mdast::ThematicBreak {
position: None
})),
hast::Node::Element(hast::Element {
tag_name: "hr".into(),
properties: vec![],
children: vec![],
position: None
}),
"should support a `Thematicbreak`",
);
}
#[test]
fn yaml() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Yaml(mdast::Yaml {
value: "a".into(),
position: None
})),
hast::Node::Root(hast::Root {
children: vec![],
position: None
}),
"should support a `Yaml`",
);
}
#[test]
fn toml() {
assert_eq!(
mdast_util_to_hast(&mdast::Node::Toml(mdast::Toml {
value: "a".into(),
position: None
})),
hast::Node::Root(hast::Root {
children: vec![],
position: None
}),
"should support a `Toml`",
);
}
#[test]
fn util_replace_eols_with_spaces() {
assert_eq!(
replace_eols_with_spaces("a \n b \r c \r\n d"),
"a b c d",
"should support CR, LF, and CRLF",
);
}
#[test]
fn util_list_loose() {
assert_eq!(
list_loose(&mdast::Node::Text(mdast::Text {
value: String::new(),
position: None
})),
false,
"should mark anything that isn’t a list as not loose",
);
assert_eq!(
list_loose(&mdast::Node::List(mdast::List {
children: vec![],
ordered: false,
start: None,
spread: false,
position: None
})),
false,
"should mark lists w/o children and w/o spread as loose",
);
assert_eq!(
list_loose(&mdast::Node::List(mdast::List {
children: vec![],
ordered: false,
start: None,
spread: true,
position: None
})),
true,
"should mark lists w/ spread as loose",
);
assert_eq!(
list_loose(&mdast::Node::List(mdast::List {
children: vec![mdast::Node::ListItem(mdast::ListItem {
children: vec![],
checked: None,
spread: true,
position: None
})],
ordered: false,
start: None,
spread: false,
position: None
})),
true,
"should mark lists w/o spread as loose if an item is loose",
);
assert_eq!(
list_loose(&mdast::Node::List(mdast::List {
children: vec![mdast::Node::ListItem(mdast::ListItem {
children: vec![],
checked: None,
spread: false,
position: None
})],
ordered: false,
start: None,
spread: false,
position: None
})),
false,
"should not mark lists w/o spread as loose if there are no loose items",
);
}
#[test]
fn util_list_item_loose() {
assert_eq!(
list_item_loose(&mdast::Node::Text(mdast::Text {
value: String::new(),
position: None
})),
false,
"should mark anything that isn’t a list item as not loose",
);
}
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
src/mdx_plugin_recma_document.rs | Rust | //! Turn a JavaScript AST, coming from MD(X), into a component.
//!
//! Port of <https://github.com/mdx-js/mdx/blob/main/packages/mdx/lib/plugin/recma-document.js>,
//! by the same author.
use crate::hast_util_to_swc::Program;
use crate::swc_utils::{
bytepos_to_point, create_call_expression, create_ident, create_ident_expression,
create_null_expression, create_object_expression, create_str, position_opt_to_string,
span_to_position,
};
use markdown::{
unist::{Point, Position},
Location,
};
use swc_core::common::SyntaxContext;
use swc_core::ecma::ast::{
AssignPat, BindingIdent, BlockStmt, Callee, CondExpr, Decl, DefaultDecl, ExportDefaultExpr,
ExportSpecifier, Expr, ExprOrSpread, FnDecl, Function, ImportDecl, ImportDefaultSpecifier,
ImportNamedSpecifier, ImportPhase, ImportSpecifier, JSXAttrOrSpread, JSXClosingElement,
JSXElement, JSXElementChild, JSXElementName, JSXOpeningElement, ModuleDecl, ModuleExportName,
ModuleItem, Param, Pat, ReturnStmt, SpreadElement, Stmt, VarDecl, VarDeclKind, VarDeclarator,
};
/// JSX runtimes (default: `JsxRuntime::Automatic`).
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
#[cfg_attr(feature = "serializable", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serializable", serde(rename_all = "camelCase"))]
pub enum JsxRuntime {
/// Automatic runtime.
///
/// With the automatic runtime, some module is expected to exist somewhere.
/// That modules is expected to expose a certain API.
/// The compiler adds an import of that module and compiles JSX away to
/// function calls that use that API.
#[default]
Automatic,
/// Classic runtime.
///
/// With the classic runtime, you define two values yourself in each file,
/// which are expected to work a certain way.
/// The compiler compiles JSX away to function calls using those two values.
Classic,
}
/// Configuration.
#[derive(Debug, PartialEq, Eq)]
pub struct Options {
/// Pragma for JSX (used in classic runtime).
///
/// Default: `React.createElement`.
pub pragma: Option<String>,
/// Pragma for JSX fragments (used in classic runtime).
///
/// Default: `React.Fragment`.
pub pragma_frag: Option<String>,
/// Where to import the identifier of `pragma` from (used in classic runtime).
///
/// Default: `react`.
pub pragma_import_source: Option<String>,
/// Place to import automatic JSX runtimes from (used in automatic runtime).
///
/// Default: `react`.
pub jsx_import_source: Option<String>,
/// JSX runtime to use.
///
/// Default: `automatic`.
pub jsx_runtime: Option<JsxRuntime>,
}
impl Default for Options {
/// Use the automatic JSX runtime with React.
fn default() -> Self {
Self {
pragma: None,
pragma_frag: None,
pragma_import_source: None,
jsx_import_source: None,
jsx_runtime: Some(JsxRuntime::default()),
}
}
}
/// Wrap the SWC ES AST nodes coming from hast into a whole document.
pub fn mdx_plugin_recma_document(
program: &mut Program,
options: &Options,
location: Option<&Location>,
) -> Result<(), markdown::message::Message> {
// New body children.
let mut replacements = vec![];
// Inject JSX configuration comment.
if let Some(runtime) = &options.jsx_runtime {
let mut pragmas = vec![];
let react = &"react".into();
let create_element = &"React.createElement".into();
let fragment = &"React.Fragment".into();
if *runtime == JsxRuntime::Automatic {
pragmas.push("@jsxRuntime automatic".into());
pragmas.push(format!(
"@jsxImportSource {}",
if let Some(jsx_import_source) = &options.jsx_import_source {
jsx_import_source
} else {
react
}
));
} else {
pragmas.push("@jsxRuntime classic".into());
pragmas.push(format!(
"@jsx {}",
if let Some(pragma) = &options.pragma {
pragma
} else {
create_element
}
));
pragmas.push(format!(
"@jsxFrag {}",
if let Some(pragma_frag) = &options.pragma_frag {
pragma_frag
} else {
fragment
}
));
}
if !pragmas.is_empty() {
program.comments.insert(
0,
swc_core::common::comments::Comment {
kind: swc_core::common::comments::CommentKind::Block,
text: pragmas.join(" ").into(),
span: swc_core::common::DUMMY_SP,
},
);
}
}
// Inject an import in the classic runtime for the pragma (and presumably,
// fragment).
if options.jsx_runtime == Some(JsxRuntime::Classic) {
let pragma = if let Some(pragma) = &options.pragma {
pragma
} else {
"React"
};
let sym = pragma.split('.').next().expect("first item always exists");
replacements.push(ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl {
specifiers: vec![ImportSpecifier::Default(ImportDefaultSpecifier {
local: create_ident(sym).into(),
span: swc_core::common::DUMMY_SP,
})],
src: Box::new(create_str(
if let Some(source) = &options.pragma_import_source {
source
} else {
"react"
},
)),
type_only: false,
with: None,
phase: ImportPhase::default(),
span: swc_core::common::DUMMY_SP,
})));
}
// Find the `export default`, the JSX expression, and leave the rest as it
// is.
let mut input = program.module.body.split_off(0);
input.reverse();
let mut layout = false;
let mut layout_position = None;
let mut content = false;
while let Some(module_item) = input.pop() {
match module_item {
// ```js
// export default props => <>{props.children}</>
// ```
//
// Treat it as an inline layout declaration.
//
// In estree, the below two are the same node (`ExportDefault`).
ModuleItem::ModuleDecl(ModuleDecl::ExportDefaultDecl(decl)) => {
err_for_double_layout(
layout,
layout_position.as_ref(),
bytepos_to_point(decl.span.lo, location).as_ref(),
)?;
layout = true;
layout_position = span_to_position(decl.span, location);
match decl.decl {
DefaultDecl::Class(cls) => {
replacements.push(create_layout_decl(Expr::Class(cls)));
}
DefaultDecl::Fn(func) => {
replacements.push(create_layout_decl(Expr::Fn(func)));
}
DefaultDecl::TsInterfaceDecl(_) => {
return Err(
markdown::message::Message {
reason: "Cannot use TypeScript interface declarations as default export in MDX files. The default export is reserved for a layout, which must be a component".into(),
place: bytepos_to_point(decl.span.lo, location).map(|p| Box::new(markdown::message::Place::Point(p))),
source: Box::new("mdxjs-rs".into()),
rule_id: Box::new("ts-interface".into()),
}
);
}
}
}
ModuleItem::ModuleDecl(ModuleDecl::ExportDefaultExpr(expr)) => {
err_for_double_layout(
layout,
layout_position.as_ref(),
bytepos_to_point(expr.span.lo, location).as_ref(),
)?;
layout = true;
layout_position = span_to_position(expr.span, location);
replacements.push(create_layout_decl(*expr.expr));
}
// ```js
// export {a, b as c} from 'd'
// export {a, b as c}
// ```
ModuleItem::ModuleDecl(ModuleDecl::ExportNamed(mut named_export)) => {
let mut index = 0;
let mut id = None;
while index < named_export.specifiers.len() {
let mut take = false;
// Note: the `ExportSpecifier::Default`
// branch of this looks interesting, but as far as I
// understand it *is not* valid ES.
// `export a from 'b'` is a syntax error, even in SWC.
if let ExportSpecifier::Named(named) = &named_export.specifiers[index] {
if let Some(ModuleExportName::Ident(ident)) = &named.exported {
if &ident.sym == "default" {
// For some reason the AST supports strings
// instead of identifiers.
// Looks like some TC39 proposal. Ignore for now
// and only do things if this is an ID.
if let ModuleExportName::Ident(ident) = &named.orig {
err_for_double_layout(
layout,
layout_position.as_ref(),
bytepos_to_point(ident.span.lo, location).as_ref(),
)?;
layout = true;
layout_position = span_to_position(ident.span, location);
take = true;
id = Some(ident.clone());
}
}
}
}
if take {
named_export.specifiers.remove(index);
} else {
index += 1;
}
}
if let Some(id) = id {
let source = named_export.src.clone();
// If there was just a default export, we can drop the original node.
if !named_export.specifiers.is_empty() {
// Pass through.
replacements.push(ModuleItem::ModuleDecl(ModuleDecl::ExportNamed(
named_export,
)));
}
// It’s an `export {x} from 'y'`, so generate an import.
if let Some(source) = source {
replacements.push(ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl {
specifiers: vec![ImportSpecifier::Named(ImportNamedSpecifier {
local: create_ident("MDXLayout").into(),
imported: Some(ModuleExportName::Ident(id)),
span: swc_core::common::DUMMY_SP,
is_type_only: false,
})],
src: source,
type_only: false,
with: None,
phase: ImportPhase::default(),
span: swc_core::common::DUMMY_SP,
})));
}
// It’s an `export {x}`, so generate a variable declaration.
else {
replacements.push(create_layout_decl(create_ident_expression(&id.sym)));
}
} else {
// Pass through.
replacements.push(ModuleItem::ModuleDecl(ModuleDecl::ExportNamed(
named_export,
)));
}
}
ModuleItem::ModuleDecl(ModuleDecl::Import(x)) => {
// Pass through.
replacements.push(ModuleItem::ModuleDecl(ModuleDecl::Import(x)));
}
ModuleItem::ModuleDecl(
ModuleDecl::ExportDecl(_)
| ModuleDecl::ExportAll(_)
| ModuleDecl::TsImportEquals(_)
| ModuleDecl::TsExportAssignment(_)
| ModuleDecl::TsNamespaceExport(_),
) => {
// Pass through.
replacements.push(module_item);
}
ModuleItem::Stmt(Stmt::Expr(expr_stmt)) => {
match *expr_stmt.expr {
Expr::JSXElement(elem) => {
content = true;
replacements.append(&mut create_mdx_content(
Some(Expr::JSXElement(elem)),
layout,
));
}
Expr::JSXFragment(mut frag) => {
// Unwrap if possible.
if frag.children.len() == 1 {
let item = frag.children.pop().unwrap();
if let JSXElementChild::JSXElement(elem) = item {
content = true;
replacements.append(&mut create_mdx_content(
Some(Expr::JSXElement(elem)),
layout,
));
continue;
}
frag.children.push(item);
}
content = true;
replacements.append(&mut create_mdx_content(
Some(Expr::JSXFragment(frag)),
layout,
));
}
_ => {
// Pass through.
replacements.push(ModuleItem::Stmt(Stmt::Expr(expr_stmt)));
}
}
}
ModuleItem::Stmt(stmt) => {
replacements.push(ModuleItem::Stmt(stmt));
}
}
}
// Generate an empty component.
if !content {
replacements.append(&mut create_mdx_content(None, layout));
}
// ```jsx
// export default MDXContent
// ```
replacements.push(ModuleItem::ModuleDecl(ModuleDecl::ExportDefaultExpr(
ExportDefaultExpr {
expr: Box::new(create_ident_expression("MDXContent")),
span: swc_core::common::DUMMY_SP,
},
)));
program.module.body = replacements;
Ok(())
}
/// Create a content component.
fn create_mdx_content(expr: Option<Expr>, has_internal_layout: bool) -> Vec<ModuleItem> {
// ```jsx
// <MDXLayout {...props}>xxx</MDXLayout>
// ```
let mut result = Expr::JSXElement(Box::new(JSXElement {
opening: JSXOpeningElement {
name: JSXElementName::Ident(create_ident("MDXLayout").into()),
attrs: vec![JSXAttrOrSpread::SpreadElement(SpreadElement {
dot3_token: swc_core::common::DUMMY_SP,
expr: Box::new(create_ident_expression("props")),
})],
self_closing: false,
type_args: None,
span: swc_core::common::DUMMY_SP,
},
closing: Some(JSXClosingElement {
name: JSXElementName::Ident(create_ident("MDXLayout").into()),
span: swc_core::common::DUMMY_SP,
}),
// ```jsx
// <_createMdxContent {...props} />
// ```
children: vec![JSXElementChild::JSXElement(Box::new(JSXElement {
opening: JSXOpeningElement {
name: JSXElementName::Ident(create_ident("_createMdxContent").into()),
attrs: vec![JSXAttrOrSpread::SpreadElement(SpreadElement {
dot3_token: swc_core::common::DUMMY_SP,
expr: Box::new(create_ident_expression("props")),
})],
self_closing: true,
type_args: None,
span: swc_core::common::DUMMY_SP,
},
closing: None,
children: vec![],
span: swc_core::common::DUMMY_SP,
}))],
span: swc_core::common::DUMMY_SP,
}));
if !has_internal_layout {
// ```jsx
// MDXLayout ? <MDXLayout>xxx</MDXLayout> : _createMdxContent(props)
// ```
result = Expr::Cond(CondExpr {
test: Box::new(create_ident_expression("MDXLayout")),
cons: Box::new(result),
alt: Box::new(create_call_expression(
Callee::Expr(Box::new(create_ident_expression("_createMdxContent"))),
vec![ExprOrSpread {
spread: None,
expr: Box::new(create_ident_expression("props")),
}],
)),
span: swc_core::common::DUMMY_SP,
});
}
// ```jsx
// function _createMdxContent(props) {
// return xxx
// }
// ```
let create_mdx_content = ModuleItem::Stmt(Stmt::Decl(Decl::Fn(FnDecl {
ident: create_ident("_createMdxContent").into(),
declare: false,
function: Box::new(Function {
params: vec![Param {
pat: Pat::Ident(BindingIdent {
id: create_ident("props").into(),
type_ann: None,
}),
decorators: vec![],
span: swc_core::common::DUMMY_SP,
}],
decorators: vec![],
body: Some(BlockStmt {
stmts: vec![Stmt::Return(ReturnStmt {
arg: Some(Box::new(expr.unwrap_or_else(create_null_expression))),
span: swc_core::common::DUMMY_SP,
})],
span: swc_core::common::DUMMY_SP,
ctxt: SyntaxContext::empty(),
}),
is_generator: false,
is_async: false,
type_params: None,
return_type: None,
span: swc_core::common::DUMMY_SP,
ctxt: SyntaxContext::empty(),
}),
})));
// ```jsx
// function MDXContent(props = {}) {
// return <MDXLayout>xxx</MDXLayout>
// }
// ```
let mdx_content = ModuleItem::Stmt(Stmt::Decl(Decl::Fn(FnDecl {
ident: create_ident("MDXContent").into(),
declare: false,
function: Box::new(Function {
params: vec![Param {
pat: Pat::Assign(AssignPat {
left: Box::new(Pat::Ident(BindingIdent {
id: create_ident("props").into(),
type_ann: None,
})),
right: Box::new(create_object_expression(vec![])),
span: swc_core::common::DUMMY_SP,
}),
decorators: vec![],
span: swc_core::common::DUMMY_SP,
}],
decorators: vec![],
body: Some(BlockStmt {
stmts: vec![Stmt::Return(ReturnStmt {
arg: Some(Box::new(result)),
span: swc_core::common::DUMMY_SP,
})],
span: swc_core::common::DUMMY_SP,
ctxt: SyntaxContext::empty(),
}),
is_generator: false,
is_async: false,
type_params: None,
return_type: None,
span: swc_core::common::DUMMY_SP,
ctxt: SyntaxContext::empty(),
}),
})));
vec![create_mdx_content, mdx_content]
}
/// Create a layout, inside the document.
fn create_layout_decl(expr: Expr) -> ModuleItem {
// ```jsx
// const MDXLayout = xxx
// ```
ModuleItem::Stmt(Stmt::Decl(Decl::Var(Box::new(VarDecl {
kind: VarDeclKind::Const,
declare: false,
decls: vec![VarDeclarator {
name: Pat::Ident(BindingIdent {
id: create_ident("MDXLayout").into(),
type_ann: None,
}),
init: Some(Box::new(expr)),
span: swc_core::common::DUMMY_SP,
definite: false,
}],
span: swc_core::common::DUMMY_SP,
ctxt: SyntaxContext::empty(),
}))))
}
/// Create an error about multiple layouts.
fn err_for_double_layout(
layout: bool,
previous: Option<&Position>,
at: Option<&Point>,
) -> Result<(), markdown::message::Message> {
if layout {
Err(markdown::message::Message {
reason: format!(
"Cannot specify multiple layouts (previous: {})",
position_opt_to_string(previous)
),
place: at.map(|p| Box::new(markdown::message::Place::Point(p.clone()))),
source: Box::new("mdxjs-rs".into()),
rule_id: Box::new("double-layout".into()),
})
} else {
Ok(())
}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::hast_util_to_swc::hast_util_to_swc;
use crate::mdast_util_to_hast::mdast_util_to_hast;
use crate::mdx_plugin_recma_document::{mdx_plugin_recma_document, Options as DocumentOptions};
use crate::swc::{parse_esm, parse_expression, serialize};
use crate::swc_utils::create_bool_expression;
use markdown::{to_mdast, ParseOptions};
use pretty_assertions::assert_eq;
use rustc_hash::FxHashSet;
use swc_core::ecma::ast::{
EmptyStmt, ExportDefaultDecl, ExprStmt, JSXClosingFragment, JSXFragment,
JSXOpeningFragment, JSXText, Module, TsInterfaceBody, TsInterfaceDecl, WhileStmt,
};
fn compile(value: &str) -> Result<String, markdown::message::Message> {
let location = Location::new(value.as_bytes());
let mdast = to_mdast(
value,
&ParseOptions {
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..ParseOptions::mdx()
},
)?;
let hast = mdast_util_to_hast(&mdast);
let mut program =
hast_util_to_swc(&hast, None, Some(&location), &mut FxHashSet::default())?;
mdx_plugin_recma_document(&mut program, &DocumentOptions::default(), Some(&location))?;
Ok(serialize(&mut program.module, Some(&program.comments)))
}
#[test]
fn small() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("# hi\n\nAlpha *bravo* **charlie**.")?,
"function _createMdxContent(props) {
return <><h1>{\"hi\"}</h1>{\"\\n\"}<p>{\"Alpha \"}<em>{\"bravo\"}</em>{\" \"}<strong>{\"charlie\"}</strong>{\".\"}</p></>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support a small program",
);
Ok(())
}
#[test]
fn import() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("import a from 'b'\n\n# {a}")?,
"import a from 'b';
function _createMdxContent(props) {
return <h1>{a}</h1>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support an import",
);
Ok(())
}
#[test]
fn export() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("export * from 'a'\n\n# b")?,
"export * from 'a';
function _createMdxContent(props) {
return <h1>{\"b\"}</h1>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support an export all",
);
assert_eq!(
compile("export function a() {}")?,
"export function a() {}
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support an export declaration",
);
assert_eq!(
compile("export class A {}")?,
"export class A {
}
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support an export class",
);
Ok(())
}
#[test]
fn export_default() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("export default a")?,
"const MDXLayout = a;
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout>;
}
export default MDXContent;
",
"should support an export default expression",
);
assert_eq!(
compile("export default function () {}")?,
"const MDXLayout = function() {};
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout>;
}
export default MDXContent;
",
"should support an export default declaration",
);
assert_eq!(
compile("export default class A {}")?,
"const MDXLayout = class A {
};
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout>;
}
export default MDXContent;
",
"should support an export default class",
);
Ok(())
}
#[test]
fn named_exports() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("export {a, b as default}")?,
"export { a };
const MDXLayout = b;
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout>;
}
export default MDXContent;
",
"should support a named export w/o source, w/ a default specifier",
);
assert_eq!(
compile("export {a}")?,
"export { a };
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support a named export w/o source, w/o a default specifier",
);
assert_eq!(
compile("export {}")?,
"export { };
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support a named export w/o source, w/o a specifiers",
);
assert_eq!(
compile("export {a, b as default} from 'c'")?,
"export { a } from 'c';
import { b as MDXLayout } from 'c';
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout>;
}
export default MDXContent;
",
"should support a named export w/ source, w/ a default specifier",
);
assert_eq!(
compile("export {a} from 'b'")?,
"export { a } from 'b';
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support a named export w/ source, w/o a default specifier",
);
assert_eq!(
compile("export {} from 'a'")?,
"export { } from 'a';
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support a named export w/ source, w/o a specifiers",
);
Ok(())
}
#[test]
fn multiple_layouts() {
assert_eq!(
compile("export default a = 1\n\nexport default b = 2")
.err()
.unwrap()
.to_string(),
"3:1: Cannot specify multiple layouts (previous: 1:1-1:21) (mdxjs-rs:double-layout)",
"should crash on multiple layouts"
);
}
#[test]
fn ts_default_interface_declaration() {
assert_eq!(
mdx_plugin_recma_document(
&mut Program {
path: None,
comments: vec![],
module: Module {
span: swc_core::common::DUMMY_SP,
shebang: None,
body: vec![ModuleItem::ModuleDecl(
ModuleDecl::ExportDefaultDecl(
ExportDefaultDecl {
span: swc_core::common::DUMMY_SP,
decl: DefaultDecl::TsInterfaceDecl(Box::new(
TsInterfaceDecl {
span: swc_core::common::DUMMY_SP,
id: create_ident("a").into(),
declare: true,
type_params: None,
extends: vec![],
body: TsInterfaceBody {
span: swc_core::common::DUMMY_SP,
body: vec![]
}
}
))
}
)
)]
}
},
&Options::default(),
None
)
.err()
.unwrap().to_string(),
"Cannot use TypeScript interface declarations as default export in MDX files. The default export is reserved for a layout, which must be a component (mdxjs-rs:ts-interface)",
"should crash on a TypeScript default interface declaration"
);
}
#[test]
fn statement_pass_through() -> Result<(), markdown::message::Message> {
let mut program = Program {
path: None,
comments: vec![],
module: Module {
span: swc_core::common::DUMMY_SP,
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::While(WhileStmt {
span: swc_core::common::DUMMY_SP,
test: Box::new(create_bool_expression(true)),
body: Box::new(Stmt::Empty(EmptyStmt {
span: swc_core::common::DUMMY_SP,
})),
}))],
},
};
mdx_plugin_recma_document(&mut program, &Options::default(), None)?;
assert_eq!(
serialize(&mut program.module, None),
"while(true);
function _createMdxContent(props) {
return null;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should pass statements through"
);
Ok(())
}
#[test]
fn expression_pass_through() -> Result<(), markdown::message::Message> {
let mut program = Program {
path: None,
comments: vec![],
module: Module {
span: swc_core::common::DUMMY_SP,
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
span: swc_core::common::DUMMY_SP,
expr: Box::new(create_bool_expression(true)),
}))],
},
};
mdx_plugin_recma_document(&mut program, &Options::default(), None)?;
assert_eq!(
serialize(&mut program.module, None),
"true;
function _createMdxContent(props) {
return null;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should pass expressions through"
);
Ok(())
}
#[test]
fn fragment_non_element_single_child() -> Result<(), markdown::message::Message> {
let mut program = Program {
path: None,
comments: vec![],
module: Module {
span: swc_core::common::DUMMY_SP,
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
span: swc_core::common::DUMMY_SP,
expr: Box::new(Expr::JSXFragment(JSXFragment {
span: swc_core::common::DUMMY_SP,
opening: JSXOpeningFragment {
span: swc_core::common::DUMMY_SP,
},
closing: JSXClosingFragment {
span: swc_core::common::DUMMY_SP,
},
children: vec![JSXElementChild::JSXText(JSXText {
value: "a".into(),
span: swc_core::common::DUMMY_SP,
raw: "a".into(),
})],
})),
}))],
},
};
mdx_plugin_recma_document(&mut program, &Options::default(), None)?;
assert_eq!(
serialize(&mut program.module, None),
"function _createMdxContent(props) {
return <>a</>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should pass a fragment with a single child that isn’t an element through"
);
Ok(())
}
#[test]
fn element() -> Result<(), markdown::message::Message> {
let mut program = Program {
path: None,
comments: vec![],
module: Module {
span: swc_core::common::DUMMY_SP,
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
span: swc_core::common::DUMMY_SP,
expr: Box::new(Expr::JSXElement(Box::new(JSXElement {
span: swc_core::common::DUMMY_SP,
opening: JSXOpeningElement {
name: JSXElementName::Ident(create_ident("a").into()),
attrs: vec![],
self_closing: false,
type_args: None,
span: swc_core::common::DUMMY_SP,
},
closing: Some(JSXClosingElement {
name: JSXElementName::Ident(create_ident("a").into()),
span: swc_core::common::DUMMY_SP,
}),
children: vec![JSXElementChild::JSXText(JSXText {
value: "b".into(),
span: swc_core::common::DUMMY_SP,
raw: "b".into(),
})],
}))),
}))],
},
};
mdx_plugin_recma_document(&mut program, &Options::default(), None)?;
assert_eq!(
serialize(&mut program.module, None),
"function _createMdxContent(props) {
return <a>b</a>;
}
function MDXContent(props = {}) {
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should pass an element through"
);
Ok(())
}
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
src/mdx_plugin_recma_jsx_rewrite.rs | Rust | //! Rewrite JSX tags to accept them from props and an optional provider.
//!
//! Port of <https://github.com/mdx-js/mdx/blob/main/packages/mdx/lib/plugin/recma-jsx-rewrite.js>,
//! by the same author.
use crate::hast_util_to_swc::Program;
use crate::swc_utils::{
create_binary_expression, create_bool_expression, create_call_expression, create_ident,
create_ident_expression, create_jsx_name_from_str, create_member,
create_member_expression_from_str, create_member_prop_from_str, create_object_expression,
create_prop_name, create_str, create_str_expression, is_identifier_name, is_literal_name,
jsx_member_to_parts, position_to_string, span_to_position,
};
use markdown::{unist::Position, Location};
use rustc_hash::FxHashSet;
use swc_core::common::SyntaxContext;
use swc_core::common::{util::take::Take, Span, DUMMY_SP};
use swc_core::ecma::ast::{
ArrowExpr, AssignPatProp, BinaryOp, BindingIdent, BlockStmt, BlockStmtOrExpr, Callee,
CatchClause, ClassDecl, CondExpr, Decl, DoWhileStmt, Expr, ExprOrSpread, ExprStmt, FnDecl,
FnExpr, ForInStmt, ForOfStmt, ForStmt, Function, IfStmt, ImportDecl, ImportNamedSpecifier,
ImportPhase, ImportSpecifier, JSXElement, JSXElementName, KeyValuePatProp, KeyValueProp,
MemberExpr, MemberProp, ModuleDecl, ModuleExportName, ModuleItem, NewExpr, ObjectPat,
ObjectPatProp, Param, ParenExpr, Pat, Prop, PropOrSpread, ReturnStmt, Stmt, ThrowStmt,
UnaryExpr, UnaryOp, VarDecl, VarDeclKind, VarDeclarator, WhileStmt,
};
use swc_core::ecma::visit::{noop_visit_mut_type, VisitMut, VisitMutWith};
/// Configuration.
#[derive(Debug, Default, Clone)]
pub struct Options {
/// Place to import a provider from.
///
/// See [MDX provider](https://mdxjs.com/docs/using-mdx/#mdx-provider)
/// on the MDX website for more info.
pub provider_import_source: Option<String>,
/// Whether to add extra information to error messages in generated code.
pub development: bool,
}
/// Rewrite JSX in an MDX file so that components can be passed in and provided.
pub fn mdx_plugin_recma_jsx_rewrite(
program: &mut Program,
options: &Options,
location: Option<&Location>,
explicit_jsxs: &FxHashSet<Span>,
) {
let mut state = State {
scopes: vec![],
location,
provider: options.provider_import_source.is_some(),
path: program.path.clone(),
development: options.development,
create_provider_import: false,
create_error_helper: false,
explicit_jsxs,
};
state.enter(Some(Info::default()));
program.module.visit_mut_with(&mut state);
// If a provider is used (and can be used), import it.
if let Some(source) = &options.provider_import_source {
if state.create_provider_import {
program
.module
.body
.insert(0, create_import_provider(source));
}
}
// If potentially missing components are used, add the helper used for
// errors.
if state.create_error_helper {
program
.module
.body
.push(create_error_helper(state.development, state.path));
}
}
/// Collection of different SWC functions.
#[derive(Debug)]
enum Func<'a> {
/// Function declaration.
Decl(&'a mut FnDecl),
/// Function expression.
Expr(&'a mut FnExpr),
/// Arrow function.
Arrow(&'a mut ArrowExpr),
}
/// Non-literal reference.
#[derive(Debug, Default, Clone)]
struct Dynamic {
/// Name.
///
/// ```jsx
/// "a.b.c"
/// "A"
/// ```
name: String,
/// Component or not (in which case, object).
component: bool,
/// Positional info where it was (first) referenced.
position: Option<Position>,
}
/// Alias.
#[derive(Debug, Default, Clone)]
struct Alias {
/// Unsafe.
original: String,
/// Safe.
safe: String,
}
/// Info for a function scope.
#[derive(Debug, Default, Clone)]
struct Info {
/// Function name.
name: Option<String>,
/// Used literals (`<a />`).
literal: Vec<String>,
/// Non-literal references (components and objects).
dynamic: Vec<Dynamic>,
/// List of JSX identifiers of literal that are not valid JS identifiers.
aliases: Vec<Alias>,
}
/// Scope (block or function/global).
#[derive(Debug, Clone)]
struct Scope {
/// If this is a function (or global) scope, we track info.
info: Option<Info>,
/// Things that are defined in this scope.
defined: Vec<String>,
}
/// Context.
#[derive(Debug, Clone)]
struct State<'a> {
/// Location info.
location: Option<&'a Location>,
/// Path to file.
path: Option<String>,
/// List of current scopes.
scopes: Vec<Scope>,
/// Whether the user is in development mode.
development: bool,
/// Whether the user uses a provider.
provider: bool,
/// Whether a provider is referenced.
create_provider_import: bool,
/// Whether a missing component helper is referenced.
///
/// When things are referenced that might not be defined, we reference a
/// helper function to throw when they are missing.
create_error_helper: bool,
explicit_jsxs: &'a FxHashSet<Span>,
}
impl State<'_> {
/// Open a new scope.
fn enter(&mut self, info: Option<Info>) {
self.scopes.push(Scope {
info,
defined: vec![],
});
}
/// Close the current scope.
fn exit(&mut self) -> Scope {
self.scopes.pop().expect("expected scope")
}
/// Close a function.
fn exit_func(&mut self, func: Func) {
let mut scope = self.exit();
let mut defaults = vec![];
let info = scope.info.take().unwrap();
let mut statements = vec![];
if !info.literal.is_empty() || !info.dynamic.is_empty() {
let mut parameters = vec![];
// Use a provider, if configured.
//
// ```jsx
// _provideComponents()
// ```
if self.provider {
self.create_provider_import = true;
let call = create_ident_expression("_provideComponents");
let callee = Callee::Expr(Box::new(call));
parameters.push(create_call_expression(callee, vec![]));
}
// Accept `components` as a prop if this is the `MDXContent` or
// `_createMdxContent` function.
//
// ```jsx
// props.components
// ```
if is_props_receiving_fn(info.name.as_deref()) {
let member = MemberExpr {
obj: Box::new(create_ident_expression("props")),
prop: MemberProp::Ident(create_ident("components")),
span: DUMMY_SP,
};
parameters.push(Expr::Member(member));
}
// Create defaults for literal tags.
//
// Literal tags are optional.
// When they are not passed, they default to their tag name.
//
// ```jsx
// {h1: 'h1'}
// ```
let mut index = 0;
while index < info.literal.len() {
let name = &info.literal[index];
defaults.push(PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp {
key: create_prop_name(name),
value: Box::new(create_str_expression(name)),
}))));
index += 1;
}
// Inject an object at the start, when:
// - there are defaults,
// - there are two sources
//
// ```jsx
// (_provideComponents(), props.components)
// ()
// ```
//
// To:
//
// ```jsx
// ({}, _provideComponents(), props.components)
// ({h1: 'h1'})
// ```
if !defaults.is_empty() || parameters.len() > 1 {
parameters.insert(0, create_object_expression(defaults));
}
// Merge things and prevent errors.
//
// ```jsx
// {}, _provideComponents(), props.components
// props.components
// _provideComponents()
// ```
//
// To:
//
// ```jsx
// Object.assign({}, _provideComponents(), props.components)
// props.components || {}
// _provideComponents()
// ```
let mut components_init = if parameters.len() > 1 {
let mut args = vec![];
parameters.reverse();
while let Some(param) = parameters.pop() {
args.push(ExprOrSpread {
spread: None,
expr: Box::new(param),
});
}
let callee = create_member_expression_from_str("Object.assign");
create_call_expression(Callee::Expr(Box::new(callee)), args)
} else {
// Always one.
let param = parameters.pop().unwrap();
if let Expr::Member(_) = param {
create_binary_expression(
vec![param, create_object_expression(vec![])],
BinaryOp::LogicalOr,
)
} else {
param
}
};
let mut declarators = vec![];
// If there are tags, they are taken from `_components`, so we need
// to make it defined.
if !info.literal.is_empty() {
let declarator = VarDeclarator {
span: DUMMY_SP,
name: Pat::Ident(BindingIdent {
id: create_ident("_components").into(),
type_ann: None,
}),
init: Some(Box::new(components_init)),
definite: false,
};
declarators.push(declarator);
components_init = create_ident_expression("_components");
}
// For JSX IDs that can’t be represented as JavaScript IDs (as in,
// those with dashes, such as `custom-element`), we generated a
// separate variable that is a valid JS ID (such as `_component0`),
// and here we take it from components:
// ```js
// const _component0 = _components['custom-element']
// ```
if !info.aliases.is_empty() {
let mut index = 0;
while index < info.aliases.len() {
let alias = &info.aliases[index];
let declarator = VarDeclarator {
span: DUMMY_SP,
name: Pat::Ident(BindingIdent {
id: create_ident(&alias.safe).into(),
type_ann: None,
}),
init: Some(Box::new(Expr::Member(create_member(
create_ident_expression("_components"),
create_member_prop_from_str(&alias.original),
)))),
definite: false,
};
declarators.push(declarator);
index += 1;
}
}
// Add components to scope.
//
// For `['MyComponent', 'MDXLayout']` this generates:
//
// ```js
// const {MyComponent, wrapper: MDXLayout} = _components
// ```
//
// Note that MDXLayout is special as it’s taken from
// `_components.wrapper`.
let mut props = vec![];
for reference in &info.dynamic {
let invalid = info.aliases.iter().any(|d| d.original == reference.name);
// The primary ID of objects and components that are referenced.
// Ignore if invalid.
if !reference.name.contains('.') && !invalid {
// `wrapper: MDXLayout`
if reference.name == "MDXLayout" {
let binding = BindingIdent {
id: create_ident(&reference.name).into(),
type_ann: None,
};
let prop = KeyValuePatProp {
key: create_prop_name("wrapper"),
value: Box::new(Pat::Ident(binding)),
};
props.push(ObjectPatProp::KeyValue(prop));
} else {
// `MyComponent`
let prop = AssignPatProp {
key: create_ident(&reference.name).into(),
value: None,
span: DUMMY_SP,
};
props.push(ObjectPatProp::Assign(prop));
}
}
}
if !props.is_empty() {
let pat = ObjectPat {
props,
optional: false,
span: DUMMY_SP,
type_ann: None,
};
let declarator = VarDeclarator {
name: Pat::Object(pat),
init: Some(Box::new(components_init)),
span: DUMMY_SP,
definite: false,
};
declarators.push(declarator);
}
// Add the variable declaration.
let decl = VarDecl {
kind: VarDeclKind::Const,
decls: declarators,
span: DUMMY_SP,
declare: false,
ctxt: SyntaxContext::empty(),
};
let var_decl = Decl::Var(Box::new(decl));
statements.push(Stmt::Decl(var_decl));
}
// Add checks at runtime to verify that object/components are passed.
//
// ```js
// if (!a) _missingMdxReference("a", false);
// if (!a.b) _missingMdxReference("a.b", true);
// ```
for reference in info.dynamic {
// We use a conditional to check if `MDXLayout` is defined or not
// in the `MDXContent` component.
let layout = reference.name == "MDXLayout" && info.name == Some("MDXContent".into());
if !layout {
self.create_error_helper = true;
let mut args = vec![
ExprOrSpread {
spread: None,
expr: Box::new(create_str_expression(&reference.name)),
},
ExprOrSpread {
spread: None,
expr: Box::new(create_bool_expression(reference.component)),
},
];
// Add the source location if it exists and if `development` is on.
if let Some(position) = reference.position.as_ref() {
if self.development {
args.push(ExprOrSpread {
spread: None,
expr: Box::new(create_str_expression(&position_to_string(position))),
});
}
}
let mut name = reference.name;
let split = name.split('.');
let mut path = split.map(String::from).collect::<Vec<_>>();
let alias = info.aliases.iter().find(|d| d.original == path[0]);
if let Some(alias) = alias {
path[0].clone_from(&alias.safe);
name = path.join(".");
}
let test = UnaryExpr {
op: UnaryOp::Bang,
arg: Box::new(create_member_expression_from_str(&name)),
span: DUMMY_SP,
};
let callee = create_ident_expression("_missingMdxReference");
let call = create_call_expression(Callee::Expr(Box::new(callee)), args);
let cons = ExprStmt {
span: DUMMY_SP,
expr: Box::new(call),
};
let statement = IfStmt {
test: Box::new(Expr::Unary(test)),
cons: Box::new(Stmt::Expr(cons)),
alt: None,
span: DUMMY_SP,
};
statements.push(Stmt::If(statement));
}
}
// Add statements to functions.
if !statements.is_empty() {
let body: &mut BlockStmt = match func {
Func::Expr(expr) => {
// Always exists if we have components in it.
expr.function.body.as_mut().unwrap()
}
Func::Decl(decl) => {
// Always exists if we have components in it.
decl.function.body.as_mut().unwrap()
}
Func::Arrow(arr) => {
if let BlockStmtOrExpr::Expr(expr) = &mut *arr.body {
let block = BlockStmt {
stmts: vec![Stmt::Return(ReturnStmt {
arg: Some(expr.take()),
span: DUMMY_SP,
})],
span: DUMMY_SP,
ctxt: SyntaxContext::empty(),
};
arr.body = Box::new(BlockStmtOrExpr::BlockStmt(block));
}
arr.body.as_mut_block_stmt().unwrap()
}
};
statements.append(&mut body.stmts.split_off(0));
body.stmts = statements;
}
}
/// Get the current function scope.
fn current_fn_scope_mut(&mut self) -> &mut Scope {
let mut index = self.scopes.len();
while index > 0 {
index -= 1;
if self.scopes[index].info.is_some() {
return &mut self.scopes[index];
}
}
unreachable!("expected scope")
}
/// Get the current scope.
fn current_scope_mut(&mut self) -> &mut Scope {
self.scopes.last_mut().expect("expected scope")
}
/// Get the top-level scope’s info, mutably.
fn current_top_level_info(&mut self) -> Option<&mut Info> {
if let Some(scope) = self.scopes.get_mut(1) {
scope.info.as_mut()
} else {
None
}
}
/// Check if `id` is in scope.
fn in_scope(&self, id: &String) -> bool {
let mut index = self.scopes.len();
while index > 0 {
index -= 1;
if self.scopes[index].defined.contains(id) {
return true;
}
}
false
}
/// Reference a literal tag name.
fn ref_tag(&mut self, name: &str) {
let scope = self.current_top_level_info().expect("expected scope");
let name = name.to_string();
if !scope.literal.contains(&name) {
scope.literal.push(name);
}
}
/// Reference a component or object name.
fn ref_dynamic(&mut self, path: &[String], component: bool, position: Option<&Position>) {
let scope = self.current_top_level_info().expect("expected scope");
let name = path.join(".");
let existing = scope.dynamic.iter_mut().find(|d| d.name == name);
if let Some(existing) = existing {
if component {
existing.component = component;
}
} else {
let dynamic = Dynamic {
name,
component,
position: position.cloned(),
};
scope.dynamic.push(dynamic);
}
}
fn create_alias(&mut self, id: &str) -> String {
let scope = self.current_top_level_info().expect("expected scope");
let existing = scope.aliases.iter().find(|d| d.original == id);
if let Some(alias) = existing {
alias.safe.to_string()
} else {
let name = format!("_component{}", scope.aliases.len());
scope.aliases.push(Alias {
original: id.to_string(),
safe: name.clone(),
});
name
}
}
fn ref_ids(&mut self, ids: &[String], span: Span) -> Option<JSXElementName> {
// If there is a top-level, non-global, scope which is a function:
if let Some(info) = self.current_top_level_info() {
// Rewrite only if we can rewrite.
if is_props_receiving_fn(info.name.as_deref()) || self.provider {
debug_assert!(!ids.is_empty(), "expected non-empty ids");
let explicit_jsx = self.explicit_jsxs.contains(&span);
let mut path = ids.to_owned();
let position = span_to_position(span, self.location);
// A tag name of a literal element (not a component).
if ids.len() == 1 && is_literal_name(&path[0]) {
self.ref_tag(&path[0]);
// The author did not used explicit JSX (`<h1>a</h1>`),
// but markdown (`# a`), so rewrite.
if !explicit_jsx {
path.insert(0, "_components".into());
}
} else if !self.in_scope(&path[0]) {
// Component or object not in scope.
let mut index = 1;
while index <= path.len() {
self.ref_dynamic(&path[0..index], index == ids.len(), position.as_ref());
index += 1;
}
}
// If the primary ID is not a valid JS ID:
if !is_identifier_name(&path[0]) {
path[0] = self.create_alias(&path[0]);
}
if path != ids {
return Some(create_jsx_name_from_str(&path.join(".")));
}
}
}
None
}
/// Define an identifier in a scope.
fn define_id(&mut self, id: String, block: bool) {
let scope = if block {
self.current_scope_mut()
} else {
self.current_fn_scope_mut()
};
scope.defined.push(id);
}
/// Define a pattern in a scope.
fn define_pat(&mut self, pat: &Pat, block: bool) {
// `x`
if let Pat::Ident(d) = pat {
self.define_id(d.id.sym.to_string(), block);
}
// `...x`
if let Pat::Array(d) = pat {
let mut index = 0;
while index < d.elems.len() {
if let Some(d) = &d.elems[index] {
self.define_pat(d, block);
}
index += 1;
}
}
// `...x`
if let Pat::Rest(d) = pat {
self.define_pat(&d.arg, block);
}
// `{x=y}`
if let Pat::Assign(d) = pat {
self.define_pat(&d.left, block);
}
if let Pat::Object(d) = pat {
let mut index = 0;
while index < d.props.len() {
match &d.props[index] {
// `{...x}`
ObjectPatProp::Rest(d) => {
self.define_pat(&d.arg, block);
}
// `{key: value}`
ObjectPatProp::KeyValue(d) => {
self.define_pat(&d.value, block);
}
// `{key}` or `{key = value}`
ObjectPatProp::Assign(d) => {
self.define_id(d.key.sym.to_string(), block);
}
}
index += 1;
}
}
}
}
impl VisitMut for State<'_> {
noop_visit_mut_type!();
/// Rewrite JSX identifiers.
fn visit_mut_jsx_element(&mut self, node: &mut JSXElement) {
let parts = match &node.opening.name {
// `<x.y>`, `<Foo.Bar>`, `<x.y.z>`.
JSXElementName::JSXMemberExpr(d) => {
let parts = jsx_member_to_parts(d);
parts.into_iter().map(String::from).collect::<Vec<_>>()
}
// `<foo>`, `<Foo>`, `<$>`, `<_bar>`, `<a_b>`.
JSXElementName::Ident(d) => vec![(d.sym).to_string()],
// `<xml:thing>`.
JSXElementName::JSXNamespacedName(d) => {
vec![format!("{}:{}", d.ns.sym, d.name.sym)]
}
};
if let Some(name) = self.ref_ids(&parts, node.span) {
if let Some(closing) = node.closing.as_mut() {
closing.name = name.clone();
}
node.opening.name = name;
}
node.visit_mut_children_with(self);
}
/// Add specifiers of import declarations.
fn visit_mut_import_decl(&mut self, node: &mut ImportDecl) {
let mut index = 0;
while index < node.specifiers.len() {
let ident = match &node.specifiers[index] {
ImportSpecifier::Default(x) => &x.local.sym,
ImportSpecifier::Namespace(x) => &x.local.sym,
ImportSpecifier::Named(x) => &x.local.sym,
};
self.define_id(ident.to_string(), false);
index += 1;
}
node.visit_mut_children_with(self);
}
/// Add patterns of variable declarations.
fn visit_mut_var_decl(&mut self, node: &mut VarDecl) {
let block = node.kind != VarDeclKind::Var;
let mut index = 0;
while index < node.decls.len() {
self.define_pat(&node.decls[index].name, block);
index += 1;
}
node.visit_mut_children_with(self);
}
/// Add identifier of class declaration.
fn visit_mut_class_decl(&mut self, node: &mut ClassDecl) {
self.define_id(node.ident.sym.to_string(), false);
node.visit_mut_children_with(self);
}
/// On function declarations, add name, create scope, add parameters.
fn visit_mut_fn_decl(&mut self, node: &mut FnDecl) {
let id = node.ident.sym.to_string();
self.define_id(id.clone(), false);
self.enter(Some(Info {
name: Some(id),
..Default::default()
}));
let mut index = 0;
while index < node.function.params.len() {
self.define_pat(&node.function.params[index].pat, false);
index += 1;
}
node.visit_mut_children_with(self);
// Rewrite.
self.exit_func(Func::Decl(node));
}
/// On function expressions, add name, create scope, add parameters.
fn visit_mut_fn_expr(&mut self, node: &mut FnExpr) {
// Note: `periscopic` adds the ID to the newly generated scope, for
// fn expressions.
// That seems wrong?
let name = if let Some(ident) = &node.ident {
let id = ident.sym.to_string();
self.define_id(id.clone(), false);
Some(id)
} else {
None
};
self.enter(Some(Info {
name,
..Default::default()
}));
let mut index = 0;
while index < node.function.params.len() {
self.define_pat(&node.function.params[index].pat, false);
index += 1;
}
node.visit_mut_children_with(self);
self.exit_func(Func::Expr(node));
}
/// On arrow functions, create scope, add parameters.
fn visit_mut_arrow_expr(&mut self, node: &mut ArrowExpr) {
self.enter(Some(Info::default()));
let mut index = 0;
while index < node.params.len() {
self.define_pat(&node.params[index], false);
index += 1;
}
node.visit_mut_children_with(self);
self.exit_func(Func::Arrow(node));
}
// Blocks.
// Not sure why `periscopic` only does `For`/`ForIn`/`ForOf`/`Block`.
// I added `While`/`DoWhile` here just to be sure.
// But there are more.
/// On for statements, create scope.
fn visit_mut_for_stmt(&mut self, node: &mut ForStmt) {
self.enter(None);
node.visit_mut_children_with(self);
self.exit();
}
/// On for/in statements, create scope.
fn visit_mut_for_in_stmt(&mut self, node: &mut ForInStmt) {
self.enter(None);
node.visit_mut_children_with(self);
self.exit();
}
/// On for/of statements, create scope.
fn visit_mut_for_of_stmt(&mut self, node: &mut ForOfStmt) {
self.enter(None);
node.visit_mut_children_with(self);
self.exit();
}
/// On while statements, create scope.
fn visit_mut_while_stmt(&mut self, node: &mut WhileStmt) {
self.enter(None);
node.visit_mut_children_with(self);
self.exit();
}
/// On do/while statements, create scope.
fn visit_mut_do_while_stmt(&mut self, node: &mut DoWhileStmt) {
self.enter(None);
node.visit_mut_children_with(self);
self.exit();
}
/// On block statements, create scope.
fn visit_mut_block_stmt(&mut self, node: &mut BlockStmt) {
self.enter(None);
node.visit_mut_children_with(self);
self.exit();
}
/// On catch clauses, create scope, add param.
fn visit_mut_catch_clause(&mut self, node: &mut CatchClause) {
self.enter(None);
if let Some(pat) = &node.param {
self.define_pat(pat, true);
}
node.visit_mut_children_with(self);
self.exit();
}
}
/// Generate an import provider.
///
/// ```js
/// import { useMDXComponents as _provideComponents } from "x"
/// ```
fn create_import_provider(source: &str) -> ModuleItem {
ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl {
specifiers: vec![ImportSpecifier::Named(ImportNamedSpecifier {
local: create_ident("_provideComponents").into(),
imported: Some(ModuleExportName::Ident(
create_ident("useMDXComponents").into(),
)),
span: DUMMY_SP,
is_type_only: false,
})],
src: Box::new(create_str(source)),
type_only: false,
with: None,
phase: ImportPhase::default(),
span: DUMMY_SP,
}))
}
/// Generate an error helper.
///
/// ```js
/// function _missingMdxReference(id, component) {
/// throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it.");
/// }
/// ```
fn create_error_helper(development: bool, path: Option<String>) -> ModuleItem {
let mut parameters = vec![
Param {
pat: Pat::Ident(BindingIdent {
id: create_ident("id").into(),
type_ann: None,
}),
decorators: vec![],
span: DUMMY_SP,
},
Param {
pat: Pat::Ident(BindingIdent {
id: create_ident("component").into(),
type_ann: None,
}),
decorators: vec![],
span: DUMMY_SP,
},
];
// Accept a source location (which might be undefiend).
if development {
parameters.push(Param {
pat: Pat::Ident(BindingIdent {
id: create_ident("place").into(),
type_ann: None,
}),
decorators: vec![],
span: DUMMY_SP,
});
}
let mut message = vec![
create_str_expression("Expected "),
// `component ? "component" : "object"`
Expr::Paren(ParenExpr {
expr: Box::new(Expr::Cond(CondExpr {
test: Box::new(create_ident_expression("component")),
cons: Box::new(create_str_expression("component")),
alt: Box::new(create_str_expression("object")),
span: DUMMY_SP,
})),
span: DUMMY_SP,
}),
create_str_expression(" `"),
create_ident_expression("id"),
create_str_expression("` to be defined: you likely forgot to import, pass, or provide it."),
];
// `place ? "\nIt’s referenced in your code at `" + place+ "`" : ""`
if development {
message.push(Expr::Paren(ParenExpr {
expr: Box::new(Expr::Cond(CondExpr {
test: Box::new(create_ident_expression("place")),
cons: Box::new(create_binary_expression(
vec![
create_str_expression("\nIt’s referenced in your code at `"),
create_ident_expression("place"),
if let Some(path) = path {
create_str_expression(&format!("` in `{}`", path))
} else {
create_str_expression("`")
},
],
BinaryOp::Add,
)),
alt: Box::new(create_str_expression("")),
span: DUMMY_SP,
})),
span: DUMMY_SP,
}));
}
ModuleItem::Stmt(Stmt::Decl(Decl::Fn(FnDecl {
ident: create_ident("_missingMdxReference").into(),
declare: false,
function: Box::new(Function {
params: parameters,
decorators: vec![],
body: Some(BlockStmt {
stmts: vec![Stmt::Throw(ThrowStmt {
arg: Box::new(Expr::New(NewExpr {
callee: Box::new(create_ident_expression("Error")),
args: Some(vec![ExprOrSpread {
spread: None,
expr: Box::new(create_binary_expression(message, BinaryOp::Add)),
}]),
span: DUMMY_SP,
type_args: None,
ctxt: SyntaxContext::empty(),
})),
span: DUMMY_SP,
})],
span: DUMMY_SP,
ctxt: SyntaxContext::empty(),
}),
is_generator: false,
is_async: false,
type_params: None,
return_type: None,
span: DUMMY_SP,
ctxt: SyntaxContext::empty(),
}),
})))
}
/// Check if this function is a props receiving component: it’s one of ours.
fn is_props_receiving_fn(name: Option<&str>) -> bool {
if let Some(name) = name {
name == "_createMdxContent" || name == "MDXContent"
} else {
false
}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::hast_util_to_swc::hast_util_to_swc;
use crate::mdast_util_to_hast::mdast_util_to_hast;
use crate::mdx_plugin_recma_document::{mdx_plugin_recma_document, Options as DocumentOptions};
use crate::swc::{parse_esm, parse_expression, serialize};
use crate::swc_utils::create_jsx_name_from_str;
use markdown::{to_mdast, Location, ParseOptions};
use pretty_assertions::assert_eq;
use rustc_hash::FxHashSet;
use swc_core::ecma::ast::{Invalid, JSXOpeningElement, Module};
fn compile(
value: &str,
options: &Options,
named: bool,
) -> Result<String, markdown::message::Message> {
let location = Location::new(value.as_bytes());
let mdast = to_mdast(
value,
&ParseOptions {
mdx_esm_parse: Some(Box::new(parse_esm)),
mdx_expression_parse: Some(Box::new(parse_expression)),
..ParseOptions::mdx()
},
)?;
let hast = mdast_util_to_hast(&mdast);
let filepath = if named {
Some("example.mdx".into())
} else {
None
};
let mut explicit_jsxs = FxHashSet::default();
let mut program = hast_util_to_swc(&hast, filepath, Some(&location), &mut explicit_jsxs)?;
mdx_plugin_recma_document(&mut program, &DocumentOptions::default(), Some(&location))?;
mdx_plugin_recma_jsx_rewrite(&mut program, options, Some(&location), &explicit_jsxs);
Ok(serialize(&mut program.module, Some(&program.comments)))
}
#[test]
fn empty() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("", &Options::default(), true)?,
"function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should work on an empty file",
);
Ok(())
}
#[test]
fn pass_literal() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("# hi", &Options::default(), true)?,
"function _createMdxContent(props) {
const _components = Object.assign({
h1: \"h1\"
}, props.components);
return <_components.h1>{\"hi\"}</_components.h1>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support passing in a layout (as `wrapper`) and components for literal tags",
);
Ok(())
}
#[test]
fn pass_namespace() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a:b />", &Options::default(), true)?,
"function _createMdxContent(props) {
const _components = Object.assign({
\"a:b\": \"a:b\"
}, props.components), _component0 = _components[\"a:b\"];
return <_component0/>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support passing in a component for a JSX namespace name (`x:y`)",
);
Ok(())
}
#[test]
fn pass_scope_defined_layout_import_named() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"export {MyLayout as default} from './a.js'\n\n# hi",
&Options::default(),
true
)?,
"import { MyLayout as MDXLayout } from './a.js';
function _createMdxContent(props) {
const _components = Object.assign({
h1: \"h1\"
}, props.components);
return <_components.h1>{\"hi\"}</_components.h1>;
}
function MDXContent(props = {}) {
return <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout>;
}
export default MDXContent;
",
"should not support passing in a layout if one is defined locally",
);
Ok(())
}
#[test]
fn pass_scope_missing_component() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("# <Hi />", &Options::default(), true)?,
"function _createMdxContent(props) {
const _components = Object.assign({
h1: \"h1\"
}, props.components), { Hi } = _components;
if (!Hi) _missingMdxReference(\"Hi\", true);
return <_components.h1><Hi/></_components.h1>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support passing in a component",
);
Ok(())
}
#[test]
fn pass_scope_missing_objects_in_component() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<X />, <X.y />, <Y.Z />, <a.b.c.d />, <a.b />", &Options::default(), true)?,
"function _createMdxContent(props) {
const _components = Object.assign({
p: \"p\"
}, props.components), { X, Y, a } = _components;
if (!X) _missingMdxReference(\"X\", true);
if (!X.y) _missingMdxReference(\"X.y\", true);
if (!Y) _missingMdxReference(\"Y\", false);
if (!Y.Z) _missingMdxReference(\"Y.Z\", true);
if (!a) _missingMdxReference(\"a\", false);
if (!a.b) _missingMdxReference(\"a.b\", true);
if (!a.b.c) _missingMdxReference(\"a.b.c\", false);
if (!a.b.c.d) _missingMdxReference(\"a.b.c.d\", true);
return <_components.p><X/>{\", \"}<X.y/>{\", \"}<Y.Z/>{\", \"}<a.b.c.d/>{\", \"}<a.b/></_components.p>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support passing in component objects",
);
Ok(())
}
#[test]
fn pass_scope_missing_non_js_identifiers() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("# <a-b />, <qwe-rty />, <a-b />, <c-d.e-f />", &Options::default(), true)?,
"function _createMdxContent(props) {
const _components = Object.assign({
h1: \"h1\",
\"a-b\": \"a-b\",
\"qwe-rty\": \"qwe-rty\"
}, props.components), _component0 = _components[\"a-b\"], _component1 = _components[\"qwe-rty\"], _component2 = _components[\"c-d\"];
if (!_component2) _missingMdxReference(\"c-d\", false);
if (!_component2[\"e-f\"]) _missingMdxReference(\"c-d.e-f\", true);
return <_components.h1><_component0/>{\", \"}<_component1/>{\", \"}<_component0/>{\", \"}<_component2.e-f/></_components.h1>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support passing in a component for a JSX identifier that is not a valid JS identifier",
);
Ok(())
}
#[test]
fn pass_scope_defined_import_named() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("import {Hi} from './a.js'\n\n# <Hi />", &Options::default(), true)?,
"import { Hi } from './a.js';
function _createMdxContent(props) {
const _components = Object.assign({
h1: \"h1\"
}, props.components);
return <_components.h1><Hi/></_components.h1>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should not support passing in a component if one is defined locally",
);
Ok(())
}
#[test]
fn pass_scope_defined_import_namespace() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"import * as X from './a.js'\n\n<X />",
&Options::default(), true
)?,
"import * as X from './a.js';
function _createMdxContent(props) {
return <X/>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should not support passing in a component if one is defined locally (namespace import)",
);
Ok(())
}
#[test]
fn pass_scope_defined_function() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"export function A() {
return <B />
}
<A />
",
&Options::default(), true
)?,
"export function A() {
return <B/>;
}
function _createMdxContent(props) {
return <A/>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should not support passing components in locally defined components",
);
Ok(())
}
#[test]
fn pass_scope_defined_class() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"export class A {}
<A />
",
&Options::default(), true
)?,
"export class A {
}
function _createMdxContent(props) {
return <A/>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should be aware of classes",
);
Ok(())
}
#[test]
fn provide() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"# <Hi />",
&Options {
provider_import_source: Some("x".into()),
..Options::default()
}, true
)?,
"import { useMDXComponents as _provideComponents } from \"x\";
function _createMdxContent(props) {
const _components = Object.assign({
h1: \"h1\"
}, _provideComponents(), props.components), { Hi } = _components;
if (!Hi) _missingMdxReference(\"Hi\", true);
return <_components.h1><Hi/></_components.h1>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support providing a layout, literal tags, and components",
);
Ok(())
}
#[test]
fn provide_empty() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"",
&Options {
provider_import_source: Some("x".into()),
..Options::default()
}, true
)?,
"import { useMDXComponents as _provideComponents } from \"x\";
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support a provider on an empty file",
);
Ok(())
}
#[test]
fn provide_local() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"export function A() {
return <B />
}
<A />
",
&Options {
provider_import_source: Some("x".into()),
..Options::default()
}, true
)?,
"import { useMDXComponents as _provideComponents } from \"x\";
export function A() {
const { B } = _provideComponents();
if (!B) _missingMdxReference(\"B\", true);
return <B/>;
}
function _createMdxContent(props) {
return <A/>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support providing components in locally defined components",
);
Ok(())
}
#[test]
fn provide_local_scope_defined() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"export function X(x) {
let [A] = x
let [...B] = x
let {C} = x
let {...D} = x
let {_: E} = x
let {F = _} = x;
return <><A /><B /><C /><D /><E /><F /><G /></>
}",
&Options {
provider_import_source: Some("x".into()),
..Options::default()
}, true
)?,
"import { useMDXComponents as _provideComponents } from \"x\";
export function X(x) {
const { G } = _provideComponents();
if (!G) _missingMdxReference(\"G\", true);
let [A] = x;
let [...B] = x;
let { C } = x;
let { ...D } = x;
let { _: E } = x;
let { F = _ } = x;
return <><A/><B/><C/><D/><E/><F/><G/></>;
}
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support providing components in top-level components, aware of scopes (defined)",
);
Ok(())
}
#[test]
fn provide_local_scope_missing() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"export function A() {
while (true) {
let B = true;
break;
}
do {
let B = true;
break;
} while (true)
for (;;) {
let B = true;
break;
}
for (a in b) {
let B = true;
break;
}
for (a of b) {
let B = true;
break;
}
try {
let B = true;
} catch (B) {
let B = true;
}
;(function () {
let B = true;
})()
;(function (B) {})()
;(() => {
let B = true;
})()
;((B) => {})()
return <B/>
}",
&Options {
provider_import_source: Some("x".into()),
..Options::default()
}, true
)?,
"import { useMDXComponents as _provideComponents } from \"x\";
export function A() {
const { B } = _provideComponents();
if (!B) _missingMdxReference(\"B\", true);
while(true){
let B = true;
break;
}
do {
let B = true;
break;
}while (true)
for(;;){
let B = true;
break;
}
for(a in b){
let B = true;
break;
}
for (a of b){
let B = true;
break;
}
try {
let B = true;
} catch (B) {
let B = true;
}
;
(function() {
let B = true;
})();
(function(B) {})();
(()=>{
let B = true;
})();
((B)=>{})();
return <B/>;
}
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support providing components in top-level components, aware of scopes (missing)",
);
Ok(())
}
#[test]
fn provide_local_scope_missing_objects() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"<X />, <X.y />, <Y.Z />",
&Options {
provider_import_source: Some("x".into()),
..Options::default()
}, true
)?,
"import { useMDXComponents as _provideComponents } from \"x\";
function _createMdxContent(props) {
const _components = Object.assign({
p: \"p\"
}, _provideComponents(), props.components), { X, Y } = _components;
if (!X) _missingMdxReference(\"X\", true);
if (!X.y) _missingMdxReference(\"X.y\", true);
if (!Y) _missingMdxReference(\"Y\", false);
if (!Y.Z) _missingMdxReference(\"Y.Z\", true);
return <_components.p><X/>{\", \"}<X.y/>{\", \"}<Y.Z/></_components.p>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support providing component objects",
);
Ok(())
}
#[test]
fn provide_local_scope_missing_objects_in_component() -> Result<(), markdown::message::Message>
{
assert_eq!(
compile(
"export function A() {
return <X />, <X.y />, <Y.Z />
}
<A />
",
&Options {
provider_import_source: Some("x".into()),
..Options::default()
}, true
)?,
"import { useMDXComponents as _provideComponents } from \"x\";
export function A() {
const { X, Y } = _provideComponents();
if (!X) _missingMdxReference(\"X\", true);
if (!X.y) _missingMdxReference(\"X.y\", true);
if (!Y) _missingMdxReference(\"Y\", false);
if (!Y.Z) _missingMdxReference(\"Y.Z\", true);
return <X/>, <X.y/>, <Y.Z/>;
}
function _createMdxContent(props) {
return <A/>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support providing components in locally defined components",
);
Ok(())
}
#[test]
fn provide_local_arrow_function_component() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"export const A = () => <B />",
&Options {
provider_import_source: Some("x".into()),
..Options::default()
}, true
)?,
"import { useMDXComponents as _provideComponents } from \"x\";
export const A = ()=>{
const { B } = _provideComponents();
if (!B) _missingMdxReference(\"B\", true);
return <B/>;
};
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support providing components in locally defined arrow functions",
);
Ok(())
}
#[test]
fn provide_local_function_declaration_component() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"export const A = function B() { return <C /> }",
&Options {
provider_import_source: Some("x".into()),
..Options::default()
}, true
)?,
"import { useMDXComponents as _provideComponents } from \"x\";
export const A = function B() {
const { C } = _provideComponents();
if (!C) _missingMdxReference(\"C\", true);
return <C/>;
};
function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support providing components in locally defined function expressions",
);
Ok(())
}
#[test]
fn provide_local_non_js_identifiers() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"export function A() {
return <b-c />
}
<A />
",
&Options {
provider_import_source: Some("x".into()),
..Options::default()
}, true
)?,
"import { useMDXComponents as _provideComponents } from \"x\";
export function A() {
const _components = Object.assign({
\"b-c\": \"b-c\"
}, _provideComponents());
return <_components.b-c/>;
}
function _createMdxContent(props) {
return <A/>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support providing components with JSX identifiers that are not JS identifiers in locally defined components",
);
Ok(())
}
#[test]
fn development() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("# <Hi />", &Options {
development: true,
..Options::default()
}, true)?,
"function _createMdxContent(props) {
const _components = Object.assign({
h1: \"h1\"
}, props.components), { Hi } = _components;
if (!Hi) _missingMdxReference(\"Hi\", true, \"1:3-1:9\");
return <_components.h1><Hi/></_components.h1>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component, place) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\" + (place ? \"\\nIt’s referenced in your code at `\" + place + \"` in `example.mdx`\" : \"\"));
}
",
"should create missing reference helpers w/o positional info in `development` mode",
);
Ok(())
}
#[test]
fn development_no_filepath() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("# <Hi />", &Options {
development: true,
..Options::default()
}, false)?,
"function _createMdxContent(props) {
const _components = Object.assign({
h1: \"h1\"
}, props.components), { Hi } = _components;
if (!Hi) _missingMdxReference(\"Hi\", true, \"1:3-1:9\");
return <_components.h1><Hi/></_components.h1>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component, place) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\" + (place ? \"\\nIt’s referenced in your code at `\" + place + \"`\" : \"\"));
}
",
"should create missing reference helpers w/o positional info in `development` mode",
);
Ok(())
}
#[test]
fn jsx_outside_components() {
let explicit_jsxs = FxHashSet::default();
let mut program = Program {
path: None,
comments: vec![],
module: Module {
span: DUMMY_SP,
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Decl(Decl::Var(Box::new(VarDecl {
kind: VarDeclKind::Let,
decls: vec![VarDeclarator {
span: DUMMY_SP,
name: Pat::Ident(BindingIdent {
id: create_ident("a").into(),
type_ann: None,
}),
init: Some(Box::new(Expr::JSXElement(Box::new(JSXElement {
opening: JSXOpeningElement {
name: create_jsx_name_from_str("b"),
attrs: vec![],
self_closing: true,
type_args: None,
span: DUMMY_SP,
},
closing: None,
children: vec![],
span: DUMMY_SP,
})))),
definite: false,
}],
span: DUMMY_SP,
ctxt: SyntaxContext::empty(),
declare: false,
}))))],
},
};
mdx_plugin_recma_jsx_rewrite(&mut program, &Options::default(), None, &explicit_jsxs);
assert_eq!(
serialize(&mut program.module, None),
"let a = <b/>;\n",
"should not rewrite JSX outside of components"
);
}
#[test]
fn invalid_patterns() {
let explicit_jsxs = FxHashSet::default();
let mut program = Program {
path: None,
comments: vec![],
module: Module {
span: DUMMY_SP,
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Decl(Decl::Var(Box::new(VarDecl {
kind: VarDeclKind::Let,
decls: vec![VarDeclarator {
span: DUMMY_SP,
name: Pat::Invalid(Invalid { span: DUMMY_SP }),
init: None,
definite: false,
}],
span: DUMMY_SP,
declare: false,
ctxt: SyntaxContext::empty(),
}))))],
},
};
mdx_plugin_recma_jsx_rewrite(&mut program, &Options::default(), None, &explicit_jsxs);
assert_eq!(
serialize(&mut program.module, None),
"let <invalid>;\n",
"should ignore invalid patterns"
);
}
#[test]
fn expr_patterns() {
let explicit_jsxs = FxHashSet::default();
let mut program = Program {
path: None,
comments: vec![],
module: Module {
span: DUMMY_SP,
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Decl(Decl::Var(Box::new(VarDecl {
kind: VarDeclKind::Let,
decls: vec![VarDeclarator {
span: DUMMY_SP,
name: Pat::Expr(Box::new(Expr::Ident(create_ident("a").into()))),
init: None,
definite: false,
}],
span: DUMMY_SP,
declare: false,
ctxt: SyntaxContext::empty(),
}))))],
},
};
mdx_plugin_recma_jsx_rewrite(&mut program, &Options::default(), None, &explicit_jsxs);
assert_eq!(
serialize(&mut program.module, None),
"let a;\n",
"should ignore expression patterns"
);
}
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
src/swc.rs | Rust | //! Bridge between `markdown-rs` and SWC.
extern crate markdown;
use crate::swc_utils::{create_span, DropContext, RewritePrefixContext, RewriteStopsContext};
use markdown::{mdast::Stop, Location, MdxExpressionKind, MdxSignal};
use std::rc::Rc;
use swc_core::common::{
comments::{Comment, Comments, SingleThreadedComments, SingleThreadedCommentsMap},
source_map::SmallPos,
sync::Lrc,
BytePos, FileName, FilePathMapping, SourceFile, SourceMap, Span, Spanned,
};
use swc_core::ecma::ast::{EsVersion, Expr, Module, PropOrSpread};
use swc_core::ecma::codegen::{text_writer::JsWriter, Emitter};
use swc_core::ecma::parser::{
error::Error as SwcError, parse_file_as_expr, parse_file_as_module, EsSyntax, Syntax,
};
use swc_core::ecma::visit::VisitMutWith;
/// Lex ESM in MDX with SWC.
pub fn parse_esm(value: &str) -> MdxSignal {
let result = parse_esm_core(value);
match result {
Err((span, message)) => swc_error_to_signal(span, &message, value.len()),
Ok(_) => MdxSignal::Ok,
}
}
/// Parse ESM in MDX with SWC.
pub fn parse_esm_to_tree(
value: &str,
stops: &[Stop],
location: Option<&Location>,
) -> Result<Module, markdown::message::Message> {
let result = parse_esm_core(value);
let mut rewrite_context = RewriteStopsContext { stops, location };
match result {
Err((span, reason)) => Err(swc_error_to_error(span, &reason, &rewrite_context)),
Ok(mut module) => {
module.visit_mut_with(&mut rewrite_context);
Ok(module)
}
}
}
/// Core to parse ESM.
fn parse_esm_core(value: &str) -> Result<Module, (Span, String)> {
let (file, syntax, version) = create_config(value.into());
let mut errors = vec![];
let result = parse_file_as_module(&file, syntax, version, None, &mut errors);
match result {
Err(error) => Err((
fix_span(error.span(), 1),
format!(
"Could not parse esm with swc: {}",
swc_error_to_string(&error)
),
)),
Ok(module) => {
if errors.is_empty() {
let mut index = 0;
while index < module.body.len() {
let node = &module.body[index];
if !node.is_module_decl() {
return Err((
fix_span(node.span(), 1),
"Unexpected statement in code: only import/exports are supported"
.into(),
));
}
index += 1;
}
Ok(module)
} else {
Err((
fix_span(errors[0].span(), 1),
format!(
"Could not parse esm with swc: {}",
swc_error_to_string(&errors[0])
),
))
}
}
}
}
fn parse_expression_core(
value: &str,
kind: &MdxExpressionKind,
) -> Result<Option<Box<Expr>>, (Span, String)> {
// Empty expressions are OK.
if matches!(kind, MdxExpressionKind::Expression) && whitespace_and_comments(0, value).is_ok() {
return Ok(None);
}
// For attribute expression, a spread is needed, for which we have to prefix
// and suffix the input.
// See `check_expression_ast` for how the AST is verified.
let (prefix, suffix) = if matches!(kind, MdxExpressionKind::AttributeExpression) {
("({", "})")
} else {
("", "")
};
let (file, syntax, version) = create_config(format!("{}{}{}", prefix, value, suffix));
let mut errors = vec![];
let result = parse_file_as_expr(&file, syntax, version, None, &mut errors);
match result {
Err(error) => Err((
fix_span(error.span(), prefix.len() + 1),
format!(
"Could not parse expression with swc: {}",
swc_error_to_string(&error)
),
)),
Ok(mut expr) => {
if errors.is_empty() {
let expression_end = expr.span().hi.to_usize() - 1;
if let Err((span, reason)) = whitespace_and_comments(expression_end, value) {
return Err((span, reason));
}
expr.visit_mut_with(&mut RewritePrefixContext {
prefix_len: prefix.len() as u32,
});
if matches!(kind, MdxExpressionKind::AttributeExpression) {
let expr_span = expr.span();
if let Expr::Paren(d) = *expr {
if let Expr::Object(mut obj) = *d.expr {
if obj.props.len() > 1 {
return Err((obj.span, "Unexpected extra content in spread (such as `{...x,y}`): only a single spread is supported (such as `{...x}`)".into()));
}
if let Some(PropOrSpread::Spread(d)) = obj.props.pop() {
return Ok(Some(d.expr));
}
}
}
return Err((
expr_span,
"Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`)".into(),
));
}
Ok(Some(expr))
} else {
Err((
fix_span(errors[0].span(), prefix.len() + 1),
format!(
"Could not parse expression with swc: {}",
swc_error_to_string(&errors[0])
),
))
}
}
}
}
/// Lex expressions in MDX with SWC.
pub fn parse_expression(value: &str, kind: &MdxExpressionKind) -> MdxSignal {
let result = parse_expression_core(value, kind);
match result {
Err((span, message)) => swc_error_to_signal(span, &message, value.len()),
Ok(_) => MdxSignal::Ok,
}
}
/// Parse ESM in MDX with SWC.
pub fn parse_expression_to_tree(
value: &str,
kind: &MdxExpressionKind,
stops: &[Stop],
location: Option<&Location>,
) -> Result<Option<Box<Expr>>, markdown::message::Message> {
let result = parse_expression_core(value, kind);
let mut rewrite_context = RewriteStopsContext { stops, location };
match result {
Err((span, reason)) => Err(swc_error_to_error(span, &reason, &rewrite_context)),
Ok(expr_opt) => {
if let Some(mut expr) = expr_opt {
expr.visit_mut_with(&mut rewrite_context);
Ok(Some(expr))
} else {
Ok(None)
}
}
}
}
/// Serialize an SWC module.
pub fn serialize(module: &mut Module, comments: Option<&Vec<Comment>>) -> String {
let single_threaded_comments = SingleThreadedComments::default();
if let Some(comments) = comments {
for c in comments {
single_threaded_comments.add_leading(c.span.lo, c.clone());
}
}
module.visit_mut_with(&mut DropContext {});
let mut buf = vec![];
let cm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
{
let mut emitter = Emitter {
cfg: swc_core::ecma::codegen::Config::default(),
cm: cm.clone(),
comments: Some(&single_threaded_comments),
wr: JsWriter::new(cm, "\n", &mut buf, None),
};
emitter.emit_module(module).unwrap();
}
String::from_utf8_lossy(&buf).into()
}
// To do: remove this attribute, use it somewhere.
#[allow(dead_code)]
/// Turn SWC comments into a flat vec.
pub fn flat_comments(single_threaded_comments: SingleThreadedComments) -> Vec<Comment> {
let raw_comments = single_threaded_comments.take_all();
let take = |list: SingleThreadedCommentsMap| {
Rc::try_unwrap(list)
.unwrap()
.into_inner()
.into_values()
.flatten()
.collect::<Vec<_>>()
};
let mut list = take(raw_comments.0);
list.append(&mut take(raw_comments.1));
list
}
/// Turn an SWC error into an `MdxSignal`.
///
/// * If the error happens at `value_len`, yields `MdxSignal::Eof`
/// * Else, yields `MdxSignal::Error`.
fn swc_error_to_signal(span: Span, reason: &str, value_len: usize) -> MdxSignal {
let error_end = span.hi.to_usize();
let source = Box::new("mdxjs-rs".into());
let rule_id = Box::new("swc".into());
if error_end >= value_len {
MdxSignal::Eof(reason.into(), source, rule_id)
} else {
MdxSignal::Error(reason.into(), span.lo.to_usize(), source, rule_id)
}
}
/// Turn an SWC error into a flat error.
fn swc_error_to_error(
span: Span,
reason: &str,
context: &RewriteStopsContext,
) -> markdown::message::Message {
let point = context
.location
.and_then(|location| location.relative_to_point(context.stops, span.lo.to_usize()));
markdown::message::Message {
reason: reason.into(),
place: point.map(|point| Box::new(markdown::message::Place::Point(point))),
source: Box::new("mdxjs-rs".into()),
rule_id: Box::new("swc".into()),
}
}
/// Turn an SWC error into a string.
fn swc_error_to_string(error: &SwcError) -> String {
error.kind().msg().into()
}
/// Move past JavaScript whitespace (well, actually ASCII whitespace) and
/// comments.
///
/// This is needed because for expressions, we use an API that parses up to
/// a valid expression, but there may be more expressions after it, which we
/// don’t alow.
fn whitespace_and_comments(mut index: usize, value: &str) -> Result<(), (Span, String)> {
let bytes = value.as_bytes();
let len = bytes.len();
let mut in_multiline = false;
let mut in_line = false;
while index < len {
// In a multiline comment: `/* a */`.
if in_multiline {
if index + 1 < len && bytes[index] == b'*' && bytes[index + 1] == b'/' {
index += 1;
in_multiline = false;
}
}
// In a line comment: `// a`.
else if in_line {
if bytes[index] == b'\r' || bytes[index] == b'\n' {
in_line = false;
}
}
// Not in a comment, opening a multiline comment: `/* a */`.
else if index + 1 < len && bytes[index] == b'/' && bytes[index + 1] == b'*' {
index += 1;
in_multiline = true;
}
// Not in a comment, opening a line comment: `// a`.
else if index + 1 < len && bytes[index] == b'/' && bytes[index + 1] == b'/' {
index += 1;
in_line = true;
}
// Outside comment, whitespace.
else if bytes[index].is_ascii_whitespace() {
// Fine!
}
// Outside comment, not whitespace.
else {
return Err((
create_span(index as u32, value.len() as u32),
"Could not parse expression with swc: Unexpected content after expression".into(),
));
}
index += 1;
}
if in_multiline {
return Err((
create_span(index as u32, value.len() as u32), "Could not parse expression with swc: Unexpected unclosed multiline comment, expected closing: `*/`".into()));
}
if in_line {
// EOF instead of EOL is specifically not allowed, because that would
// mean the closing brace is on the commented-out line
return Err((create_span(index as u32, value.len() as u32), "Could not parse expression with swc: Unexpected unclosed line comment, expected line ending: `\\n`".into()));
}
Ok(())
}
/// Create configuration for SWC, shared between ESM and expressions.
///
/// This enables modern JavaScript (ES2022) + JSX.
fn create_config(source: String) -> (SourceFile, Syntax, EsVersion) {
(
// File.
SourceFile::new(
FileName::Anon.into(),
false,
FileName::Anon.into(),
source.into(),
BytePos::from_usize(1),
),
// Syntax.
Syntax::Es(EsSyntax {
jsx: true,
..EsSyntax::default()
}),
// Version.
EsVersion::Es2022,
)
}
fn fix_span(mut span: Span, offset: usize) -> Span {
span.lo = BytePos::from_usize(span.lo.to_usize() - offset);
span.hi = BytePos::from_usize(span.hi.to_usize() - offset);
span
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
src/swc_util_build_jsx.rs | Rust | //! Turn JSX into function calls.
use crate::hast_util_to_swc::Program;
use crate::mdx_plugin_recma_document::JsxRuntime;
use crate::swc_utils::{
bytepos_to_point, create_bool_expression, create_call_expression, create_ident,
create_ident_expression, create_member_expression_from_str, create_null_expression,
create_num_expression, create_object_expression, create_prop_name, create_str,
create_str_expression, jsx_attribute_name_to_prop_name, jsx_element_name_to_expression,
span_to_position,
};
use core::str;
use markdown::{message::Message, Location};
use swc_core::common::SyntaxContext;
use swc_core::common::{
comments::{Comment, CommentKind},
util::take::Take,
};
use swc_core::ecma::ast::{
ArrayLit, CallExpr, Callee, Expr, ExprOrSpread, ImportDecl, ImportNamedSpecifier, ImportPhase,
ImportSpecifier, JSXAttrName, JSXAttrOrSpread, JSXAttrValue, JSXElement, JSXElementChild,
JSXExpr, JSXFragment, KeyValueProp, Lit, ModuleDecl, ModuleExportName, ModuleItem, Prop,
PropName, PropOrSpread, ThisExpr,
};
use swc_core::ecma::visit::{noop_visit_mut_type, VisitMut, VisitMutWith};
/// Configuration.
#[derive(Debug, Default, Clone)]
pub struct Options {
/// Whether to add extra information to error messages in generated code.
pub development: bool,
}
/// Compile JSX away to function calls.
pub fn swc_util_build_jsx(
program: &mut Program,
options: &Options,
location: Option<&Location>,
) -> Result<(), markdown::message::Message> {
let directives = find_directives(&program.comments, location)?;
let mut state = State {
development: options.development,
filepath: program.path.clone(),
location,
automatic: !matches!(directives.runtime, Some(JsxRuntime::Classic)),
import_fragment: false,
import_jsx: false,
import_jsxs: false,
import_jsx_dev: false,
create_element_expression: create_member_expression_from_str(
&directives
.pragma
.unwrap_or_else(|| "React.createElement".into()),
),
fragment_expression: create_member_expression_from_str(
&directives
.pragma_frag
.unwrap_or_else(|| "React.Fragment".into()),
),
error: None,
};
// Rewrite JSX and gather specifiers to import.
program.module.visit_mut_with(&mut state);
if let Some(err) = state.error.take() {
return Err(err);
}
let mut specifiers = vec![];
if state.import_fragment {
specifiers.push(ImportSpecifier::Named(ImportNamedSpecifier {
local: create_ident("_Fragment").into(),
imported: Some(ModuleExportName::Ident(create_ident("Fragment").into())),
span: swc_core::common::DUMMY_SP,
is_type_only: false,
}));
}
if state.import_jsx {
specifiers.push(ImportSpecifier::Named(ImportNamedSpecifier {
local: create_ident("_jsx").into(),
imported: Some(ModuleExportName::Ident(create_ident("jsx").into())),
span: swc_core::common::DUMMY_SP,
is_type_only: false,
}));
}
if state.import_jsxs {
specifiers.push(ImportSpecifier::Named(ImportNamedSpecifier {
local: create_ident("_jsxs").into(),
imported: Some(ModuleExportName::Ident(create_ident("jsxs").into())),
span: swc_core::common::DUMMY_SP,
is_type_only: false,
}));
}
if state.import_jsx_dev {
specifiers.push(ImportSpecifier::Named(ImportNamedSpecifier {
local: create_ident("_jsxDEV").into(),
imported: Some(ModuleExportName::Ident(create_ident("jsxDEV").into())),
span: swc_core::common::DUMMY_SP,
is_type_only: false,
}));
}
if !specifiers.is_empty() {
program.module.body.insert(
0,
ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl {
specifiers,
src: Box::new(create_str(&format!(
"{}{}",
directives.import_source.unwrap_or_else(|| "react".into()),
if options.development {
"/jsx-dev-runtime"
} else {
"/jsx-runtime"
}
))),
type_only: false,
with: None,
phase: ImportPhase::default(),
span: swc_core::common::DUMMY_SP,
})),
);
}
Ok(())
}
/// Info gathered from comments.
#[derive(Debug, Default, Clone)]
struct Directives {
/// Inferred JSX runtime.
runtime: Option<JsxRuntime>,
/// Inferred automatic JSX import source.
import_source: Option<String>,
/// Inferred classic JSX pragma.
pragma: Option<String>,
/// Inferred classic JSX pragma fragment.
pragma_frag: Option<String>,
}
/// Context.
#[derive(Debug, Clone)]
struct State<'a> {
/// Location info.
location: Option<&'a Location>,
/// Whether walking the tree produced an error.
error: Option<Message>,
/// Path to file.
filepath: Option<String>,
/// Whether the user is in development mode.
development: bool,
/// Whether to import `Fragment`.
import_fragment: bool,
/// Whether to import `jsx`.
import_jsx: bool,
/// Whether to import `jsxs`.
import_jsxs: bool,
/// Whether to import `jsxDEV`.
import_jsx_dev: bool,
/// Whether we’re building in the automatic or classic runtime.
automatic: bool,
/// Expression (ident or member) to use for `createElement` calls in
/// the classic runtime.
create_element_expression: Expr,
/// Expression (ident or member) to use as fragment symbol in the classic
/// runtime.
fragment_expression: Expr,
}
impl State<'_> {
/// Turn an attribute value into an expression.
fn jsx_attribute_value_to_expression(
&mut self,
value: Option<JSXAttrValue>,
) -> Result<Expr, markdown::message::Message> {
match value {
// Boolean prop.
None => Ok(create_bool_expression(true)),
Some(JSXAttrValue::JSXExprContainer(expression_container)) => {
match expression_container.expr {
JSXExpr::JSXEmptyExpr(_) => {
unreachable!("Cannot use empty JSX expressions in attribute values");
}
JSXExpr::Expr(expression) => Ok(*expression),
}
}
Some(JSXAttrValue::Lit(mut literal)) => {
// Remove `raw` so we don’t get character references in strings.
if let Lit::Str(string_literal) = &mut literal {
string_literal.raw = None;
}
Ok(Expr::Lit(literal))
}
Some(JSXAttrValue::JSXFragment(fragment)) => self.jsx_fragment_to_expression(fragment),
Some(JSXAttrValue::JSXElement(element)) => self.jsx_element_to_expression(*element),
}
}
/// Turn children of elements or fragments into expressions.
fn jsx_children_to_expressions(
&mut self,
mut children: Vec<JSXElementChild>,
) -> Result<Vec<Expr>, markdown::message::Message> {
let mut result = vec![];
children.reverse();
while let Some(child) = children.pop() {
match child {
JSXElementChild::JSXSpreadChild(child) => {
let lo = child.span.lo;
return Err(
markdown::message::Message {
reason: "Unexpected spread child, which is not supported in Babel, SWC, or React".into(),
place: bytepos_to_point(lo, self.location).map(|p| Box::new(markdown::message::Place::Point(p))),
source: Box::new("mdxjs-rs".into()),
rule_id: Box::new("spread".into()),
}
);
}
JSXElementChild::JSXExprContainer(container) => {
if let JSXExpr::Expr(expression) = container.expr {
result.push(*expression);
}
}
JSXElementChild::JSXText(text) => {
let value = jsx_text_to_value(text.value.as_ref());
if !value.is_empty() {
result.push(create_str_expression(&value));
}
}
JSXElementChild::JSXElement(element) => {
result.push(self.jsx_element_to_expression(*element)?);
}
JSXElementChild::JSXFragment(fragment) => {
result.push(self.jsx_fragment_to_expression(fragment)?);
}
}
}
Ok(result)
}
/// Turn optional attributes, and perhaps children (when automatic), into props.
fn jsx_attributes_to_expressions(
&mut self,
attributes: Option<Vec<JSXAttrOrSpread>>,
children: Option<Vec<Expr>>,
) -> Result<(Option<Expr>, Option<Expr>), markdown::message::Message> {
let mut objects = vec![];
let mut fields = vec![];
let mut spread = false;
let mut key = None;
if let Some(mut attributes) = attributes {
attributes.reverse();
// Place props in the right order, because we might have duplicates
// in them and what’s spread in.
while let Some(attribute) = attributes.pop() {
match attribute {
JSXAttrOrSpread::SpreadElement(spread_element) => {
if !fields.is_empty() {
objects.push(create_object_expression(fields));
fields = vec![];
}
objects.push(*spread_element.expr);
spread = true;
}
JSXAttrOrSpread::JSXAttr(jsx_attribute) => {
let value = self.jsx_attribute_value_to_expression(jsx_attribute.value)?;
let mut value = Some(value);
if let JSXAttrName::Ident(ident) = &jsx_attribute.name {
if self.automatic && &ident.sym == "key" {
if spread {
let lo = jsx_attribute.span.lo;
return Err(markdown::message::Message {
reason:
"Expected `key` to come before any spread expressions"
.into(),
place: bytepos_to_point(lo, self.location)
.map(|p| Box::new(markdown::message::Place::Point(p))),
source: Box::new("mdxjs-rs".into()),
rule_id: Box::new("key".into()),
});
}
// Take the value out, so we don’t add it as a prop.
key = value.take();
}
}
if let Some(value) = value {
fields.push(PropOrSpread::Prop(Box::new(Prop::KeyValue(
KeyValueProp {
key: jsx_attribute_name_to_prop_name(jsx_attribute.name),
value: Box::new(value),
},
))));
}
}
}
}
}
// In the automatic runtime, add children as a prop.
if let Some(mut children) = children {
let value = if children.is_empty() {
None
} else if children.len() == 1 {
Some(children.pop().unwrap())
} else {
let mut elements = vec![];
children.reverse();
while let Some(child) = children.pop() {
elements.push(Some(ExprOrSpread {
spread: None,
expr: Box::new(child),
}));
}
let lit = ArrayLit {
elems: elements,
span: swc_core::common::DUMMY_SP,
};
Some(Expr::Array(lit))
};
if let Some(value) = value {
fields.push(PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp {
key: create_prop_name("children"),
value: Box::new(value),
}))));
}
}
// Add remaining fields.
if !fields.is_empty() {
objects.push(create_object_expression(fields));
}
let props = if objects.is_empty() {
None
} else if objects.len() == 1 {
Some(objects.pop().unwrap())
} else {
let mut args = vec![];
objects.reverse();
// Don’t mutate the first object, shallow clone into a new
// object instead.
if !matches!(objects.last(), Some(Expr::Object(_))) {
objects.push(create_object_expression(vec![]));
}
while let Some(object) = objects.pop() {
args.push(ExprOrSpread {
spread: None,
expr: Box::new(object),
});
}
let callee = Callee::Expr(Box::new(create_member_expression_from_str("Object.assign")));
Some(create_call_expression(callee, args))
};
Ok((props, key))
}
/// Turn the parsed parts from fragments or elements into a call.
fn jsx_expressions_to_call(
&mut self,
span: swc_core::common::Span,
name: Expr,
attributes: Option<Vec<JSXAttrOrSpread>>,
mut children: Vec<Expr>,
) -> Result<Expr, markdown::message::Message> {
let (callee, parameters) = if self.automatic {
let is_static_children = children.len() > 1;
let (props, key) = self.jsx_attributes_to_expressions(attributes, Some(children))?;
let mut parameters = vec![
// Component name.
//
// ```javascript
// Component
// ```
ExprOrSpread {
spread: None,
expr: Box::new(name),
},
// Props (including children) or empty object.
//
// ```javascript
// Object.assign({x: true, y: 'z'}, {children: […]})
// {x: true, y: 'z'}
// {}
// ```
ExprOrSpread {
spread: None,
expr: Box::new(props.unwrap_or_else(|| create_object_expression(vec![]))),
},
];
// Key or, in development, undefined.
//
// ```javascript
// "xyz"
// ```
if let Some(key) = key {
parameters.push(ExprOrSpread {
spread: None,
expr: Box::new(key),
});
} else if self.development {
parameters.push(ExprOrSpread {
spread: None,
expr: Box::new(create_ident_expression("undefined")),
});
}
if self.development {
// Static children (or not).
//
// ```javascript
// true
// ```
parameters.push(ExprOrSpread {
spread: None,
expr: Box::new(create_bool_expression(is_static_children)),
});
let filename = if let Some(value) = &self.filepath {
create_str_expression(value)
} else {
create_str_expression("<source.js>")
};
let prop = PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp {
key: PropName::Ident(create_ident("fileName")),
value: Box::new(filename),
})));
let mut meta_fields = vec![prop];
if let Some(position) = span_to_position(span, self.location) {
meta_fields.push(PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp {
key: create_prop_name("lineNumber"),
value: Box::new(create_num_expression(position.start.line as f64)),
}))));
meta_fields.push(PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp {
key: create_prop_name("columnNumber"),
value: Box::new(create_num_expression(position.start.column as f64)),
}))));
}
// File name and positional info.
//
// ```javascript
// {
// fileName: "example.jsx",
// lineNumber: 1,
// columnNumber: 3
// }
// ```
parameters.push(ExprOrSpread {
spread: None,
expr: Box::new(create_object_expression(meta_fields)),
});
// Context object.
//
// ```javascript
// this
// ```
let this_expression = ThisExpr {
span: swc_core::common::DUMMY_SP,
};
parameters.push(ExprOrSpread {
spread: None,
expr: Box::new(Expr::This(this_expression)),
});
}
let callee = if self.development {
self.import_jsx_dev = true;
"_jsxDEV"
} else if is_static_children {
self.import_jsxs = true;
"_jsxs"
} else {
self.import_jsx = true;
"_jsx"
};
(create_ident_expression(callee), parameters)
} else {
// Classic runtime.
let (props, key) = self.jsx_attributes_to_expressions(attributes, None)?;
debug_assert!(key.is_none(), "key should not be extracted");
let mut parameters = vec![
// Component name.
//
// ```javascript
// Component
// ```
ExprOrSpread {
spread: None,
expr: Box::new(name),
},
];
// Props or, if with children, null.
//
// ```javascript
// {x: true, y: 'z'}
// ```
if let Some(props) = props {
parameters.push(ExprOrSpread {
spread: None,
expr: Box::new(props),
});
} else if !children.is_empty() {
parameters.push(ExprOrSpread {
spread: None,
expr: Box::new(create_null_expression()),
});
}
// Each child as a parameter.
children.reverse();
while let Some(child) = children.pop() {
parameters.push(ExprOrSpread {
spread: None,
expr: Box::new(child),
});
}
(self.create_element_expression.clone(), parameters)
};
let call_expression = CallExpr {
callee: Callee::Expr(Box::new(callee)),
args: parameters,
type_args: None,
span,
ctxt: SyntaxContext::empty(),
};
Ok(Expr::Call(call_expression))
}
/// Turn a JSX element into an expression.
fn jsx_element_to_expression(
&mut self,
element: JSXElement,
) -> Result<Expr, markdown::message::Message> {
let children = self.jsx_children_to_expressions(element.children)?;
let mut name = jsx_element_name_to_expression(element.opening.name);
// If the name could be an identifier, but start with a lowercase letter,
// it’s not a component.
if let Expr::Ident(ident) = &name {
let head = ident.as_ref().as_bytes();
if matches!(head.first(), Some(b'a'..=b'z')) {
name = create_str_expression(&ident.sym);
}
}
self.jsx_expressions_to_call(element.span, name, Some(element.opening.attrs), children)
}
/// Turn a JSX fragment into an expression.
fn jsx_fragment_to_expression(
&mut self,
fragment: JSXFragment,
) -> Result<Expr, markdown::message::Message> {
let name = if self.automatic {
self.import_fragment = true;
create_ident_expression("_Fragment")
} else {
self.fragment_expression.clone()
};
let children = self.jsx_children_to_expressions(fragment.children)?;
self.jsx_expressions_to_call(fragment.span, name, None, children)
}
}
impl VisitMut for State<'_> {
noop_visit_mut_type!();
/// Visit expressions, rewriting JSX, and walking deeper.
fn visit_mut_expr(&mut self, expr: &mut Expr) {
let result = match expr {
Expr::JSXElement(element) => Some(self.jsx_element_to_expression(*element.take())),
Expr::JSXFragment(fragment) => Some(self.jsx_fragment_to_expression(fragment.take())),
_ => None,
};
if let Some(result) = result {
match result {
Ok(expression) => {
*expr = expression;
expr.visit_mut_children_with(self);
}
Err(err) => {
self.error = Some(err);
}
}
} else {
expr.visit_mut_children_with(self);
}
}
}
/// Find directives in comments.
///
/// This looks for block comments (`/* */`) and checks each line that starts
/// with `@jsx`.
/// Then it looks for key/value pairs (each words split by whitespace).
/// Known keys are used for directives.
fn find_directives(
comments: &Vec<Comment>,
location: Option<&Location>,
) -> Result<Directives, markdown::message::Message> {
let mut directives = Directives::default();
for comment in comments {
if comment.kind != CommentKind::Block {
continue;
}
let lines = comment.text.lines();
for line in lines {
let bytes = line.as_bytes();
let mut index = 0;
// Skip initial whitespace.
while index < bytes.len() && matches!(bytes[index], b' ' | b'\t') {
index += 1;
}
// Skip star.
if index < bytes.len() && bytes[index] == b'*' {
index += 1;
// Skip more whitespace.
while index < bytes.len() && matches!(bytes[index], b' ' | b'\t') {
index += 1;
}
}
// Peek if this looks like a JSX directive.
if !(index + 4 < bytes.len()
&& bytes[index] == b'@'
&& bytes[index + 1] == b'j'
&& bytes[index + 2] == b's'
&& bytes[index + 3] == b'x')
{
// Exit if not.
continue;
}
loop {
let mut key_range = (index, index);
while index < bytes.len() && !matches!(bytes[index], b' ' | b'\t') {
index += 1;
}
key_range.1 = index;
// Skip whitespace.
while index < bytes.len() && matches!(bytes[index], b' ' | b'\t') {
index += 1;
}
let mut value_range = (index, index);
while index < bytes.len() && !matches!(bytes[index], b' ' | b'\t') {
index += 1;
}
value_range.1 = index;
let key = String::from_utf8_lossy(&bytes[key_range.0..key_range.1]);
let value = String::from_utf8_lossy(&bytes[value_range.0..value_range.1]);
// Handle the key/value.
match key.as_ref() {
"@jsxRuntime" => match value.as_ref() {
"automatic" => directives.runtime = Some(JsxRuntime::Automatic),
"classic" => directives.runtime = Some(JsxRuntime::Classic),
"" => {}
value => {
return Err(markdown::message::Message {
reason: format!(
"Runtime must be either `automatic` or `classic`, not {}",
value
),
place: bytepos_to_point(comment.span.lo, location)
.map(|p| Box::new(markdown::message::Place::Point(p))),
source: Box::new("mdxjs-rs".into()),
rule_id: Box::new("runtime".into()),
});
}
},
"@jsxImportSource" => {
match value.as_ref() {
"" => {}
value => {
// SWC sets runtime too, not sure if that’s great.
directives.runtime = Some(JsxRuntime::Automatic);
directives.import_source = Some(value.into());
}
}
}
"@jsxFrag" => match value.as_ref() {
"" => {}
value => directives.pragma_frag = Some(value.into()),
},
"@jsx" => match value.as_ref() {
"" => {}
value => directives.pragma = Some(value.into()),
},
"" => {
// No directive, stop looking for key/value pairs
// on this line.
break;
}
_ => {}
}
// Skip more whitespace.
while index < bytes.len() && matches!(bytes[index], b' ' | b'\t') {
index += 1;
}
}
}
}
Ok(directives)
}
/// Turn JSX text into a string.
fn jsx_text_to_value(value: &str) -> String {
let mut result = String::with_capacity(value.len());
// Replace tabs w/ spaces.
let value = value.replace('\t', " ");
let bytes = value.as_bytes();
let mut index = 0;
let mut start = 0;
while index < bytes.len() {
if !matches!(bytes[index], b'\r' | b'\n') {
index += 1;
continue;
}
// We have an eol, move back past whitespace.
let mut before = index;
while before > start && bytes[before - 1] == b' ' {
before -= 1;
}
if start != before {
if !result.is_empty() {
result.push(' ');
}
result.push_str(str::from_utf8(&bytes[start..before]).unwrap());
}
// Move past whitespace.
index += 1;
while index < bytes.len() && bytes[index] == b' ' {
index += 1;
}
start = index;
}
if start != bytes.len() {
// Without line endings, if it’s just whitespace, ignore it.
if result.is_empty() {
index = 0;
while index < bytes.len() && bytes[index] == b' ' {
index += 1;
}
if index == bytes.len() {
return result;
}
} else {
result.push(' ');
}
result.push_str(str::from_utf8(&bytes[start..]).unwrap());
}
result
}
#[cfg(test)]
mod tests {
use super::*;
use crate::hast_util_to_swc::Program;
use crate::swc::{flat_comments, serialize};
use pretty_assertions::assert_eq;
use swc_core::common::Spanned;
use swc_core::common::{
comments::SingleThreadedComments, source_map::SmallPos, BytePos, FileName, SourceFile,
};
use swc_core::ecma::ast::{
EsVersion, ExprStmt, JSXClosingElement, JSXElementName, JSXOpeningElement, JSXSpreadChild,
Module, Stmt,
};
use swc_core::ecma::parser::{parse_file_as_module, EsSyntax, Syntax};
fn compile(value: &str, options: &Options) -> Result<String, markdown::message::Message> {
let location = Location::new(value.as_bytes());
let mut errors = vec![];
let comments = SingleThreadedComments::default();
let result = parse_file_as_module(
&SourceFile::new(
FileName::Anon.into(),
false,
FileName::Anon.into(),
value.to_string().into(),
BytePos::from_usize(1),
),
Syntax::Es(EsSyntax {
jsx: true,
..EsSyntax::default()
}),
EsVersion::Es2022,
Some(&comments),
&mut errors,
);
match result {
Err(error) => Err(markdown::message::Message {
reason: error.kind().msg().into(),
place: bytepos_to_point(error.span().lo, Some(&location))
.map(|p| Box::new(markdown::message::Place::Point(p))),
source: Box::new("mdxjs-rs".into()),
rule_id: Box::new("swc".into()),
}),
Ok(module) => {
let mut program = Program {
path: Some("example.jsx".into()),
module,
comments: flat_comments(comments),
};
swc_util_build_jsx(&mut program, options, Some(&location))?;
Ok(serialize(&mut program.module, Some(&program.comments)))
}
}
}
#[test]
fn small_default() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("let a = <b />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\nlet a = _jsx(\"b\", {});\n",
"should compile JSX away"
);
Ok(())
}
#[test]
fn directive_runtime_automatic() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/* @jsxRuntime automatic */\nlet a = <b />",
&Options::default()
)?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\nlet a = _jsx(\"b\", {});\n",
"should support a `@jsxRuntime automatic` directive"
);
Ok(())
}
#[test]
fn directive_runtime_classic() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/* @jsxRuntime classic */\nlet a = <b />",
&Options::default()
)?,
"let a = React.createElement(\"b\");\n",
"should support a `@jsxRuntime classic` directive"
);
Ok(())
}
#[test]
fn directive_runtime_empty() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("/* @jsxRuntime */\nlet a = <b />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\nlet a = _jsx(\"b\", {});\n",
"should support an empty `@jsxRuntime` directive"
);
Ok(())
}
#[test]
fn directive_runtime_invalid() {
assert_eq!(
compile(
"/* @jsxRuntime unknown */\nlet a = <b />",
&Options::default()
)
.err()
.unwrap()
.to_string(),
"1:1: Runtime must be either `automatic` or `classic`, not unknown (mdxjs-rs:runtime)",
"should crash on a non-automatic, non-classic `@jsxRuntime` directive"
);
}
#[test]
fn directive_import_source() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/* @jsxImportSource aaa */\nlet a = <b />",
&Options::default()
)?,
"import { jsx as _jsx } from \"aaa/jsx-runtime\";\nlet a = _jsx(\"b\", {});\n",
"should support a `@jsxImportSource` directive"
);
Ok(())
}
#[test]
fn directive_jsx() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/* @jsxRuntime classic @jsx a */\nlet b = <c />",
&Options::default()
)?,
"let b = a(\"c\");\n",
"should support a `@jsx` directive"
);
Ok(())
}
#[test]
fn directive_jsx_empty() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/* @jsxRuntime classic @jsx */\nlet a = <b />",
&Options::default()
)?,
"let a = React.createElement(\"b\");\n",
"should support an empty `@jsx` directive"
);
Ok(())
}
#[test]
fn directive_jsx_non_identifier() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/* @jsxRuntime classic @jsx a.b-c.d! */\n<x />",
&Options::default()
)?,
"a[\"b-c\"][\"d!\"](\"x\");\n",
"should support an `@jsx` directive set to an invalid identifier"
);
Ok(())
}
#[test]
fn directive_jsx_frag() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/* @jsxRuntime classic @jsxFrag a */\nlet b = <></>",
&Options::default()
)?,
"let b = React.createElement(a);\n",
"should support a `@jsxFrag` directive"
);
Ok(())
}
#[test]
fn directive_jsx_frag_empty() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/* @jsxRuntime classic @jsxFrag */\nlet a = <></>",
&Options::default()
)?,
"let a = React.createElement(React.Fragment);\n",
"should support an empty `@jsxFrag` directive"
);
Ok(())
}
#[test]
fn directive_non_first_line() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/*\n first line\n @jsxRuntime classic\n */\n<b />",
&Options::default()
)?,
"React.createElement(\"b\");\n",
"should support a directive on a non-first line"
);
Ok(())
}
#[test]
fn directive_asterisked_line() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/*\n * first line\n * @jsxRuntime classic\n */\n<b />",
&Options::default()
)?,
"React.createElement(\"b\");\n",
"should support a directive on an asterisk’ed line"
);
Ok(())
}
#[test]
fn jsx_element_self_closing() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", {});\n",
"should support a self-closing element"
);
Ok(())
}
#[test]
fn jsx_element_self_closing_classic() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("/* @jsxRuntime classic */\n<a />", &Options::default())?,
"React.createElement(\"a\");\n",
"should support a self-closing element (classic)"
);
Ok(())
}
#[test]
fn jsx_element_closed() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"<a>b</a>",
&Options::default()
)?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", {\n children: \"b\"\n});\n",
"should support a closed element"
);
Ok(())
}
#[test]
fn jsx_element_member_name() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a.b.c />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(a.b.c, {});\n",
"should support an element with a member name"
);
Ok(())
}
#[test]
fn jsx_element_member_name_dashes() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a.b-c />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(a[\"b-c\"], {});\n",
"should support an element with a member name and dashes"
);
Ok(())
}
#[test]
fn jsx_element_member_name_many() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a.b.c.d />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(a.b.c.d, {});\n",
"should support an element with a member name of lots of names"
);
Ok(())
}
#[test]
fn jsx_element_namespace_name() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a:b />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a:b\", {});\n",
"should support an element with a namespace name"
);
Ok(())
}
#[test]
fn jsx_element_name_dashes() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a-b />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a-b\", {});\n",
"should support an element with a dash in the name"
);
Ok(())
}
#[test]
fn jsx_element_name_capital() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<Abc />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(Abc, {});\n",
"should support an element with a non-lowercase first character in the name"
);
Ok(())
}
#[test]
fn jsx_element_attribute_boolean() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a b />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", {\n b: true\n});\n",
"should support an element with a boolean attribute"
);
Ok(())
}
#[test]
fn jsx_element_attribute_boolean_classic() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("/* @jsxRuntime classic */\n<a b />", &Options::default())?,
"React.createElement(\"a\", {\n b: true\n});\n",
"should support an element with a boolean attribute (classic"
);
Ok(())
}
#[test]
fn jsx_element_attribute_name_namespace() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a b:c />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", {\n \"b:c\": true\n});\n",
"should support an element with colons in an attribute name"
);
Ok(())
}
#[test]
fn jsx_element_attribute_name_non_identifier() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a b-c />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", {\n \"b-c\": true\n});\n",
"should support an element with non-identifier characters in an attribute name"
);
Ok(())
}
#[test]
fn jsx_element_attribute_value() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a b='c' />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", {\n b: \"c\"\n});\n",
"should support an element with an attribute with a value"
);
Ok(())
}
#[test]
fn jsx_element_attribute_value_expression() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a b={c} />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", {\n b: c\n});\n",
"should support an element with an attribute with a value expression"
);
Ok(())
}
#[test]
fn jsx_element_attribute_value_fragment() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a b=<>c</> />", &Options::default())?,
"import { Fragment as _Fragment, jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", {\n b: _jsx(_Fragment, {\n children: \"c\"\n })\n});\n",
"should support an element with an attribute with a fragment as value"
);
Ok(())
}
#[test]
fn jsx_element_attribute_value_element() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a b=<c /> />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", {\n b: _jsx(\"c\", {})\n});\n",
"should support an element with an attribute with an element as value"
);
Ok(())
}
#[test]
fn jsx_element_spread_attribute() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a {...b} />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", b);\n",
"should support an element with a spread attribute"
);
Ok(())
}
#[test]
fn jsx_element_spread_attribute_then_prop() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a {...b} c />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", Object.assign({}, b, {\n c: true\n}));\n",
"should support an element with a spread attribute and then a prop"
);
Ok(())
}
#[test]
fn jsx_element_prop_then_spread_attribute() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a b {...c} />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", Object.assign({\n b: true\n}, c));\n",
"should support an element with a prop and then a spread attribute"
);
Ok(())
}
#[test]
fn jsx_element_two_spread_attributes() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a {...b} {...c} />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";\n_jsx(\"a\", Object.assign({}, b, c));\n",
"should support an element two spread attributes"
);
Ok(())
}
#[test]
fn jsx_element_complex_spread_attribute() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a {...{b:1,...c,d:2}} />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {
b: 1,
...c,
d: 2
});
",
"should support more complex spreads"
);
Ok(())
}
#[test]
fn jsx_element_child_expression() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a>{1}</a>", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {
children: 1
});
",
"should support a child expression"
);
Ok(())
}
#[test]
fn jsx_element_child_expression_classic() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("/* @jsxRuntime classic */\n<a>{1}</a>", &Options::default())?,
"React.createElement(\"a\", null, 1);\n",
"should support a child expression (classic)"
);
Ok(())
}
#[test]
fn jsx_element_child_expression_empty() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a>{}</a>", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {});
",
"should support an empty child expression"
);
Ok(())
}
#[test]
fn jsx_element_child_expression_empty_classic() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("/* @jsxRuntime classic */\n<a>{}</a>", &Options::default())?,
"React.createElement(\"a\");\n",
"should support an empty child expression (classic)"
);
Ok(())
}
#[test]
fn jsx_element_child_fragment() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a><>b</></a>", &Options::default())?,
"import { Fragment as _Fragment, jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {
children: _jsx(_Fragment, {
children: \"b\"
})
});
",
"should support a fragment as a child"
);
Ok(())
}
#[test]
fn jsx_element_child_spread() {
let mut program = Program {
path: None,
comments: vec![],
module: Module {
span: swc_core::common::DUMMY_SP,
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
span: swc_core::common::DUMMY_SP,
expr: Box::new(Expr::JSXElement(Box::new(JSXElement {
span: swc_core::common::DUMMY_SP,
opening: JSXOpeningElement {
name: JSXElementName::Ident(create_ident("a").into()),
attrs: vec![],
self_closing: false,
type_args: None,
span: swc_core::common::DUMMY_SP,
},
closing: Some(JSXClosingElement {
name: JSXElementName::Ident(create_ident("a").into()),
span: swc_core::common::DUMMY_SP,
}),
children: vec![JSXElementChild::JSXSpreadChild(JSXSpreadChild {
expr: Box::new(create_ident_expression("a")),
span: swc_core::common::DUMMY_SP,
})],
}))),
}))],
},
};
assert_eq!(
swc_util_build_jsx(&mut program, &Options::default(), None)
.err()
.unwrap()
.to_string(),
"Unexpected spread child, which is not supported in Babel, SWC, or React (mdxjs-rs:spread)",
"should not support a spread child"
);
}
#[test]
fn jsx_element_child_text_padded_start() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a> b</a>", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {
children: \" b\"
});
",
"should support initial spaces in content"
);
Ok(())
}
#[test]
fn jsx_element_child_text_padded_end() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a>b </a>", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {
children: \"b \"
});
",
"should support final spaces in content"
);
Ok(())
}
#[test]
fn jsx_element_child_text_padded() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a> b </a>", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {
children: \" b \"
});
",
"should support initial and final spaces in content"
);
Ok(())
}
#[test]
fn jsx_element_child_text_line_endings_padded() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a> b \r c \n d \n </a>", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {
children: \" b c d\"
});
",
"should support spaces around line endings in content"
);
Ok(())
}
#[test]
fn jsx_element_child_text_blank_lines() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a> b \r \n c \n\n d \n </a>", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {
children: \" b c d\"
});
",
"should support blank lines in content"
);
Ok(())
}
#[test]
fn jsx_element_child_whitespace_only() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a> \t\n </a>", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {});
",
"should support whitespace-only in content"
);
Ok(())
}
#[test]
fn jsx_element_key_automatic() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a b key='c' d />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", {
b: true,
d: true
}, \"c\");
",
"should support a key in the automatic runtime"
);
Ok(())
}
#[test]
fn jsx_element_key_classic() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"/* @jsxRuntime classic */\n<a b key='c' d />",
&Options::default()
)?,
"React.createElement(\"a\", {
b: true,
key: \"c\",
d: true
});
",
"should support a key in the classic runtime"
);
Ok(())
}
#[test]
fn jsx_element_key_after_spread_automatic() {
assert_eq!(
compile("<a {...b} key='c' />", &Options::default())
.err()
.unwrap()
.to_string(),
"1:11: Expected `key` to come before any spread expressions (mdxjs-rs:key)",
"should crash on a key after a spread in the automatic runtime"
);
}
#[test]
fn jsx_element_key_before_spread_automatic() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<a key='b' {...c} />", &Options::default())?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
_jsx(\"a\", c, \"b\");
",
"should support a key before a spread in the automatic runtime"
);
Ok(())
}
#[test]
fn jsx_element_development() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<><a /></>", &Options { development: true })?,
"import { Fragment as _Fragment, jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";
_jsxDEV(_Fragment, {
children: _jsxDEV(\"a\", {}, undefined, false, {
fileName: \"example.jsx\",
lineNumber: 1,
columnNumber: 3
}, this)
}, undefined, false, {
fileName: \"example.jsx\",
lineNumber: 1,
columnNumber: 1
}, this);
",
"should support the automatic development runtime if `development` is on"
);
Ok(())
}
#[test]
fn jsx_element_development_no_filepath() -> Result<(), markdown::message::Message> {
let mut program = Program {
path: None,
comments: vec![],
module: Module {
span: swc_core::common::DUMMY_SP,
shebang: None,
body: vec![ModuleItem::Stmt(Stmt::Expr(ExprStmt {
span: swc_core::common::DUMMY_SP,
expr: Box::new(Expr::JSXElement(Box::new(JSXElement {
span: swc_core::common::DUMMY_SP,
opening: JSXOpeningElement {
name: JSXElementName::Ident(create_ident("a").into()),
attrs: vec![],
self_closing: true,
type_args: None,
span: swc_core::common::DUMMY_SP,
},
closing: None,
children: vec![],
}))),
}))],
},
};
swc_util_build_jsx(&mut program, &Options { development: true }, None)?;
assert_eq!(
serialize(&mut program.module, Some(&program.comments)),
"import { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";
_jsxDEV(\"a\", {}, undefined, false, {
fileName: \"<source.js>\"
}, this);
",
"should support the automatic development runtime without a file path"
);
Ok(())
}
#[test]
fn jsx_text() {
assert_eq!(jsx_text_to_value("a"), "a", "should support jsx text");
assert_eq!(
jsx_text_to_value(" a\t"),
" a ",
"should support jsx text w/ initial, final whitespace"
);
assert_eq!(
jsx_text_to_value(" \t"),
"",
"should support jsx text that’s just whitespace"
);
assert_eq!(
jsx_text_to_value("a\r\r\n\nb"),
"a b",
"should support jsx text with line endings"
);
assert_eq!(
jsx_text_to_value(" a \n b \n c "),
" a b c ",
"should support jsx text with line endings with white space"
);
assert_eq!(
jsx_text_to_value(" \n a \n "),
"a",
"should support jsx text with blank initial and final lines"
);
assert_eq!(
jsx_text_to_value(" a \n \n \t \n b "),
" a b ",
"should support jsx text with blank lines in between"
);
assert_eq!(
jsx_text_to_value(" \n \n \t \n "),
"",
"should support jsx text with only spaces, tabs, and line endings"
);
}
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
src/swc_utils.rs | Rust | //! Lots of helpers for dealing with SWC, particularly from unist, and for
//! building its ES AST.
use markdown::{
id_cont, id_start,
mdast::Stop,
unist::{Point, Position},
Location,
};
use swc_core::ecma::ast::{
BinExpr, BinaryOp, Bool, CallExpr, Callee, ComputedPropName, Expr, ExprOrSpread, Ident,
JSXAttrName, JSXElementName, JSXMemberExpr, JSXNamespacedName, JSXObject, Lit, MemberExpr,
MemberProp, Null, Number, ObjectLit, PropName, PropOrSpread, Str,
};
use swc_core::ecma::visit::{noop_visit_mut_type, VisitMut};
use swc_core::{
common::{BytePos, Span, SyntaxContext, DUMMY_SP},
ecma::ast::IdentName,
};
/// Turn a unist position, into an SWC span, of two byte positions.
///
/// > 👉 **Note**: SWC byte positions are offset by one: they are `0` when they
/// > are missing or incremented by `1` when valid.
pub fn position_to_span(position: Option<&Position>) -> Span {
position.map_or(DUMMY_SP, |d| Span {
lo: point_to_bytepos(&d.start),
hi: point_to_bytepos(&d.end),
})
}
/// Turn an SWC span, of two byte positions, into a unist position.
///
/// This assumes the span comes from a fixed tree, or is a dummy.
///
/// > 👉 **Note**: SWC byte positions are offset by one: they are `0` when they
/// > are missing or incremented by `1` when valid.
pub fn span_to_position(span: Span, location: Option<&Location>) -> Option<Position> {
let lo = span.lo.0 as usize;
let hi = span.hi.0 as usize;
if lo > 0 && hi > 0 {
if let Some(location) = location {
if let Some(start) = location.to_point(lo - 1) {
if let Some(end) = location.to_point(hi - 1) {
return Some(Position { start, end });
}
}
}
}
None
}
/// Turn a unist point into an SWC byte position.
///
/// > 👉 **Note**: SWC byte positions are offset by one: they are `0` when they
/// > are missing or incremented by `1` when valid.
pub fn point_to_bytepos(point: &Point) -> BytePos {
BytePos(point.offset as u32 + 1)
}
/// Turn an SWC byte position into a unist point.
///
/// This assumes the byte position comes from a fixed tree, or is a dummy.
///
/// > 👉 **Note**: SWC byte positions are offset by one: they are `0` when they
/// > are missing or incremented by `1` when valid.
pub fn bytepos_to_point(bytepos: BytePos, location: Option<&Location>) -> Option<Point> {
let pos = bytepos.0 as usize;
if pos > 0 {
if let Some(location) = location {
return location.to_point(pos - 1);
}
}
None
}
/// Serialize a unist position for humans.
pub fn position_opt_to_string(position: Option<&Position>) -> String {
if let Some(position) = position {
position_to_string(position)
} else {
"0:0".into()
}
}
/// Serialize a unist position for humans.
pub fn position_to_string(position: &Position) -> String {
format!(
"{}-{}",
point_to_string(&position.start),
point_to_string(&position.end)
)
}
/// Serialize a unist point for humans.
pub fn point_to_string(point: &Point) -> String {
format!("{}:{}", point.line, point.column)
}
/// Visitor to fix SWC byte positions.
///
/// This assumes the byte position comes from an **unfixed** tree.
///
/// > 👉 **Note**: SWC byte positions are offset by one: they are `0` when they
/// > are missing or incremented by `1` when valid.
#[derive(Debug, Default, Clone)]
pub struct RewriteStopsContext<'a> {
/// Stops in the original source.
pub stops: &'a [Stop],
/// Location info.
pub location: Option<&'a Location>,
}
impl VisitMut for RewriteStopsContext<'_> {
noop_visit_mut_type!();
/// Rewrite spans.
fn visit_mut_span(&mut self, span: &mut Span) {
let mut result = DUMMY_SP;
let lo_rel = span.lo.0 as usize;
let hi_rel = span.hi.0 as usize;
let lo_clean = Location::relative_to_absolute(self.stops, lo_rel - 1);
let hi_clean = Location::relative_to_absolute(self.stops, hi_rel - 1);
if let Some(lo_abs) = lo_clean {
if let Some(hi_abs) = hi_clean {
result = create_span(lo_abs as u32 + 1, hi_abs as u32 + 1);
}
}
*span = result;
}
}
/// Visitor to fix SWC byte positions by removing a prefix.
///
/// > 👉 **Note**: SWC byte positions are offset by one: they are `0` when they
/// > are missing or incremented by `1` when valid.
#[derive(Debug, Default, Clone)]
pub struct RewritePrefixContext {
/// Size of prefix considered outside this tree.
pub prefix_len: u32,
}
impl VisitMut for RewritePrefixContext {
noop_visit_mut_type!();
/// Rewrite spans.
fn visit_mut_span(&mut self, span: &mut Span) {
let mut result = DUMMY_SP;
if span.lo.0 > self.prefix_len && span.hi.0 > self.prefix_len {
result = create_span(span.lo.0 - self.prefix_len, span.hi.0 - self.prefix_len);
}
*span = result;
}
}
/// Visitor to drop SWC spans.
#[derive(Debug, Default, Clone)]
pub struct DropContext {}
impl VisitMut for DropContext {
noop_visit_mut_type!();
/// Rewrite spans.
fn visit_mut_span(&mut self, span: &mut Span) {
*span = DUMMY_SP;
}
}
/// Generate a span.
pub fn create_span(lo: u32, hi: u32) -> Span {
Span {
lo: BytePos(lo),
hi: BytePos(hi),
}
}
/// Generate an ident.
///
/// ```js
/// a
/// ```
pub fn create_ident(sym: &str) -> IdentName {
IdentName {
sym: sym.into(),
span: DUMMY_SP,
}
}
/// Generate an ident expression.
///
/// ```js
/// a
/// ```
pub fn create_ident_expression(sym: &str) -> Expr {
Expr::Ident(create_ident(sym).into())
}
/// Generate a null.
pub fn create_null() -> Null {
Null {
span: swc_core::common::DUMMY_SP,
}
}
/// Generate a null.
pub fn create_null_lit() -> Lit {
Lit::Null(create_null())
}
/// Generate a null.
pub fn create_null_expression() -> Expr {
Expr::Lit(create_null_lit())
}
/// Generate a null.
pub fn create_str(value: &str) -> Str {
value.into()
}
/// Generate a str.
pub fn create_str_lit(value: &str) -> Lit {
Lit::Str(create_str(value))
}
/// Generate a str.
pub fn create_str_expression(value: &str) -> Expr {
Expr::Lit(create_str_lit(value))
}
/// Generate a bool.
pub fn create_bool(value: bool) -> Bool {
value.into()
}
/// Generate a bool.
pub fn create_bool_lit(value: bool) -> Lit {
Lit::Bool(create_bool(value))
}
/// Generate a bool.
pub fn create_bool_expression(value: bool) -> Expr {
Expr::Lit(create_bool_lit(value))
}
/// Generate a number.
pub fn create_num(value: f64) -> Number {
value.into()
}
/// Generate a num.
pub fn create_num_lit(value: f64) -> Lit {
Lit::Num(create_num(value))
}
/// Generate a num.
pub fn create_num_expression(value: f64) -> Expr {
Expr::Lit(create_num_lit(value))
}
/// Generate an object.
pub fn create_object_lit(value: Vec<PropOrSpread>) -> ObjectLit {
ObjectLit {
props: value,
span: DUMMY_SP,
}
}
/// Generate an object.
pub fn create_object_expression(value: Vec<PropOrSpread>) -> Expr {
Expr::Object(create_object_lit(value))
}
/// Generate a call.
pub fn create_call(callee: Callee, args: Vec<ExprOrSpread>) -> CallExpr {
CallExpr {
callee,
args,
span: DUMMY_SP,
type_args: None,
ctxt: SyntaxContext::empty(),
}
}
/// Generate a call.
pub fn create_call_expression(callee: Callee, args: Vec<ExprOrSpread>) -> Expr {
Expr::Call(create_call(callee, args))
}
/// Generate a binary expression.
///
/// ```js
/// a + b + c
/// a || b
/// ```
pub fn create_binary_expression(mut exprs: Vec<Expr>, op: BinaryOp) -> Expr {
exprs.reverse();
let mut left = None;
while let Some(right_expr) = exprs.pop() {
left = Some(if let Some(left_expr) = left {
Expr::Bin(BinExpr {
left: Box::new(left_expr),
right: Box::new(right_expr),
op,
span: DUMMY_SP,
})
} else {
right_expr
});
}
left.expect("expected one or more expressions")
}
/// Generate a member expression from a string.
///
/// ```js
/// a.b
/// a
/// ```
pub fn create_member_expression_from_str(name: &str) -> Expr {
match parse_js_name(name) {
// `a`
JsName::Normal(name) => create_ident_expression(name),
// `a.b.c`
JsName::Member(parts) => {
let mut member = create_member(
create_ident_expression(parts[0]),
create_member_prop_from_str(parts[1]),
);
let mut index = 2;
while index < parts.len() {
member = create_member(
Expr::Member(member),
create_member_prop_from_str(parts[index]),
);
index += 1;
}
Expr::Member(member)
}
}
}
/// Generate a member expression from an object and prop.
pub fn create_member(obj: Expr, prop: MemberProp) -> MemberExpr {
MemberExpr {
obj: Box::new(obj),
prop,
span: DUMMY_SP,
}
}
/// Create a member prop from a string.
pub fn create_member_prop_from_str(name: &str) -> MemberProp {
if is_identifier_name(name) {
MemberProp::Ident(create_ident(name))
} else {
MemberProp::Computed(ComputedPropName {
expr: Box::new(create_str_expression(name)),
span: DUMMY_SP,
})
}
}
/// Generate a member expression from a string.
///
/// ```js
/// a.b-c
/// a
/// ```
pub fn create_jsx_name_from_str(name: &str) -> JSXElementName {
match parse_jsx_name(name) {
// `a`
JsxName::Normal(name) => JSXElementName::Ident(create_ident(name).into()),
// `a:b`
JsxName::Namespace(ns, name) => JSXElementName::JSXNamespacedName(JSXNamespacedName {
span: DUMMY_SP,
ns: create_ident(ns),
name: create_ident(name),
}),
// `a.b.c`
JsxName::Member(parts) => {
let mut member = create_jsx_member(
JSXObject::Ident(create_ident(parts[0]).into()),
create_ident(parts[1]),
);
let mut index = 2;
while index < parts.len() {
member = create_jsx_member(
JSXObject::JSXMemberExpr(Box::new(member)),
create_ident(parts[index]),
);
index += 1;
}
JSXElementName::JSXMemberExpr(member)
}
}
}
/// Generate a member expression from an object and prop.
pub fn create_jsx_member(obj: JSXObject, prop: IdentName) -> JSXMemberExpr {
JSXMemberExpr {
span: DUMMY_SP,
obj,
prop,
}
}
/// Turn an JSX element name into an expression.
pub fn jsx_element_name_to_expression(node: JSXElementName) -> Expr {
match node {
JSXElementName::JSXMemberExpr(member_expr) => {
jsx_member_expression_to_expression(member_expr)
}
JSXElementName::JSXNamespacedName(namespace_name) => create_str_expression(&format!(
"{}:{}",
namespace_name.ns.sym, namespace_name.name.sym
)),
JSXElementName::Ident(ident) => create_ident_or_literal(&ident),
}
}
/// Create a JSX attribute name.
pub fn create_jsx_attr_name_from_str(name: &str) -> JSXAttrName {
match parse_jsx_name(name) {
JsxName::Member(_) => {
unreachable!("member expressions in attribute names are not supported")
}
// `<a b:c />`
JsxName::Namespace(ns, name) => JSXAttrName::JSXNamespacedName(JSXNamespacedName {
span: DUMMY_SP,
ns: create_ident(ns),
name: create_ident(name),
}),
// `<a b />`
JsxName::Normal(name) => JSXAttrName::Ident(create_ident(name)),
}
}
/// Turn a JSX member expression name into a member expression.
pub fn jsx_member_expression_to_expression(node: JSXMemberExpr) -> Expr {
Expr::Member(create_member(
jsx_object_to_expression(node.obj),
ident_to_member_prop(&node.prop),
))
}
/// Turn an ident into a member prop.
pub fn ident_to_member_prop(node: &IdentName) -> MemberProp {
if is_identifier_name(node.as_ref()) {
MemberProp::Ident(IdentName {
sym: node.sym.clone(),
span: node.span,
})
} else {
MemberProp::Computed(ComputedPropName {
expr: Box::new(create_str_expression(&node.sym)),
span: node.span,
})
}
}
/// Turn a JSX attribute name into a prop prop.
pub fn jsx_attribute_name_to_prop_name(node: JSXAttrName) -> PropName {
match node {
JSXAttrName::JSXNamespacedName(namespace_name) => create_prop_name(&format!(
"{}:{}",
namespace_name.ns.sym, namespace_name.name.sym
)),
JSXAttrName::Ident(ident) => create_prop_name(&ident.sym),
}
}
/// Turn a JSX object into an expression.
pub fn jsx_object_to_expression(node: JSXObject) -> Expr {
match node {
JSXObject::Ident(ident) => create_ident_or_literal(&ident),
JSXObject::JSXMemberExpr(member_expr) => jsx_member_expression_to_expression(*member_expr),
}
}
/// Create either an ident expression or a literal expression.
pub fn create_ident_or_literal(node: &Ident) -> Expr {
if is_identifier_name(node.as_ref()) {
create_ident_expression(node.sym.as_ref())
} else {
create_str_expression(&node.sym)
}
}
/// Create a prop name.
pub fn create_prop_name(name: &str) -> PropName {
if is_identifier_name(name) {
PropName::Ident(create_ident(name))
} else {
PropName::Str(create_str(name))
}
}
/// Check if a name is a literal tag name or an identifier to a component.
pub fn is_literal_name(name: &str) -> bool {
matches!(name.as_bytes().first(), Some(b'a'..=b'z')) || !is_identifier_name(name)
}
/// Check if a name is a valid identifier name.
pub fn is_identifier_name(name: &str) -> bool {
for (index, char) in name.chars().enumerate() {
if if index == 0 {
!id_start(char)
} else {
!id_cont(char, false)
} {
return false;
}
}
true
}
/// Different kinds of JS names.
pub enum JsName<'a> {
/// Member: `a.b.c`
Member(Vec<&'a str>),
/// Name: `a`
Normal(&'a str),
}
/// Different kinds of JSX names.
pub enum JsxName<'a> {
/// Member: `a.b.c`
Member(Vec<&'a str>),
/// Namespace: `a:b`
Namespace(&'a str, &'a str),
/// Name: `a`
Normal(&'a str),
}
/// Parse a JavaScript member expression or name.
pub fn parse_js_name(name: &str) -> JsName {
let bytes = name.as_bytes();
let mut index = 0;
let mut start = 0;
let mut parts = vec![];
while index < bytes.len() {
if bytes[index] == b'.' {
parts.push(&name[start..index]);
start = index + 1;
}
index += 1;
}
// `a`
if parts.is_empty() {
JsName::Normal(name)
}
// `a.b.c`
else {
parts.push(&name[start..]);
JsName::Member(parts)
}
}
/// Parse a JSX name from a string.
pub fn parse_jsx_name(name: &str) -> JsxName {
match parse_js_name(name) {
// `<a.b.c />`
JsName::Member(parts) => JsxName::Member(parts),
JsName::Normal(name) => {
// `<a:b />`
if let Some(colon) = name.as_bytes().iter().position(|d| matches!(d, b':')) {
JsxName::Namespace(&name[0..colon], &name[(colon + 1)..])
}
// `<a />`
else {
JsxName::Normal(name)
}
}
}
}
/// Get the identifiers used in a JSX member expression.
///
/// `Foo.Bar` -> `vec!["Foo", "Bar"]`
pub fn jsx_member_to_parts(node: &JSXMemberExpr) -> Vec<&str> {
let mut parts = vec![];
let mut member_opt = Some(node);
while let Some(member) = member_opt {
parts.push(member.prop.sym.as_ref());
match &member.obj {
JSXObject::Ident(d) => {
parts.push(d.sym.as_ref());
member_opt = None;
}
JSXObject::JSXMemberExpr(node) => {
member_opt = Some(node);
}
}
}
parts.reverse();
parts
}
/// Check if a text value is inter-element whitespace.
///
/// See: <https://github.com/syntax-tree/hast-util-whitespace>.
pub fn inter_element_whitespace(value: &str) -> bool {
let bytes = value.as_bytes();
let mut index = 0;
while index < bytes.len() {
match bytes[index] {
b'\t' | 0x0C | b'\r' | b'\n' | b' ' => {}
_ => return false,
}
index += 1;
}
true
}
#[cfg(test)]
mod tests {
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn bytepos_to_point_test() {
assert_eq!(
bytepos_to_point(BytePos(123), None),
None,
"should support no location"
);
}
#[test]
fn position_opt_to_string_test() {
assert_eq!(
position_opt_to_string(None),
"0:0",
"should support no position"
);
}
#[test]
fn jsx_member_to_parts_test() {
assert_eq!(
jsx_member_to_parts(&JSXMemberExpr {
span: DUMMY_SP,
prop: create_ident("a"),
obj: JSXObject::Ident(create_ident("b").into())
}),
vec!["b", "a"],
"should support a member with 2 items"
);
assert_eq!(
jsx_member_to_parts(&JSXMemberExpr {
span: DUMMY_SP,
prop: create_ident("a"),
obj: JSXObject::JSXMemberExpr(Box::new(JSXMemberExpr {
span: DUMMY_SP,
prop: create_ident("b"),
obj: JSXObject::JSXMemberExpr(Box::new(JSXMemberExpr {
span: DUMMY_SP,
prop: create_ident("c"),
obj: JSXObject::Ident(create_ident("d").into())
}))
}))
}),
vec!["d", "c", "b", "a"],
"should support a member with 4 items"
);
}
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
tests/test.rs | Rust | extern crate mdxjs;
use mdxjs::{compile, JsxRuntime, Options};
use pretty_assertions::assert_eq;
#[test]
fn simple() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("", &Options::default())?,
"import { Fragment as _Fragment, jsx as _jsx } from \"react/jsx-runtime\";
function _createMdxContent(props) {
return _jsx(_Fragment, {});
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? _jsx(MDXLayout, Object.assign({}, props, {
children: _jsx(_createMdxContent, props)
})) : _createMdxContent(props);
}
export default MDXContent;
",
"should work",
);
Ok(())
}
#[test]
fn development() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<A />", &Options {
development: true,
filepath: Some("example.mdx".into()),
..Default::default()
})?,
"import { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";
function _createMdxContent(props) {
const { A } = props.components || {};
if (!A) _missingMdxReference(\"A\", true, \"1:1-1:6\");
return _jsxDEV(A, {}, undefined, false, {
fileName: \"example.mdx\",
lineNumber: 1,
columnNumber: 1
}, this);
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? _jsxDEV(MDXLayout, Object.assign({}, props, {
children: _jsxDEV(_createMdxContent, props, undefined, false, {
fileName: \"example.mdx\"
}, this)
}), undefined, false, {
fileName: \"example.mdx\"
}, this) : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component, place) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\" + (place ? \"\\nIt’s referenced in your code at `\" + place + \"` in `example.mdx`\" : \"\"));
}
",
"should support `options.development: true`",
);
Ok(())
}
#[test]
fn provider() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("<A />", &Options {
provider_import_source: Some("@mdx-js/react".into()),
..Default::default()
})?,
"import { jsx as _jsx } from \"react/jsx-runtime\";
import { useMDXComponents as _provideComponents } from \"@mdx-js/react\";
function _createMdxContent(props) {
const { A } = Object.assign({}, _provideComponents(), props.components);
if (!A) _missingMdxReference(\"A\", true);
return _jsx(A, {});
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? _jsx(MDXLayout, Object.assign({}, props, {
children: _jsx(_createMdxContent, props)
})) : _createMdxContent(props);
}
export default MDXContent;
function _missingMdxReference(id, component) {
throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");
}
",
"should support `options.provider_import_source`",
);
Ok(())
}
#[test]
fn jsx() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("", &Options {
jsx: true,
..Default::default()
})?,
"function _createMdxContent(props) {
return <></>;
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? <MDXLayout {...props}><_createMdxContent {...props}/></MDXLayout> : _createMdxContent(props);
}
export default MDXContent;
",
"should support `options.jsx: true`",
);
Ok(())
}
#[test]
fn classic() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("", &Options {
jsx_runtime: Some(JsxRuntime::Classic),
..Default::default()
})?,
"import React from \"react\";
function _createMdxContent(props) {
return React.createElement(React.Fragment);
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? React.createElement(MDXLayout, props, React.createElement(_createMdxContent, props)) : _createMdxContent(props);
}
export default MDXContent;
",
"should support `options.jsx_runtime: JsxRuntime::Classic`",
);
Ok(())
}
#[test]
fn import_source() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"",
&Options {
jsx_import_source: Some("preact".into()),
..Default::default()
}
)?,
"import { Fragment as _Fragment, jsx as _jsx } from \"preact/jsx-runtime\";
function _createMdxContent(props) {
return _jsx(_Fragment, {});
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? _jsx(MDXLayout, Object.assign({}, props, {
children: _jsx(_createMdxContent, props)
})) : _createMdxContent(props);
}
export default MDXContent;
",
"should support `options.jsx_import_source: Some(\"preact\".into())`",
);
Ok(())
}
#[test]
fn pragmas() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("", &Options {
jsx_runtime: Some(JsxRuntime::Classic),
pragma: Some("a.b".into()),
pragma_frag: Some("a.c".into()),
pragma_import_source: Some("d".into()),
..Default::default()
})?,
"import a from \"d\";
function _createMdxContent(props) {
return a.b(a.c);
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? a.b(MDXLayout, props, a.b(_createMdxContent, props)) : _createMdxContent(props);
}
export default MDXContent;
",
"should support `options.pragma`, `options.pragma_frag`, `options.pragma_import_source`",
);
Ok(())
}
#[test]
fn unravel_elements() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"<x>a</x>
<x>
b
</x>
",
&Default::default()
)?,
"import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";
function _createMdxContent(props) {
const _components = Object.assign({
x: \"x\",
p: \"p\"
}, props.components);
return _jsxs(_Fragment, {
children: [
_jsx(\"x\", {
children: \"a\"
}),
\"\\n\",
_jsx(\"x\", {
children: _jsx(_components.p, {
children: \"b\"
})
})
]
});
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? _jsx(MDXLayout, Object.assign({}, props, {
children: _jsx(_createMdxContent, props)
})) : _createMdxContent(props);
}
export default MDXContent;
",
"should unravel paragraphs (1)",
);
Ok(())
}
#[test]
fn unravel_expressions() -> Result<(), markdown::message::Message> {
assert_eq!(
compile("{1} {2}", &Default::default())?,
"import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";
function _createMdxContent(props) {
return _jsxs(_Fragment, {
children: [
1,
\"\\n\",
\" \",
\"\\n\",
2
]
});
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? _jsx(MDXLayout, Object.assign({}, props, {
children: _jsx(_createMdxContent, props)
})) : _createMdxContent(props);
}
export default MDXContent;
",
"should unravel paragraphs (2)",
);
Ok(())
}
#[test]
fn explicit_jsx() -> Result<(), markdown::message::Message> {
assert_eq!(
compile(
"<h1>asd</h1>
# qwe
",
&Default::default()
)?,
"import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";
function _createMdxContent(props) {
const _components = Object.assign({
h1: \"h1\"
}, props.components);
return _jsxs(_Fragment, {
children: [
_jsx(\"h1\", {
children: \"asd\"
}),
\"\\n\",
_jsx(_components.h1, {
children: \"qwe\"
})
]
});
}
function MDXContent(props = {}) {
const { wrapper: MDXLayout } = props.components || {};
return MDXLayout ? _jsx(MDXLayout, Object.assign({}, props, {
children: _jsx(_createMdxContent, props)
})) : _createMdxContent(props);
}
export default MDXContent;
",
"should not support overwriting explicit JSX",
);
Ok(())
}
#[test]
fn err_esm_invalid() {
assert_eq!(
compile("import 1/1", &Default::default())
.err()
.unwrap()
.to_string(),
"1:8: Could not parse esm with swc: Expected 'from', got 'numeric literal (1, 1)' (mdxjs-rs:swc)",
"should crash on invalid code in ESM",
);
}
#[test]
fn err_expression_broken_multiline_comment_a() {
assert_eq!(
compile("{x/*}", &Default::default())
.err()
.unwrap()
.to_string(),
"1:6: Could not parse expression with swc: Unterminated block comment (mdxjs-rs:swc)",
"should crash on an unclosed block comment after an expression",
);
}
#[test]
fn err_expression_broken_multiline_comment_b() {
assert_eq!(
compile("{/*x}", &Default::default())
.err()
.unwrap()
.to_string(),
"1:6: Could not parse expression with swc: Unexpected eof (mdxjs-rs:swc)",
"should crash on an unclosed block comment in an empty expression",
);
}
#[test]
fn err_expression_broken_multiline_comment_c() {
assert!(
compile("{/*a*/}", &Default::default()).is_ok(),
"should support a valid multiline comment",
);
}
#[test]
fn err_expression_broken_line_comment_a() {
assert_eq!(
compile("{x//}", &Default::default()).err().unwrap().to_string(),
"1:6: Could not parse expression with swc: Unexpected unclosed line comment, expected line ending: `\\n` (mdxjs-rs:swc)",
"should crash on an unclosed line comment after an expression",
);
}
#[test]
fn err_expression_broken_line_comment_b() {
assert_eq!(
compile("{//x}", &Default::default())
.err()
.unwrap()
.to_string(),
"1:6: Could not parse expression with swc: Unexpected eof (mdxjs-rs:swc)",
"should crash on an unclosed line comment in an empty expression",
);
}
#[test]
fn err_expression_broken_line_comment_c() {
assert!(
compile("{//a\n}", &Default::default()).is_ok(),
"should support a valid line comment",
);
}
#[test]
fn err_esm_stmt() {
assert_eq!(
compile("export let a = 1\nlet b = 2", &Default::default())
.err()
.unwrap()
.to_string(),
"2:10: Unexpected statement in code: only import/exports are supported (mdxjs-rs:swc)",
"should crash on statements in ESM",
);
}
#[test]
fn err_expression_invalid() {
assert_eq!(
compile("{!}", &Default::default())
.err()
.unwrap()
.to_string(),
"1:4: Could not parse expression with swc: Unexpected eof (mdxjs-rs:swc)",
"should crash on invalid code in an expression",
);
}
#[test]
fn err_expression_multi() {
assert_eq!(
compile("{x; y}", &Default::default())
.err()
.unwrap()
.to_string(),
"1:7: Could not parse expression with swc: Unexpected content after expression (mdxjs-rs:swc)",
"should crash on more content after an expression",
);
}
#[test]
fn err_expression_empty() {
assert!(
compile("a {} b", &Default::default()).is_ok(),
"should support an empty expression",
);
}
#[test]
fn err_expression_comment() {
assert!(
compile("a { /* b */ } c", &Default::default()).is_ok(),
"should support a comment in an empty expression",
);
}
#[test]
fn err_expression_value_empty() {
assert_eq!(
compile("<a b={ } />", &Default::default())
.err()
.unwrap()
.to_string(),
"1:12: Could not parse expression with swc: Unexpected eof (mdxjs-rs:swc)",
"should crash on an empty value expression",
);
}
#[test]
fn err_expression_value_invalid() {
assert_eq!(
compile("<a b={!} />", &Default::default())
.err()
.unwrap()
.to_string(),
"1:12: Could not parse expression with swc: Unexpected eof (mdxjs-rs:swc)",
"should crash on an invalid value expression",
);
}
#[test]
fn err_expression_value_comment() {
assert_eq!(
compile("<a b={ /*c*/ } />", &Default::default())
.err()
.unwrap()
.to_string(),
"1:18: Could not parse expression with swc: Unexpected eof (mdxjs-rs:swc)",
"should crash on a value expression with just a comment",
);
}
#[test]
fn err_expression_value_extra_comment() {
assert!(
compile("<a b={1 /*c*/ } />", &Default::default()).is_ok(),
"should support a value expression with a comment",
);
}
#[test]
fn err_expression_spread_none() {
assert_eq!(
compile("<a {x} />", &Default::default()).err().unwrap().to_string(),
"1:5: Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`) (mdxjs-rs:swc)",
"should crash on a non-spread",
);
}
#[test]
fn err_expression_spread_multi_1() {
assert_eq!(
compile("<a {...x; y} />", &Default::default())
.err()
.unwrap()
.to_string(),
"1:9: Could not parse expression with swc: Expected ',', got ';' (mdxjs-rs:swc)",
"should crash on more content after a (spread) expression (1)",
);
}
#[test]
fn err_expression_spread_multi_2() {
assert_eq!(
compile("<a {...x, y} />", &Default::default()).err().unwrap().to_string(),
"1:5: Unexpected extra content in spread (such as `{...x,y}`): only a single spread is supported (such as `{...x}`) (mdxjs-rs:swc)",
"should crash on more content after a (spread) expression (2)",
);
}
#[test]
fn err_expression_spread_empty() {
assert_eq!(
compile("<a {...} />", &Default::default())
.err()
.unwrap()
.to_string(),
"1:12: Could not parse expression with swc: Expression expected (mdxjs-rs:swc)",
"should crash on an empty spread expression",
);
}
#[test]
fn err_expression_spread_invalid() {
assert_eq!(
compile("<a {...?} />", &Default::default())
.err()
.unwrap()
.to_string(),
"1:13: Could not parse expression with swc: Expression expected (mdxjs-rs:swc)",
"should crash on an invalid spread expression",
);
}
#[test]
fn err_expression_spread_extra_comment() {
assert!(
compile("<a {...b /*c*/ } />", &Default::default()).is_ok(),
"should support a spread expression with a comment",
);
}
| wooorm/mdxjs-rs | 521 | Compile MDX to JavaScript in Rust | Rust | wooorm | Titus | |
script/analyze.js | JavaScript | /**
* @import {Element} from 'hast'
* @import {Style} from './crawl.js'
*/
import fs from 'node:fs/promises'
import path from 'node:path'
import {csvFormat} from 'd3-dsv'
import {s} from 'hastscript'
import {toHtml} from 'hast-util-to-html'
const filesRaw = await fs.readdir(new URL('../data', import.meta.url))
/** @type {Array<string>} */
const datasets = []
for (const name of filesRaw) {
const extension = path.extname(name)
if (extension === '.json') {
const base = path.basename(name, extension)
// Only check date and `latest`.
if (/^\d{4}-\d{2}-\d{2}/.test(base) || base === 'latest') {
datasets.push(base)
}
}
}
/** @type {Array<Element | string>} */
const rows = []
const gutter = 32
const viewBox = {
height: filesRaw.length * (32 + gutter) + gutter,
width: 1024
}
const styles = datasets.length
const height = (viewBox.height - gutter * (styles + 1)) / styles
let accumulatedY = gutter
/** @type {Array<Record<string, number | string>>} */
const allCounts = []
for (const name of datasets) {
/** @type {Record<string, Style>} */
const data = JSON.parse(
String(
await fs.readFile(new URL('../data/' + name + '.json', import.meta.url))
)
)
/** @type {Record<Style, number>} */
// Note: sort order is important.
const counts = {esm: 0, dual: 0, faux: 0, cjs: 0}
let total = 0
for (const name in data) {
if (Object.hasOwn(data, name) && !name.startsWith('@types/')) {
counts[data[name]]++
total++
}
}
let accumulatedX = gutter
/** @type {Array<Element | string>} */
const cells = []
/** @type {Array<Element | string>} */
const labels = []
for (const key in counts) {
if (Object.hasOwn(counts, key)) {
const style = /** @type {Style} */ (key)
const value = counts[style]
const width = (value / total) * (viewBox.width - gutter * 2)
cells.push(
'\n',
s('rect', {
className: [style],
height,
width,
x: accumulatedX,
y: accumulatedY
})
)
labels.push(
'\n',
s(
'text',
{
textAnchor: 'middle',
transform:
'translate(' +
(accumulatedX + width / 2) +
', ' +
(accumulatedY + height / 2) +
')' +
(width < 128 ? ' rotate(-45)' : '')
},
((value / total) * 100).toFixed(1) + '%'
)
)
accumulatedX += width
}
}
// Add row label.
labels.push(
'\n',
s(
'text',
{
x: accumulatedX + gutter,
y: accumulatedY + height / 2
},
name
)
)
rows.push(s('g', [...cells, ...labels, '\n']))
accumulatedY += height
accumulatedY += gutter
allCounts.push({date: name, total, ...counts})
console.log()
console.log(name)
console.log('raw data: %j (total: %s)', counts, total)
}
const styleLabels = ['esm', 'dual', 'faux', 'cjs']
const width = 96
let accumulatedX = gutter
/** @type {Array<string | Element>} */
const cells = []
/** @type {Array<string | Element>} */
const labels = []
for (const style of styleLabels) {
cells.push(
'\n',
s('rect', {
className: [style],
height,
width,
x: accumulatedX,
y: accumulatedY
})
)
labels.push(
'\n',
s(
'text',
{
textAnchor: 'middle',
transform:
'translate(' +
(accumulatedX + width / 2) +
', ' +
(accumulatedY + height / 2) +
')'
},
style
)
)
accumulatedX += width + gutter
}
rows.push('\n', s('g', [...cells, ...labels]), '\n')
viewBox.width += 192 // Enough space for labels of rows.
viewBox.height += gutter + height // Legend.
const tree = s(
'svg',
{
viewBox: [0, 0, viewBox.width, viewBox.height].join(' '),
xmlns: 'http://www.w3.org/2000/svg'
},
[
s('title', 'ESM vs. CJS on npm'),
'\n',
s(
'style',
`
text { font-size: 24px; font-weight: bolder; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; font-variant-numeric: tabular-nums; paint-order: stroke; dominant-baseline: middle; }
.b { fill: white; }
.esm { fill: white; }
.dual { fill: url(#a); }
.faux { fill: url(#b); }
.cjs { fill: url(#c); }
.esm, .dual, .faux, .cjs { stroke: #0d1117; stroke-width: 3px; }
text { fill: #0d1117; stroke: white; stroke-width: 3px; }
pattern line { stroke: #0d1117; stroke-width: 2px }
pattern rect { fill: #0d1117 }
@media (prefers-color-scheme: dark) {
.b { fill: #0d1117; }
.cjs, .dual, .esm, .faux { stroke: white; }
.esm { fill: #0d1117; }
text { fill: white; stroke: #0d1117; }
pattern line { stroke: white; }
pattern rect { fill: white }
}
`
),
'\n',
s('defs', [
'\n',
s(
'pattern#a',
{height: 6, patternUnits: 'userSpaceOnUse', width: 6, x: 0, y: 0},
[s('line', {x1: 0, y1: 0, x2: 0, y2: 6})]
),
'\n',
s(
'pattern#b',
{height: 6, patternUnits: 'userSpaceOnUse', width: 6, x: 0, y: 0},
[s('line', {x1: 0, y1: 0, x2: 6, y2: 0})]
),
'\n',
s(
'pattern#c',
{height: 6, patternUnits: 'userSpaceOnUse', width: 6, x: 0, y: 0},
[s('rect', {height: 1, width: 1, x: 0, y: 0})]
)
]),
'\n',
s('rect.b', {height: viewBox.height, width: viewBox.width, x: 0, y: 0}),
'\n',
s('g', ...rows),
'\n'
]
)
const document = toHtml(tree, {space: 'svg'})
await fs.writeFile(new URL('../index.svg', import.meta.url), document + '\n')
await fs.writeFile(
new URL('../index.csv', import.meta.url),
csvFormat(allCounts) + '\n'
)
| wooorm/npm-esm-vs-cjs | 243 | Data on the share of ESM vs CJS on the public npm registry | JavaScript | wooorm | Titus | |
script/crawl.js | JavaScript | /**
* @import {PackumentResult, Packument} from 'pacote'
*/
/**
* @typedef {'cjs' | 'dual' | 'esm' | 'faux'} Style
* Style.
*/
import fs from 'node:fs/promises'
import process from 'node:process'
import dotenv from 'dotenv'
import {npmHighImpact} from 'npm-high-impact'
import pacote from 'pacote'
dotenv.config()
const token = process.env.NPM_TOKEN
if (!token) {
throw new Error(
'Expected `NPM_TOKEN` in env, please add a `.env` file with it'
)
}
let slice = 0
const size = 20
const now = new Date()
const destination = new URL(
'../data/' +
String(now.getUTCFullYear()).padStart(4, '0') +
'-' +
String(now.getUTCMonth() + 1).padStart(2, '0') +
'-' +
String(now.getUTCDate()).padStart(2, '0') +
'.json',
import.meta.url
)
/** @type {Record<string, Style | undefined>} */
const allResults = {}
console.error('fetching %s packages', npmHighImpact.length)
// eslint-disable-next-line no-constant-condition
while (true) {
const names = npmHighImpact.slice(slice * size, (slice + 1) * size)
if (names.length === 0) {
break
}
console.error(
'fetching page: %s, collected total: %s out of %s',
slice,
slice * size,
npmHighImpact.length
)
const promises = names.map(async function (name) {
/** @type {Packument & PackumentResult} */
let result
try {
result = await pacote.packument(name, {
fullMetadata: true,
preferOffline: true,
token
})
} catch (error) {
const cause = /** @type {Error} */ (error)
console.error(
'package w/ error: %s, likely spam: %s',
name,
cause.message
)
/** @type {[string, Style | undefined]} */
const info = [name, undefined]
return info
}
/** @type {[string, Style | undefined]} */
const info = [name, analyzePackument(result)]
return info
})
/** @type {Array<[string, Style | undefined]>} */
let results
try {
results = await Promise.all(promises)
} catch (error) {
console.error(error)
console.error('sleeping for 10s…')
await sleep(10 * 1000)
continue
}
for (const [name, style] of results) {
allResults[name] = style
if (style) console.error(' add: %s (%s)', name, style)
}
// Intermediate writes to help debugging and seeing some results early.
setTimeout(async function () {
await fs.writeFile(
destination,
JSON.stringify(allResults, undefined, 2) + '\n'
)
})
slice++
}
await fs.writeFile(destination, JSON.stringify(allResults, undefined, 2) + '\n')
console.error('done!')
/**
* @param {number} ms
* Miliseconds to sleep.
* @returns {Promise<undefined>}
* Nothing.
*/
function sleep(ms) {
return new Promise(function (resolve) {
setTimeout(function () {
resolve(undefined)
}, ms)
})
}
/**
* @param {Packument & PackumentResult} result
* Result.
* @returns {Style | undefined}
* Style.
*/
function analyzePackument(result) {
const latest = (result['dist-tags'] || {}).latest
// Some spam packages were removed. They might still be in the list tho.
if (!latest) {
console.error('package w/o `latest`: %s, likely spam', result.name)
return
}
const packument = (result.versions || {})[latest]
if (
typeof packument.repository === 'string' &&
packument.repository === 'npm/security-holder'
) {
console.error('security-holder package: %s, likely spam', result.name)
return
}
if (
(packument.readme &&
packument.readme.length < 100 &&
/tea protocol/.test(packument.readme)) ||
/tea protocol/.test(packument.description || '') ||
/tea\.xyz/.test(packument.description || '') ||
/^tea-?[a-z\d]+$/.test(packument.name)
) {
console.error('tea protocol package: %s, likely spam', result.name)
return
}
if (
packument.description &&
packument.description.startsWith(
'This is a [Next.js](https://nextjs.org/) project'
)
) {
console.error('bootstrapped next project: %s, likely spam', result.name)
return
}
if (/^sum-[a-z\d]+$/.test(packument.name)) {
console.error('weird vietnamese package %s, likely spam', result.name)
return
}
if (
packument._npmUser &&
([
'alexkingmax',
'doelsumbing87',
'herzxxvi',
'hoangthuylinh',
'jarwok',
'jazuli',
'lank831011',
'manhcuongsev',
'ramunakea',
'tinhkhucvang',
'tinhmotdem',
'vanli',
'walletelectorsim'
].includes(packument._npmUser.name) ||
/^haquang\d+$/.test(packument._npmUser.name) ||
/^haquanghuy\d+$/.test(packument._npmUser.name) ||
/^quanghuyha\d+$/.test(packument._npmUser.name))
) {
console.error(
'known spam author (%s): %s, likely spam',
packument._npmUser.name,
result.name
)
return
}
const {exports, main, type} = packument
/** @type {boolean | undefined} */
let cjs
/** @type {boolean | undefined} */
let esm
/** @type {boolean | undefined} */
let fauxEsm
if (packument.module) {
fauxEsm = true
}
// Check exports map.
if (exports) {
analyzeThing(exports, packument.name + '#exports')
}
// Explicit `commonjs` set, with a explicit `import` or `.mjs` too.
if (esm && type === 'commonjs') {
cjs = true
}
// Explicit `module` set, with explicit `require` or `.cjs` too.
if (cjs && type === 'module') {
esm = true
}
// If there are no explicit exports:
if (cjs === undefined && esm === undefined) {
if (type === 'module' || (main && /\.mjs$/.test(main))) {
esm = true
} else {
cjs = true
}
}
/** @type {Style} */
const style = esm && cjs ? 'dual' : esm ? 'esm' : fauxEsm ? 'faux' : 'cjs'
return style
/**
* @param {unknown} value
* Thing.
* @param {string} path
* Path in `package.json`.
* @returns {undefined}
* Nothing.
*/
function analyzeThing(value, path) {
if (value && typeof value === 'object') {
if (Array.isArray(value)) {
const values = /** @type {Array<unknown>} */ (value)
let index = -1
while (++index < values.length) {
analyzeThing(values[index], path + '[' + index + ']')
}
} else {
// Cast as indexing on object is fine.
const record = /** @type {Record<string, unknown>} */ (value)
let dots = false
for (const [key, subvalue] of Object.entries(record)) {
if (key.charAt(0) !== '.') break
analyzeThing(subvalue, path + '["' + key + '"]')
dots = true
}
if (dots) return
let explicit = false
const conditionImport = Boolean('import' in record && record.import)
const conditionRequire = Boolean('require' in record && record.require)
const conditionDefault = Boolean('default' in record && record.default)
if (conditionImport || conditionRequire) {
explicit = true
}
if (conditionImport || (conditionRequire && conditionDefault)) {
esm = true
}
if (conditionRequire || (conditionImport && conditionDefault)) {
cjs = true
}
const defaults = record.node || record.default
if (typeof defaults === 'string' && !explicit) {
if (/\.mjs$/.test(defaults)) esm = true
if (/\.cjs$/.test(defaults)) cjs = true
}
}
} else if (typeof value === 'string') {
if (/\.mjs$/.test(value)) esm = true
if (/\.cjs$/.test(value)) cjs = true
} else if (value === null) {
// Something explicitly not available,
// for a particular condition,
// or before a glob which would allow it.
} else {
console.error('unknown:', [value], path)
}
}
}
| wooorm/npm-esm-vs-cjs | 243 | Data on the share of ESM vs CJS on the public npm registry | JavaScript | wooorm | Titus | |
index.js | JavaScript | export {npmHighImpact, npmTopDependents, npmTopDownloads} from './lib/index.js'
| wooorm/npm-high-impact | 100 | The high-impact (popular) packages of npm | JavaScript | wooorm | Titus | |
lib/index.js | JavaScript | export {top as npmHighImpact} from './top.js'
export {topDependent as npmTopDependents} from './top-dependent.js'
export {topDownload as npmTopDownloads} from './top-download.js'
| wooorm/npm-high-impact | 100 | The high-impact (popular) packages of npm | JavaScript | wooorm | Titus | |
lib/top-dependent.js | JavaScript | export const topDependent = [
'typescript',
'eslint',
'react',
'mocha',
'@types/node',
'jest',
'prettier',
'webpack',
'react-dom',
'@babel/core',
'babel-loader',
'eslint-plugin-import',
'rimraf',
'chai',
'@types/jest',
'lodash',
'@babel/preset-env',
'babel-eslint',
'babel-core',
'husky',
'rollup',
'chalk',
'@typescript-eslint/eslint-plugin',
'@typescript-eslint/parser',
'tslib',
'ts-node',
'eslint-config-prettier',
'webpack-cli',
'@types/react',
'ts-jest',
'css-loader',
'eslint-plugin-react',
'eslint-plugin-prettier',
'cross-env',
'babel-cli',
'axios',
'vue',
'express',
'babel-preset-es2015',
'autoprefixer',
'webpack-dev-server',
'babel-preset-env',
'style-loader',
'tslint',
'@babel/cli',
'lint-staged',
'gulp',
'sass-loader',
'node-sass',
'commander',
'fs-extra',
'sinon',
'vue-template-compiler',
'@types/react-dom',
'core-js',
'babel-jest',
'@babel/preset-react',
'html-webpack-plugin',
'@rollup/plugin-node-resolve',
'nyc',
'file-loader',
'eslint-plugin-promise',
'prop-types',
'eslint-plugin-node',
'request',
'eslint-plugin-jsx-a11y',
'@rollup/plugin-commonjs',
'moment',
'coveralls',
'npm-run-all',
'karma',
'babel-preset-react',
'@types/mocha',
'eslint-config-standard',
'postcss-loader',
'eslint-plugin-standard',
'glob',
'inquirer',
'@babel/plugin-proposal-class-properties',
'eslint-plugin-vue',
'url-loader',
'debug',
'@babel/runtime',
'ts-loader',
'react-scripts',
'rollup-plugin-node-resolve',
'sass',
'istanbul',
'rollup-plugin-terser',
'eslint-config-airbnb',
'rollup-plugin-babel',
'@testing-library/react',
'semver',
'yargs',
'dotenv',
'@babel/plugin-transform-runtime',
'rxjs',
'@vue/cli-service',
'uuid',
'eslint-plugin-react-hooks',
'rollup-plugin-commonjs',
'@storybook/react',
'@babel/preset-typescript',
'karma-chrome-launcher',
'@vue/cli-plugin-babel',
'eslint-config-airbnb-base',
'@types/lodash',
'grunt',
'less',
'postcss',
'nodemon',
'rollup-plugin-typescript2',
'tape',
'@types/chai',
'extract-text-webpack-plugin',
'@testing-library/jest-dom',
'@storybook/addon-links',
'async',
'antd',
'vue-loader',
'@vue/cli-plugin-eslint',
'babel-preset-stage-0',
'typedoc',
'semantic-release',
'babel-plugin-transform-runtime',
'classnames',
'node-fetch',
'mkdirp',
'ava',
'ora',
'minimist',
'standard',
'react-test-renderer',
'@commitlint/config-conventional',
'shelljs',
'vue-router',
'@testing-library/user-event',
'webpack-merge',
'jsdom',
'@rollup/plugin-typescript',
'@storybook/addon-actions',
'@storybook/addon-essentials',
'vite',
'babel-runtime',
'browserify',
'less-loader',
'@commitlint/cli',
'eslint-loader',
'babel-polyfill',
'gh-pages',
'@types/hyper-function-component',
'bluebird',
'eslint-plugin-jest',
'enzyme',
'should',
'colors',
'styled-components',
'@types/express',
'karma-jasmine',
'rollup-plugin-postcss',
'babel-register',
'jquery',
'@rollup/plugin-babel',
'jasmine-core',
'rollup-plugin-peer-deps-external',
'body-parser',
'uglify-js',
'babel-plugin-transform-object-rest-spread',
'gulp-rename',
'@angular/core',
'del',
'cz-conventional-changelog',
'mini-css-extract-plugin',
'babel-preset-stage-2',
'underscore',
'copy-webpack-plugin',
'@angular/common',
'tslint-config-prettier',
'@angular/compiler',
'@types/jasmine',
'react-native',
'sinon-chai',
'zone.js',
'tsup',
'react-router-dom',
'uglifyjs-webpack-plugin',
'@angular/platform-browser',
'webpack-bundle-analyzer',
'optimize-css-assets-webpack-plugin',
'@angular/compiler-cli',
'clean-webpack-plugin',
'jsonwebtoken',
'reflect-metadata',
'gulp-uglify',
'terser-webpack-plugin',
'redux',
'stylelint',
'@angular/platform-browser-dynamic',
'@ant-design/web3-common',
'@ant-design/web3-icons',
'js-yaml',
'grunt-contrib-jshint',
'karma-mocha',
'path',
'concurrently',
'commitizen',
'babel',
'standard-version',
'cheerio',
'karma-coverage',
'codecov',
'eslint-plugin-flowtype',
'@rollup/plugin-json',
'del-cli',
'jshint',
'source-map-support',
'enzyme-adapter-react-16',
'ws',
'supertest',
'@babel/plugin-proposal-object-rest-spread',
'@angular/forms',
'@babel/polyfill',
'@babel/register',
'tsdx',
'react-redux',
'babel-plugin-add-module-exports',
'web-vitals',
'@vitejs/plugin-vue',
'karma-webpack',
'babel-plugin-transform-class-properties',
'gulp-util',
'bootstrap',
'through2',
'chokidar',
'execa',
'vuex',
'@angular/router',
'@types/fs-extra',
'gulp-babel',
'rollup-plugin-uglify',
'chai-as-promised',
'@babel/eslint-parser',
'puppeteer',
'winston',
'coffee-script',
'@storybook/addon-interactions',
'case-sensitive-paths-webpack-plugin',
'grunt-contrib-watch',
'release-it',
'@types/styled-components',
'graphql',
'aws-sdk',
'esbuild',
'qs',
'gulp-sourcemaps',
'@angular/cli',
'@types/uuid',
'raw-loader',
'handlebars',
'rollup-plugin-dts',
'@types/react-native',
'@angular/animations',
'@types/inquirer',
'grunt-contrib-clean',
'ejs',
'jest-cli',
'karma-jasmine-html-reporter',
'vue-style-loader',
'dayjs',
'@rollup/plugin-replace',
'webpack-node-externals',
'jsdoc',
'@storybook/testing-library',
'ajv',
'flow-bin',
'codelyzer',
'json-loader',
'@vue/test-utils',
'gulp-sass',
'karma-phantomjs-launcher',
'cross-spawn',
'jasmine',
'fs',
'element-ui',
'karma-sourcemap-loader',
'gulp-concat',
'@emotion/styled',
'postcss-import',
'pre-commit',
'mongoose',
'@babel/plugin-syntax-dynamic-import',
'@semantic-release/git',
'@types/jsonwebtoken',
'@babel/plugin-proposal-decorators',
'deepmerge',
'cssnano',
'jasmine-spec-reporter',
'date-fns',
'regenerator-runtime',
'cors',
'vite-plugin-dts',
'nock',
'rollup-plugin-vue',
'ethers',
'babel-plugin-istanbul',
'eslint-plugin-babel',
'protractor',
'globby',
'yeoman-generator',
'grunt-contrib-uglify',
'@storybook/addons',
'babel-preset-stage-3',
'size-limit',
'object-assign',
'@emotion/react',
'@types/sinon',
'identity-obj-proxy',
'eslint-config-react-app',
'eslint-config-standard-react',
'eslint-plugin-html',
'karma-coverage-istanbul-reporter',
'marked',
'html-loader',
'xo',
'open',
'pretty-quick',
'webpack-dev-middleware',
'gulp-mocha',
'@vue/compiler-sfc',
'@types/node-fetch',
'q',
'crypto-js',
'np',
'babelify',
'@vitejs/plugin-react',
'babel-preset-react-app',
'tailwindcss',
'es6-promise',
'babel-plugin-module-resolver',
'babel-plugin-external-helpers',
'mongodb',
'vue-tsc',
'ramda',
'copyfiles',
'babel-plugin-import',
'karma-firefox-launcher',
'@size-limit/preset-small-lib',
'highlight.js',
'friendly-errors-webpack-plugin',
'rollup-plugin-replace',
'vitest',
'@angular-devkit/build-angular',
'tap',
'lodash-es',
'resolve',
'react-addons-test-utils',
'co',
'@semantic-release/changelog',
'@babel/node',
'rollup-plugin-json',
'socket.io',
'webpack-hot-middleware',
'@babel/plugin-proposal-optional-chaining',
'react-router',
'@alifd/next',
'babel-plugin-syntax-jsx',
'source-map-loader',
'stylelint-config-standard',
'koa',
'figlet',
'tsconfig-paths',
'react-is',
'superagent',
'@angular/http',
'http-server',
'ng-packagr',
'form-data',
'gulp-eslint',
'expect.js',
'esm',
'download-git-repo',
'grunt-cli',
'c8',
'gulp-autoprefixer',
'babel-plugin-transform-decorators-legacy',
'browser-sync',
'got',
'minimatch',
'@material-ui/core',
'buffer',
'awesome-typescript-loader',
'@types/debug',
'microbundle',
'react-hot-loader',
'npm',
'gulp-typescript',
'tap-spec',
'babel-plugin-transform-es2015-modules-commonjs',
'assert',
'karma-spec-reporter',
'postcss-preset-env',
'express-validator',
'@react-native-community/eslint-config',
'storybook',
'run-sequence',
'@angular/language-service',
'babel-plugin-transform-vue-jsx',
'@types/react-router-dom',
'@types/jasminewd2',
'@types/yargs',
'terser',
'cookie-session',
'shx',
'whatwg-fetch',
'eslint-plugin-jsdoc',
'@vue/eslint-config-prettier',
'immutable',
'jest-environment-jsdom',
'xml2js',
'rollup-plugin-sourcemaps',
'pg',
'acorn',
'eslint-friendly-formatter',
'socket.io-client',
'cookie-parser',
'gulp-plumber',
'svelte',
'redis',
'commitlint',
'eslint-config-airbnb-typescript',
'proxyquire',
'camelcase',
'morgan',
'babel-helper-vue-jsx-merge-props',
'@rollup/plugin-alias',
'postcss-flexbugs-fixes',
'karma-mocha-reporter',
'eslint-import-resolver-typescript',
'@types/cookie-session',
'@babel/plugin-transform-modules-commonjs',
'eslint-plugin-n',
'request-promise',
'markdown-it',
'react-dev-utils',
'next',
'mime',
'fast-glob',
'stylus',
'@babel/plugin-proposal-export-default-from',
'@types/webpack',
'css-split-webpack-plugin',
'phantomjs-prebuilt',
'nan',
'loader-utils',
'node-notifier',
'expect',
'conventional-changelog-cli',
'jshint-stylish',
'@rollup/plugin-terser',
'portfinder',
'eslint-plugin-mocha',
'http-proxy-middleware',
'fast-sass-loader',
'@alifd/babel-preset-next',
'@vue/eslint-config-typescript',
'karma-cli',
'@mui/material',
'mysql',
'joi',
'prompts',
'less-plugin-sass2less',
'@types/glob',
'query-string',
'@nestjs/common',
'eslint-plugin-unicorn',
'@release-it/conventional-changelog',
'isomorphic-fetch',
'nanoid',
'acertea',
'@testing-library/react-hooks',
'react-transition-group',
'microbundle-crl',
'@types/classnames',
'anywhere-dream',
'anything-kitchen-pack-tears',
'anywhere-leon',
'anywhere-dream-term',
'anywhere-leon-eth',
'anywhere-dream-demo',
'anywhere-leonterms',
'anywhere-leon-ethers',
'anywhere-leon-demo',
'anywhere-leon-web3',
'anywhere-leon-test',
'actually-web3-win',
'avoid-web3-plenty',
'alphabet-minute',
'webpack-manifest-plugin',
'grunt-contrib-copy',
'opn',
'ask-dropped-each',
'@types/ws',
'art-near-room-catch',
'anakjalanan',
'eslint-plugin-simple-import-sort',
'tmp',
'aid-guard1',
'@swc/core',
'@vue/cli-plugin-router',
'js-cookie',
'gulp-jshint',
'clsx',
'prompt',
'grunt-contrib-concat',
'load-grunt-tasks',
'karma-chai',
'promise',
'@types/react-test-renderer',
'compression',
'redux-thunk',
'postcss-url',
'lerna',
'@vue/cli-plugin-typescript',
'strip-ansi',
'@stencil/core',
'mocha-lcov-reporter',
'vinyl-source-stream',
'attempt-till-declared',
'action-winter-carried',
'according-he-proper',
'rollup-plugin-copy',
'actually-plastic-driven',
'bignumber.js',
'aid-human-declared',
'grunt-contrib-nodeunit',
'airplane-thus-web3-breathing',
'babel-preset-stage-1',
'meow',
'ncp',
'karma-sinon-chai',
'@storybook/builder-webpack5',
'watchify',
'jest-junit',
'anyone-rule-certain',
'@storybook/manager-webpack5',
'ember-cli',
'@types/prettier',
'prismjs',
'react-icons',
'echarts',
'gulp-replace',
'@types/supertest',
'yosay',
'@storybook/addon-a11y',
'ember-cli-inject-live-reload',
'gulp-less',
'@types/enzyme',
'events',
'eslint-config-google',
'@svgr/webpack',
'lodash.merge',
'@vue/eslint-config-standard',
'path-to-regexp',
'broccoli-asset-rev',
'@storybook/addon-knobs',
'md5',
'babel-plugin-transform-react-jsx',
'ember-cli-dependency-checker',
'babel-preset-latest',
'@types/semver',
'mime-types',
'cypress',
'@ethersproject/providers',
'@storybook/addon-info',
'@semantic-release/npm',
'node-nats-streaming',
'web3',
'@fortawesome/fontawesome-svg-core',
'ember-export-application-global',
'enzyme-to-json',
'postcss-cli',
'history',
'ember-cli-babel',
'@storybook/blocks',
'gulp-load-plugins',
'ember-cli-htmlbars',
'yaml',
'@material-ui/icons',
'metro-react-native-babel-preset',
'lru-cache',
'parcel-bundler',
'normalize.css',
'tiny-invariant',
'@fortawesome/free-solid-svg-icons',
'@storybook/preset-create-react-app',
'gulp-if',
'@babel/plugin-proposal-nullish-coalescing-operator',
'font-awesome',
'gulp-clean',
'gulp-clean-css',
'grunt-mocha-test',
'@types/lodash-es',
'inherits',
'rollup-plugin-buble',
'moment-timezone',
'ts-node-dev',
'sqlite3',
'd3',
'@storybook/addon-docs',
'@nestjs/core',
'tslint-config-standard',
'react-native-builder-bob',
'zod',
'extend',
'@vue/cli-plugin-vuex',
'eslint-plugin-eslint-comments',
'@babel/plugin-proposal-export-namespace-from',
'babel-plugin-styled-components',
'stylus-loader',
'benchmark',
'big.js',
'@vue/cli-plugin-unit-jest',
'ember-cli-uglify',
'faker',
'nodemailer',
'connect-history-api-fallback',
'ember-disable-prototype-extensions',
'source-map',
'dotenv-expand',
'pug',
'eslint-plugin-storybook',
'cross-fetch',
'raf',
'eventemitter3',
'optimist',
'rollup-plugin-url',
'connect',
'serve-static',
'pod-install',
'iconv-lite',
'type-fest',
'parcel',
'@types/chalk',
'log-symbols',
'discord.js',
'gulp-istanbul',
'react-select',
'@babel/types',
'jsdoc-to-markdown',
'@types/eslint',
'@ant-design/icons',
'@svgr/rollup',
'@babel/preset-flow',
'resize-observer-polyfill',
'validator',
'url',
'@ethersproject/address',
'readable-stream',
'ms',
'ember-cli-sri',
'postcss-scss',
'boxen',
'@types/chai-as-promised',
'compression-webpack-plugin',
'lodash.debounce',
'@types/js-yaml',
'rollup-plugin-filesize',
'react-bootstrap',
'npm-check-updates',
'immer',
'update-notifier',
'vue-jest',
'json5',
'ember-cli-qunit',
'archiver',
'@babel/plugin-transform-react-jsx',
'util',
'along-disease5',
'bn.js',
'lodash.get',
'eslint-plugin-json',
'invariant',
'atmosphere-repeat-web3-together',
'act-mark-sent6',
'resolve-url-loader',
'babel-plugin-dynamic-import-node',
'mustache',
'rollup-plugin-visualizer',
'@rollup/plugin-image',
'node-uuid',
'escape-string-regexp',
'electron',
'lit',
'ember-resolver',
'express-session',
'@popperjs/core',
'graceful-fs',
'file-saver',
'graphql-tag',
'find-up',
'loader.js',
'ember-cli-htmlbars-inline-precompile',
'vuepress',
'fsevents',
'process',
'which',
'i18next',
'serve',
'watch',
'ember-load-initializers',
'tar',
'gulp-watch',
'@angular/cdk',
'jest-watch-typeahead',
'replace-in-file',
'babel-plugin-transform-react-remove-prop-types',
'gulp-postcss',
'yup',
'three',
'tiny-warning',
'jade',
'typedoc-plugin-markdown',
'uglify-es',
'path-exists',
'fork-ts-checker-webpack-plugin',
'sequelize',
'stylelint-config-prettier',
'@semantic-release/commit-analyzer',
'@types/big.js',
'polished',
'querystring',
'jest-resolve',
'@types/rimraf',
'eslint-config-standard-with-typescript',
'yeoman-assert',
'@changesets/cli',
'@oclif/plugin-help',
'@semantic-release/release-notes-generator',
'anybody-office-web3-happened',
'available-percent-pride0',
'arrange-protection-round4',
'ancient-sun',
'attempt-band-club',
'mobx',
'firebase',
'@types/qs',
'@types/jquery',
'babel-plugin-transform-flow-strip-types',
'async-validator',
'@mui/icons-material',
'istanbul-instrumenter-loader',
'gulp-header',
'@types/jsdom',
'xlsx',
'@storybook/node-logger',
'eslint-import-resolver-webpack',
'jsdom-global',
'concat-stream',
'pluralize',
'vue-class-component',
'micromatch',
'vue-hot-reload-api',
'koa-router',
'eventsource-polyfill',
'phantomjs',
'progress',
'babel-plugin-named-asset-import',
'@fortawesome/react-fontawesome',
'rollup-plugin-scss',
'vue-i18n',
'vinyl-buffer',
'babel-preset-minify',
'angular',
'yeoman-test',
'crypto',
'lodash.clonedeep',
'codemirror',
'@ethersproject/contracts',
'@testing-library/dom',
'@jest/globals',
'@babel/parser',
'lodash.camelcase',
'@types/testing-library__jest-dom',
'babel-plugin-lodash',
'@ethersproject/solidity',
'merge2',
'@emotion/core',
'jscs',
'ember-try',
'ioredis',
'simple-git',
'hardhat',
'progress-bar-webpack-plugin',
'stylelint-order',
'svgo',
'babel-preset-flow',
'react-app-polyfill',
'ansi-styles',
'jszip',
'esprima',
'passport',
'rollup-plugin-typescript',
'@semantic-release/github',
'merge-stream',
'browserslist',
'tslint-react',
'vue-property-decorator',
'@types/react-redux',
'ant-design-vue',
'fast-deep-equal',
'@babel/plugin-proposal-numeric-separator',
'@types/request',
'canvas',
'@nestjs/testing',
'postcss-nested',
'prettier-eslint',
'clone',
'svelte-check',
'babel-plugin-transform-object-assign',
'eslint-plugin-markdown',
'postcss-custom-properties',
'workbox-webpack-plugin',
'@types/webpack-env',
'typings',
'decimal.js-light',
'npmlog',
'pify',
'vinyl',
'documentation',
'jest-styled-components',
'argparse',
'log4js',
'@types/cors',
'@babel/runtime-corejs3',
'babel-plugin-component',
'jsonfile',
'lodash.isequal',
'mockjs',
'multer',
'@babel/plugin-syntax-import-meta',
'@microsoft/api-extractor',
'function-bind',
'xtend',
'request-promise-native',
'sharp',
'chromedriver',
'ip',
'diff',
'toformat',
'nodeunit',
'tsconfig',
'js-beautify',
'react-helmet',
'@oclif/command',
'babel-plugin-transform-async-to-generator',
'cookie',
'bower',
'slash',
'through',
'eslint-plugin-unused-imports',
'color',
'event-stream',
'config',
'stylelint-scss',
'safe-buffer',
'ansi-regex',
'supports-color',
'change-case',
'tslint-eslint-rules',
'cpx',
'@tsconfig/recommended',
'@storybook/theming',
'vuedraggable',
'babel-plugin-syntax-dynamic-import',
'rollup-plugin-esbuild',
'mysql2',
'@types/react-transition-group',
'eslint-plugin-react-refresh',
'yargs-parser',
'rollup-plugin-serve',
'tap-min',
'ember-source',
'jsbi',
'vue-html-loader',
'isparta',
'styled-system',
'react-hook-form',
'power-assert',
'bcrypt',
'clear',
'postcss-calc',
'markdown-it-container',
'@oclif/config',
'deep-equal',
'@babel/plugin-proposal-throw-expressions',
'rewire',
'popper.js',
'luxon',
'@angular/material',
'pino',
'@storybook/react-webpack5',
'@babel/plugin-external-helpers',
'rollup-plugin-livereload',
'lit-element',
'postcss-safe-parser',
'ember-data',
'@types/crypto-js',
'class-validator',
'clean-css',
'grunt-contrib-connect',
'ini',
'@ethersproject/networks',
'dumi',
'ethereumjs-util',
'@storybook/addon-storysource',
'react-i18next',
'shortid',
'@istanbuljs/nyc-config-typescript',
'jest-extended',
'readline-sync',
'enquirer',
'preact',
'@rollup/plugin-url',
'chalk-animation',
'tsx',
'gulp-minify-css',
'ts-mocha',
'element-plus',
'@types/shelljs',
'tsd',
'js-base64',
'@nomiclabs/hardhat-ethers',
'jest-config',
'class-transformer',
'ember-cli-app-version',
'rollup-plugin-delete',
'arg',
'requirejs',
'rollup-plugin-eslint',
'@types/bluebird',
'karma-browserify',
'rollup-plugin-node-builtins',
'unbuild',
'@webcomponents/webcomponentsjs',
'gulp-cssmin',
'@babel/plugin-proposal-json-strings',
'pump',
'cli-table',
'@vitejs/plugin-vue-jsx',
'@types/axios',
'once',
'@vueuse/core',
'typeorm',
'nsp',
'adm-zip',
'tslint-loader',
'react-intl',
'travis-deploy-once',
'svelte-preprocess',
'child_process',
'@sveltejs/kit',
'yorkie',
'@vitest/coverage-c8',
'ember-ajax',
'https-proxy-agent',
'@types/ramda',
'babel-plugin-transform-jsbi-to-bigint',
'pnp-webpack-plugin',
'jasmine-node',
'hoist-non-react-statics',
'@types/puppeteer',
'react-dnd',
'bunyan',
'@oclif/dev-cli',
'picocolors',
'rollup-watch',
'bindings',
'http-errors',
'install',
'typechain',
'@angular/platform-server',
'tsconfig-paths-webpack-plugin',
'ethereum-waffle',
'@reduxjs/toolkit',
'http-proxy',
'eslint-config-next',
'markdown-it-anchor',
'@babel/traverse',
'jwt-decode',
'url-join',
'prettier-plugin-svelte',
'webpack-stream',
'chart.js',
'@rushstack/eslint-patch',
'eslint-import-resolver-node',
'eslint-webpack-plugin',
'css-minimizer-webpack-plugin',
'@fortawesome/fontawesome-free',
'@antfu/eslint-config',
'csstype',
'babel-preset-react-native',
'nprogress',
'@types/minimist',
'protobufjs',
'react-refresh',
'knex',
'@nestjs/platform-express',
'cosmiconfig',
'bs58',
'bumpp',
'@babel/plugin-proposal-function-sent',
'@oclif/test',
'tslint-config-airbnb',
'formik',
'ttypescript',
'require-dir',
'ember-cli-release',
'underscore.string',
'react-dnd-html5-backend',
'chromatic',
'throttle-debounce',
'@babel/plugin-syntax-jsx',
'yarn',
'clipboard',
'eslint-config-xo',
'pkg-dir',
'lodash.throttle',
'babel-preset-es2015-rollup',
'get-port',
'node-emoji',
'fastify',
'@babel/plugin-proposal-function-bind',
'koa-static',
'@types/sinon-chai',
'karma-safari-launcher',
'@storybook/react-vite',
'postcss-normalize',
'postcss-cssnext',
'@types/koa',
'uppercamelcase',
'tsickle',
'estraverse',
'stream-browserify',
'ghooks',
'dateformat',
'rollup-plugin-css-only',
'@openzeppelin/contracts',
'validate-commit-msg',
'@babel/plugin-proposal-pipeline-operator',
'systemjs',
'eslint-plugin-security',
'p-limit',
'lolex',
'ember-cli-eslint',
'eslint-config-egg',
'amqplib',
'time-grunt',
'snazzy',
'validate-npm-package-name',
'redux-saga',
'color-convert',
'@stdlib/bench',
'koa-bodyparser',
'strip-json-comments',
'framer-motion',
'cpy-cli',
'gulp-bump',
'monaco-editor',
'@vue/component-compiler-utils',
'nightwatch',
'escodegen',
'svg-sprite-loader',
'imports-loader',
'@storybook/storybook-deployer',
'reselect',
'grunt-contrib-coffee',
'nwb',
'@types/mkdirp',
'temp',
'grunt-karma',
'helmet',
'mock-fs',
'@babel/plugin-proposal-do-expressions',
'global',
'anymatch',
'escape-html',
'is-ci',
'@open-wc/testing',
'@types/prompts',
'ansi-colors',
'nuxt',
'gulp-notify',
'@types/babel__core',
'@ckeditor/ckeditor5-paragraph',
'react-color',
'gulp-shell',
'grunt-browserify',
'@typechain/ethers-v5',
'make-dir',
'arts-dao',
'node-gyp',
'path-browserify',
'tslint-plugin-prettier',
'karma-sauce-launcher',
'@babel/plugin-transform-typescript',
'@mdx-js/react',
'elliptic',
'eslint-plugin-ember',
'@ckeditor/ckeditor5-basic-styles',
'swiper',
'jest-serializer-vue',
'eslint-plugin-react-native',
'@angular-devkit/core',
'tsc-watch',
'@ckeditor/ckeditor5-theme-lark',
'@types/enzyme-adapter-react-16',
'nunjucks',
'grunt-contrib-cssmin',
'mqtt',
'path-is-absolute',
'resolve-from',
'@storybook/builder-webpack4',
'@storybook/manager-webpack4',
'@playwright/test',
'@octokit/rest',
'kleur',
'redux-logger',
'consola',
'prettier-eslint-cli',
'chai-spies',
'eslint-config-oclif',
'lit-html',
'rollup-plugin-svelte',
'get-stream',
'@ckeditor/ckeditor5-essentials',
'sprintf-js',
'read-pkg-up',
'tsc-alias',
'unified',
'warning',
'command-line-args',
'eslint-plugin-cypress',
'@types/prop-types',
'jest-fetch-mock',
'@types/styled-system',
'bcryptjs',
'@types/core-js',
'@sveltejs/adapter-auto',
'@storybook/addon-viewport',
'selenium-server',
'@ckeditor/ckeditor5-list',
'@babel/plugin-proposal-logical-assignment-operators',
'rollup-plugin-cleanup',
'grunt-eslint',
'eslint-config-custom',
'user',
'mobx-react',
'api-chatfb',
'@ckeditor/ckeditor5-heading',
'api-chatfb-test',
'api-chat-fanpage-facebook',
'normalize-path',
'brfs',
'crypto-browserify',
'auto-changelog',
'ansi-escapes',
'sortablejs',
'localforage',
'@commitlint/config-angular',
'app-root-path',
'@apollo/client',
'@ckeditor/ckeditor5-link',
'father',
'karma-ie-launcher',
'xmldom',
'dedent',
'base64-js',
'atob',
'html-minifier',
'react-markdown',
'eslint-plugin-testing-library',
'react-popper',
'is-wsl',
'esdoc',
'@angular-devkit/schematics',
'has-flag',
'babel-plugin-transform-es2015-modules-umd',
'@types/chalk-animation',
'rollup-plugin-node-globals',
'es6-shim',
'@capacitor/core',
'gulp-filter',
'rollup-plugin-sass',
'punycode',
'ignore',
'react-docgen-typescript-loader',
'solc',
'father-build',
'tinycolor2',
'eslint-plugin-prefer-arrow',
'inject-loader',
'@ckeditor/ckeditor5-image',
'string-width',
'tough-cookie',
'pako',
'grunt-release',
'caniuse-lite',
'@ckeditor/ckeditor5-block-quote',
'@types/bn.js',
'magic-string',
'autod',
'react-dropzone',
'balanced-match',
'@babel/plugin-transform-object-assign',
'cli-color',
'@material-ui/lab',
'grunt-bump',
'is-glob',
'tweetnacl',
'transliteration',
'ember-cli-shims',
'vows',
'brace-expansion',
'@ckeditor/ckeditor5-table',
'eslint-plugin-sonarjs',
'sw-precache-webpack-plugin',
'conventional-changelog',
'leaflet',
'ember-source-channel-url',
'egg-bin',
'acorn-jsx',
'serve-favicon',
'braces',
'object-hash',
'listr',
'is-number',
'@solana/web3.js',
'pretty-bytes',
'requireindex',
'babel-plugin-transform-es2015-destructuring',
'serialize-javascript',
'is-plain-object',
'html2canvas',
'@ckeditor/ckeditor5-autoformat',
'gulp-connect',
'tsc',
'@web/test-runner',
'babel-plugin-macros',
'@types/figlet',
'eslint-plugin-svelte3',
'numeral',
'merge',
'url-parse',
'grunt-shell',
'@swc/jest',
'gzip-size',
'vue-eslint-parser',
'onchange',
'eslint-plugin-compat',
'@ckeditor/ckeditor5-dev-utils',
'@storybook/addon-postcss',
'picomatch',
'mitt',
'parse5',
'@uniswap/v2-core',
'@types/graphql',
'hapi',
'@angular-devkit/build-ng-packagr',
'gulp-imagemin',
'recompose',
'recursive-readdir',
'@babel/generator',
'@ckeditor/ckeditor5-editor-classic',
'hammerjs',
'mocha-junit-reporter',
'react-use',
'color-name',
'gulp-tslint',
'@pmmmwh/react-refresh-webpack-plugin',
'has',
'bip39',
'filesize',
'json-stringify-safe',
'ember-maybe-import-regenerator',
'unist-util-visit',
'is-stream',
'concat-map',
'i',
'inflight',
'htmlparser2',
'@umijs/test',
'import-local',
'glob-parent',
'ts-morph',
'jimp',
'babel-plugin-react-transform',
'codeclimate-test-reporter',
'fs.realpath',
'vuetify',
'dtslint',
'@web/dev-server',
'react-native-svg',
'eslint-watch',
'babel-preset-es2017',
'wrappy',
'lab',
'qrcode',
'memoize-one',
'figures',
'@types/gulp',
'gatsby',
'configstore',
'@types/dotenv',
'@nomiclabs/hardhat-waffle',
'eslint-plugin-tsdoc',
'readline',
'react-native-web',
'memory-fs',
'vite-tsconfig-paths',
'@ckeditor/ckeditor5-paste-from-office',
'emoji-regex',
'@ckeditor/ckeditor5-indent',
'stylelint-config-recommended',
'graphql-request',
'jest-canvas-mock',
'@types/body-parser',
'solidity-coverage',
'cp-cli',
'@stencil/sass',
'gts',
'@storybook/builder-vite',
'babel-plugin-transform-regenerator',
'@ckeditor/ckeditor5-media-embed',
'json-templater',
'@vitejs/plugin-react-swc',
'coffeescript',
'exports-loader',
'algoliasearch',
'@types/commander',
'convert-source-map',
'bytes',
'bfj',
'tsutils',
'vue-template-es2015-compiler',
'@types/aws-lambda',
'prettier-plugin-organize-imports',
'@sveltejs/package',
'@alib/build-scripts',
'qunit',
'image-size',
'gulp-size',
'ts-pnp',
'abort-controller',
'pinia',
'esno',
'@swc/cli',
'egg',
'matchdep',
'webpack-sources',
'@capacitor/android',
'@types/faker',
'prettier-plugin-solidity',
'constructs',
'mz',
'@storybook/preset-scss',
'fast-json-stable-stringify',
'@polymer/polymer',
'remark-cli',
'json-schema',
'karma-sinon',
'node-forge',
'axios-mock-adapter',
'chance',
'depd',
'globals',
'delay',
'eslint-config-xo-space',
'@types/luxon',
'react-modal',
'user-home',
'jest-pnp-resolver',
'wrap-ansi',
'fill-range',
'conventional-changelog-conventionalcommits',
'@vue/tsconfig',
'fp-ts',
'text-table',
'@capacitor/ios',
'faucet',
'egg-ci',
'codecov.io',
'0x0lobersyko',
'react-datepicker',
'signal-exit',
'randombytes',
'decimal.js',
'@aws-sdk/client-s3',
'react-native-gesture-handler',
'thread-loader',
'firebase-admin',
'@ckeditor/ckeditor5-dev-webpack-plugin',
'@babel/runtime-corejs2',
'webpackbar',
'selenium-webdriver',
'eslint-import-resolver-alias',
'js-tokens',
'flat',
'decamelize',
'in-publish',
'msw',
'flow-copy-source',
'isexe',
'react-styleguidist',
'websocket',
'gulp-debug',
'loglevel',
'cli-progress',
'code',
'qunit-dom',
'require-directory',
'kind-of',
'semistandard',
'@types/three',
'node-addon-api',
'karma-babel-preprocessor',
'gulp-coveralls',
'@vue/eslint-config-airbnb',
'to-regex-range',
'publint',
'statuses',
'image-webpack-loader',
'slugify',
'@nestjs/schematics',
'http',
'karma-typescript',
'gulp-cli',
'@nestjs/cli',
'pinst',
'copy-to-clipboard',
'jest-circus',
'remark',
'jscodeshift',
'googleapis',
'ember-cli-content-security-policy',
'@types/mongodb',
'all-contributors-cli',
'create-react-class',
'eslint-config-oclif-typescript',
'ember-cli-ic-ajax',
'object.assign',
'path-parse',
'react-syntax-highlighter',
'animate.css',
'downlevel-dts',
'@rollup/plugin-buble',
'string_decoder',
'locate-path',
'precss',
'@types/mongoose',
'long',
'vinyl-fs',
'quill',
'egg-mock',
'colorette',
'p-map',
'null-loader',
'metalsmith',
'd3-scale',
'download',
'open-cli',
'formidable',
'vitepress',
'fetch-mock',
'vant',
'rollup-plugin-alias',
'read-pkg',
'@babel/plugin-transform-async-to-generator',
'prettier-plugin-packagejson',
'pino-pretty',
'acorn-walk',
'@ethersproject/abi',
'doctoc',
'node-libs-browser',
'react-resizable',
'emotion',
'@ember/optional-features',
'babel-plugin-named-exports-order',
'@faker-js/faker',
'he',
'@ckeditor/ckeditor5-typing',
'eventemitter2',
'test',
'send',
'tempy',
'unplugin-vue-components',
'JSONStream',
'react-testing-library',
'is-extglob',
'@types/pg',
'@storybook/addon-options',
'aws-cdk-lib',
'apollo-client',
'jsesc',
'react-copy-to-clipboard',
'babel-plugin-transform-export-extensions',
'cspell',
'jest-enzyme',
'@types/validator',
'flow-typed',
'isarray',
'rollup-plugin-node-polyfills',
'es5-shim',
'patch-package',
'graphql-tools',
'auto',
'react-toastify',
'rc',
'yamljs',
'on-finished',
'@vitest/ui',
'live-server',
'datafire',
'gulp-coffee',
'react-native-vector-icons',
'cliui',
'bili',
'tslint-microsoft-contrib',
'mime-db',
'google-protobuf',
'aryacil',
'json-stable-stringify',
'jsonschema',
'anakayam',
'@nomiclabs/hardhat-etherscan',
'finalhandler',
'worker-loader',
'passport-local',
'@types/js-cookie',
'chokidar-cli',
'jest-environment-node',
'html-entities',
'mockdate',
'p-locate',
'accepts',
'ahooks',
'@umijs/fabric',
'etag',
'mockery',
'@types/tape',
'is-fullwidth-code-point',
'start-server-and-test',
'schema-utils',
'raw-body',
'autoprefixer-loader',
'babel-preset-es2016',
'@types/react-router',
'ember-qunit',
'util-deprecate',
'typescript-eslint-parser',
'file-type',
'uvu',
'node-watch',
'rollup-plugin-license',
'@types/ejs',
'ua-parser-js',
'zustand',
'inversify',
'react-virtualized',
'babylon',
'callsites',
'fancy-log',
'react-draggable',
'loose-envify',
'babel-plugin-transform-es2015-parameters',
'babel-plugin-transform-es2015-classes',
'debounce',
'@headlessui/react',
'expo',
'isparta-loader',
'@compodoc/compodoc',
'blanket',
'buffer-from',
'immutability-helper',
'@tailwindcss/forms',
'babel-plugin-syntax-async-functions',
'eslint-plugin-typescript',
'script-loader',
'undici',
'stylelint-prettier',
'docdash',
'lodash.set',
'playwright',
'file-save',
'shebang-regex',
'mathjs',
'react-native-reanimated',
'depcheck',
'fast-xml-parser',
'@fortawesome/free-regular-svg-icons',
'remark-parse',
'deep-extend',
'karma-junit-reporter',
'gulp-nsp',
'gradient-string',
'@stitches/react',
'uri-js',
'gulp-exclude-gitignore',
'sort-package-json',
'parseurl',
'@types/cross-spawn',
'readdirp',
'@trivago/prettier-plugin-sort-imports',
'material-ui',
'y18n',
'snyk',
'nconf',
'indent-string',
'@babel/plugin-transform-flow-strip-types',
'clean-package',
'jest-environment-jsdom-fourteen',
'@babel/plugin-proposal-private-methods',
'dirty-chai',
'array-union',
'strip-bom',
'nopt',
'eslint-plugin-filenames',
'https',
'phosphor-react',
'draft-js',
'angular-mocks',
'esutils',
'espree',
'shebang-command',
'ali-oss',
'@evilmartians/lefthook',
'is-core-module',
'gulp-git',
'eslint-plugin-eslint-plugin',
'node-cache',
'envify',
'hoek',
'path-key',
'@stdlib/math-base-assert-is-nan',
'word-wrap',
'@ionic/prettier-config',
'api-facebooknew',
'gulp-changed',
'xmlhttprequest',
'grunt-jscs',
'lite-server',
'react-router-redux',
'isobject',
'expose-loader',
'os',
'web3-utils',
'solhint',
'sax',
'react-window',
'prettier-plugin-java',
'consolidate',
'@hapi/joi',
'ember-disable-proxy-controllers',
'escalade',
'@ckeditor/ckeditor5-alignment',
'gulp-install',
'json-schema-traverse',
'yallist',
'redux-mock-store',
'postcss-modules',
'react-docgen',
'chai-http',
'gulp-livereload',
'@storybook/addon-notes',
'pretty-format',
'ajv-formats',
'bufferutil',
'babel-preset-airbnb',
'hardhat-gas-reporter',
'get-caller-file',
'common-tags',
'when',
'react-spring',
'@rollup/pluginutils',
'better-sqlite3',
'table',
'imurmurhash',
'pngjs',
'@jest/types',
'@radix-ui/react-checkbox',
'pkg',
'p-queue',
'require-from-string',
'core-util-is',
'@parcel/transformer-typescript-types',
'gulp-htmlmin',
'isomorphic-unfetch',
'clipboardy',
'parse-json',
'cac',
'reactstrap',
'cli-spinners',
'@chakra-ui/react',
'pm2',
'css',
'import-fresh',
'find-cache-dir',
'svg-inline-loader',
'postcss-load-config',
'nanospinner',
'are-objects',
'rollup-plugin-analyzer',
'are-arrays',
'recast',
'vue-demi',
'rollup-plugin-auto-external',
'@types/tmp',
'@fortawesome/free-brands-svg-icons',
'gulp-insert',
'plugin-error',
'@ethersproject/bignumber',
'npm-run-path',
'@ckeditor/ckeditor5-font',
'babel-preset-react-hmre',
'flatted',
'bundlesize',
'boom',
'grunt-contrib-less',
'react-native-safe-area-context',
'plop',
'@ckeditor/ckeditor5-core',
'setprototypeof',
'grunt-babel',
'safer-buffer',
'promise-polyfill',
'lodash.omit',
'utf-8-validate',
'normalize-wheel',
'typescript-transform-paths',
'vue-server-renderer',
'@types/marked',
'swiftlint',
'@ava/typescript',
'memfs',
'babel-types',
'@polymer/iron-demo-helpers',
'@parcel/packager-ts',
'@ionic/swiftlint-config',
'gulp-jscs',
'@stdlib/random-base-randu',
'@vue/cli-plugin-unit-mocha',
'angular2-template-loader',
'@types/markdown-it',
'babel-plugin-transform-remove-console',
'analsorhost-simple-bs',
'doctrine',
'@swc/helpers',
'gatsby-source-filesystem',
'markdown-it-chain',
'gulp-cssnano',
'lodash.pick',
'onetime',
'@semantic-release/exec',
'autod-egg',
'gray-matter',
'screenfull',
'rollup-plugin-node-externals',
'babel-plugin-transform-es2015-spread',
'split',
'end-of-stream',
'content-type',
'@types/storybook__react',
'csv-parse',
'happy-dom',
'github-markdown-css',
'backbone',
'cli-table3',
'vue-markdown-loader',
'dompurify',
'@nuxt/kit',
'npm-watch',
'@ckeditor/ckeditor5-adapter-ckfinder',
'rxjs-compat',
'p-try',
'eslint-config-elemefe',
'@wojtekmaj/enzyme-adapter-react-17',
'dot-prop',
'electron-to-chromium',
'redux-devtools-extension',
'bulma',
'babel-plugin-transform-es2015-arrow-functions',
'ci-info',
'module-alias',
'unplugin-auto-import',
'async-retry',
'postcss-pxtorem',
'wait-on',
'cli-spinner',
'eslint-scope',
'truffle',
'@storybook/addon-storyshots',
'lodash.uniq',
'koa-body',
'restify',
'follow-redirects',
'@types/async',
'jest-dom',
'gsap',
'@tsconfig/node16',
'npm-check',
'serialport',
'rc-util',
'component-emitter',
'compare-versions',
'@typechain/hardhat',
'apollo-cache-inmemory',
'@types/cheerio',
'to-fast-properties',
'object-path',
'opener',
'@mui/lab',
'@oclif/core',
'ts-helpers',
'jest-mock',
'@babel/plugin-transform-regenerator',
'hosted-git-info',
'@babel/plugin-transform-classes',
'load-json-file',
'babel-preset-es2015-loose',
'mimic-fn',
'@graphql-codegen/cli',
'@radix-ui/react-avatar',
'@storybook/vue',
'simple-git-hooks',
'uglifyjs',
'is-plain-obj',
'react-beautiful-dnd',
'pdfjs-dist',
'terminal-link',
'to-string-loader',
'd3-selection',
'path-type',
'secp256k1',
'traverse',
'detect-port',
'rsvp',
'enhanced-resolve',
'fast-levenshtein',
'@types/cordova',
'get-stdin',
'dotenv-webpack',
'write-file-atomic',
'jest-worker',
'cz-customizable',
'@types/request-promise-native',
'remap-istanbul',
'lodash.template',
'big-integer',
'@aws-crypto/sha256-browser',
'@tailwindcss/typography',
'd3-array',
'@emotion/css',
'@types/xml2js',
'lodash.assign',
'build-plugin-fusion',
'karma-phantomjs-shim',
'object-keys',
'bl',
'react-query',
'conf',
'@types/pluralize',
'utils-merge',
'@types/estree',
'tapable',
'error-ex',
'shell-quote',
'fbjs',
'babel-regenerator-runtime',
'envinfo',
'homebridge',
'shallowequal',
'cron',
'@types/d3',
'replace',
'react-transform-hmr',
'mock-require',
'@vue/composition-api',
'btoa',
'ink-docstrap',
'cache-loader',
'randomstring',
'showdown',
'browserify-shim',
'esrecurse',
'react-table',
'@aws-crypto/sha256-js',
'has-symbols',
'@tsconfig/svelte',
'builtin-modules',
'define-properties',
'@types/json-schema',
'@ionic/eslint-config',
'hash-sum',
'esdoc-standard-plugin',
'uglifyify',
'@types/mime-types',
'resolve-cwd',
'prelude-ls',
'@types/lodash.merge',
'@ckeditor/ckeditor5-ckfinder',
'fresh',
'@ajhgwdjnpm/quia-harum-molestias-eos',
'set-value',
'node-releases',
'xmlbuilder',
'@asdfgertyjhnpm/nesciunt-molestias-reprehenderit-occaecati',
'jest-diff',
'optionator',
'range-parser',
'@tsconfig/node14',
'is-arrayish',
'@types/history',
'@types/moment',
'command-exists',
'xml-js',
'lodash-webpack-plugin',
'electron-css-injector',
'markdownlint-cli',
'@babel/plugin-transform-arrow-functions',
'react-tooltip',
'papaparse',
'@types/events',
'babel-istanbul',
'grunt-jsdoc',
'oclif',
'run-parallel',
'jspdf',
'bs-platform',
'@types/webpack-dev-server',
'eslint-import-resolver-babel-module',
'trash-cli',
'bun-types',
'leven',
'node-schedule',
'split2',
'@types/ioredis',
'@capacitor/docgen',
'@storybook/addon-onboarding',
'@babel/preset-stage-0',
'extract-zip',
'rollup-plugin-ts',
'toidentifier',
'@aws-cdk/core',
'whatwg-url',
'touch',
'apollo-server-express',
'create-hash',
'rollup-plugin-styles',
'sanitize-html',
'@aws-sdk/types',
'babel-plugin-dev-expression',
'react-slick',
'mssql',
'@types/nodemailer',
'method-override',
'base-64',
'extend-shallow',
'object-inspect',
'svelte2tsx',
'type-check',
'prettier-plugin-tailwindcss',
'http-status-codes',
'babel-plugin-transform-es3-property-literals',
'ember-auto-import',
'intersection-observer',
'babel-plugin-transform-es3-member-expression-literals',
'pegjs',
'normalize-url',
'd3-shape',
'@graphql-codegen/typescript',
'call-bind',
'stylelint-config-standard-scss',
'minami',
'process-nextick-args',
'grunt-simple-mocha',
'@vue/babel-preset-jsx',
'@solana/spl-token',
'chroma-js',
'babel-plugin-transform-es2015-block-scoping',
'universalify',
'qunitjs',
'node-static',
'chai-enzyme',
'is-buffer',
'istanbul-lib-coverage',
'array-includes',
'log-update',
'arrify',
'@babel/plugin-proposal-private-property-in-object',
'react-app-rewired',
'methods',
'natural-compare',
'@storybook/addon-controls',
'@types/lodash.get',
'lodash.isplainobject',
'upath',
'budo',
'node',
'eslint-plugin-no-only-tests',
'rollup-plugin-clear',
'react-scripts-ts',
'@types/md5',
'postcss-simple-vars',
'@prisma/client',
'lowdb',
'prettier-standard',
'rollup-plugin-babel-minify',
'tsify',
'strip-indent',
'errorhandler',
'@types/socket.io-client',
'js-sha3',
'is-windows',
'@types/mime',
'cli-ux',
'docz',
'utility-types',
'grunt-contrib-qunit',
'ink',
'build-plugin-component',
'rollup-pluginutils',
'@sentry/node',
'@monaco-editor/react',
'deep-is',
'clone-deep',
'apollo-link-http',
'@types/lodash.debounce',
'airdropfind',
'io-ts',
'@types/cookie',
'react-addons-css-transition-group',
'@types/sharp',
'fibers',
'@grpc/grpc-js',
'is-binary-path',
'unzipper',
'ajv-keywords',
'@mui/styles',
'interpret',
'sirv-cli',
'remark-gfm',
'winston-daily-rotate-file',
'ember-cli-jshint',
'pretty-ms',
'buble',
'normalize-package-data',
'@nestjs/config',
'ganache-cli',
'@open-wc/eslint-config',
'opn-cli',
'scheduler',
'negotiator',
'latest-version',
'zlib',
'babel-plugin-syntax-flow',
'cli-cursor',
'js-md5',
'@fortawesome/vue-fontawesome',
'supports-preserve-symlinks-flag',
'dotenv-cli',
'rollup-plugin-polyfill-node',
'signale',
'grunt-exec',
'dependency-check',
'binary-extensions',
'vary',
'happypack',
'@ethersproject/bytes',
'neo-async',
'seedrandom',
'combined-stream',
'on-headers',
'@types/color',
'@types/socket.io',
'apollo-link',
'@nestjs/swagger',
'levn',
'i18next-browser-languagedetector',
'@zerollup/ts-transform-paths',
'get-intrinsic',
'gulp-sequence',
'@types/lodash.clonedeep',
'ember-cli-test-loader',
'swagger-ui-express',
'@element-plus/icons-vue',
'element-resize-detector',
'encodeurl',
'@react-navigation/native',
'gulp-browserify',
'inflection',
'node-html-parser',
'@heroicons/react',
'type-is',
'@storybook/cli',
'mochawesome',
'qrcode-terminal',
'eslint-plugin-jsonc',
'@glimmer/component',
'@antfu/ni',
'verror',
'@ckeditor/ckeditor5-easy-image',
'json',
'retry',
'zx',
'bson',
'@types/morgan',
'@typescript-eslint/eslint-plugin-tslint',
'grpc',
'eslint-plugin-ava',
'@types/cookie-parser',
'zuul',
'eslint-formatter-pretty',
'@types/nock',
'hash.js',
'clui',
'ssh2',
'clean-css-cli',
'fastify-plugin',
'serialize-error',
'jest-transform-stub',
'setimmediate',
'plist',
'rollup-plugin-progress',
'themeprovider-storybook',
'emoji-100',
'address',
'@types/isomorphic-fetch',
'destroy',
'@tsconfig/node18',
'gm',
'eslint-visitor-keys',
'esquery',
'webdriverio',
'jsx-loader',
'chai-subset',
'es-abstract',
'https-browserify',
'kolorist',
'postcss-less',
'get-value',
'karma-requirejs',
'gulp-jasmine',
'@types/redis',
'gulp-zip',
'redux-actions',
'parent-module',
'serve-index',
'command-line-usage',
'stylelint-webpack-plugin',
'babel-plugin-transform-es2015-template-literals',
'pnpm',
'regenerate',
'@mdx-js/mdx',
'dts-bundle',
'entities',
'babel-plugin-transform-react-constant-elements',
'web-animations-js',
'pirates',
'pkginfo',
'@types/minimatch',
'gensync',
'@types/prismjs',
'jsii',
'@types/lodash.isequal',
'axe-core',
'@types/react-helmet',
'wrench',
'select-version-cli',
'@nuxt/module-builder',
'@types/compression',
'video.js',
'@react-native-async-storage/async-storage',
'is-regex',
'tree-kill',
'aggregate-error',
'deasync',
'json-parse-even-better-errors',
'stream-http',
'@types/winston',
'@types/amqplib',
'script-ext-html-webpack-plugin',
'@storybook/vue3',
'array.prototype.flatmap',
'lines-and-columns',
'@stdlib/utils-define-nonenumerable-read-only-property',
'prisma',
'asynckit',
'bech32',
'front-matter',
'@types/request-promise',
'cuid',
'pascal-case',
'sha.js',
'estree-walker',
'stylelint-config-rational-order',
'intl',
'prom-client',
'level',
'broccoli-merge-trees',
'jest-haste-map',
'os-browserify',
'mixin-deep',
'grunt-contrib-compress',
'@microsoft/api-documenter',
'sass-resources-loader',
'postcss-selector-parser',
'koa-compose',
'flat-cache',
'ethereumjs-tx',
'passport-jwt',
'fastq',
'gulp-line-ending-corrector',
'array-unique',
'swr',
'rollup-plugin-svg',
'unzip',
'@types/multer',
'@material-ui/styles',
'grunt-contrib-jasmine',
'@types/source-map-support',
'react-native-webview',
'jest-puppeteer',
'rollup-plugin-uglify-es',
'babel-plugin-transform-es2015-shorthand-properties',
'solid-js',
'commondir',
'rc-slider',
'rollup-plugin-import-css',
'unique-random-array',
'@kadira/storybook',
'js-sha256',
'umi',
'type-detect',
'@react-native-community/bob',
'@vercel/ncc',
'eslint-plugin-jest-dom',
'pascalcase',
'@types/tar',
'react-sortable-hoc',
'svg-url-loader',
'object.values',
'imagemin',
'levelup',
'os-tmpdir',
'add',
'@glimmer/tracking',
'tailwind-merge',
'ember-template-lint',
'babel-preset-vue',
'coffeelint',
'markdown-loader',
'queue-microtask',
'projen',
'dir-glob',
'babel-plugin-emotion',
'babel-minify',
'dts-bundle-generator',
'defaults',
'webidl-conversions',
'is-date-object',
'rollup-plugin-size-snapshot',
'babel-preset-jest',
'istanbul-reports',
'wct-browser-legacy',
'mapbox-gl',
'assert-plus',
'fluent-ffmpeg',
'@rollup/plugin-eslint',
'strip-final-newline',
'aes-js',
'reusify',
'react-error-overlay',
'eslint-plugin-functional',
'validate-npm-package-license',
'string-replace-loader',
'openai',
'blessed',
'eslint-plugin-chai-friendly',
'ieee754',
'walk',
'cpy',
'eslint-plugin-jasmine',
'prettyjson',
'hardhat-deploy',
'@types/koa-router',
'grunt-sass',
'set-blocking',
'env-cmd',
'babel-traverse',
'gulp-ignore',
'jest-matcher-utils',
'repeat-string',
'is-docker',
'ember-cli-template-lint',
'eslint-config-semistandard',
'@graphql-codegen/typescript-operations',
'slate',
'react-native-screens',
'jest-util',
'tar-fs',
'camel-case',
'wordwrap',
'isomorphic-ws',
'@google-cloud/storage',
'@types/proxyquire',
'@types/expect',
'@vue/babel-plugin-jsx',
'ignore-styles',
'recharts',
'@types/es6-promise',
'@custom-elements-manifest/analyzer',
'is-typedarray',
'@material-ui/pickers',
'miniprogram-api-typings',
'@types/pino',
'@jupyterlab/application',
'jest-localstorage-mock',
'@stdlib/types',
'vuetify-loader',
'spdx-expression-parse',
'@types/superagent',
'file-entry-cache',
'defu',
'bitcoinjs-lib',
'is-string',
'tinymce',
'@vue/cli-plugin-pwa',
'spdx-license-ids',
'babel-plugin-syntax-trailing-function-commas',
'@nuxtjs/eslint-config-typescript',
'jsii-pacmak',
'@types/bcrypt',
'redbox-react',
'is-callable',
'hubot',
'@types/react-resizable',
'co-mocha',
'@types/babel__traverse',
'istanbul-lib-instrument',
'eslint-utils',
'@ngx-translate/core',
'basic-auth',
'ol',
'performance-now',
'katex',
'arr-flatten',
'regexpu-core',
'http-proxy-agent',
'content-disposition',
'@vue/babel-helper-vue-jsx-merge-props',
'exit',
'@babel/plugin-transform-spread',
'vue-cli-plugin-vuetify',
'react-jss',
'@storybook/addon-styling',
'semantic-ui-react',
'tr46',
'github',
'elasticsearch',
'jest-each',
'yocto-queue',
'puppeteer-core',
'lodash.memoize',
'inquirer-autocomplete-prompt',
'grunt-concurrent',
'json-parse-better-errors',
'spdx-correct',
'@nuxt/schema',
'node-dir',
'git-url-parse',
'fs-promise',
'decompress',
'camelcase-keys',
'node-int64',
'json-stable-stringify-without-jsonify',
'codacy-coverage',
'postcss-value-parser',
'unpipe',
'@emotion/babel-preset-css-prop',
'is-promise',
'urijs',
'lodash.kebabcase',
'string',
'pixelmatch',
'child-process-promise',
'redux-form',
'lodash.isfunction',
'conventional-github-releaser',
'stylelint-config-recommended-scss',
'regjsparser',
'sanitize-filename',
'sanitize-filename',
'human-signals',
'lz-string',
'eslint-plugin-svelte',
'emotion-theming',
'tmp-promise',
'rx',
'react-docgen-typescript',
'is-symbol',
'vite-plugin-css-injected-by-js',
'source-map-explorer',
'eslint-plugin-yml',
'v8-compile-cache',
'toml',
'@alifd/build-plugin-lowcode',
'@types/react-color',
'grunt-webpack',
'arr-diff',
'karma-browserstack-launcher',
'side-channel',
'lodash.isempty',
'@rollup/plugin-multi-entry',
'@radix-ui/react-tooltip',
'imagemin-pngquant',
'co-prompt',
'regenerator-transform',
'@types/file-saver',
'@types/mysql',
'ee-first',
'sync-request',
'is-url',
'prism-react-renderer',
'cucumber',
'@types/lru-cache',
'babel-tape-runner',
'sweetalert2',
'git-cz',
'json-schema-to-typescript',
'pkg-up',
'@svgr/cli',
'agent-base',
'webpack-chain',
'react-addons-shallow-compare',
'detect-newline',
'@hookform/resolvers',
'string-length',
'react-tap-event-plugin',
'react-loadable',
'array-flatten',
'pull-stream',
'eslint-define-config',
'redux-persist',
'object.pick',
'@types/yup',
'decode-uri-component',
'@storybook/addon-backgrounds',
'node-pre-gyp',
'omit.js',
'glob-promise',
'@testing-library/react-native',
'needle',
'browserify-zlib',
'@types/mustache',
'broccoli-funnel',
'lodash.isstring',
'stream',
'ember-welcome-page',
'jose',
'@babel/plugin-transform-destructuring',
'jest-snapshot',
'restore-cursor',
'grunt-contrib-sass',
'jest-validate',
'utf8',
'babel-plugin-transform-inline-environment-variables',
'gulp-rollup',
'fb-watchman',
'node-localstorage',
'es-to-primitive',
'ancient-cause-bright-foot',
'exceljs',
'dockerode',
'babel-template',
'solhint-plugin-prettier',
'deep-diff',
'register-service-worker',
'emittery',
'karma-rollup-preprocessor',
'throat',
'@arkweid/lefthook',
'typescript-plugin-css-modules',
'react-motion',
'@tarojs/taro',
'array.prototype.flat',
'babel-plugin-transform-es2015-for-of',
'postcss-nesting',
'@actions/core',
'html-escaper',
'gl-matrix',
'browserify-istanbul',
'busboy',
'prompt-sync',
'spdx-exceptions',
'istanbul-lib-report',
'@hot-loader/react-dom',
'chai-string',
'@ckeditor/ckeditor5-highlight',
'@tanstack/react-query',
'@types/react-select',
'map-stream',
'ast-types',
'@ckeditor/ckeditor5-upload',
'aside-doctor-origin-lot',
'ace-builds',
'average-different',
'article-steep',
'coffee-loader',
'pixi.js',
'react-number-format',
'@ckeditor/ckeditor5-cloud-services',
'stylelint-config-styled-components',
'stack-utils',
'subscriptions-transport-ws',
'ts-toolbelt',
'webstorm-disable-index',
'is-negative-zero',
'dataloader',
'@radix-ui/react-dialog',
'author-wool-make',
'walker',
'gulp-stylus',
'ability-aloud',
'astral-regex',
'again-week',
'@opentelemetry/api',
'babel-plugin-transform-es2015-computed-properties',
'automobile-might',
'afraid-pig-as',
'active-party-blew',
'almost-shut',
'eslint-plugin-header',
'safe-regex',
'stylelint-processor-styled-components',
'aloud-produce-world',
'google-auth-library',
'@babel/helper-plugin-utils',
'object.entries',
'again-email',
'aws4',
'gatsby-plugin-react-helmet',
'slick-carousel',
'@storybook/html',
'base64url',
'again-week-web3',
'electron-builder',
'bowser',
'@types/joi',
'mocha-phantomjs',
'mute-stream',
'karma-coveralls',
'again-github',
'again-ethers',
'grunt-coffeelint',
'ngx-bootstrap',
'again-week-leon',
'nodegit',
'jsonc-eslint-parser',
'tslint-immutable',
'again-week-demo',
'again-eth',
'jsonpath',
'@turf/turf',
'arr-union',
'again-week-bill',
'again-week-test',
'@aws-cdk/assert',
'multimatch',
'define-property',
'webpack-dashboard',
'react-error-boundary',
'cookie-signature',
'circular-dependency-plugin',
'style-resources-loader',
'ipaddr.js',
'source-map-url',
'react-feather',
'@types/react-window',
'@types/geojson',
'@polymer/iron-component-page',
'tns-core-modules',
'postcss-reporter',
'is-extendable',
'nanomatch',
'cpr',
'rc-tooltip',
'grunt-jsbeautifier',
'jsencrypt',
'@babel/code-frame',
'gulp-template',
'@project-serum/anchor',
'resolve-url',
'typedarray-to-buffer',
'storybook-dark-mode',
'babel-plugin-transform-es2015-function-name',
'core-js-compat',
'for-in',
'@mdi/font',
'@types/archiver',
'testdouble',
'keyv',
'jsonlint',
'babel-plugin-transform-es2015-object-super',
'primeicons',
'node-mocks-http',
'@types/form-data',
'@schematics/angular',
'unocss',
'@rollup/plugin-strip',
'base',
'babel-plugin-check-es2015-constants',
'build-plugin-moment-locales',
'bip32',
'source-map-resolve',
'p-finally',
'bootstrap-vue',
'yauzl',
'coffeeify',
'yeoman-environment',
'fastclick',
'csv',
'async-mutex',
'@babel/template',
'babel-preset-gatsby-package',
'bootstrap-sass',
'@babel/plugin-transform-react-constant-elements',
'babel-generator',
'libphonenumber-js',
'@stdlib/math-base-special-pow',
'create-hmac',
'babel-plugin-syntax-object-rest-spread',
'styled-jsx',
'@sentry/browser',
'swig',
'@vue/cli-plugin-e2e-cypress',
'require-main-filename',
'react-lifecycles-compat',
'babel-plugin-transform-es2015-block-scoped-functions',
'jss',
'react-textarea-autosize',
'style-dictionary',
'p-retry',
'is-path-inside',
'markdown',
'remark-lint',
'jsii-diff',
'downshift',
'@hapi/hapi',
'sucrase',
'@types/object-hash',
'html-react-parser',
'@ant-design/icons-vue',
'gulp-gh-pages',
'eslint-plugin-lodash',
'grunt-ts',
'@types/pako',
'slice-ansi',
'react-apollo',
'theme-ui',
'coz',
'react-json-view',
'@angular-eslint/eslint-plugin',
'jest-runtime',
'react-tools',
'istanbul-lib-source-maps',
'package-json',
'pretty-error',
'pinkie-promise',
'es6-promisify',
'@angular/flex-layout',
'copy',
'nedb',
'assign-symbols',
'gulp-flatten',
'esbuild-loader',
'@grpc/proto-loader',
'tmpl',
'sisteransi',
'pg-hstore',
'gulp-nodemon',
'git-clone',
'which-module',
'@ajhgwdjnpm/quas-mollitia-aspernatur-reprehenderit',
'jest-message-util',
'stylelint-config-sass-guidelines',
'grunt-mocha-cli',
'vee-validate',
'fuzzy',
'@babel/eslint-plugin',
'lodash.map',
'@ethersproject/abstract-signer',
'madge',
'run-async',
'update-browserslist-db',
'@types/micromatch',
'@emotion/babel-plugin',
'test-exclude',
'stream-buffers',
'valid-url',
'@types/diff',
'babel-plugin-transform-es2015-literals',
'babel-plugin-transform-decorators',
'antd-mobile',
'pathe',
'@ckeditor/ckeditor5-horizontal-line',
'openapi-types',
'urllib',
'xregexp',
'ts-generator',
'uniqid',
'nib',
'babel-plugin-transform-function-bind',
'@beisen/build',
'repeat-element',
'watchpack',
'@azure/identity',
'axios-retry',
'sha1',
'gulp-useref',
'laravel-mix',
'grunt-mocha-istanbul',
'markdown-toc',
'sockjs-client',
'@types/underscore',
'@ng-bootstrap/ng-bootstrap',
'babel-preset-power-assert',
'@web/test-runner-playwright',
'gatsby-plugin-sharp',
'jest-get-type',
'map-cache',
'lodash.sortby',
'serverless',
'jest-docblock',
'@nuxt/test-utils',
'esbuild-register',
'fetch-jsonp',
'miniprogram-simulate',
'has-value',
'detect-indent',
'apollo-server',
'klaw',
'es-dev-server',
'csso',
'@types/google-protobuf',
'expand-brackets',
'node-cron',
'extglob',
'confusing-browser-globals',
'@backstage/cli',
'@types/qrcode',
'@typescript-eslint/typescript-estree',
'@types/got',
'@types/elliptic',
'@beisen/babel',
'@rollup/plugin-inject',
'makeerror',
'browser-env',
'karma-remap-istanbul',
'jest-image-snapshot',
'vite-plugin-eslint',
'@beisen/ts',
'vue-resource',
'text-encoding',
'koa-logger',
'json-server',
'split-string',
'jest-regex-util',
'@stdlib/string-format',
'regexp.prototype.flags',
'@pancakeswap-libs/eslint-config-pancake',
'@stdlib/assert-is-browser',
'vm2',
'@types/leaflet',
'eslint-config-ckeditor5',
'@beisen/storybook',
'error-stack-parser',
'@beisen/storybook-react',
'string.prototype.trimend',
'gulp-streamify',
'jest-runner',
'asjrkslfs_01',
'asjrkslfs_03',
'regenerate-unicode-properties',
'exorcist',
'@beisen/webpack',
'postcss-html',
'@types/selenium-webdriver',
'unicode-property-aliases-ecmascript',
'babel-plugin-polyfill-corejs3',
'fast-check',
'@storybook/addon-console',
'@storybook/addon-console',
'gulp-minify',
'store',
'available-typed-arrays',
'unicode-canonical-property-names-ecmascript',
'@types/execa',
'cli-width',
'unicode-match-property-value-ecmascript',
'string.prototype.trimstart',
'gulp-rimraf',
'postcss-mixins',
'react-device-detect',
'@aws-sdk/client-dynamodb',
'karma-chai-spies',
'unicode-match-property-ecmascript',
'unset-value',
'@types/assert',
'sass-lint',
'@types/koa-bodyparser',
'@angular-eslint/template-parser',
'@craco/craco',
'@types/redux',
'crypto-random-string',
'javascript-obfuscator',
'license-checker',
'@types/ora',
'testem',
'eslint-plugin-typescript-sort-keys',
'urix',
'grunt-newer',
'babel-plugin-rewire',
'merge-descriptors',
'@alicloud/tea-typescript',
'gulp-cached',
'bser',
'json2csv',
'@sindresorhus/tsconfig',
'stylelint-declaration-block-no-ignored-properties',
'eslint-config-ali',
'rechoir',
'install-peers-cli',
'docco',
'ember-cli-sass',
'chardet',
'duplexify',
'gulp-format-md',
'yn',
'koa-mount',
'lodash.flatten',
'use',
'@types/codemirror',
'f2elint',
'compressible',
'@sveltejs/vite-plugin-svelte',
'spark-md5',
'node-polyfill-webpack-plugin',
'copy-dir',
'highcharts',
'express-graphql',
'external-editor',
'to-regex',
'snapdragon',
'@types/express-session',
'aware-bigger-five',
'turbo',
'read',
'xhr2',
'quick-lru',
'@mui/x-date-pickers',
'@types/mock-fs',
'has-values',
'react-chartjs-2',
'@types/ms',
'qrcode.react',
'gulp-jsdoc3',
'karma-edge-launcher',
'is-accessor-descriptor',
'@types/benchmark',
'stripe',
'encoding',
'collection-visit',
'@angular-eslint/eslint-plugin-template',
'lodash.defaultsdeep',
'union-value',
'is-data-descriptor',
'anywhere-strength-disappear-plural',
'@alicloud/tea-util',
'semantic-ui-css',
'eslint-config-standard-jsx',
'atomic-paper-web3-paint',
'babel-preset-expo',
'babel-plugin-transform-es2015-sticky-regex',
'reqwest',
'object-visit',
'ret',
'afraid-cowboy-web3-loose',
'asap',
'hard-source-webpack-plugin',
'is-descriptor',
'cache-base',
'make-error',
'vue-clipboard2',
'clean-stack',
'ancient-hundred-equal-related',
'findup-sync',
'mocha-jsdom',
'connect-redis',
'ability-realize-bad9',
'oauth',
'snapdragon-node',
'fragment-cache',
'@vitejs/plugin-react-refresh',
'map-visit',
'alphabet-ability-student-pleasant',
'react-responsive',
'lodash.defaults',
'regex-not',
'conventional-recommended-bump',
'to-object-path',
'static-extend',
'actually-cause-our5',
'snapdragon-util',
'mri',
'posix-character-classes',
'babel-plugin-transform-es2015-unicode-regex',
'monaco-editor-webpack-plugin',
'babel-minify-webpack-plugin',
'copy-descriptor',
'tns-platform-declarations',
'crc',
'@semantic-release/gitlab',
'@types/resolve',
'coffee-coverage',
'rollup-plugin-cleaner',
'@floating-ui/dom',
'astro',
'object-copy',
'blueimp-md5',
'gulp-webpack',
'class-utils',
'@types/react-datepicker',
'@ember/test-helpers',
'any-promise',
'@beisen/italent-thunder',
'brace',
'@babel/plugin-syntax-object-rest-spread',
'md5-file',
'@storybook/addon-mdx-gfm',
'nice-try',
'eslint-doc-generator',
'is-boolean-object',
'tippy.js',
'growl',
'redux-devtools',
'is-number-object',
'@open-wc/testing-karma',
'ember-cli-terser',
'babel-plugin-inline-react-svg',
'csvtojson',
'fixpack',
'less-plugin-npm-import',
'gulp-inline-ng2-template',
'keycode',
'media-typer',
'@ckeditor/ckeditor5-code-block',
'@types/bs58',
'karma-remap-coverage',
'dom-helpers',
'eslint-plugin-sort-keys-fix',
'xss',
'gaze',
'pug-loader',
'primeng',
'leveldown',
'@koa/cors',
'v8-to-istanbul',
'slug',
'@react-microdata/item-factory',
'node-rsa',
'@oclif/errors',
'event-target-shim',
'postcss-custom-media',
'typedarray',
'pouchdb',
'babel-plugin-jest-hoist',
'es-module-lexer',
'has-tostringtag',
'sade',
'@types/resize-observer-browser',
'yaml-eslint-parser',
'babel-plugin-polyfill-regenerator',
'esbuild-wasm',
'tedious',
'gulp-uglify-es',
'@polkadot/api',
'jsdoc-babel',
'@types/moment-timezone',
'abab',
'@types/hoist-non-react-statics',
'@types/cli-progress',
'mongodb-memory-server',
'pretty-hrtime',
'babel-preset-babili',
'precommit-hook',
'glob-to-regexp',
'@pika/pack',
'@vitejs/plugin-legacy',
'@radix-ui/react-popover',
'jest-changed-files',
'@types/bunyan',
'@date-io/date-fns',
'is-bigint',
'vconsole',
'jest-leak-detector',
'gulp-ng-annotate',
'has-bigints',
'react-day-picker',
'multiparty',
'qiniu',
'animejs',
'after-though-raise',
'typescript-json-schema',
'avoid-frame-managed',
'remark-rehype',
'ethereumjs-wallet',
'eth-sig-util',
'storybook-readme',
'rollup-plugin-multi-input',
'material-design-icons',
'@uiw/react-md-editor',
'intelli-espower-loader',
'mocha-webpack',
'iview',
'agree-this-engine',
'ability-sky-web3-forth',
'jest-resolve-dependencies',
'apartment-identity-web3-valuable',
'ask-fox2',
'agentkeepalive',
'reactify',
'@babel/plugin-transform-modules-umd',
'@ant-design/colors',
'ts-essentials',
'react-navigation',
'eventsource',
'rollup-plugin-less',
'internal-slot',
'diff-sequences',
'babelrc-rollup',
'which-boxed-primitive',
'gatsby-transformer-sharp',
'@babel/preset-es2015',
'rollup-plugin-includepaths',
'strip-eof',
'@babel/plugin-transform-template-literals',
'node-cmd',
'@11ty/eleventy',
'ape-tmpl',
'karma-html2js-preprocessor',
'remark-preset-lint-recommended',
'@types/hammerjs',
'advice-who2',
'open-browser-webpack-plugin',
'postcss-discard-comments',
'safe-publish-latest',
'denodeify',
'proxy-agent',
'connect-livereload',
'socks-proxy-agent',
'react-player',
'@ckeditor/ckeditor5-remove-format',
'@pipedream/platform',
'rehype-stringify',
'root-check',
'rollup-plugin-multi-entry',
'webfontloader',
'jest-watcher',
'remark-frontmatter',
'react-ace',
'glob-all',
'slate-react',
'tar-stream',
'react-custom-scrollbars',
'@koa/router',
'@radix-ui/react-dropdown-menu',
'react-helmet-async',
'@openzeppelin/contracts-upgradeable',
'regexpp',
'@asdfgertyjhnpm/a-unde-explicabo-eaque',
'npminstall',
'activity-tape',
'@jupyterlab/apputils',
'@asdfgertyjhnpm/accusantium-nostrum-fugiat-veniam',
'babel-plugin-transform-react-inline-elements',
'@ajhgwdjnpm/aut-at-nulla-perferendis',
'babel-plugin-polyfill-corejs2',
'arrow-mice-plates0',
'constants-browserify',
'@tarojs/components',
'enquire.js',
'react-transform-catch-errors',
'proxy-addr',
'phantomjs-polyfill',
'is-unicode-supported',
'node-red',
'json-bigint',
'markdown-it-emoji',
'@fullhuman/postcss-purgecss',
'angle-pupil',
'psl',
'get-package-type',
'require-all',
'unbox-primitive',
'typescript-formatter',
'isstream',
'@types/gapi.client',
'stack-trace',
'eslint-config-alloy',
'rollup-plugin-string',
'esbuild-jest',
'untildify',
'load-grunt-config',
'flatpickr',
'parallelshell',
'pbkdf2',
'remark-stringify',
'babel-plugin-transform-imports',
'eslint-config-xo-react',
'bs58check',
'memoizee',
'multiformats',
'@hapi/boom',
'@pulumi/pulumi',
'injectmock',
'ssri',
'functions-have-names',
'ape-tasking',
'account-grabbed-answer',
'wcwidth',
'cropperjs',
'is-generator-fn',
'memdown',
'lodash.mergewith',
'xstate',
'@babel/helper-module-imports',
'babel-plugin-tester',
'@types/react-modal',
'rc-tools',
'@types/adm-zip',
'conventional-changelog-angular',
'@types/config',
'jest-sonar-reporter',
'@nestjs/typeorm',
'@stdlib/math-base-special-abs',
'jest-axe',
'jest-html-reporter',
'jsbn',
'gulp-terser',
'ionicons',
'@changesets/changelog-github',
'@types/googlemaps',
'unexpected',
'proj4',
'@types/invariant',
'tiny-glob',
'xe-utils',
'jison',
'server-destroy',
'uglify-save-license',
'grunt-conventional-changelog',
'ape-releasing',
'@types/passport',
'@girs/gobject-2.0',
'ape-updating',
'osenv',
'accurate-where-chicken',
'aegir',
'@types/eslint-plugin-prettier',
'babel-plugin-transform-strict-mode',
'@iobroker/adapter-core',
'aws-lambda',
'umi-request',
'@types/shortid',
'@types/express-serve-static-core',
'gulp-webserver',
'@types/chokidar',
'@types/vscode',
'liftoff',
'css-tree',
'@types/nprogress',
'jsii-docgen',
'klaw-sync',
'supports-hyperlinks',
'pretty',
'detect-node',
'uint8arrays',
'view-design',
'affect-is-so-upper',
'env-paths',
'kafkajs',
'rollup-plugin-bundle-size',
'jsonp',
'grunt-autoprefixer',
'rc-trigger',
'generate-changelog',
'eslint-config-react',
'react-highlight-words',
'lodash.isobject',
'react-spinners',
'@angular/elements',
'lodash.find',
'write-file-webpack-plugin',
'@types/hapi__joi',
'karma-detect-browsers',
'@storybook/preset-typescript',
'gulp-csso',
'@nestjs/microservices',
'vinyl-paths',
'object.fromentries',
'along-factory-root5',
'better-docs',
'twilio',
'@ngrx/store',
'changelogen',
'@polymer/test-fixture',
'adult-table-size-protection',
'expo-status-bar',
'extract-loader',
'util.promisify',
'loader-runner',
'map-obj',
'truffle-hdwallet-provider',
'@svgr/core',
'tunnel-agent',
'grunt-notify',
'xpath',
'@nuxtjs/eslint-config',
'@pika/plugin-build-node',
'ability-officer-web3-whale',
'blue-tape',
'string.prototype.matchall',
'esbuild-node-externals',
'google-closure-compiler',
'string-hash',
'tape-run',
'gulp-rev',
'uuidv4',
'shallow-clone',
'yalc',
'recursive-copy',
'@types/tinycolor2',
'net',
'fs-jetpack',
'@girs/glib-2.0',
'mocha-typescript',
'apollo-boost',
'mousetrap',
'@stencil/react-output-target',
'aws-cdk',
'pug-plain-loader',
'express-fileupload',
'gulp-inject',
'deep-assign',
'jasmine-reporters',
'less-plugin-clean-css',
'platform',
'gulp-typedoc',
'react-onclickoutside',
'babel-plugin-transform-builtin-extend',
'jest-expo',
'svgo-loader',
'compressing',
'babel-watch',
'gulp-tap',
'art-template',
'has-property-descriptors',
'jquery-ui',
'animal-daughter-pocket',
'grunt-env',
'ytdl-core',
'@stdlib/constants-float64-eps',
'@commitlint/prompt-cli',
'eslint-config-vue',
'@babel/preset-stage-2',
'abbrev',
'stylelint-config-recess-order',
'arm-understanding-flag',
'react-portal',
'regjsgen',
'@vue/babel-preset-app',
'react-fast-compare',
'sinon-as-promised',
'find-root',
'bulmaswatch',
'cache-manager',
'@antv/data-set',
'jsonc-parser',
'cssom',
'@types/react-beautiful-dnd',
'@types/url-join',
'express-rate-limit',
'pumpify',
'unfetch',
'react-input-mask',
'ftp',
'@types/update-notifier',
'vue-lazyload',
'chai-things',
'@types/es6-shim',
'use-sync-external-store',
'isbinaryfile',
'grunt-banner',
'@types/html-webpack-plugin',
'collect-v8-coverage',
'rollup-plugin-istanbul',
'functional-red-black-tree',
'babel-plugin-transform-react-display-name',
'html-to-text',
'ts-patch',
'xhr-mock',
'd3-format',
'serve-handler',
'hyperquest',
'cli',
'@aws-sdk/config-resolver',
'@aws-sdk/client-sts',
'remove-trailing-separator',
'@antfu/utils',
'@types/react-is',
'enzyme-adapter-react-15',
'express-jwt',
'eslint-config-defaults',
'd3-interpolate',
'ajv-errors',
'xcode',
'able-power-hardly0',
'rc-dialog',
'@elastic/elasticsearch',
'array-buffer-byte-length',
'nps',
'ionic-angular',
'scroll-into-view-if-needed',
'generic-pool',
'babel-preset-current-node-syntax',
'eslint-plugin-qunit',
'feather-icons',
'soap',
'@types/progress',
'winston-transport',
'prosemirror-state',
'atom-range-hour5',
'amount-studied-hunter-pan',
'async-limiter',
'mobx-react-lite',
'gitbook-cli',
'ag-grid-community',
'jscoverage',
'graphql-subscriptions',
'is-shared-array-buffer',
'lodash.foreach',
'@cosmjs/stargate',
'vite-plugin-vue2',
'@aws-sdk/middleware-stack',
'@types/listr',
'p-timeout',
'automobile-probably',
'eslint-find-rules',
'hasha',
'karma-qunit',
'errno',
'fast-safe-stringify',
'tscpaths',
'@nestjs/passport',
'@truffle/hdwallet-provider',
'against-you-answer',
'storybook-addon-designs',
'testcafe',
'is-obj',
'passport-oauth2',
'@alifd/theme-2',
'@aws-sdk/middleware-content-length',
'global-modules',
'array-move',
'jiti',
'jest-in-case',
'webrtc-adapter',
'get-symbol-description',
'@storybook/source-loader',
'bytebuffer',
'node-sass-tilde-importer',
'@wessberg/rollup-plugin-ts',
'redent',
'sockjs',
'xml2json',
'microtime',
'mem',
'nullthrows',
'gatsby-image',
'@radix-ui/react-slot',
'typescript-tslint-plugin',
'@types/bcryptjs',
'@pancakeswap-libs/pancake-swap-core',
'aloud-organization-double-table',
'fstream',
'cacache',
'array-tree-filter',
'csv-parser',
'@types/long',
'webpack-serve',
'querystring-es3',
'@turf/helpers',
'adjective-chamber-web3-window',
'striptags',
'angular-in-memory-web-api',
'koa-send',
'@storybook/components',
'karma-opera-launcher',
'aria-query',
'preact-compat',
'@ctrl/tinycolor',
'@types/through2',
'better-scroll',
'rollup-plugin-local-resolve',
'@typescript-eslint/utils',
'add-asset-html-webpack-plugin',
'assets-webpack-plugin',
'asn1',
'@types/dompurify',
'@types/karma',
'apexcharts',
'@types/power-assert',
'dedent-js',
'webpack-notifier',
'columnify',
'@types/reflect-metadata',
'@loadable/component',
'grunt-replace',
'@tailwindcss/line-clamp',
'source-map-js',
'ts-mockito',
'use-debounce',
'dashdash',
'@stdlib/error-tools-fmtprodmsg',
'adventure-dig-five-hearing',
'@aws-sdk/credential-provider-node',
'fs-readdir-recursive',
'@emotion/cache',
'fork-ts-checker-webpack-plugin-alt',
'again-car-web3-enjoy',
'sane',
'prosemirror-model',
'is-weakref',
'array.prototype.tosorted',
'trim-newlines',
'@umijs/lint',
'domhandler',
'@types/react-table',
'nomnom',
'jsrsasign',
'event-emitter',
'react-intersection-observer',
'bcrypt-nodejs',
'@oclif/plugin-plugins',
'agree-go-spite',
'passport-strategy',
'@types/chrome',
'@types/mdast',
'babel-plugin-transform-es2015-modules-amd',
'node-stream-zip',
'autobind-decorator',
'@ngx-translate/http-loader',
'after-met-ready',
'case',
'@types/babel__generator',
'body-scroll-lock',
'jest-mock-extended',
'@storybook/addon-centered',
'param-case',
'@types/ua-parser-js',
'd3-color',
'concat',
'@iobroker/testing',
'@embroider/test-setup',
'eslint-plugin-no-null',
'scss-loader',
'express-handlebars',
'@testing-library/svelte',
'expo-module-scripts',
'gulp-copy',
'@commitlint/travis-cli',
'bizcharts',
'@oclif/tslint',
'ability-somewhere-accept-mud',
'lottie-web',
'@types/numeral',
'cookies',
'systeminformation',
'fast-diff',
'accident-vessels',
'electron-prebuilt',
'dot',
'less-plugin-autoprefix',
'another-beginning-send5',
'@aws-cdk/aws-iam',
'jest-css-modules',
'@react-navigation/stack',
'afternoon-walk-gray-motion',
'http-status',
'ipfs-http-client',
'http-signature',
'@types/gradient-string',
'@types/deep-equal',
'@radix-ui/react-switch',
'web3-core',
'@sentry/tracing',
'ecstatic',
'stylelint-config-css-modules',
'@types/chance',
'almost-mainly-climate',
'pkg-install',
'rc-select',
'publish-please',
'gulp-run',
'able-sink-power-sitting',
'discord-api-types',
'@types/colors',
'jsx-ast-utils',
'type-coverage',
'class-variance-authority',
'perfect-scrollbar',
'@types/react-syntax-highlighter',
'ignore-loader',
'har-validator',
'randomcolor',
'@react-aria/utils',
'prosemirror-view',
'postcss-modules-values',
'os-locale',
'ts-standard',
'web-streams-polyfill',
'chownr',
'walk-sync',
'@ckeditor/ckeditor5-special-characters',
'final-form',
'@angular-eslint/builder',
'action-cage',
'jest-serializer',
'electron-packager',
'vm-browserify',
'anyone-sets-practice',
'vue-axios',
'@alcalzone/release-script',
'customize-cra',
'@aws-cdk/aws-lambda',
'jit-grunt',
'forever',
'@types/loader-utils',
'adult-ground',
'eslint-plugin-import-helpers',
'anywhere-handle-web3-worry',
'@types/mini-css-extract-plugin',
'rollup-plugin-external-globals',
'@metamask/eslint-config',
'vfile',
'wangeditor',
'@cosmjs/proto-signing',
'@ethersproject/abstract-provider',
'jasmine-ts',
'@tensorflow/tfjs',
'dargs',
'i18n',
'is-path-cwd',
'react-resize-detector',
'@storybook/jest',
'react-final-form',
'lodash.uniqby',
'minify',
'@babel/plugin-transform-parameters',
'article-ahead-means-entirely',
'react-leaflet',
'vue-quill-editor',
'mocha-multi-reporters',
'koa-compress',
'ability-star-writing1',
'hls.js',
'@sinclair/typebox',
'eslint-plugin-sort-class-members',
'eslint-plugin-deprecation',
'enquire-js',
'mv',
'@ava/babel',
'dexie',
'answer-ahead-mother-yes',
'wct-mocha',
'deep-eql',
'caller-path',
'gulp-angular-templatecache',
'@graphql-tools/schema',
'lodash.isarray',
'@vitest/coverage-istanbul',
'@vitest/coverage-istanbul',
'react-quill',
'@types/handlebars',
'rc-menu',
'@nomicfoundation/hardhat-toolbox',
'appearance-vapor-getting0',
'node.extend',
'fabric',
'polymer-cli',
'svelte-loader',
'connected-react-router',
'caseless',
'@angular-eslint/schematics',
'acorn-globals',
'@ckeditor/ckeditor5-word-count',
'anywhere-forward5',
'is-directory',
'@ionic-native/core',
'activity-becoming-round-fell',
'gulp-file',
'ape-reporting',
'actual-sail-field',
'websocket-stream',
'semantic-release-cli',
'jsonml.js',
'@types/storybook__addon-info',
'@hapi/lab',
'airplane-what-ship',
'away-bowl-web3-pool',
'@rushstack/eslint-config',
'nightmare',
'testling',
'postcss-px-to-viewport',
'@stdlib/utils-library-manifest',
'is-arguments',
'uid',
'os-homedir',
'ganache-core',
'rax',
'@ice/screenshot',
'@stdlib/constants-float64-pinf',
'@types/angular',
'@vue/vue3-jest',
'@phosphor/widgets',
'exec-sh',
'appearance-oldest-aware-fellow',
'function.prototype.name',
'announced-myself-running1',
'@tweenjs/tween.js',
'aws-sign2',
'@sendgrid/mail',
'deep-freeze',
'@radix-ui/react-toast',
'estraverse-fb',
'tiny-lr',
'@cloudflare/workers-types',
'applied-fifty-part',
'aproba',
'domutils',
'radium',
'ngrok',
'micro',
'aloud-check-fastened-opinion',
'vue-cli-plugin-element',
'conventional-changelog-eslint',
'@radix-ui/react-select',
'rc-animate',
'ripemd160',
'prettier-plugin-jsdoc',
'spdy',
'@uniswap/token-lists',
'react-emotion',
'chrome-trace-event',
'@stdlib/constants-float64-ninf',
'humps',
'arrive-felt-web3-second',
'date-fns-tz',
'browser-sync-webpack-plugin',
'adventure-can-effect-opportunity',
'broccoli-ember-hbs-template-compiler',
'after-heavy-web3-son',
'workbox-build',
'buffer-crc32',
'@babel/plugin-syntax-class-properties',
'esdoc-ecmascript-proposal-plugin',
'write',
'although-improve',
'yo',
'is',
'available-cowboy-web3-vessels',
'rlp',
'proxy-from-env',
'bull',
'react-document-title',
'react-hot-toast',
'less-vars-to-js',
'duplexer',
'es6-error',
'activity-principal-web3-who',
'prettier-package-json',
'all-fresh-fellow-easier',
'@stdlib/array-float64',
'sshpk',
'@types/command-line-args',
'animal-dirty-further',
'cjs-module-lexer',
'is-utf8',
'@stdlib/math-base-special-floor',
'karma-script-launcher',
'@types/warning',
'typedi',
'aid-cloud-doctor',
'compare-func',
'@nomicfoundation/hardhat-chai-matchers',
'detect-browser',
'asn1.js',
'cli-table2',
'react-live',
'gulp-karma',
'timers-browserify',
'cli-highlight',
'hardhat-contract-sizer',
'tinyify',
'faye-websocket',
'travis-cov',
'@types/d3-scale',
'snowpack',
'min-indent',
'grunt-contrib-requirejs',
'aboard-leave-web3-lesson',
'apart-off',
'lodash.snakecase',
'react-svg-loader',
'speed-measure-webpack-plugin',
'ate-floor-web3-learn',
'postcss-salad',
'prettier-linter-helpers',
'@types/query-string',
'gluegun',
'gulp-pug',
'vxe-table',
'babel-plugin-array-includes',
'chai-datetime',
'activity-strike-share1',
'email-validator',
'express-http-proxy',
'wait-for-expect',
'anser',
'gulp-newer',
'circular-json',
'resolve.exports',
'p-cancelable',
'arm-road-mine-planet',
'highland',
'@types/lodash.throttle',
'stacktrace-parser',
'typedoc-plugin-external-module-name',
'@types/tap',
'node-xlsx',
'argv',
'react-virtualized-auto-sizer',
'gulp-open',
'remarkable',
'@hapi/code',
'attention-union9',
'babel-plugin-root-import',
'@azure/ms-rest-js',
'fetch',
'@aws-sdk/client-documentation-generator',
'crc-32',
'mock-socket',
'async-each',
'@commitlint/prompt',
'tv4',
'fast-csv',
'danger',
'fast-json-patch',
'jwks-rsa',
'is-interactive',
'rome',
'ethereumjs-abi',
'accident-potatoes-but-basis',
'wd',
'webpack-visualizer-plugin',
'preact-render-to-string',
'ate-thou-cannot',
'@types/flat',
'ants-union-himself-believed',
'arrow-but-vowel0',
'stringify-object',
'minimalistic-assert',
'@noble/hashes',
'among-report-see-reader',
'@stdlib/assert-has-own-property',
'among-honor-nation-arrow',
'must',
'react-native-linear-gradient',
'delegates',
'act-naturally-rose-darkness',
'@aws-sdk/node-http-handler',
'selfsigned',
'age-alphabet',
'tildify',
'hiredis',
'tslint-consistent-codestyle',
'announced-deal-web3-cast',
'actually-low8',
'@types/websocket',
'army-factory',
'idb-keyval',
'postcss-color-function',
'@pika/plugin-build-web',
'@types/mockjs',
'json-buffer',
'react-ga',
'tsm',
'notistack',
'against-large-web3-went',
'aside-vowel-oldest',
'typedoc-plugin-missing-exports',
'is-hotkey',
'ansi-align',
'keypress',
'@webpack-cli/generators',
'@types/sortablejs',
'grunt-coveralls',
'ts-dedent',
'@graphql-tools/utils',
'json-schema-ref-parser',
'csv-stringify',
'@esm-bundle/chai',
'bundle-loader',
'dva',
'left-pad',
'are-in',
'gulp-gzip',
'cssstyle',
'@types/qunit',
'accurate-scale-dark-weight',
'tsyringe',
'bootstrap-icons',
'graphql-type-json',
'@stdlib/math-base-special-round',
'atomic-material1',
'docz-theme-default',
'github-slugger',
'postcss-modules-scope',
'karma-coffee-preprocessor',
'monaco-jsx-highlighter',
'afternoon-quickly-current-return',
'dom-serializer',
'forever-agent',
'args',
'babel-plugin-react-require',
'action-leave3',
'babel-plugin-css-modules-transform',
'xhr',
'postcss-modules-local-by-default',
'@iarna/toml',
'prepend-file',
'anybody-moment-paragraph-soft',
'clang-format',
'sqlite',
'@storybook/react-native',
'ability-short-mind',
'flux',
'conventional-commits-parser',
'@girs/gio-2.0',
'livereload',
'atom-diagram-wonderful',
'validate.js',
'cssesc',
'@types/bootstrap',
'eslint-plugin-jest-formatting',
'allow-horn-about',
'atmosphere-balloon-web3-longer',
'attempt-escape',
'gulp-jade',
'node-gyp-build',
'vorpal',
'eslint-plugin-fp',
'against-closer',
'callsite',
'@angular/upgrade',
'@types/web3',
'node-loader',
'grunt-mocha',
'css-select',
'@tiptap/core',
'has-ansi',
'gzip-size-cli',
'docsify-cli',
'jest-jasmine2',
'directory-tree',
'library.min.js',
'registry-url',
'auto-bind',
'@metamask/auto-changelog',
'connect-mongo',
'attached-shut-lose',
'mocha-loader',
'vue-codemirror',
'colorful',
'alphabet-forth-needle',
'@iceworks/spec',
'eslint-plugin-lit',
'promise-retry',
'appearance-wealth-wing8',
'@chakra-ui/icons',
'terminal-kit',
'react-infinite-scroller',
'tty-browserify',
'lodash.upperfirst',
'@mdi/js',
'@jupyterlab/builder',
'sirv',
'oauth-sign',
'@tsconfig/node12',
'@web/dev-server-storybook',
'@types/typescript',
'@nestjs/graphql',
'grunt-open',
'jake',
'hogan.js',
'prettier-stylelint',
'activity-settle-rabbit0',
'gulp-tag-version',
'domexception',
'swagger-parser',
'viewerjs',
'@tinymce/tinymce-vue',
'aloud-knowledge-web3-prepare',
'http-cache-semantics',
'babel-code-frame',
'unplugin',
'node-persist',
'app-module-path',
'account-clock-smoke',
'xml-name-validator',
'quasar',
'recoil',
'replace-ext',
'ndarray',
'@mui/system',
'bpmn-js',
'supervisor',
'stylis',
'systemjs-builder',
'anybody-appearance-clearly-go',
'viem',
'dts-generator',
'forwarded',
'rc-notification',
'@radix-ui/react-tabs',
'@types/async-retry',
'select2',
'about-hope-fighting8',
'@types/url-parse',
'@octokit/core',
'action-salt-command',
'handlebars-loader',
'uglifycss',
'air-palace-shine',
'react-codemirror2',
'babel-preset-fbjs',
'p-event',
'@stdlib/fs-read-file',
'batch',
'@storybook/addon-jest',
'@aws-sdk/util-user-agent-browser',
'eslint-config-xo-typescript',
'jwt-simple',
'nx',
'@types/lodash.set',
'babel-plugin-transform-rename-import',
'seamless-immutable',
'rc-tween-one',
'eslint-module-utils',
'@types/sequelize',
'@aws-sdk/util-user-agent-node',
'base64-arraybuffer',
'rc-table',
'whatwg-encoding',
'semver-diff',
'keccak',
'any-grown-shall',
'flow-remove-types',
'css-mqpacker',
'prebuild-install',
'author-wife-web3-pilot',
'array-uniq',
'internal-ip',
'@types/dedent',
'g',
'karma-html-reporter',
'@types/sass',
'mutationobserver-shim',
'vue-cropper',
'react-autosuggest',
'@types/http-errors',
'@types/http-errors',
'socks',
'react-autosuggest',
'area-pig-pour',
'symbol-observable',
'atomic-bright-within-dish',
'@sap-cloud-sdk/odata-common',
'glamor',
'appearance-breathe-invented6',
'keymirror',
'@babel/plugin-syntax-flow',
'extsprintf',
'unique-string',
'@juggle/resize-observer',
'aws-sdk-mock',
'jsonparse',
'aloud-giant-draw',
'browserify-aes',
'hard-rejection',
'n8n-workflow',
'@types/json5',
'string-similarity',
'@types/node-sass',
'sudo-prompt',
'advice-modern-claws',
'vite-plugin-svgr',
'xdg-basedir',
'arrangement-balance-weak',
'atom-number-eye',
'from2',
'anyway-nearest-hide6',
'@types/yaml',
'announced-roof-brave4',
'@mui/x-data-grid',
'apartment-brick',
'global-dirs',
'postcss-modules-extract-imports',
'@nuxt/types',
'@mdx-js/loader',
'@nestjs/jwt',
'rc-tree',
'node-ssh',
'@types/node-forge',
'dox',
'temp-dir',
'angular-animate',
'sugarss',
'vue-awesome-swiper',
'again-generally-grew',
'html-encoding-sniffer',
'docsearch.js',
'@types/react-copy-to-clipboard',
'around-separate-path-require',
'for-each',
'istanbul-harmony',
'@xmldom/xmldom',
'vscode-languageserver',
'babel-plugin-add-react-displayname',
'metro',
'answer-dozen-thing9',
'd3-transition',
'hdkey',
'react-text-mask',
'@webcomponents/custom-elements',
'text-mask-addons',
'idb',
'angular-sanitize',
'again-perhaps-plain3',
'n8n-core',
'fuse.js',
'@types/common-tags',
'browser-process-hrtime',
'jsprim',
'@zeit/ncc',
'atom-wise-web3-paid',
'babel-plugin-annotate-pure-calls',
'react-native-modal',
'arraybuffer.prototype.slice',
'webpack-md5-hash',
'@types/chroma-js',
'mocha-istanbul',
'availnode',
'@radix-ui/react-accordion',
'@aws-sdk/util-utf8-node',
'rollup-plugin-typescript-paths',
'single-line-log',
'd3-time-format',
'base-x',
'@vanilla-extract/css',
'additional-learn-character-wood',
'@ethersproject/transactions',
'area-zero-tightly-top',
'@tailwindcss/aspect-ratio',
'appearance-nodded-wave-memory',
'node-red-node-test-helper',
'wiredep',
'rc-tabs',
'react-reconciler',
'babel-plugin-react-intl',
'lunr',
'eslint-plugin-sort-destructure-keys',
'@sveltejs/adapter-static',
'p-each-series',
'react-github-button',
'ape-testing',
'better-npm-run',
'@vue/shared',
'inert',
'xml',
'data-urls',
'@types/tough-cookie',
'cids',
'autosize',
'yaml-loader',
'rc-progress',
'@aws-sdk/hash-node',
'lorem-ipsum',
'addition-government-rule',
'@rushstack/heft',
'@nuxt/eslint-config',
'arrow-brick',
'@types/which',
'react-native-device-info',
'jsondiffpatch',
'is-installed-globally',
'@uniswap/sdk-core',
'imagemin-svgo',
'registry-auth-token',
'lowercase-keys',
'art-introduced-poet0',
'bigi',
'rucksack-css',
'announced-frame-office0',
'prettier-check',
'@types/source-map',
'above-slightly-web3-example',
'poi',
'await-to-js',
'able-above-left-care',
'@open-wc/building-rollup',
'again-basis-indeed-minerals',
'connect-flash',
'another-while-when3',
'import-lazy',
'attempt-flew-badly-nobody',
'timekeeper',
'pacote',
'@aws-sdk/util-utf8-browser',
'babel-plugin-transform-react-jsx-source',
'shallow-equal',
'ape-covering',
'write-json-file',
'anything-great-web3-swept',
'superstruct',
'hbs',
'@stryker-mutator/core',
'ansi-to-html',
'redux-observable',
'amdefine',
'@radix-ui/react-label',
'@sap-cloud-sdk/core',
'urlencode',
'babel-plugin-transform-remove-strict-mode',
'core-js-pure',
'moment-range',
'alive-sell-roof-stairs',
'gulp-minify-html',
'bottleneck',
'gulp-wrap',
'prebuild',
'@types/jest-image-snapshot',
'semantic-release-monorepo',
'rfdc',
'vite-plugin-static-copy',
'@capacitor/cli',
'@types/unist',
'match-sorter',
'@react-spring/web',
'save',
'rc-queue-anim',
'@types/mapbox-gl',
'copy-paste',
'@angular-devkit/architect',
'aside-thing-web3-mean',
'babel-preset-es2015-node4',
'@aws-sdk/fetch-http-handler',
'symbol-tree',
'@codemirror/state',
'@antv/g6',
'scss',
'@react-native-community/async-storage',
'gulp-cache',
'@radix-ui/react-radio-group',
'byline',
'allow-being-driving',
'pem',
'@vue/cli',
'@iconify/types',
'babel-plugin-transform-async-to-promises',
'nats',
'offline-plugin',
'gatsby-plugin-manifest',
'@openzeppelin/test-helpers',
'p-defer',
'karma-source-map-support',
'eslint-plugin-vue-libs',
'normalizr',
'after',
'express-ws',
'@polkadot/util',
'sourcemap-codec',
'@stencil/utils',
'rc-pagination',
'connect-multiparty',
'@supabase/supabase-js',
'puppeteer-extra',
'node-sass-chokidar',
'bundle-collapser',
'@aws-sdk/util-body-length-browser',
'@aws-sdk/util-body-length-node',
'duplicate-package-checker-webpack-plugin',
'os-name',
'@tiptap/starter-kit',
'react-sticky',
'@ckeditor/ckeditor5-html-embed',
'jssha',
'sleep',
'opencollective-postinstall',
'restler',
'bcrypt-pbkdf',
'virtual-dom',
'phantom',
'sprintf',
'geckodriver',
'yjs',
'eslint-plugin-sort-imports-es6-autofix',
'nps-utils',
'imagemin-mozjpeg',
'broccoli',
'lodash.groupby',
'react-overlays',
'@types/rollup-plugin-peer-deps-external',
'aws-amplify',
'npm-package-arg',
'rc-checkbox',
'derequire',
'autoprefixer-core',
'lodash.mapvalues',
'@types/better-sqlite3',
'@swc-node/register',
'passport-oauth',
'cli-welcome',
'markdown-it-footnote',
'rc-resize-observer',
'widest-line',
'@mui/styled-engine-sc',
'postcss-css-variables',
'mocha-sinon',
'grunt-contrib-htmlmin',
'posthtml',
'eslint-plugin-no-use-extend-native',
'react-devtools-core',
'tracer',
'rax-view',
'rc-input-number',
'bisheng',
'@types/webpack-bundle-analyzer',
'babel-env',
'string-replace-webpack-plugin',
'jspm',
'chrome-launcher',
'answer-front-tin',
'nwsapi',
'@jswork/gulp-pkg-header',
'insert-css',
'eslint-plugin-nuxt',
'@radix-ui/react-icons',
'answer-again',
'arm-stick-web3-donkey',
'babel-plugin-syntax-class-properties',
'@metamask/eslint-config-nodejs',
'tiny-emitter',
'conventional-changelog-core',
'google-libphonenumber',
'@angularclass/hmr',
'eslint-plugin-optimize-regex',
'smart-buffer',
'eslint-plugin-prefer-object-spread',
'rc-dropdown',
'babel-plugin-typecheck',
'minimist-options',
'@tsconfig/react-native',
'redux-immutable',
'domelementtype',
'grunt-saucelabs',
'local-pkg',
'is-builtin-module',
'attached-bear-water',
'@mapbox/node-pre-gyp',
'minipass',
'rc-upload',
'active-whole-follow3',
'thunkify',
'abortcontroller-polyfill',
'browser-resolve',
'cli-boxes',
'air-left-river',
'emojis-list',
'@stdlib/process-exec-path',
'add-local-binaries-path',
'angular-ui-router',
'grunt-text-replace',
'@iconify/json',
'css-what',
'@walletconnect/web3-provider',
'cross-var',
'actual-pocket-wrote5',
'@types/papaparse',
'adjective-crop9',
'hardhat-typechain',
'oracledb',
'vite-plugin-solid',
'@ice/spec',
'bitcore-lib',
'@types/mz',
'@stdlib/cli-ctor',
'markdown-it-sup',
'@storybook/web-components',
'@react-aria/focus',
'@types/q',
'jest-preset-angular',
'ants-desk-factory',
'postinstall-postinstall',
'firebase-functions',
'@fullcalendar/daygrid',
'babel-plugin-minify-dead-code-elimination',
'toposort',
'lodash.clone',
'@storybook/manager-api',
'karma-env-preprocessor',
'@types/nanoid',
'@types/react-native-vector-icons',
'@nomicfoundation/hardhat-network-helpers',
'affect-win-experiment',
'mermaid',
'es-shim-unscopables',
'gulp-coffeelint',
'react-addons-pure-render-mixin',
'@expo/vector-icons',
'attached-someone-web3-medicine',
'web3-provider-engine',
'console-polyfill',
'grpc-tools',
'@types/app-root-path',
'@napi-rs/cli',
'@aws-sdk/util-base64-browser',
'also-personal-reach0',
'azure-storage',
'@types/ini',
'@types/passport-jwt',
'@cypress/code-coverage',
'decompress-response',
'@vuepress/plugin-back-to-top',
'stylelint-config-ckeditor5',
'@types/uglify-js',
'memory-cache',
'firebase-tools',
'at-married-tobacco9',
'@types/yeoman-generator',
'requires-port',
'rax-text',
'rehype-raw',
'ts-json-schema-generator',
'caller-callsite',
'xmldoc',
'@types/clear',
'tailwindcss-animate',
'argx',
'cls-hooked',
'ast-types-flow',
'among-break3',
'konva',
'lighthouse',
'runjs',
'git-remote-origin-url',
'@stdlib/assert-is-boolean',
'react-tabs',
'rollup-plugin-gzip',
'fake-indexeddb',
'at-pack-buffalo',
'storybook-addon-jsx',
'bplist-parser',
'yaml-front-matter',
'koa-convert',
'@types/throttle-debounce',
'jsonpath-plus',
'openzeppelin-solidity',
'@types/webpack-merge',
'ecc-jsbn',
'hardhat-abi-exporter',
'jsonpath-plus',
'random-access-memory',
'attached-pink-alone-leader',
'remark-html',
'@ckeditor/ckeditor5-ui',
'@types/jest-environment-puppeteer',
'ability-hit-before',
'@types/less',
'@fontsource/roboto',
'babel-plugin-transform-es2015-modules-systemjs',
'apollo-link-context',
'jest-coverage-badges',
'eslint-plugin-mdx',
'pinkie',
'apollo-server-core',
'domain-browser',
'sails',
'number-is-nan',
'pdfkit',
'saxes',
'natives',
'eslint-config-taro',
'es6-symbol',
'lodash.has',
'humanize-duration',
'assemblyscript',
'@pika/plugin-standard-pkg',
'babel-plugin-transform-es5-property-mutators',
'chai-fs',
'cron-parser',
'almost-single-myself4',
'answer-source-have',
'are-happen-powerful-equipment',
'@alicloud/openapi-client',
'koa-session',
'@aws-sdk/util-base64-node',
'echarts-for-react',
'portscanner',
'@tailwindcss/postcss7-compat',
'add-stream',
'@smithy/types',
'avoid-clearly-sun-color',
'react-dates',
'turndown',
'able-about-lying-herself',
'wolfy87-eventemitter',
'bisheng-plugin-react',
'am-roll-dull',
'dns-packet',
'@stdlib/utils-try-require',
'filemanager-webpack-plugin',
'all-express',
'age-fur-rapidly',
'jasmine-ajax',
'apollo-link-error',
'webdriver-manager',
'passport-http-bearer',
'pre-git',
'angle-wooden-better0',
'unirest',
'git-raw-commits',
'array-ify',
'avip-string-length',
'@lumino/widgets',
'react-fontawesome',
'flow',
'along-nation-fireplace',
'gulp-concat-css',
'@types/validate-npm-package-name',
'babili-webpack-plugin',
'-',
'@storybook/core-events',
'ember-cli-github-pages',
'@umijs/preset-react',
'karma-chai-sinon',
'@jupyterlab/coreutils',
'dot-object',
'gulp-conflict',
'stylelint-config-recommended-vue',
'sequelize-cli',
'has-yarn',
'mimic-response',
'decamelize-keys',
'simulant',
'gatsby-plugin-mdx',
'gulp-help',
'rc-collapse',
'focus-visible',
'avoid-breath',
'object.omit',
'@rbxts/types',
'vscode-uri',
'jsonld',
'@actions/github',
'eslint-plugin-es5',
'universal-cookie',
'@metamask/eslint-config-jest',
'mem-fs',
'@storybook/test-runner',
'passport-facebook',
'@testing-library/jest-native',
'mobile-detect',
'@types/helmet',
'react-cookie',
'@dnd-kit/core',
'git-semver-tags',
'react-pdf',
'eslint-plugin-regexp',
'vite-plugin-svg-icons',
'sjcl',
'@types/sqlite3',
'sift',
'imagemin-jpegtran',
'above-eaten-apartment',
'@clack/prompts',
'xterm',
'tslint-sonarts',
'ufo',
'@web3-react/types',
'babel-plugin-react-css-modules',
'@codemirror/view',
'remark-preset-wooorm',
'd3-scale-chromatic',
'defined',
'reconnecting-websocket',
'escape-goat',
'publish',
'babel-plugin-transform-exponentiation-operator',
'mem-fs-editor',
'rollup-plugin-flow',
'intl-messageformat',
'rc-switch',
'@alcalzone/release-script-plugin-license',
'@types/svgo',
'ember-truth-helpers',
'alone-plastic',
'@types/aws-sdk',
'create-react-context',
'gulpclass',
'jotai',
'@types/lodash.camelcase',
'automobile-influence-water2',
'pre-push',
'@types/echarts',
'rollup-plugin-summary',
'npm-run-all2',
'lazy-cache',
'listr2',
'adventure-television-dark2',
'@ckeditor/ckeditor5-page-break',
'decache',
'kebab-case',
'amazon-cognito-identity-js',
'unminified-webpack-plugin',
'archy',
'grapheme-splitter',
'about-since-giant',
'object.hasown',
'@babel/standalone',
'react-grid-layout',
'@types/jest-axe',
'@ethersproject/wallet',
'gauge',
'aphrodite',
'@tiptap/pm',
'@types/highlight.js',
'babel-plugin-transform-proto-to-assign',
'@ngrx/effects',
'acres-obtain-sent',
'@types/should',
'zen-observable',
'hubot-test-helper',
'responselike',
'openid-client',
'angular2',
'avoid-per',
'@aws-sdk/protocol-http',
'w3c-hr-time',
'lazypipe',
'import-from',
'@jswork/next',
'pupa',
'prosemirror-commands',
'stackframe',
'har-schema',
'@metamask/eslint-config-typescript',
'wide-align',
'around-essential-world-garden',
'es-check',
'roboto-fontface',
'remark-slug',
'@polymer/iron-icon',
'check-types',
'jest-environment-jsdom-sixteen',
'unplugin-vue-define-options',
'vscode',
'@babel/plugin-transform-react-inline-elements',
'react-infinite-scroll-component',
'@types/draft-js',
'grunt-gh-pages',
'@types/nunjucks',
'rc-drawer',
'keytar',
'assertion-error',
'draftjs-to-html',
'worker-farm',
'thunky',
'react-native-paper',
'@ngtools/webpack',
'core-decorators',
'666-tea',
'aid-throughout-golden',
'@types/koa__router',
'grunt-postcss',
'selenium-standalone',
'@openzeppelin/hardhat-upgrades',
'apollo-utilities',
'lodash.difference',
'@react-native-community/masked-view',
'unist-builder',
'@azure/storage-blob',
'@alcalzone/release-script-plugin-iobroker',
'vscode-languageserver-textdocument',
'vlq',
'file-url',
'is-absolute-url',
'expresso',
'workerpool',
'inline-style-prefixer',
'gatsby-transformer-remark',
'@types/koa-static',
'koa-views',
'@fullcalendar/core',
'@cosmjs/amino',
'anything-main-hunt-die',
'babel-plugin-transform-es2015-typeof-symbol',
'@types/serve-static',
'@storybook/vue3-vite',
'define-lazy-prop',
'globalthis',
'@webpack-cli/serve',
'air-one-accurate-wolf',
'activity-automobile-word',
'jetifier',
'log',
'loopback',
'libxmljs',
'react-native-elements',
'able-low-web3-memory',
'npx',
'@sindresorhus/slugify',
'react-draft-wysiwyg',
'according-stretch-here',
'pg-promise',
'babel-standalone',
'deprecated-react-native-prop-types',
'bisheng-plugin-description',
'comment-json',
'blakejs',
'webpack-shell-plugin',
'japa',
'randomatic',
'@types/secp256k1',
'arrangement-because-coat5',
'swc-loader',
'vue-svg-loader',
'wagmi',
'seneca',
'lodash.range',
'@vue/runtime-core',
'vite-plugin-md',
'nth-check',
'tempfile',
'jslint',
'gulp-stylelint',
'create-require',
'grunt-jsonlint',
'metro-config',
'st',
'puppeteer-extra-plugin-stealth',
'surge',
'deepcopy',
'raven',
'ts-proto',
'@next/eslint-plugin-next',
'console-browserify',
'babel-plugin-espower'
]
| wooorm/npm-high-impact | 100 | The high-impact (popular) packages of npm | JavaScript | wooorm | Titus | |
lib/top-download.js | JavaScript | export const topDownload = [
'semver',
'ansi-styles',
'debug',
'chalk',
'minimatch',
'supports-color',
'strip-ansi',
'ms',
'ansi-regex',
'string-width',
'tslib',
'brace-expansion',
'lru-cache',
'wrap-ansi',
'emoji-regex',
'glob',
'commander',
'color-convert',
'color-name',
'type-fest',
'source-map',
'has-flag',
'readable-stream',
'escape-string-regexp',
'p-locate',
'locate-path',
'picomatch',
'uuid',
'p-limit',
'find-up',
'safe-buffer',
'ajv',
'yallist',
'is-fullwidth-code-point',
'minipass',
'glob-parent',
'isarray',
'json-schema-traverse',
'signal-exit',
'string_decoder',
'js-yaml',
'which',
'eslint-visitor-keys',
'telecom-mas-agent',
'yargs-parser',
'argparse',
'iconv-lite',
'@types/node',
'acorn',
'globals',
'yargs',
'resolve',
'pretty-format',
'get-stream',
'resolve-from',
'ws',
'path-key',
'ignore',
'fs-extra',
'mime-db',
'path-exists',
'cliui',
'estraverse',
'kind-of',
'camelcase',
'json5',
'agent-base',
'react-is',
'postcss',
'cross-spawn',
'rimraf',
'punycode',
'is-stream',
'mime-types',
'form-data',
'webidl-conversions',
'@jridgewell/trace-mapping',
'inherits',
'eslint-scope',
'@babel/types',
'entities',
'mkdirp',
'convert-source-map',
'slash',
'qs',
'tr46',
'@jest/types',
'whatwg-url',
'shebang-regex',
'universalify',
'shebang-command',
'strip-json-comments',
'onetime',
'is-number',
'chokidar',
'undici-types',
'execa',
'https-proxy-agent',
'braces',
'make-dir',
'fill-range',
'isexe',
'micromatch',
'jsesc',
'picocolors',
'y18n',
'@babel/parser',
'function-bind',
'buffer',
'path-to-regexp',
'is-glob',
'js-tokens',
'statuses',
'schema-utils',
'cookie',
'strip-bom',
'minimist',
'balanced-match',
'readdirp',
'pify',
'get-intrinsic',
'has-symbols',
'@babel/helper-validator-identifier',
'@dataform/core',
'npm-run-path',
'parse-json',
'yaml',
'ci-info',
'@babel/generator',
'graceful-fs',
'to-regex-range',
'browserslist',
'negotiator',
'encodeurl',
'mime',
'normalize-path',
'lodash',
'fast-deep-equal',
'@jridgewell/sourcemap-codec',
'node-fetch',
'fast-glob',
'cosmiconfig',
'electron-to-chromium',
'ansi-escapes',
'hasown',
'jsonfile',
'escalade',
'object-inspect',
'yocto-queue',
'jest-worker',
'doctrine',
'human-signals',
'once',
'source-map-support',
'gopd',
'@babel/traverse',
'jest-util',
'es-define-property',
'es-errors',
'concat-map',
'@types/yargs',
'depd',
'wrappy',
'is-arrayish',
'@smithy/util-utf8',
'@types/estree',
'has-tostringtag',
'http-errors',
'@babel/runtime',
'caniuse-lite',
'@babel/template',
'callsites',
'dotenv',
'globby',
'@jridgewell/gen-mapping',
'http-proxy-agent',
'path-type',
'@babel/core',
'anymatch',
'ini',
'is-core-module',
'is-extglob',
'espree',
'call-bind-apply-helpers',
'import-fresh',
'esbuild',
'node-releases',
'axios',
'jackspeak',
'@babel/code-frame',
'async',
'@rollup/rollup-linux-x64-musl',
'sprintf-js',
'@aws-sdk/types',
'path-scurry',
'mimic-fn',
'util-deprecate',
'typescript',
'get-proto',
'@jridgewell/resolve-uri',
'get-caller-file',
'type-check',
'es-set-tostringtag',
'path-parse',
'@smithy/types',
'slice-ansi',
'safer-buffer',
'@babel/helper-module-imports',
'esprima',
'update-browserslist-db',
'optionator',
'@babel/helper-plugin-utils',
'@babel/helper-module-transforms',
'combined-stream',
'eslint',
'delayed-stream',
'nanoid',
'rxjs',
'asynckit',
'es-object-atoms',
'setprototypeof',
'flat-cache',
'object-assign',
'pkg-dir',
'levn',
'dunder-proto',
'postcss-selector-parser',
'fastq',
'json-parse-even-better-errors',
'cli-cursor',
'@babel/helper-string-parser',
'fast-json-stable-stringify',
'imurmurhash',
'define-property',
'write-file-atomic',
'magic-string',
'hosted-git-info',
'@babel/helpers',
'prelude-ls',
'@babel/compat-data',
'require-directory',
'follow-redirects',
'call-bind',
'esutils',
'reusify',
'p-try',
'lines-and-columns',
'diff',
'core-util-is',
'supports-preserve-symlinks-flag',
'fast-levenshtein',
'@smithy/util-buffer-from',
'foreground-child',
'chownr',
'is-plain-obj',
'path-is-absolute',
'strip-final-newline',
'math-intrinsics',
'@jest/schemas',
'file-entry-cache',
'parent-module',
'flatted',
'@smithy/is-array-buffer',
'uri-js',
'run-parallel',
'@babel/helper-validator-option',
'extend-shallow',
'@esbuild/linux-x64',
'parse5',
'fs.realpath',
'restore-cursor',
'istanbul-lib-instrument',
'finalhandler',
'tough-cookie',
'keyv',
'@nodelib/fs.stat',
'bytes',
'binary-extensions',
'queue-microtask',
'@babel/helper-compilation-targets',
'on-finished',
'merge2',
'base64-js',
'open',
'ajv-keywords',
'@eslint/eslintrc',
'ipaddr.js',
'call-bound',
'raw-body',
'is-binary-path',
'@typescript-eslint/typescript-estree',
'buffer-from',
'acorn-jsx',
'ieee754',
'has-property-descriptors',
'@nodelib/fs.scandir',
'natural-compare',
'p-map',
'is-callable',
'estree-walker',
'@typescript-eslint/types',
'deep-is',
'proxy-from-env',
'is-regex',
'acorn-walk',
'is-wsl',
'prettier',
'@nodelib/fs.walk',
'eventemitter3',
'@typescript-eslint/visitor-keys',
'define-properties',
'indent-string',
'regenerator-runtime',
'source-map-js',
'esrecurse',
'@types/json-schema',
'esquery',
'send',
'detect-libc',
'domhandler',
'log-symbols',
'domutils',
'which-typed-array',
'fresh',
'error-ex',
'@eslint/js',
'@sinclair/typebox',
'object.assign',
'postcss-value-parser',
'accepts',
'arg',
'jest-message-util',
'jest-regex-util',
'side-channel-list',
'define-data-property',
'json-buffer',
'json-stable-stringify-without-jsonify',
'body-parser',
'media-typer',
'express',
'side-channel-weakmap',
'jest-diff',
'dom-serializer',
'content-disposition',
'csstype',
'type-is',
'pump',
'lightningcss-linux-x64-musl',
'aria-query',
'lodash.merge',
'loader-utils',
'@typescript-eslint/scope-manager',
'is-plain-object',
'eastasianwidth',
'zod',
'is-unicode-supported',
'@eslint-community/regexpp',
'@eslint-community/eslint-utils',
'gensync',
'merge-stream',
'is-docker',
'es-abstract',
'cookie-signature',
'deepmerge',
'is-typed-array',
'@img/sharp-linuxmusl-x64',
'inflight',
'retry',
'end-of-stream',
'side-channel-map',
'available-typed-arrays',
'merge-descriptors',
'tapable',
'require-from-string',
'word-wrap',
'tar',
'tmp',
'object-keys',
'set-function-length',
'tsconfig-paths',
'jiti',
'@tailwindcss/oxide-linux-x64-musl',
'safe-regex-test',
'is-extendable',
'mute-stream',
'for-each',
'normalize-package-data',
'array-union',
'enhanced-resolve',
'side-channel',
'events',
'is-symbol',
'@isaacs/cliui',
'content-type',
'figures',
'domelementtype',
'process-nextick-args',
'istanbul-lib-coverage',
'toidentifier',
'es-to-primitive',
'regexp.prototype.flags',
'isobject',
'@humanwhocodes/module-importer',
'ee-first',
'escape-html',
'unpipe',
'rollup',
'string.prototype.trimend',
'range-parser',
'@types/react',
'is-date-object',
'is-string',
'@opentelemetry/semantic-conventions',
'jest-get-type',
'css-tree',
'@sinonjs/fake-timers',
'mdn-data',
'is-shared-array-buffer',
'jest-mock',
'loose-envify',
'vary',
'parseurl',
'which-boxed-primitive',
'clone',
'core-js',
'bl',
'sax',
'istanbul-lib-source-maps',
'jest-matcher-utils',
'@opentelemetry/core',
'etag',
'possible-typed-array-names',
'colorette',
'serialize-javascript',
'htmlparser2',
'test-exclude',
'is-path-inside',
'@babel/helper-annotate-as-pure',
'is-descriptor',
'jest-haste-map',
'read-pkg',
'terser',
'bn.js',
'decamelize',
'@types/babel__core',
'is-generator-function',
'is-bigint',
'pirates',
'internal-slot',
'fdir',
'xtend',
'cjs-module-lexer',
'graphemer',
'is-weakref',
'is-boolean-object',
'@typescript-eslint/utils',
'whatwg-mimetype',
'has-proto',
'type-detect',
'fast-xml-parser',
'string.prototype.trimstart',
'@pkgjs/parseargs',
'dir-glob',
'ts-api-utils',
'minizlib',
'ajv-formats',
'@types/babel__generator',
'expect',
'package-json-from-dist',
'forwarded',
'unbox-primitive',
'@jest/transform',
'@smithy/property-provider',
'ora',
'@smithy/protocol-http',
'is-array-buffer',
'typed-array-buffer',
'tar-stream',
'diff-sequences',
'mimic-response',
'@sinonjs/commons',
'@types/babel__template',
'webpack-sources',
'istanbul-reports',
'extend',
'array-buffer-byte-length',
'proxy-addr',
'function.prototype.name',
'is-number-object',
'globalthis',
'get-symbol-description',
'@types/babel__traverse',
'typed-array-length',
'kleur',
'@babel/plugin-syntax-jsx',
'pako',
'@types/istanbul-reports',
'fs-minipass',
'istanbul-lib-report',
'html-escaper',
'set-function-name',
'@jest/test-result',
'jwa',
'strip-indent',
'dedent',
'vite',
'string.prototype.trim',
'prop-types',
'has-bigints',
'define-lazy-prop',
'@aws-sdk/middleware-user-agent',
'typed-array-byte-offset',
'safe-array-concat',
'@jest/console',
'destroy',
'nopt',
'array-flatten',
'@aws-sdk/util-user-agent-browser',
'@aws-sdk/util-user-agent-node',
'array-includes',
'is-negative-zero',
'functions-have-names',
'@aws-sdk/middleware-logger',
'@jest/environment',
'@babel/helper-member-expression-to-functions',
'pathe',
'@istanbuljs/schema',
'@humanwhocodes/retry',
'es-module-lexer',
'jest-validate',
'css-select',
'utils-merge',
'@aws-sdk/middleware-host-header',
'is-map',
'@typescript-eslint/parser',
'@aws-sdk/credential-provider-env',
'whatwg-encoding',
'babel-jest',
'@types/express-serve-static-core',
'is-set',
'@aws-sdk/credential-provider-node',
'is-buffer',
'serve-static',
'@aws-sdk/core',
'@aws-sdk/credential-provider-ini',
'babel-plugin-istanbul',
'@jest/fake-timers',
'@aws-sdk/middleware-recursion-detection',
'is-weakset',
'clsx',
'object.values',
'which-collection',
'jest-resolve',
'typed-array-byte-length',
'babel-plugin-jest-hoist',
'cssesc',
'@babel/plugin-syntax-typescript',
'css-what',
'cli-width',
'escodegen',
'find-cache-dir',
'@babel/helper-replace-supers',
'@types/yargs-parser',
'@aws-sdk/token-providers',
'ansi-colors',
'array.prototype.flat',
'through',
'lilconfig',
'neo-async',
'arraybuffer.prototype.slice',
'@aws-sdk/util-endpoints',
'leven',
'jest-watcher',
'jsdom',
'@types/istanbul-lib-coverage',
'xmlbuilder',
'methods',
'string-length',
'long',
'@rollup/rollup-linux-x64-gnu',
'jest-docblock',
'@aws-sdk/credential-provider-web-identity',
'babel-preset-jest',
'@types/react-dom',
'randombytes',
'@aws-sdk/credential-provider-sso',
'import-local',
'@types/unist',
'through2',
'inquirer',
'@smithy/shared-ini-file-loader',
'text-table',
'cssom',
'@types/send',
'@aws-sdk/credential-provider-process',
'resolve-cwd',
'data-view-buffer',
'nth-check',
'tinyglobby',
'read-pkg-up',
'@ampproject/remapping',
'data-view-byte-offset',
'abbrev',
'dom-accessibility-api',
'@smithy/smithy-client',
'chardet',
'@aws-sdk/client-sso',
'fast-uri',
'xml-name-validator',
'data-urls',
'@typescript-eslint/eslint-plugin',
'@babel/helper-create-class-features-plugin',
'@smithy/abort-controller',
'strnum',
'is-weakmap',
'cssstyle',
'@babel/helper-optimise-call-expression',
'char-regex',
'stack-utils',
'regjsparser',
'cli-spinners',
'@types/express',
'@jest/source-map',
'process',
'jest-leak-detector',
'jest-environment-node',
'@types/stack-utils',
'es-shim-unscopables',
'util',
'pnpm',
'is-data-view',
'node-addon-api',
'webpack',
'@smithy/fetch-http-handler',
'detect-newline',
'is-async-function',
'ts-node',
'@types/istanbul-lib-report',
'socks-proxy-agent',
'make-error',
'@smithy/util-middleware',
'eslint-plugin-import',
'object.fromentries',
'jest-resolve-dependencies',
'jest',
'@babel/plugin-syntax-object-rest-spread',
'jest-snapshot',
'@smithy/url-parser',
'@smithy/util-stream',
'@jest/expect-utils',
'@smithy/middleware-serde',
'requires-port',
'date-fns',
'spdx-expression-parse',
'spdx-license-ids',
'clean-stack',
'normalize-url',
'@smithy/middleware-endpoint',
'@tootallnate/once',
'co',
'@smithy/querystring-builder',
'buffer-crc32',
'emittery',
'jest-changed-files',
'prompts',
'@smithy/node-config-provider',
'jest-runtime',
'@babel/plugin-syntax-numeric-separator',
'@babel/helper-skip-transparent-expression-wrappers',
'@babel/plugin-syntax-top-level-await',
'cacache',
'eslint-module-utils',
'is-finalizationregistry',
'array.prototype.flatmap',
'@babel/plugin-syntax-import-attributes',
'is-interactive',
'core-js-compat',
'jest-cli',
'ssri',
'terser-webpack-plugin',
'@opentelemetry/api-logs',
'sisteransi',
'bser',
'@smithy/node-http-handler',
'@babel/plugin-transform-modules-commonjs',
'@babel/plugin-syntax-optional-catch-binding',
'@types/qs',
'@bcoe/v8-coverage',
'saxes',
'@smithy/util-base64',
'data-view-byte-length',
'@jest/reporters',
'data-uri-to-buffer',
'@babel/plugin-syntax-nullish-coalescing-operator',
'@smithy/util-hex-encoding',
'@aws-sdk/credential-provider-http',
'node-int64',
'eslint-config-prettier',
'jest-runner',
'@eslint/core',
'split2',
'@smithy/util-retry',
'@babel/plugin-syntax-class-properties',
'jsbn',
'@babel/plugin-syntax-async-generators',
'aggregate-error',
'eslint-import-resolver-node',
'ast-types',
'shell-quote',
'watchpack',
'reflect.getprototypeof',
'@smithy/util-uri-escape',
'socks',
'decimal.js',
'jest-config',
'@types/serve-static',
'arrify',
'html-encoding-sniffer',
'color',
'@typescript-eslint/type-utils',
'@jridgewell/source-map',
'@smithy/signature-v4',
'v8-to-istanbul',
'walker',
'bluebird',
'@ungap/structured-clone',
'@babel/plugin-syntax-json-strings',
'w3c-xmlserializer',
'which-builtin-type',
'get-package-type',
'@babel/plugin-syntax-optional-chaining',
'@babel/plugin-syntax-import-meta',
'stop-iteration-iterator',
'object.entries',
'tmpl',
'babel-preset-current-node-syntax',
'@smithy/middleware-stack',
'baseline-browser-mapping',
'@babel/plugin-transform-parameters',
'@babel/plugin-transform-destructuring',
'jest-each',
'fb-watchman',
'@humanwhocodes/config-array',
'set-blocking',
'lodash.isplainobject',
'env-paths',
'spdx-correct',
'object-hash',
'@babel/highlight',
'@jest/globals',
'babel-plugin-polyfill-corejs3',
'spdx-exceptions',
'@smithy/querystring-parser',
'@babel/plugin-transform-modules-umd',
'@smithy/middleware-retry',
'@jest/test-sequencer',
'@aws-sdk/region-config-resolver',
'@istanbuljs/load-nyc-config',
'@types/body-parser',
'@smithy/util-defaults-mode-node',
'@colors/colors',
'@babel/plugin-syntax-logical-assignment-operators',
'wordwrap',
'uglify-js',
'autoprefixer',
'@radix-ui/react-primitive',
'@babel/helper-create-regexp-features-plugin',
'@types/json5',
'psl',
'@babel/plugin-transform-classes',
'boolbase',
'@smithy/core',
'@smithy/util-defaults-mode-browser',
'@jest/core',
'regexpu-core',
'@webassemblyjs/ast',
'@babel/helper-define-polyfill-provider',
'@humanwhocodes/object-schema',
'file-type',
'is-arguments',
'is-typedarray',
'glob-to-regexp',
'@types/ws',
'@babel/plugin-transform-template-literals',
'@babel/plugin-transform-spread',
'@smithy/credential-provider-imds',
'@babel/plugin-transform-shorthand-properties',
'chai',
'@types/mime',
'@babel/plugin-transform-function-name',
'is-generator-fn',
'redent',
'loader-runner',
'@smithy/middleware-content-length',
'scheduler',
'@webassemblyjs/helper-wasm-bytecode',
'smart-buffer',
'@babel/plugin-transform-block-scoping',
'defaults',
'regenerate-unicode-properties',
'makeerror',
'on-headers',
'@smithy/service-error-classification',
'@types/range-parser',
'@webassemblyjs/wasm-opt',
'@webassemblyjs/helper-wasm-section',
'protobufjs',
'symbol-tree',
'ip-address',
'jest-circus',
'is-obj',
'@webassemblyjs/wast-printer',
'@webassemblyjs/utf8',
'rfdc',
'@eslint/plugin-kit',
'@webassemblyjs/helper-api-error',
'validate-npm-package-license',
'@types/jest',
'@babel/plugin-transform-async-to-generator',
'eslint-plugin-react',
'http-cache-semantics',
'xmlchars',
'@opentelemetry/instrumentation',
'jws',
'@webassemblyjs/helper-buffer',
'@smithy/util-body-length-browser',
'cli-truncate',
'tailwindcss',
'@tsconfig/node10',
'@webassemblyjs/ieee754',
'@img/sharp-libvips-linuxmusl-x64',
'@jridgewell/set-array',
'@webassemblyjs/wasm-edit',
'safe-push-apply',
'@babel/plugin-transform-modules-systemjs',
'@babel/helper-globals',
'get-tsconfig',
'run-async',
'collect-v8-coverage',
'jest-pnp-resolver',
'@types/uuid',
'decompress-response',
'unicode-match-property-value-ecmascript',
'yn',
'pure-rand',
'json-stringify-safe',
'@tsconfig/node16',
'lower-case',
'@types/lodash',
'@babel/plugin-transform-member-expression-literals',
'tinyexec',
'abort-controller',
'nwsapi',
'@babel/plugin-transform-for-of',
'dayjs',
'babel-plugin-polyfill-corejs2',
'@babel/plugin-transform-arrow-functions',
'lodash.debounce',
'@babel/plugin-transform-sticky-regex',
'@babel/plugin-transform-literals',
'@smithy/config-resolver',
'jsx-ast-utils',
'@vitest/utils',
'@babel/helper-wrap-function',
'@babel/plugin-transform-computed-properties',
'immutable',
'@webassemblyjs/leb128',
'@babel/helper-remap-async-to-generator',
'@types/eslint',
'dequal',
'@babel/plugin-transform-exponentiation-operator',
'@cspotcode/source-map-support',
'@babel/plugin-transform-named-capturing-groups-regex',
'@floating-ui/dom',
'lowercase-keys',
'quick-lru',
'no-case',
'@aws-crypto/util',
'color-string',
'@tsconfig/node14',
'@swc/helpers',
'meow',
'concat-stream',
'@webassemblyjs/wasm-parser',
'@babel/plugin-transform-property-literals',
'@babel/plugin-transform-regenerator',
'@babel/preset-env',
'is-data-descriptor',
'@babel/plugin-transform-new-target',
'@types/prop-types',
'@babel/plugin-transform-dotall-regex',
'@opentelemetry/resources',
'@babel/plugin-transform-reserved-words',
'@octokit/types',
'@webassemblyjs/floating-point-hex-parser',
'@smithy/invalid-dependency',
'wcwidth',
'@babel/plugin-transform-block-scoped-functions',
'@typescript-eslint/tsconfig-utils',
'set-proto',
'@smithy/util-body-length-node',
'@babel/plugin-transform-object-super',
'log-update',
'string.prototype.matchall',
'@webassemblyjs/wasm-gen',
'@jridgewell/remapping',
'he',
'lodash.memoize',
'@typescript-eslint/project-service',
'@rollup/pluginutils',
'create-require',
'@smithy/hash-node',
'unique-slug',
'unicode-canonical-property-names-ecmascript',
'dot-prop',
'react',
'jsonc-parser',
'resolve-pkg-maps',
'v8-compile-cache-lib',
'babel-plugin-polyfill-regenerator',
'@babel/plugin-proposal-private-property-in-object',
'exit',
'tar-fs',
'event-target-shim',
'json-schema',
'map-obj',
'@types/graceful-fs',
'@jest/expect',
'@babel/plugin-transform-unicode-regex',
'@sindresorhus/is',
'chrome-trace-event',
'@babel/plugin-transform-unicode-escapes',
'ecdsa-sig-formatter',
'@babel/plugin-transform-typeof-symbol',
'assertion-error',
'url-parse',
'is-accessor-descriptor',
'@babel/plugin-transform-modules-amd',
'gaxios',
'@babel/plugin-syntax-private-property-in-object',
'unicode-match-property-ecmascript',
'@tsconfig/node12',
'got',
'require-main-filename',
'proc-log',
'commondir',
'is-potential-custom-element-name',
'@babel/plugin-syntax-import-assertions',
'deep-eql',
'@aws-crypto/sha256-js',
'resolve.exports',
'@babel/plugin-transform-duplicate-keys',
'@babel/plugin-syntax-class-static-block',
'normalize-range',
'undici',
'extsprintf',
'@floating-ui/core',
'postcss-load-config',
'node-forge',
'@aws-sdk/xml-builder',
'own-keys',
'@emnapi/runtime',
'@protobufjs/float',
'is-windows',
'asap',
'@smithy/util-endpoints',
'@xtuc/long',
'tunnel-agent',
'jsonwebtoken',
'@testing-library/dom',
'@xtuc/ieee754',
'listr2',
'handlebars',
'@types/parse-json',
'@types/connect',
'assert-plus',
'object.groupby',
'regjsgen',
'progress',
'any-promise',
'deep-extend',
'@smithy/util-config-provider',
'setimmediate',
'interpret',
'lodash.isstring',
'buffer-equal-constant-time',
'make-fetch-happen',
'xml2js',
'tweetnacl',
'array.prototype.findlastindex',
'@octokit/openapi-types',
'@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression',
'@types/http-errors',
'querystringify',
'@vitest/pretty-format',
'astral-regex',
'compression',
'yauzl',
'react-dom',
'which-module',
'safe-stable-stringify',
'cors',
'@babel/helper-split-export-declaration',
'moment',
'@webassemblyjs/helper-numbers',
'loupe',
'min-indent',
'lodash.once',
'unicode-property-aliases-ecmascript',
'rc',
'nan',
'@radix-ui/react-slot',
'big.js',
'check-error',
'axobject-query',
'performance-now',
'@types/semver',
'compressible',
'unique-filename',
'axe-core',
'@aws-crypto/supports-web-crypto',
'@npmcli/fs',
'@eslint/object-schema',
'fraction.js',
'@aws-sdk/nested-clients',
'@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining',
'@radix-ui/react-context',
'load-json-file',
'p-finally',
'@types/ms',
'os-tmpdir',
'@babel/plugin-transform-private-methods',
'async-function',
'@emotion/memoize',
'is-promise',
'@eslint/config-array',
'@babel/plugin-transform-object-rest-spread',
'@babel/plugin-transform-class-properties',
'typedarray',
'stylis',
'regenerate',
'@humanfs/core',
'@radix-ui/react-compose-refs',
'array.prototype.tosorted',
'tiny-invariant',
'pathval',
'minimalistic-assert',
'@opentelemetry/sdk-trace-base',
'@babel/plugin-transform-typescript',
'@babel/plugin-transform-optional-chaining',
'mz',
'@unrs/resolver-binding-linux-x64-musl',
'emojis-list',
'google-auth-library',
'@babel/preset-modules',
'thenify-all',
'deep-equal',
'p-cancelable',
'lodash.camelcase',
'has-values',
'component-emitter',
'to-fast-properties',
'fsevents',
'@napi-rs/wasm-runtime',
'@humanfs/node',
'hoist-non-react-statics',
'@radix-ui/primitive',
'has-value',
'@vitest/spy',
'@babel/plugin-transform-private-property-in-object',
'@vitest/expect',
'supports-hyperlinks',
'lodash.isboolean',
'fast-diff',
'simple-swizzle',
'fs-constants',
'@babel/plugin-transform-logical-assignment-operators',
'es-iterator-helpers',
'minipass-fetch',
'memfs',
'cross-fetch',
'synckit',
'asn1',
'@floating-ui/react-dom',
'gtoken',
'@babel/plugin-transform-numeric-separator',
'iterator.prototype',
'@babel/plugin-transform-nullish-coalescing-operator',
'@opentelemetry/api',
'@grpc/proto-loader',
'html-entities',
'jose',
'flat',
'gcp-metadata',
'validate-npm-package-name',
'@protobufjs/pool',
'@babel/plugin-transform-async-generator-functions',
'@eslint/config-helpers',
'@testing-library/jest-dom',
'@babel/preset-typescript',
'global-prefix',
'cacheable-request',
'@aws-crypto/sha256-browser',
'external-editor',
'@babel/plugin-transform-optional-catch-binding',
'@babel/helper-simple-access',
'thenify',
'@protobufjs/eventemitter',
'@protobufjs/inquire',
'@protobufjs/base64',
'@babel/plugin-transform-unicode-property-regex',
'global-modules',
'unist-util-visit-parents',
'camel-case',
'web-streams-polyfill',
'http-signature',
'enquirer',
'rechoir',
'css-loader',
'npm-package-arg',
'svgo',
'pend',
'eslint-plugin-prettier',
'ejs',
'verror',
'unist-util-is',
'tree-kill',
'@protobufjs/utf8',
'@protobufjs/fetch',
'sshpk',
'bignumber.js',
'@types/normalize-package-data',
'dot-case',
'param-case',
'@emotion/unitless',
'@radix-ui/react-use-layout-effect',
'duplexify',
'minipass-collect',
'@floating-ui/utils',
'pkg-types',
'@babel/helper-function-name',
'@babel/plugin-transform-export-namespace-from',
'@rtsao/scc',
'@pkgr/core',
'@graphql-tools/utils',
'lodash.includes',
'colors',
'@babel/plugin-transform-unicode-sets-regex',
'@types/aria-query',
'@types/eslint-scope',
'graphql',
'babel-plugin-macros',
'@babel/plugin-transform-class-static-block',
'@protobufjs/path',
'fd-slicer',
'@protobufjs/codegen',
'@inquirer/type',
'lodash.isinteger',
'aws4',
'array.prototype.findlast',
'unist-util-visit',
'fast-safe-stringify',
'acorn-globals',
'std-env',
'webpack-dev-middleware',
'decode-uri-component',
'@babel/plugin-transform-react-jsx',
'bcrypt-pbkdf',
'p-retry',
'babel-loader',
'lz-string',
'postcss-modules-extract-imports',
'@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly',
'aproba',
'@emnapi/core',
'abab',
'@babel/plugin-transform-json-strings',
'lodash.isnumber',
'dotenv-expand',
'responselike',
'eslint-utils',
'encoding',
'@types/hast',
'getpass',
'@hapi/hoek',
'jake',
'http-proxy-middleware',
'icss-utils',
'postcss-modules-values',
'@radix-ui/react-use-controllable-state',
'path-browserify',
'@babel/plugin-transform-dynamic-import',
'node-gyp-build',
'http-parser-js',
'err-code',
'widest-line',
'@types/tough-cookie',
'sharp',
'd3-array',
'caseless',
'url',
'damerau-levenshtein',
'tsutils',
'@grpc/grpc-js',
'postcss-modules-local-by-default',
'bowser',
'isstream',
'@szmarczak/http-timer',
'@protobufjs/aspromise',
'dashdash',
'lodash.uniq',
'domexception',
'fflate',
'at-least-node',
'node-gyp',
'filelist',
'@adobe/css-tools',
'repeat-string',
'@babel/plugin-syntax-unicode-sets-regex',
'consola',
'p-timeout',
'websocket-driver',
'eslint-plugin-jsx-a11y',
'postcss-modules-scope',
'promise-retry',
'invariant',
'get-east-asian-width',
'react-transition-group',
'cli-table3',
'crypto-random-string',
'is-ci',
'string.prototype.repeat',
'unicorn-magic',
'micromark-util-symbol',
'are-we-there-yet',
'object-is',
'@radix-ui/react-presence',
'clone-deep',
'ts-jest',
'language-tags',
'language-subtag-registry',
'tinyspy',
'@types/retry',
'string-argv',
'ua-parser-js',
'ret',
'csso',
'@radix-ui/react-dismissable-layer',
'unique-string',
'character-entities',
'faye-websocket',
'http-proxy',
'pascal-case',
'forever-agent',
'stream-shift',
'ecc-jsbn',
'npmlog',
'pretty-bytes',
'ast-types-flow',
'jsprim',
'unist-util-stringify-position',
'streamsearch',
'mdast-util-to-string',
'@emotion/is-prop-valid',
'minipass-flush',
'postcss-import',
'@radix-ui/react-id',
'@inquirer/core',
'classnames',
'sucrase',
'@babel/plugin-bugfix-firefox-class-in-computed-class-key',
'husky',
'shallow-clone',
'read-cache',
'd3-shape',
'@aws-sdk/util-locate-window',
'vfile',
'lodash-es',
'dom-helpers',
'css.escape',
'pluralize',
'@radix-ui/react-use-callback-ref',
'promise',
'@types/debug',
'pg-types',
'prettier-linter-helpers',
'react-router-dom',
'tldts-core',
'websocket-extensions',
'has',
'@smithy/util-waiter',
'@babel/plugin-transform-runtime',
'@vitest/snapshot',
'import-in-the-middle',
'duplexer',
'marked',
'gauge',
'micromark-util-character',
'@vitest/runner',
'json-parse-better-errors',
'detect-node',
'@testing-library/react',
'@babel/plugin-transform-react-display-name',
'd3-path',
'fast-fifo',
'npm-normalize-package-bin',
'@radix-ui/react-portal',
'eslint-plugin-react-hooks',
'detect-indent',
'immer',
'sass',
'@octokit/request-error',
'lie',
'tinyrainbow',
'streamx',
'@types/minimatch',
'postcss-js',
'acorn-import-attributes',
'webpack-virtual-modules',
'@alloc/quick-lru',
'node-domexception',
'cli-boxes',
'@noble/hashes',
'jest-environment-jsdom',
'aws-sign2',
'character-entities-legacy',
'vitest',
'table',
'@tybys/wasm-util',
'@emotion/hash',
'typedarray-to-buffer',
'sha.js',
'minipass-pipeline',
'typescript-eslint',
'@babel/preset-react',
'memoize-one',
'react-remove-scroll',
'property-information',
'stack-trace',
'camelcase-keys',
'@img/sharp-linux-x64',
'dlv',
'reflect-metadata',
'busboy',
'@babel/plugin-transform-react-jsx-source',
'boxen',
'postgres-array',
'@testing-library/user-event',
'luxon',
'postgres-bytea',
'@types/mdast',
'@types/chai',
'b4a',
'd3-interpolate',
'archiver-utils',
'postcss-nested',
'ts-interface-checker',
'defer-to-connect',
'immediate',
'postgres-date',
'eslint-import-resolver-typescript',
'unplugin',
'@inquirer/confirm',
'clean-css',
'arr-diff',
'mrmime',
'crc-32',
'd3-time',
'pidtree',
'file-uri-to-path',
'unified',
'bs-logger',
'@octokit/endpoint',
'rrweb-cssom',
'lodash.sortby',
'hash-base',
'module-details-from-path',
'validator',
'@radix-ui/react-use-escape-keydown',
'pg-protocol',
'@csstools/css-tokenizer',
'@babel/helper-hoist-variables',
'extract-zip',
'stackframe',
'winston',
'builtin-modules',
'fork-ts-checker-webpack-plugin',
'process-warning',
'style-loader',
'@inquirer/figures',
'@babel/plugin-transform-react-jsx-development',
'json-bigint',
'micromark-util-types',
'micromark',
'fastest-levenshtein',
'jquery',
'@smithy/eventstream-codec',
'@vitest/mocker',
'delegates',
'@emnapi/wasi-threads',
'@octokit/request',
'cac',
'upath',
'vfile-message',
'@csstools/css-parser-algorithms',
'postgres-interval',
'minipass-sized',
'space-separated-tokens',
'require-in-the-middle',
'@babel/plugin-transform-duplicate-named-capturing-groups-regex',
'@babel/plugin-bugfix-safari-class-field-initializer-scope',
'confbox',
'obuf',
'parse-entities',
'http2-wrapper',
'common-tags',
'@img/sharp-libvips-linux-x64',
'get-uri',
'is-alphanumerical',
'create-jest',
'redux',
'@babel/helper-environment-visitor',
'napi-postinstall',
'@radix-ui/react-focus-guards',
'tsx',
'@azure/abort-controller',
'vite-node',
'is-decimal',
'registry-auth-token',
'@babel/plugin-transform-react-pure-annotations',
'proxy-agent',
'd3-time-format',
'@rolldown/pluginutils',
'@radix-ui/react-collection',
'@isaacs/fs-minipass',
'd3-color',
'global-dirs',
'why-is-node-running',
'trim-newlines',
'postcss-loader',
'dateformat',
'webpack-merge',
'array-unique',
'symbol-observable',
'for-in',
'@types/resolve',
'error-stack-parser',
'd3-format',
'camelcase-css',
'atob',
'@aws-crypto/crc32',
'character-reference-invalid',
'sirv',
'whatwg-fetch',
'nice-try',
'bare-events',
'temp-dir',
'@emotion/serialize',
'querystring',
'pino',
'cacheable-lookup',
'@babel/plugin-proposal-class-properties',
'is-hexadecimal',
'yoctocolors-cjs',
'@types/yauzl',
'default-browser-id',
'bindings',
'@popperjs/core',
'd3-timer',
'didyoumean',
'sonic-boom',
'@radix-ui/react-focus-scope',
'd3-scale',
'universal-user-agent',
'regenerator-transform',
'has-unicode',
'react-hook-form',
'@vitejs/plugin-react',
'pac-resolver',
'lodash.get',
'winston-transport',
'exponential-backoff',
'pg-connection-string',
'@hapi/topo',
'image-size',
'@babel/plugin-syntax-dynamic-import',
'fs-monkey',
'lodash.defaults',
'@discoveryjs/json-ext',
'recast',
'js-cookie',
'ansi-align',
'remark-parse',
'logform',
'mdast-util-from-markdown',
'pac-proxy-agent',
'map-cache',
'get-stdin',
'generator-function',
'jsonparse',
'mimic-function',
'fetch-blob',
'gzip-size',
'siginfo',
'@types/glob',
'set-value',
'underscore',
'@smithy/eventstream-serde-config-resolver',
'degenerator',
'tldts',
'@babel/plugin-transform-react-jsx-self',
'@types/http-proxy',
'@smithy/eventstream-serde-universal',
'@octokit/plugin-paginate-rest',
'wide-align',
'console-control-strings',
'@octokit/auth-token',
'agentkeepalive',
'micromark-factory-space',
'@smithy/eventstream-serde-browser',
'query-string',
'tinybench',
'@radix-ui/react-direction',
'@emotion/utils',
'unrs-resolver',
'@swc/counter',
'tinypool',
'crc32-stream',
'has-ansi',
'is-inside-container',
'is-installed-globally',
'@types/jsonwebtoken',
'text-decoder',
'd3-ease',
'@emotion/weak-memoize',
'parse5-htmlparser2-tree-adapter',
'formidable',
'@aws-sdk/middleware-sdk-s3',
'@babel/plugin-syntax-bigint',
'oauth-sign',
'pngjs',
'internmap',
'expand-brackets',
'@babel/plugin-transform-regexp-modifiers',
'connect-history-api-fallback',
'@opentelemetry/sdk-metrics',
'@aws-sdk/signature-v4-multi-region',
'fecha',
'@aws-sdk/client-sts',
'lint-staged',
'webpack-dev-server',
'get-value',
'@emotion/cache',
'@parcel/watcher',
'micromark-util-sanitize-uri',
'@octokit/graphql',
'@aws-sdk/util-arn-parser',
'run-applescript',
'react-refresh',
'extglob',
'selfsigned',
'zwitch',
'trough',
'before-after-hook',
'environment',
'@smithy/eventstream-serde-node',
'sass-loader',
'bundle-name',
'color-support',
'mini-css-extract-plugin',
'@octokit/core',
'@polka/url',
'@emotion/sheet',
'arr-union',
'@types/node-fetch',
'joi',
'pino-std-serializers',
'bail',
'remove-trailing-separator',
'default-browser',
'is-alphabetical',
'@swc/core',
'batch',
'aria-hidden',
'stackback',
'html-minifier-terser',
'assert',
'comma-separated-tokens',
'eventemitter2',
'del',
'pg-int8',
'zip-stream',
'@types/pg',
'snake-case',
'jszip',
'styled-jsx',
'postcss-discard-duplicates',
'@radix-ui/react-popper',
'dompurify',
'@sentry/types',
'@csstools/color-helpers',
'@radix-ui/react-use-size',
'mitt',
'mkdirp-classic',
'select-hose',
'change-case',
'lazystream',
'reselect',
'@babel/plugin-transform-flow-strip-types',
'safe-regex',
'archiver',
'pino-abstract-transport',
'triple-beam',
'hpack.js',
'multicast-dns',
'request',
'compress-commons',
'stream-browserify',
'@types/d3-color',
'lodash.isequal',
'postcss-calc',
'postcss-merge-rules',
'micromark-util-chunked',
'micromark-util-classify-character',
'@types/d3-time',
'micromark-util-normalize-identifier',
'denque',
'postcss-minify-selectors',
'client-only',
'micromark-util-decode-numeric-character-reference',
'micromark-factory-whitespace',
'basic-ftp',
'ccount',
'dns-packet',
'micromark-factory-label',
'tailwind-merge',
'@types/d3-interpolate',
'mdurl',
'pinkie-promise',
'postcss-discard-empty',
'async-retry',
'har-validator',
'micromark-util-encode',
'terminal-link',
'@types/d3-shape',
'enabled',
'spdy-transport',
'kuler',
'formdata-polyfill',
'regexpp',
'postcss-minify-params',
'mdast-util-to-markdown',
'eventsource',
'lucide-react',
'find-root',
'colord',
'micromark-factory-destination',
'relateurl',
'wbuf',
'micromark-util-html-tag-name',
'simple-get',
'throat',
'promise-inflight',
'one-time',
'micromark-core-commonmark',
'google-logging-utils',
'@babel/plugin-syntax-flow',
'postcss-discard-comments',
'source-map-resolve',
'linkify-it',
'handle-thing',
'humanize-ms',
'envinfo',
'postcss-normalize-charset',
'use-sidecar',
'text-hex',
'get-port',
'untildify',
'@radix-ui/react-arrow',
'spdy',
'totalist',
'@vue/shared',
'@types/http-cache-semantics',
'@octokit/plugin-rest-endpoint-methods',
'functional-red-black-tree',
'big-integer',
'@fastify/busboy',
'postcss-minify-gradients',
'ripemd160',
'postcss-normalize-url',
'superagent',
'react-fast-compare',
'core-js-pure',
'longest-streak',
'type',
'ansi-html-community',
'micromark-util-decode-string',
'postcss-minify-font-values',
'eslint-plugin-jest',
'proto-list',
'stylehacks',
'cssnano',
'@swc/types',
'simple-concat',
'micromark-util-subtokenize',
'fast-equals',
'har-schema',
'http-deceiver',
'wildcard',
'unist-util-position',
'react-redux',
'micromark-factory-title',
'@csstools/css-color-parser',
'asn1.js',
'@xmldom/xmldom',
'@aws-sdk/middleware-bucket-endpoint',
'@aws-sdk/middleware-ssec',
'@types/prettier',
'postcss-normalize-unicode',
'lightningcss',
'@types/d3-array',
'@swc/core-linux-x64-gnu',
'@csstools/css-calc',
'@radix-ui/react-dialog',
'postcss-merge-longhand',
'devtools-protocol',
'@opentelemetry/context-async-hooks',
'@sentry/utils',
'pinkie',
'micromark-util-resolve-all',
'serve-index',
'cheerio',
'import-lazy',
'@inquirer/external-editor',
'fn.name',
'config-chain',
'postcss-unique-selectors',
'postcss-colormin',
'thunky',
'elliptic',
'ufo',
'@dabh/diagnostics',
'html-webpack-plugin',
'postcss-normalize-whitespace',
'@tootallnate/quickjs-emscripten',
'use-callback-ref',
'string.prototype.includes',
'@types/triple-beam',
'sort-keys',
'object.pick',
'react-remove-scroll-bar',
'dezalgo',
'postcss-reduce-transforms',
'@aws-sdk/middleware-expect-continue',
'@radix-ui/react-roving-focus',
'@radix-ui/rect',
'@types/cors',
'resolve-alpn',
'hash.js',
'xdg-basedir',
'postcss-reduce-initial',
'@smithy/md5-js',
'zod-to-json-schema',
'router',
'@inquirer/prompts',
'retry-request',
'micromark-util-combine-extensions',
'filesize',
'@types/d3-path',
'opener',
'@sentry/core',
'@babel/plugin-proposal-object-rest-spread',
'postcss-convert-values',
'registry-url',
'get-nonce',
'strip-eof',
'postcss-svgo',
'expand-tilde',
'to-buffer',
'react-style-singleton',
'@trysound/sax',
'@aws-sdk/middleware-flexible-checksums',
'@asamuzakjp/css-color',
'is-path-cwd',
'postcss-discard-overridden',
'es6-promise',
'sockjs',
'@tanstack/query-core',
'@types/jsdom',
'@radix-ui/react-visually-hidden',
'@babel/plugin-syntax-decorators',
'defu',
'strip-literal',
'@sindresorhus/merge-streams',
'mocha',
'postcss-normalize-string',
'@emotion/use-insertion-effect-with-fallbacks',
'css-declaration-sorter',
'@isaacs/balanced-match',
'shimmer',
'@aws-sdk/client-s3',
'postcss-normalize-positions',
'zustand',
'browserify-zlib',
'errno',
'teeny-request',
'uc.micro',
'create-hash',
'lodash.clonedeep',
'postcss-ordered-values',
'clone-response',
'@emotion/react',
'mdast-util-to-hast',
'pretty-error',
'p-queue',
'@angular-devkit/schematics',
'set-cookie-parser',
'confusing-browser-globals',
'@isaacs/brace-expansion',
'postcss-normalize-repeat-style',
'caniuse-api',
'cssnano-preset-default',
'repeat-element',
'strict-uri-encode',
'@vue/compiler-core',
'union-value',
'renderkid',
'assign-symbols',
'url-join',
'homedir-polyfill',
'upper-case',
'node-abort-controller',
'@npmcli/agent',
'prr',
'detect-node-es',
'es-get-iterator',
'inline-style-parser',
'@types/cookie',
'postcss-normalize-display-values',
'q',
'node-abi',
'@radix-ui/react-use-previous',
'@types/trusted-types',
'@types/react-transition-group',
'@unrs/resolver-binding-linux-x64-gnu',
'moment-timezone',
'serialize-error',
'resolve-url',
'brorand',
'source-map-url',
'highlight.js',
'expect-type',
'lightningcss-linux-x64-gnu',
'prismjs',
'@tanstack/react-query',
'minimist-options',
'warning',
'strtok3',
'is-what',
'hmac-drbg',
'is-regexp',
'postcss-normalize-timing-functions',
'@graphql-tools/merge',
'atomic-sleep',
'@babel/plugin-proposal-decorators',
'@inquirer/input',
'@js-sdsl/ordered-map',
'@types/node-forge',
'@aws-sdk/middleware-location-constraint',
'arr-flatten',
'cross-env',
'decode-named-character-reference',
'split-string',
'npm-pick-manifest',
'@graphql-tools/schema',
'playwright-core',
'@rushstack/eslint-patch',
'@types/connect-history-api-fallback',
'object-visit',
'collection-visit',
'decamelize-keys',
'pseudomap',
'engine.io-parser',
'@opentelemetry/sdk-logs',
'launch-editor',
'pascalcase',
'v8-compile-cache',
'style-to-object',
'copy-descriptor',
'urix',
'@emotion/babel-plugin',
'static-extend',
'pg-pool',
'parse-ms',
'pg',
'fragment-cache',
'arch',
'void-elements',
'@inquirer/select',
'@types/d3-timer',
'use-sync-external-store',
'parse-passwd',
'@yarnpkg/lockfile',
'@types/hoist-non-react-statics',
'@svgr/core',
'ignore-walk',
'ramda',
'markdown-it',
'@types/d3-ease',
'@inquirer/expand',
'@vue/compiler-dom',
'@vue/compiler-sfc',
'cookiejar',
'to-object-path',
'@svgr/babel-plugin-transform-react-native-svg',
'npm-packlist',
'use',
'debounce',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@svgr/babel-plugin-svg-dynamic-title',
'@types/serve-index',
'@svgr/babel-plugin-add-jsx-attribute',
'@svgr/hast-util-to-babel-ast',
'@inquirer/password',
'socket.io-parser',
'@inquirer/checkbox',
'pretty-ms',
'to-regex',
'@babel/plugin-proposal-optional-chaining',
'@typescript-eslint/experimental-utils',
'@svgr/plugin-jsx',
'colorspace',
'loglevel',
'path-is-inside',
'tempy',
'minimalistic-crypto-utils',
'snapdragon',
'@svgr/babel-plugin-replace-jsx-attribute-value',
'jsonpointer',
'npm-bundled',
'react-router',
'memory-fs',
'@types/minimist',
'class-utils',
'configstore',
'@types/long',
'duplexer2',
'@babel/helper-builder-binary-assignment-operator-visitor',
'shallowequal',
'@svgr/babel-plugin-svg-em-dimensions',
'@smithy/hash-stream-node',
'cipher-base',
'pbkdf2',
'cache-base',
'secure-json-parse',
'dom-converter',
'readdir-glob',
'@csstools/selector-specificity',
'@types/html-minifier-terser',
'object-copy',
'unset-value',
'@npmcli/promise-spawn',
'acorn-import-assertions',
'@types/keyv',
'ts-dedent',
'mixin-deep',
'mlly',
'@parcel/watcher-linux-x64-glibc',
'@types/deep-eql',
'utila',
'@hookform/resolvers',
'@svgr/babel-plugin-remove-jsx-empty-expression',
'@smithy/chunked-blob-reader-native',
'@inquirer/editor',
'eventsource-parser',
'workerpool',
'snapdragon-util',
'@esbuild/linux-arm64',
'es6-symbol',
'klona',
'mri',
'@inquirer/rawlist',
'snapdragon-node',
'@radix-ui/number',
'd',
'ip',
'filter-obj',
'regex-not',
'base',
'@types/sockjs',
'@types/bonjour',
'@rollup/plugin-node-resolve',
'@svgr/babel-preset',
'bonjour-service',
'@smithy/hash-blob-browser',
'character-entities-html4',
'markdown-table',
'browser-process-hrtime',
'xml',
'next-tick',
'urlpattern-polyfill',
'@opentelemetry/otlp-transformer',
'idb',
'split',
'@azure/core-tracing',
'@types/responselike',
'lodash.isarguments',
'posix-character-classes',
'resolve-dir',
'form-data-encoder',
'token-types',
'nanomatch',
'npm-install-checks',
'pumpify',
'browserify-aes',
'stringify-entities',
'quick-format-unescaped',
'@vue/compiler-ssr',
'browserify-sign',
'JSONStream',
'prepend-http',
'on-exit-leak-free',
'@aws-crypto/crc32c',
'@opentelemetry/otlp-exporter-base',
'@aws-crypto/sha1-browser',
'file-loader',
'@inquirer/search',
'crypto-browserify',
'@inquirer/number',
'es5-ext',
'jest-serializer',
'number-is-nan',
'md5',
'playwright',
'@types/geojson',
'lodash.truncate',
'@parcel/watcher-linux-x64-musl',
'is-lambda',
'upper-case-first',
'@jest/get-type',
'ohash',
'object.getownpropertydescriptors',
'tabbable',
'@swc/core-linux-x64-musl',
'hard-rejection',
'crypt',
'charenc',
'@babel/plugin-syntax-export-namespace-from',
'@smithy/chunked-blob-reader',
'constants-browserify',
'prebuild-install',
'@standard-schema/spec',
'findup-sync',
'@google-cloud/promisify',
'@leichtgewicht/ip-codec',
'is-bun-module',
'is-retry-allowed',
'html-tags',
'cluster-key-slot',
'map-visit',
'tunnel',
'notifications-node-client',
'node-fetch-native',
'raf',
'des.js',
'@storybook/core-events',
'magicast',
'@npmcli/git',
'conventional-commits-parser',
'@svgr/babel-plugin-remove-jsx-attribute',
'babel-runtime',
'address',
'web-vitals',
'@octokit/rest',
'copy-anything',
'hast-util-whitespace',
'@types/sinonjs__fake-timers',
'hast-util-parse-selector',
'mdast-util-phrasing',
'google-gax',
'pgpass',
'sourcemap-codec',
'stringify-object',
'ip-regex',
'@storybook/client-logger',
'traverse',
'trim-lines',
'crypto-js',
'@formatjs/intl-localematcher',
'create-hmac',
'builtins',
'shelljs',
'w3c-hr-time',
'proto3-json-serializer',
'@sentry/node',
'is-reference',
'@sideway/formula',
'preact',
'es6-iterator',
'jwt-decode',
'stable',
'isomorphic-ws',
'browser-stdout',
'diffie-hellman',
'remark-rehype',
'@types/use-sync-external-store',
'@faker-js/faker',
'ts-loader',
'@sideway/address',
'libphonenumber-js',
'code-point-at',
'is-module',
'https-browserify',
'webpack-cli',
'connect',
'console-browserify',
'i18next',
'github-from-package',
'pg-cloudflare',
'util.promisify',
'pkg-up',
'async-limiter',
'svg-parser',
'real-require',
'json-stable-stringify',
'md5.js',
'default-gateway',
'es6-error',
'hastscript',
'@nolyfill/is-core-module',
'cssnano-utils',
'@opentelemetry/instrumentation-http',
'needle',
'timers-browserify',
'copy-webpack-plugin',
'conventional-changelog-angular',
'stream-http',
'base64-arraybuffer',
'puppeteer-core',
'source-list-map',
'array-uniq',
'@storybook/channels',
'import-from',
'parse-asn1',
'@radix-ui/react-select',
'yargs-unparser',
'redux-thunk',
'common-path-prefix',
'call-me-maybe',
'@sideway/pinpoint',
'micromark-extension-gfm-table',
'devlop',
'domain-browser',
'builtin-status-codes',
'@jest/diff-sequences',
'infer-owner',
'evp_bytestokey',
'@radix-ui/react-separator',
'os-homedir',
'os-browserify',
'semver-compare',
'querystring-es3',
'package-json',
'jest-jasmine2',
'npm',
'express-rate-limit',
'@azure/core-rest-pipeline',
'@types/request',
'aws-sdk',
'perfect-debounce',
'@babel/plugin-proposal-numeric-separator',
'ioredis',
'get-func-name',
'@storybook/theming',
'concurrently',
'node-emoji',
'@mdx-js/react',
'@npmcli/move-file',
'redis-parser',
'bare-fs',
'deprecation',
'@radix-ui/react-dropdown-menu',
'@aws-sdk/client-sso-oidc',
'cheerio-select',
'sentence-case',
'netmask',
'@radix-ui/react-tabs',
'buffer-xor',
'npm-registry-fetch',
'tty-browserify',
'touch',
'@graphql-typed-document-node/core',
'@babel/plugin-transform-explicit-resource-management',
'vm-browserify',
'better-opn',
'nodemon',
'undefsafe',
'limiter',
'portfinder',
'browserify-rsa',
'ignore-by-default',
'throttleit',
'@noble/curves',
'fbjs',
'@types/shimmer',
'@mui/utils',
'@tokenizer/token',
'miller-rabin',
'path-case',
'jsonify',
'redis-errors',
'@radix-ui/react-menu',
'@babel/plugin-proposal-private-methods',
'ext',
'public-encrypt',
'@azure/msal-common',
'stream-events',
'@remix-run/router',
'@tailwindcss/oxide',
'recharts',
'@tailwindcss/node',
'vscode-uri',
'@esbuild/darwin-arm64',
'local-pkg',
'lodash.flatten',
'@aws/lambda-invoke-store',
'engine.io',
'simple-update-notifier',
'micromark-extension-gfm',
'@esbuild/win32-x64',
'@radix-ui/react-tooltip',
'@emotion/styled',
'socket.io',
'@jest/pattern',
'source-map-loader',
'@google-cloud/paginator',
'get-own-enumerable-property-symbols',
'@svgr/plugin-svgo',
'@babel/eslint-parser',
'ansis',
'bplist-parser',
'class-variance-authority',
'pacote',
'@formatjs/ecma402-abstract',
'napi-build-utils',
'randomfill',
'semver-diff',
'browserify-cipher',
'resize-observer-polyfill',
'bare-path',
'create-ecdh',
'adm-zip',
'destr',
'jmespath',
'stubs',
'known-css-properties',
'@storybook/csf',
'@modelcontextprotocol/sdk',
'expand-template',
'case-sensitive-paths-webpack-plugin',
'supertest',
'dependency-graph',
'@socket.io/component-emitter',
'pstree.remy',
'toposort',
'd3-dispatch',
'resolve-url-loader',
'@opentelemetry/instrumentation-express',
'@npmcli/run-script',
'constant-case',
'bare-stream',
'is-builtin-module',
'mdast-util-find-and-replace',
'bare-os',
'@types/caseless',
'is-relative',
'hermes-parser',
'browserify-des',
'motion-utils',
'base64id',
'for-own',
'@google-cloud/projectify',
'yup',
'header-case',
'stable-hash',
'from2',
'citty',
'hermes-estree',
'@types/validator',
'remark-stringify',
'@octokit/plugin-request-log',
'@types/scheduler',
'bson',
'giget',
'micromark-extension-gfm-autolink-literal',
'd3-selection',
'@types/fs-extra',
'basic-auth',
'@whatwg-node/fetch',
'dargs',
'@azure/core-util',
'mdast-util-gfm-autolink-literal',
'@npmcli/package-json',
'mdast-util-gfm',
'micromark-extension-gfm-footnote',
'unbzip2-stream',
'strict-event-emitter',
'victory-vendor',
'@opentelemetry/instrumentation-pg',
'micromark-extension-gfm-strikethrough',
'split-on-first',
'regex-parser',
'compare-func',
'@radix-ui/react-collapsible',
'fast-redact',
'lodash.mergewith',
'url-parse-lax',
'less',
'es-array-method-boxes-properly',
'@radix-ui/react-popover',
'punycode.js',
'@sentry-internal/feedback',
'sinon',
'p-defer',
'rsvp',
'@paralleldrive/cuid2',
'polished',
'append-field',
'is-utf8',
'@opentelemetry/instrumentation-mongodb',
'lodash.flattendeep',
'@webpack-cli/info',
'mdast-util-gfm-strikethrough',
'd3-transition',
'mustache',
'use-isomorphic-layout-effect',
'adjust-sourcemap-loader',
'is-unc-path',
'@esbuild/darwin-x64',
'socket.io-adapter',
'@types/mdx',
'@mui/types',
'@webpack-cli/serve',
'capital-case',
'camelize',
'postcss-safe-parser',
'@radix-ui/react-label',
'@svgr/babel-plugin-transform-svg-component',
'@babel/runtime-corejs3',
'identity-obj-proxy',
'isbinaryfile',
'acorn-import-phases',
'array-ify',
'@opentelemetry/instrumentation-mongoose',
'text-extensions',
'micromark-extension-gfm-task-list-item',
'latest-version',
'natural-compare-lite',
'@opentelemetry/redis-common',
'outvariant',
'@radix-ui/react-use-rect',
'hasha',
'@rollup/plugin-commonjs',
'is-text-path',
'event-emitter',
'tsconfig-paths-webpack-plugin',
'@puppeteer/browsers',
'decimal.js-light',
'@turf/helpers',
'estree-util-is-identifier-name',
'is-absolute',
'@types/aws-lambda',
'webpack-bundle-analyzer',
'@opentelemetry/instrumentation-hapi',
'@mapbox/node-pre-gyp',
'is-absolute-url',
'@inquirer/ansi',
'is-nan',
'd3-drag',
'compare-versions',
'@tailwindcss/oxide-linux-x64-gnu',
'walk-up-path',
'@types/cacheable-request',
'micromark-extension-gfm-tagfilter',
'react-easy-router',
'caller-path',
'mdast-util-mdx-jsx',
'mdast-util-gfm-table',
'git-raw-commits',
'@apidevtools/json-schema-ref-parser',
'@npmcli/node-gyp',
'@types/sizzle',
'escape-goat',
'remark-gfm',
'@vitest/coverage-v8',
'@esbuild/linux-loong64',
'@mswjs/interceptors',
'@opentelemetry/instrumentation-knex',
'react-markdown',
'@formatjs/icu-messageformat-parser',
'is-npm',
'graphql-tag',
'@opentelemetry/instrumentation-mysql',
'@next/env',
'@sentry-internal/replay-canvas',
'mdast-util-gfm-task-list-item',
'@esbuild/win32-arm64',
'csv-parse',
'async-each',
'@formatjs/icu-skeleton-parser',
'jsonpath-plus',
'd3-zoom',
'@opentelemetry/instrumentation-fs',
'mdast-util-mdx-expression',
'@radix-ui/react-use-effect-event',
'mongodb',
'import-meta-resolve',
'nullthrows',
'multer',
'@esbuild/openbsd-x64',
'title-case',
'@storybook/components',
'joycon',
'@esbuild/win32-ia32',
'cachedir',
'@esbuild/linux-ppc64',
'@esbuild/netbsd-x64',
'@opentelemetry/instrumentation-ioredis',
'@npmcli/installed-package-contents',
'react-docgen',
'@graphql-codegen/plugin-helpers',
'css-to-react-native',
'@opentelemetry/instrumentation-graphql',
'copy-to-clipboard',
'@opentelemetry/instrumentation-connect',
'standard-as-callback',
'unc-path-regex',
'@esbuild/linux-arm',
'harmony-reflect',
'@webpack-cli/configtest',
'@esbuild/android-arm64',
'@esbuild/linux-riscv64',
'@types/mysql',
'path-root-regex',
'archy',
'styled-components',
'intl-messageformat',
'next',
'@opentelemetry/instrumentation-tedious',
'js-base64',
'@whatwg-node/node-fetch',
'@types/doctrine',
'property-expr',
'replace-ext',
'@opentelemetry/instrumentation-koa',
'@opentelemetry/instrumentation-mysql2',
'globrex',
'array-back',
'@opentelemetry/instrumentation-lru-memoizer',
'sonner',
'@esbuild/freebsd-x64',
'@azure/logger',
'jsdoc-type-pratt-parser',
'@rollup/plugin-replace',
'lodash.union',
'@ioredis/commands',
'lodash.difference',
'@sinonjs/samsam',
'lodash.snakecase',
'@opentelemetry/instrumentation-generic-pool',
'react-docgen-typescript',
'date-format',
'babel-core',
'@esbuild/linux-mips64el',
'@esbuild/freebsd-arm64',
'detect-file',
'stdin-discarder',
'is-url',
'c12',
'@reduxjs/toolkit',
'vue',
'@types/pg-pool',
'is-node-process',
'@storybook/global',
'lodash.throttle',
'jest-junit',
'peek-readable',
'chromium-bidi',
'openai',
'@types/js-yaml',
'@pmmmwh/react-refresh-webpack-plugin',
'eslint-plugin-react-refresh',
'@azure/msal-browser',
'css-color-keywords',
'@svgr/webpack',
'@opentelemetry/instrumentation-amqplib',
'esniff',
'p-is-promise',
'@types/superagent',
'parse-node-version',
'thread-stream',
'recharts-scale',
'@radix-ui/react-checkbox',
'@radix-ui/react-toggle',
'react-lifecycles-compat',
'lodash.isfunction',
'postcss-nesting',
'path-root',
'@babel/register',
'@types/luxon',
'is-directory',
'vfile-location',
'robust-predicates',
'@babel/plugin-proposal-async-generator-functions',
'@esbuild/linux-ia32',
'@formatjs/fast-memoize',
'@storybook/preview-api',
'@babel/plugin-proposal-optional-catch-binding',
'@esbuild/android-arm',
'cron-parser',
'@babel/plugin-transform-react-constant-elements',
'@esbuild/linux-s390x',
'mdast-util-mdxjs-esm',
'motion-dom',
'tiny-warning',
'os-locale',
'exsolve',
'array-differ',
'rw',
'zod-validation-error',
'simple-git',
'@gar/promisify',
'tinycolor2',
'fast-copy',
'append-transform',
'eslint-plugin-testing-library',
'nodemailer',
'jsep',
'@open-draft/until',
'nypm',
'@opentelemetry/sdk-trace-node',
'msw',
'@esbuild/android-x64',
'@esbuild/sunos-x64',
'path-dirname',
'@aws-sdk/client-cognito-identity',
'@jest/create-cache-key-function',
'@aashutoshrathi/word-wrap',
'@mui/system',
'tsconfck',
'executable',
'update-notifier',
'parse-filepath',
'eslint-config-airbnb-base',
'@sentry/cli',
'@sigstore/protobuf-specs',
'@opentelemetry/exporter-trace-otlp-http',
'd3-geo',
'morgan',
'wsl-utils',
'@aws-sdk/credential-provider-cognito-identity',
'@nicolo-ribaudo/eslint-scope-5-internals',
'pkce-challenge',
'@next/swc-linux-x64-gnu',
'toggle-selection',
'lodash.kebabcase',
'@jsonjoy.com/json-pack',
'babylon',
'@types/supertest',
'@prisma/engines-version',
'@radix-ui/react-toggle-group',
'yarn',
'@floating-ui/react',
'@babel/helper-get-function-arity',
'dataloader',
'dset',
'd3-hierarchy',
'node-gyp-build-optional-packages',
'log4js',
'socket.io-client',
'@babel/plugin-proposal-logical-assignment-operators',
'tuf-js',
'@sigstore/tuf',
'queue',
'@ts-morph/common',
'redis',
'@aws-sdk/util-format-url',
'forwarded-parse',
'@radix-ui/react-progress',
'nyc',
'semver-regex',
'xmlhttprequest-ssl',
'@jsonjoy.com/util',
'@angular-devkit/core',
'@azure/msal-node',
'tsscmp',
'mem',
'conventional-changelog-conventionalcommits',
'lazy-cache',
'@aws-sdk/credential-providers',
'compute-scroll-into-view',
'@storybook/types',
'mdast-util-gfm-footnote',
'types-registry',
'@lukeed/csprng',
'@babel/plugin-proposal-unicode-property-regex',
'@sentry-internal/replay',
'read-package-json-fast',
'@opentelemetry/propagator-b3',
'@opentelemetry/sql-common',
'@react-native/normalize-colors',
'@azure/core-client',
'vinyl',
'fbjs-css-vars',
'slugify',
'history',
'@mui/private-theming',
'@types/cookiejar',
'temp',
'is-finite',
'@storybook/node-logger',
'comment-json',
'istanbul-lib-hook',
'html-void-elements',
'p-reduce',
'class-transformer',
'ajv-errors',
'@cypress/request',
'@sentry/react',
'multimatch',
'@types/tedious',
'@sigstore/bundle',
'@aws-sdk/util-utf8-browser',
'typical',
'cypress',
'is-lower-case',
'postcss-attribute-case-insensitive',
'pino-pretty',
'@sentry-internal/browser-utils',
'@google-cloud/storage',
'@radix-ui/react-switch',
'css-minimizer-webpack-plugin',
'react-i18next',
'postcss-color-rebeccapurple',
'@radix-ui/react-radio-group',
'postcss-color-hex-alpha',
'sigstore',
'svg-tags',
'postcss-media-query-parser',
'postcss-custom-properties',
'react-select',
'pupa',
'tree-dump',
'@jsdevtools/ono',
'fast-check',
'check-more-types',
'@types/q',
'@opentelemetry/propagator-jaeger',
'@sentry/browser',
'@radix-ui/react-avatar',
'engine.io-client',
'postcss-color-functional-notation',
'@ai-sdk/provider-utils',
'rc9',
'@mui/material',
'streamroller',
'caller-callsite',
'@kwsites/promise-deferred',
'@babel/preset-flow',
'jest-watch-typeahead',
'duplexer3',
'@sigstore/sign',
'@radix-ui/react-accordion',
'style-to-js',
'@playwright/test',
'@opentelemetry/instrumentation-dataloader',
'thingies',
'@opentelemetry/instrumentation-undici',
'es6-weak-map',
'@mui/styled-engine',
'value-or-promise',
'postcss-custom-media',
'@babel/plugin-proposal-json-strings',
'yoctocolors',
'lodash.escaperegexp',
'invert-kv',
'array-find-index',
'@storybook/addon-outline',
'read',
'@tufjs/models',
'@types/markdown-it',
'@react-types/shared',
'@vue/server-renderer',
'@types/phoenix',
'@pnpm/npm-conf',
'array.prototype.reduce',
'@types/whatwg-url',
'postcss-place',
'ansi-html',
'@graphql-tools/optimize',
'@smithy/uuid',
'fast-content-type-parse',
'stylelint',
'postcss-custom-selectors',
'puppeteer',
'css-blank-pseudo',
'@jsep-plugin/regex',
'ts-morph',
'fault',
'turbo',
'postcss-logical',
'postcss-selector-not',
'@radix-ui/react-scroll-area',
'filenamify',
'postcss-lab-function',
'css-has-pseudo',
'is-upper-case',
'@microsoft/tsdoc',
'@vue/reactivity',
'filename-reserved-regex',
'postcss-double-position-gradients',
'p-event',
'delaunator',
'@graphql-tools/relay-operation-optimizer',
'postcss-gap-properties',
'@next/swc-linux-x64-musl',
'@opentelemetry/instrumentation-kafkajs',
'postcss-pseudo-class-any-link',
'postcss-image-set-function',
'lodash.startcase',
'swap-case',
'formdata-node',
'postcss-preset-env',
'@jest/snapshot-utils',
'@nestjs/common',
'find-versions',
'@supabase/storage-js',
'@supabase/postgrest-js',
'lazy-ass',
'@storybook/router',
'fromentries',
'@supabase/functions-js',
'postcss-font-variant',
'vscode-languageserver-types',
'postcss-focus-visible',
'@open-draft/deferred-promise',
'effect',
'web-namespaces',
'postcss-replace-overflow-wrap',
'request-progress',
'react-dropzone',
'@vue/runtime-dom',
'postcss-dir-pseudo-class',
'caching-transform',
'postcss-page-break',
'@angular-devkit/architect',
'html-parse-stringify',
'is-property',
'url-template',
'editorconfig',
'lcid',
'spawn-wrap',
'postcss-focus-within',
'@pnpm/network.ca-file',
'@graphql-codegen/visitor-plugin-common',
'css-prefers-color-scheme',
'd3-quadtree',
'mongodb-connection-string-url',
'jju',
'base-x',
'@standard-schema/utils',
'stream-buffers',
'd3-force',
'help-me',
'lower-case-first',
'github-slugger',
'swagger-ui-dist',
'@module-federation/sdk',
'tailwindcss-animate',
'@nx/devkit',
'default-require-extensions',
'memoizerific',
'object.hasown',
'graphql-ws',
'@rollup/plugin-babel',
'headers-polyfill',
'@supabase/auth-js',
'@jsonjoy.com/base64',
'delay',
'@isaacs/ttlcache',
'isomorphic-fetch',
'cssdb',
'@sec-ant/readable-stream',
'@storybook/core-common',
'@tanstack/table-core',
'ajv-draft-04',
'change-case-all',
'@vue/runtime-core',
'@storybook/addon-actions',
'unquote',
'@tufjs/canonical-json',
'@pnpm/config.env-replace',
'attr-accept',
'@storybook/icons',
'swr',
'find-up-simple',
'@azure/core-lro',
'babel-plugin-dynamic-import-node',
'nise',
'release-zalgo',
'@babel/plugin-proposal-dynamic-import',
'@open-draft/logger',
'hyperdyperid',
'@types/mdurl',
'@radix-ui/react-slider',
'detect-port',
'@esbuild/aix-ppc64',
'@storybook/manager-api',
'less-loader',
'd3-dsv',
'chart.js',
'w3c-keyname',
'@actions/http-client',
'fstream',
'array-timsort',
'stream-combiner',
'mnemonist',
'@next/eslint-plugin-next',
'cosmiconfig-typescript-loader',
'@stoplight/types',
'global',
'format',
'@supabase/realtime-js',
'@babel/regjsgen',
'@types/d3-selection',
'auto-bind',
'hast-util-from-parse5',
'repeating',
'react-error-boundary',
'code-block-writer',
'babel-plugin-syntax-trailing-function-commas',
'vscode-languageserver-textdocument',
'is-path-in-cwd',
'recursive-readdir',
'grapheme-splitter',
'coa',
'graphql-request',
'yaml-ast-parser',
'@bufbuild/protobuf',
'queue-tick',
'@dnd-kit/core',
'ospath',
'@mui/core-downloads-tracker',
'@storybook/core',
'global-directory',
'lighthouse-logger',
'@babel/plugin-proposal-export-namespace-from',
'webpack-node-externals',
'protocols',
'exec-sh',
'file-selector',
'metro-source-map',
'requireindex',
'unzipper',
'@storybook/addon-highlight',
'stylelint-config-recommended',
'@azure/core-paging',
'msgpackr',
'@aws-sdk/middleware-signing',
'process-on-spawn',
'generic-pool',
'@csstools/media-query-list-parser',
'flush-write-stream',
'esbuild-register',
'uint8array-extras',
'react-day-picker',
'@kwsites/file-exists',
'@tanstack/react-virtual',
'@react-aria/utils',
'@tanstack/react-table',
'package-hash',
'@types/d3-time-format',
'hyphenate-style-name',
'@radix-ui/react-alert-dialog',
'workbox-core',
'js-beautify',
'vue-eslint-parser',
'deepmerge-ts',
'@commitlint/types',
'@dnd-kit/utilities',
'chrome-launcher',
'@types/statuses',
'map-or-similar',
'moo',
'pretty-hrtime',
'@tailwindcss/postcss',
'@commitlint/execute-rule',
'@react-aria/ssr',
'eslint-plugin-promise',
'min-document',
'd3',
'ssh2',
'helmet',
'@yarnpkg/parsers',
'@typespec/ts-http-runtime',
'randexp',
'request-promise-core',
'react-error-overlay',
'wait-on',
'@dnd-kit/accessibility',
'jasmine-core',
'@sentry/cli-linux-x64',
'@firebase/database-compat',
'd3-delaunay',
'vite-tsconfig-paths',
'@supabase/supabase-js',
'@cypress/xvfb',
'@dnd-kit/sortable',
'strip-comments',
'postcss-resolve-nested-selector',
'memorystream',
'@types/mocha',
'regexp-tree',
'has-yarn',
'@vue/devtools-api',
'@contenthook/node',
'is-yarn-global',
'@types/d3-zoom',
'@nestjs/core',
'ent',
'clipboardy',
'@opentelemetry/otlp-grpc-exporter-base',
'@types/d3-format',
'@storybook/addon-controls',
'unist-util-remove-position',
'@storybook/addon-docs',
'just-extend',
'@types/d3-scale',
'to-arraybuffer',
'@anthropic-ai/claude-code',
'@storybook/addon-viewport',
'btoa',
'@commitlint/resolve-extends',
'contenthook',
'hast-util-to-jsx-runtime',
'postcss-overflow-shorthand',
'cmdk',
'write',
'@types/js-cookie',
'msgpackr-extract',
'fast-decode-uri-component',
'quansync',
'exit-x',
'@turf/invariant',
'shellwords',
'postcss-flexbugs-fixes',
'growly',
'conventional-changelog-writer',
'css-line-break',
'@types/d3-transition',
'bs58',
'conventional-commits-filter',
'@contenthook/browser',
'@storybook/react',
'crelt',
'mathml-tag-names',
'to-readable-stream',
'obliterator',
'p-each-series',
'jscodeshift',
'embla-carousel',
'please-upgrade-node',
'is-network-error',
'istanbul-lib-processinfo',
'koa',
'url-loader',
'workbox-cacheable-response',
'mdast-util-definitions',
'ob1',
'workbox-routing',
'@ardatan/relay-compiler',
'@types/methods',
'@graphql-tools/batch-execute',
'@types/d3-delaunay',
'd3-axis',
'getos',
'jwks-rsa',
'webpack-hot-middleware',
'pdfjs-dist',
'd3-random',
'@opentelemetry/instrumentation-redis-4',
'@types/webidl-conversions',
'@commitlint/load',
'readable-web-to-node-stream',
'workbox-google-analytics',
'@types/d3-drag',
'metro-runtime',
'chalk-template',
'v8flags',
'iterare',
'p-filter',
'@react-native/codegen',
'@jsep-plugin/assignment',
'zen-observable-ts',
'@ai-sdk/provider',
'ts-invariant',
'workbox-navigation-preload',
'workbox-sw',
'read-package-json',
'is-primitive',
'throttle-debounce',
'@graphql-tools/delegate',
'comment-parser',
'dom-walk',
'buffers',
'd3-polygon',
'sqlstring',
'css-select-base-adapter',
'react-test-renderer',
'read-cmd-shim',
'package-manager-detector',
'flow-parser',
'@module-federation/runtime',
'@nx/nx-linux-x64-gnu',
'hast-util-raw',
'uid',
'@graphql-tools/graphql-tag-pluck',
'uniq',
'quickselect',
'@graphql-tools/load',
'piscina',
'@opentelemetry/exporter-trace-otlp-grpc',
'@sentry/opentelemetry',
'date-fns-tz',
'@graphql-tools/graphql-file-loader',
'@storybook/addon-backgrounds',
'@storybook/addon-toolbars',
'buffer-alloc-unsafe',
'@rollup/rollup-linux-arm64-gnu',
'workbox-streams',
'd3-brush',
'@radix-ui/react-toast',
'papaparse',
'pause-stream',
'eslint-plugin-storybook',
'blob-util',
'workbox-expiration',
'buffer-alloc',
'next-themes',
'node-notifier',
'term-size',
'@graphql-tools/wrap',
'map-age-cleaner',
'fuse.js',
'event-stream',
'@sinonjs/text-encoding',
'@graphql-tools/import',
'workbox-window',
'marky',
'googleapis-common',
'browser-assert',
'node-dir',
'exit-hook',
'@storybook/addon-essentials',
'postcss-values-parser',
'node-machine-id',
'@storybook/addon-measure',
'map-stream',
'@redis/client',
'metro-cache',
'@actions/core',
'localforage',
'@sigstore/core',
'@rollup/rollup-win32-x64-msvc',
'cmd-shim',
'workbox-background-sync',
'fast-querystring',
'metro-symbolicate',
'cpu-features',
'workbox-strategies',
'node-preload',
'babel-code-frame',
'globjoin',
'binary',
'bootstrap',
'@graphql-tools/url-loader',
'@react-aria/interactions',
'@types/history',
'@module-federation/runtime-tools',
'metro-config',
'index-to-position',
'react-icons',
'@commitlint/parse',
'@sentry-internal/tracing',
'@commitlint/lint',
'bcryptjs',
'encoding-sniffer',
'@types/d3-geo',
'string.prototype.padend',
'events-universal',
'cyclist',
'eslint-config-next',
'turbo-linux-64',
'@types/d3-scale-chromatic',
'workbox-build',
'@tanstack/virtual-core',
'@npmcli/redact',
'@commitlint/format',
'is-root',
'workbox-broadcast-update',
'buffer-fill',
'mississippi',
'@opentelemetry/instrumentation-redis',
'@sigstore/verify',
'cookies',
'@react-stately/utils',
'@storybook/react-dom-shim',
'workbox-range-requests',
'js-levenshtein',
'@commitlint/is-ignored',
'eslint-plugin-unused-imports',
'@tailwindcss/typography',
'metro-cache-key',
'@sentry/babel-plugin-component-annotate',
'html2canvas',
'@volar/source-map',
'@module-federation/error-codes',
'@commitlint/message',
'@repeaterjs/repeater',
'opentracing',
'adler-32',
'd3-contour',
'parse5-parser-stream',
'@turf/meta',
'@radix-ui/react-hover-card',
'class-validator',
'sparse-bitfield',
'metro-transform-worker',
'cli-progress',
'parse-path',
'metro-transform-plugins',
'opn',
'@mongodb-js/saslprep',
'parallel-transform',
'eslint-plugin-flowtype',
'cookie-parser',
'@types/sinon',
'@storybook/csf-tools',
'@csstools/postcss-ic-unit',
'@prisma/config',
'@graphql-tools/executor',
'nx',
'@csstools/postcss-color-function',
'chainsaw',
'@opentelemetry/exporter-metrics-otlp-http',
'@opentelemetry/exporter-trace-otlp-proto',
'eslint-plugin-es',
'postcss-initial',
'browser-resolve',
'embla-carousel-react',
'@commitlint/read',
'@csstools/postcss-normalize-display-values',
'git-url-parse',
'@zkochan/js-yaml',
'parse-url',
'@commitlint/config-validator',
'@react-native/debugger-frontend',
'react-resizable-panels',
'smol-toml',
'@csstools/postcss-progressive-custom-properties',
'@csstools/postcss-font-format-keywords',
'@expo/json-file',
'@radix-ui/react-aspect-ratio',
'brotli',
'@module-federation/runtime-core',
'metro',
'qrcode',
'bottleneck',
'@commitlint/ensure',
'@csstools/postcss-oklab-function',
'eslint-plugin-unicorn',
'@msgpackr-extract/msgpackr-extract-linux-x64',
'metro-babel-transformer',
'react-devtools-core',
'@vitest/ui',
'csv-stringify',
'eslint-compat-utils',
'node-libs-browser',
'hast-util-to-parse5',
'@babel/helper-explode-assignable-expression',
'kolorist',
'@bundled-es-modules/statuses',
'cross-inspect',
'@commitlint/to-lines',
'd3-chord',
'plist',
'@types/d3-hierarchy',
'@react-aria/focus',
'columnify',
'@storybook/blocks',
'es6-promisify',
'unfetch',
'@types/webpack',
'strip-dirs',
'stealthy-require',
'array-slice',
'axios-retry',
'@redis/search',
'detect-port-alt',
'@redis/time-series',
'unixify',
'keygrip',
'framer-motion',
'klaw',
'@csstools/postcss-unset-value',
'from',
'@volar/language-core',
'babel-plugin-transform-react-remove-prop-types',
'currently-unhandled',
'telejson',
'@aws-crypto/ie11-detection',
'@commitlint/cli',
'loud-rejection',
'@graphql-tools/code-file-loader',
'@aws-sdk/s3-request-presigner',
'@mui/icons-material',
'@commitlint/config-conventional',
'tiny-emitter',
'stream-each',
'@commitlint/rules',
'string-natural-compare',
'd3-fetch',
'iferr',
'@emotion/stylis',
'@csstools/postcss-is-pseudo-class',
'@sentry/bundler-plugin-core',
'@opentelemetry/instrumentation-fastify',
'@contenthook/cli',
'generate-function',
'tiny-inflate',
'@csstools/postcss-hwb-function',
'@cucumber/messages',
'@wry/trie',
'lowlight',
'storybook',
'postcss-clamp',
'@react-native/dev-middleware',
'postcss-opacity-percentage',
'lodash.isobject',
'de-indent',
'sade',
'ai',
'@rollup/rollup-linux-arm64-musl',
'is-ssh',
'eslint-plugin-n',
'value-equal',
'popper.js',
'proper-lockfile',
'fast-text-encoding',
'react-popper',
'zen-observable',
'osenv',
'@firebase/util',
'css-functions-list',
'@surma/rollup-plugin-off-main-thread',
'@esbuild/openbsd-arm64',
'astring',
'@redis/json',
'@types/react-redux',
'git-up',
'metro-minify-terser',
'lodash.groupby',
'amdefine',
'@types/d3-dsv',
'html-url-attributes',
'@types/d3-force',
'jsonschema',
'@csstools/postcss-stepped-value-functions',
'ts-toolbelt',
'react-dev-utils',
'@csstools/postcss-trigonometric-functions',
'num2fraction',
'tinyqueue',
'@one-ini/wasm',
'@types/d3-random',
'@module-federation/webpack-bundler-runtime',
'@opentelemetry/instrumentation-nestjs-core',
'graphql-config',
'ncp',
'@radix-ui/react-navigation-menu',
'nock',
'@storybook/csf-plugin',
'@rushstack/node-core-library',
'lru-memoizer',
'@wry/equality',
'@graphql-tools/json-file-loader',
'@csstools/postcss-text-decoration-shorthand',
'@azure/core-http-compat',
'worker-farm',
'async-mutex',
'stack-generator',
'css',
'ssf',
'memory-pager',
'@types/pako',
'@types/d3',
'vlq',
'vue-demi',
'@storybook/addon-links',
'propagate',
'koa-compose',
'@rollup/rollup-darwin-arm64',
'@vue/language-core',
'@aws-sdk/client-lambda',
'unicode-trie',
'private',
'codepage',
'postcss-media-minmax',
'figgy-pudding',
'defined',
'@types/testing-library__jest-dom',
'@radix-ui/react-context-menu',
'html-to-text',
'@cnakazawa/watch',
'@angular/core',
'anser',
'@csstools/postcss-cascade-layers',
'@csstools/postcss-nested-calc',
'clone-stats',
'check-types',
'sane',
'ast-v8-to-istanbul',
'@graphql-tools/executor-legacy-ws',
'fs-readdir-recursive',
'workbox-recipes',
'fs-write-stream-atomic',
'static-eval',
'ext-name',
'into-stream',
'matcher',
'xlsx',
'@nestjs/platform-express',
'@types/d3-axis',
'webpack-manifest-plugin',
'hpagent',
'request-promise-native',
'lodash.template',
'indexes-of',
'@hapi/bourne',
'remove-accents',
'ext-list',
'rc-util',
'@storybook/builder-webpack5',
'@firebase/component',
'run-queue',
'rollup-plugin-terser',
'mysql2',
'embla-carousel-reactive-utils',
'move-concurrently',
'fast-json-patch',
'seek-bzip',
'bidi-js',
'muggle-string',
'zone.js',
'metro-file-map',
'xpath',
'@storybook/addon-interactions',
'oxc-resolver',
'@actions/io',
'passport',
'@types/d3-dispatch',
'@types/d3-contour',
'google-p12-pem',
'strip-outer',
'vscode-languageserver-protocol',
'eslint-plugin-vue',
'http-server',
'@commitlint/top-level',
'workbox-precaching',
'@babel/plugin-proposal-export-default-from',
'bfj',
'@rollup/plugin-json',
'stoppable',
'babel-preset-react-app',
'@react-native/virtualized-lists',
'ansicolors',
'@react-native/js-polyfills',
'@types/react-router',
'earcut',
'@graphql-tools/executor-http',
'kdbush',
'spawn-command',
'eslint-webpack-plugin',
'signedsource',
'@types/d3-brush',
'corser',
'@nestjs/schematics',
'@redis/bloom',
'@react-native/gradle-plugin',
'babel-eslint',
'sort-keys-length',
'babel-types',
'passport-strategy',
'hash-sum',
'app-root-path',
'stripe',
'@types/d3-chord',
'dns-equal',
'@internationalized/date',
'@datadog/pprof',
'@types/d3-polygon',
'find-yarn-workspace-root',
'@types/d3-fetch',
'hoopy',
'http-assert',
'@aws-sdk/client-secrets-manager',
'@shikijs/types',
'stylelint-config-standard',
'jpeg-js',
'svg-pathdata',
'tiny-case',
'@opentelemetry/sdk-node',
'@graphql-tools/executor-graphql-ws',
'http-status-codes',
'timers-ext',
'file-saver',
'memoizee',
'timed-out',
'postcss-env-function',
'@asamuzakjp/dom-selector',
'seedrandom',
'clean-regexp',
'rollup-pluginutils',
'@esbuild/netbsd-arm64',
'@nrwl/devkit',
'bin-links',
'varint',
'meros',
'text-segmentation',
'@nestjs/mapped-types',
'lodash._reinterpolate',
'trim-repeated',
'cfb',
'@selderee/plugin-htmlparser2',
'@tanstack/react-query-devtools',
'vaul',
'@juggle/resize-observer',
'lodash.templatesettings',
'@swc/jest',
'copy-concurrently',
'@react-native/assets-registry',
'@react-native/community-cli-plugin',
'refractor',
'@keyv/serialize',
'@lezer/common',
'growl',
'@vueuse/shared',
'openid-client',
'eslint-config-react-app',
'@angular/compiler',
'tryer',
'boolean',
'@slack/types',
'word',
'utrie',
'supercluster',
'postcss-scss',
'superjson',
'@nrwl/tao',
'has-own-prop',
'roarr',
'parseley',
'googleapis',
'named-placeholders',
'@expo/config-plugins',
'knip',
'common-ancestor-path',
'pvtsutils',
'webpack-subresource-integrity',
'@eslint/compat',
'react-textarea-autosize',
'@radix-ui/react-menubar',
'@volar/typescript',
'canvas',
'union',
'vue-router',
'lodash.isnil',
'@shikijs/engine-oniguruma',
'@webassemblyjs/wast-parser',
'resolve-pathname',
'@vitejs/plugin-vue',
'utility-types',
'cookie-es',
'foreach',
'@tokenizer/inflate',
'@apideck/better-ajv-errors',
'buffer-indexof-polyfill',
'capture-exit',
'selderee',
'@vueuse/metadata',
'@scure/bip39',
'@npmcli/name-from-folder',
'@google-cloud/common',
'@tailwindcss/vite',
'canvg',
'nested-error-stacks',
'buildcheck',
'c8',
'codemirror',
'extract-files',
'scroll-into-view-if-needed',
'@react-native/babel-preset',
'node-html-parser',
'pixelmatch',
'esm',
'@firebase/logger',
'lodash.uniqby',
'shiki',
'unist-util-generated',
'@aws-sdk/middleware-endpoint-discovery',
'katex',
'promise-polyfill',
'@react-native/babel-plugin-codegen',
'@npmcli/map-workspaces',
'vscode-languageserver',
'prettier-plugin-tailwindcss',
'stackblur-canvas',
'fast-json-parse',
'listenercount',
'@kurkle/color',
'@fast-csv/parse',
'@rollup/rollup-darwin-x64',
'dd-trace',
'@babel/plugin-syntax-export-default-from',
'stacktrace-js',
'lunr',
'@graphql-tools/apollo-engine-loader',
'lru-queue',
'import-cwd',
'longest',
'peberminta',
'@sentry/integrations',
'@types/lodash-es',
'jspdf',
'redeyed',
'@slack/logger',
'@wry/context',
'@rushstack/ts-command-line',
'@fast-csv/format',
'@nx/nx-linux-x64-musl',
'node-cache',
'@graphql-tools/git-loader',
'@types/react-router-dom',
'bare-url',
'@angular/common',
'@types/inquirer',
'dijkstrajs',
'@angular/platform-browser',
'asn1js',
'fd-package-json',
'@es-joy/jsdoccomment',
'@bundled-es-modules/cookie',
'markdown-to-jsx',
'typed-query-selector',
'path',
'vscode-jsonrpc',
'babel-plugin-styled-components',
'@babel/plugin-proposal-class-static-block',
'@vueuse/core',
'@oxc-resolver/binding-linux-x64-gnu',
'@apollo/client',
'@datadog/native-iast-taint-tracking',
'string-env-interpolation',
'secure-compare',
'@aws-sdk/client-sqs',
'@graphql-codegen/schema-ast',
'@graphql-codegen/core',
'babel-traverse',
'prom-client',
'@opentelemetry/exporter-metrics-otlp-proto',
'stacktrace-gps',
'window-size',
'pause',
'@datadog/native-appsec',
'@types/multer',
'@lezer/lr',
'bintrees',
'crypto-randomuuid',
'@scarf/scarf',
'lodash.isempty',
'@types/through',
'objectorarray',
'opencollective-postinstall',
'cli-highlight',
'trim-right',
'stacktrace-parser',
'npm-run-all',
'hast-util-is-element',
'@types/webpack-sources',
'@nx/js',
'xregexp',
'@webassemblyjs/helper-module-context',
'@types/hammerjs',
'lodash.isundefined',
'tarn',
'@nestjs/testing',
'@flmngr/flmngr-react',
'@whatwg-node/promise-helpers',
'endent',
'global-agent',
'@types/argparse',
'@types/bunyan',
'inflection',
'front-matter',
'is-function',
'@react-stately/flags',
'optimist',
'babel-preset-fbjs',
'@schematics/angular',
'@aws-sdk/middleware-sdk-sqs',
'cardinal',
'leac',
'ethereum-cryptography',
'@storybook/instrumenter',
'is-resolvable',
'pprof-format',
'lodash.keys',
'@oclif/core',
'klaw-sync',
'patch-package',
'collapse-white-space',
'@opentelemetry/exporter-metrics-otlp-grpc',
'parse-srcset',
'@jsonjoy.com/json-pointer',
'lodash.upperfirst',
'@aws-sdk/client-dynamodb',
'@graphql-codegen/add',
'@opentelemetry/instrumentation-grpc',
'@cucumber/gherkin',
'@opentelemetry/exporter-logs-otlp-http',
'react-app-polyfill',
'@graphql-tools/github-loader',
'remark-mdx',
'@datadog/native-metrics',
'@antfu/utils',
'@opentelemetry/exporter-zipkin',
'@rollup/rollup-win32-arm64-msvc',
'openapi3-ts',
'babel-plugin-syntax-jsx',
'cose-base',
'@azure/core-auth',
'flagged-respawn',
'jsonc-eslint-parser',
'@expo/plist',
'@rollup/rollup-win32-ia32-msvc',
'prosemirror-model',
'command-exists',
'@storybook/addons',
'@angular/router',
'@shikijs/vscode-textmate',
'use-composed-ref',
'@firebase/app-check',
'@semantic-release/error',
'@rollup/rollup-android-arm-eabi',
'pvutils',
'@radix-ui/react-use-is-hydrated',
'@shikijs/langs',
'@storybook/react-docgen-typescript-plugin',
'stylelint-scss',
'@shikijs/themes',
'sift',
'callsite',
'css-in-js-utils',
'use-latest',
'@biomejs/biome',
'@supabase/node-fetch',
'@algolia/client-common',
'@octokit/plugin-retry',
'eslint-plugin-node',
'rehype-raw',
'fined',
'@types/mute-stream',
'is-object',
'@whatwg-node/events',
'@firebase/database-types',
'sanitize-html',
'marked-terminal',
'@expo/config-types',
'babel-messages',
'webpack-log',
'urijs',
'@rollup/rollup-android-arm64',
'@rollup/rollup-linux-arm-musleabihf',
'@storybook/docs-tools',
'@scure/bip32',
'goober',
'@webassemblyjs/helper-code-frame',
'nearley',
'@webassemblyjs/helper-fsm',
'uid-safe',
'@angular/compiler-cli',
'react-window',
'is-electron',
'lit',
'@csstools/css-syntax-patches-for-csstree',
'@stripe/stripe-js',
'cron',
'@firebase/remote-config',
'@aws-sdk/protocol-http',
'@firebase/webchannel-wrapper',
'alien-signals',
'esbuild-wasm',
'gonzales-pe',
'fast-csv',
'frac',
'array-each',
'@whatwg-node/disposablestack',
'fastify-plugin',
'@rushstack/terminal',
'async-lock',
'unicode-properties',
'prosemirror-transform',
'@graphql-tools/executor-common',
'react-draggable',
'nano-spawn',
'@azure/storage-blob',
'modify-values',
'@storybook/core-server',
'@vitejs/plugin-react-swc',
'@types/tapable',
'optimism',
'js-sdsl',
'@angular/forms',
'object.defaults',
'railroad-diagrams',
'@vitejs/plugin-basic-ssl',
'@firebase/app-types',
'workbox-webpack-plugin',
'lodash.ismatch',
'@aws-sdk/endpoint-cache',
'react-syntax-highlighter',
'eslint-plugin-cypress',
'babel-template',
'eslint-config-airbnb',
'typed-assert',
'find-file-up',
'prosemirror-view',
'@firebase/database',
'@expo/config',
'@codemirror/view',
'@scure/base',
'linkifyjs',
'@nestjs/config',
'remove-trailing-spaces',
'input-otp',
'@mui/base',
'@firebase/remote-config-types',
'@microsoft/tsdoc-config',
'prosemirror-commands',
'os-name',
'node-source-walk',
'@algolia/requester-browser-xhr',
'base-64',
'find-my-way',
'@types/linkify-it',
'@tanstack/query-devtools',
'merge',
'@algolia/requester-node-http',
'@firebase/app-compat',
'@slack/web-api',
'prosemirror-state',
'ast-module-types',
'lmdb',
'@firebase/firestore-types',
'@babel/cli',
'@rollup/rollup-linux-riscv64-gnu',
'@noble/ciphers',
'object.omit',
'gitconfiglocal',
'@firebase/performance-types',
'update-check',
'@angular/platform-browser-dynamic',
'raw-loader',
'@oxc-resolver/binding-linux-x64-musl',
'pidusage',
'd3-scale-chromatic',
'@graphql-codegen/typescript',
'@opentelemetry/exporter-prometheus',
'tdigest',
'qrcode-terminal',
'git-semver-tags',
'lit-html',
'@aws-sdk/lib-storage',
'discontinuous-range',
'metro-resolver',
'base64url',
'metro-core',
'mongoose',
'birpc',
'ts-log',
'cli-table',
'react-colorful',
'license-webpack-plugin',
'@rollup/rollup-linux-arm-gnueabihf',
'read-package-up',
'semver-truncate',
'backo2',
'fp-ts',
'pnp-webpack-plugin',
'watchpack-chokidar2',
'@algolia/client-search',
'@types/tmp',
'ts-essentials',
'@angular-devkit/schematics-cli',
'algoliasearch',
'strong-log-transformer',
'array-equal',
'lit-element',
'@graphql-codegen/typed-document-node',
'@nestjs/cli',
'ky',
'remedial',
'@aws-sdk/signature-v4',
'emitter-listener',
'@firebase/remote-config-compat',
'stream-combiner2',
'sanitize.css',
'find-pkg',
'internal-ip',
'dc-polyfill',
'@changesets/types',
'windows-release',
'bplist-creator',
'byline',
'fast-json-stringify',
'@opentelemetry/exporter-logs-otlp-grpc',
'@ngtools/webpack',
'eslint-plugin-es-x',
'ps-tree',
'openapi-types',
'@types/conventional-commits-parser',
'@firebase/functions-compat',
'lottie-web',
'@antfu/install-pkg',
'@google-cloud/firestore',
'bun-types',
'@mdx-js/mdx',
'seq-queue',
'@types/web-bluetooth',
'eslint-plugin-simple-import-sort',
'css-color-names',
'buffer-equal',
'hookable',
'fastify',
'@fastify/error',
'dfa',
'parse5-sax-parser',
'@angular-devkit/build-angular',
'mini-svg-data-uri',
'@types/wrap-ansi',
'mquery',
'diff-match-patch',
'@opentelemetry/exporter-logs-otlp-proto',
'js-sha3',
'bufferutil',
'@datadog/sketches-js',
'babel-plugin-named-asset-import',
'jsonpath',
'@nuxtjs/opencollective',
'mpath',
'prosemirror-keymap',
'@angular-devkit/build-webpack',
'minipass-json-stream',
'parse-conflict-json',
'hoek',
'formik',
'@firebase/app-check-types',
'random-bytes',
'@napi-rs/nice',
'load-tsconfig',
'fetch-retry',
'stable-hash-x',
'@sentry/webpack-plugin',
'conventional-changelog-preset-loader',
'postcss-normalize',
'systeminformation',
'@octokit/plugin-throttling',
'which-pm-runs',
'@firebase/auth-interop-types',
'@rollup/rollup-linux-s390x-gnu',
'@types/papaparse',
'conventional-changelog-core',
'potpack',
'command-line-args',
'macos-release',
'@types/parse5',
'bin-version-check',
'resolve-global',
'@firebase/messaging-interop-types',
'detective-postcss',
'promise-call-limit',
'@types/ssh2',
'bin-version',
'just-diff',
'@joshwooding/vite-plugin-react-docgen-typescript',
'wmf',
'debuglog',
'tippy.js',
'@mui/x-date-pickers',
'hexoid',
'postcss-browser-comments',
'style-mod',
'@sentry/node-core',
'@edsdk/n1ed-react',
'uncrypto',
'@graphql-tools/prisma-loader',
'stream-json',
'fontkit',
'json-to-pretty-yaml',
'@wdio/logger',
'@graphql-codegen/gql-tag-operations',
'@types/google.maps',
'tlhunter-sorted-set',
'ts-pnp',
'@emotion/css',
'wait-port',
'xml-js',
'pkg-conf',
'xss',
'@envelop/core',
'smob',
'@chevrotain/types',
'wordwrapjs',
'unplugin-utils',
'@opentelemetry/instrumentation-aws-sdk',
'@peculiar/asn1-schema',
'@ai-sdk/gateway',
'find-replace',
'@apidevtools/swagger-parser',
'@storybook/telemetry',
'estree-util-visit',
'@types/accepts',
'@lit/reactive-element',
'@date-fns/tz',
'pbf',
'rgbcolor',
'safe-regex2',
'@shikijs/core',
'sponge-case',
'@types/webpack-env',
'oauth',
'ylru',
'find-babel-config',
'cssfilter',
'@algolia/client-analytics',
'@redis/graph',
'clipanion',
'micromark-extension-mdx-jsx',
'@types/source-list-map',
'string-hash',
'@opentelemetry/instrumentation-bunyan',
'parse5-html-rewriting-stream',
'js-md4',
'store2',
'karma',
'unenv',
'@npmcli/arborist',
'fancy-log',
'eslint-config-standard',
'esbuild-linux-64',
'quill-delta',
'babel-helpers',
'get-port-please',
'detective-stylus',
'serve-handler',
'sockjs-client',
'prosemirror-schema-list',
'expand-range',
'liftoff',
'outdent',
'custom-event',
'avvio',
'stack-chain',
'colorjs.io',
'@isaacs/string-locale-compare',
'detective-es6',
'ofetch',
'babel-plugin-syntax-hermes-parser',
'postgres-range',
'just-diff-apply',
'@headlessui/react',
'micromark-extension-mdxjs-esm',
'sass-embedded',
'easy-table',
'di',
'@aws-sdk/util-dynamodb',
'lolex',
'@tiptap/pm',
'sanitize-filename',
'file-system-cache',
'layout-base',
'javascript-natural-sort',
'cache-content-type',
'@csstools/normalize.css',
'@actions/github',
'@storybook/test',
'react-shallow-renderer',
'@rollup/rollup-freebsd-x64',
'@rollup/rollup-freebsd-arm64',
'abstract-logging',
'firebase-admin',
'@opentelemetry/instrumentation-winston',
'bundle-require',
'@jsonjoy.com/buffers',
'acorn-node',
'rollup-plugin-visualizer',
'@types/jsonfile',
'@react-spring/animated',
'@module-federation/managers',
'uvu',
'decompress-tar',
'decompress-targz',
'@types/estree-jsx',
'@types/color-name',
'valibot',
'utf-8-validate',
'@algolia/client-personalization',
'convert-hrtime',
'@module-federation/dts-plugin',
'hookified',
'precinct',
'merge-source-map',
'deep-object-diff',
'html-minifier',
'js-string-escape',
'parchment',
'@datadog/browser-core',
'@nuxt/opencollective',
'@biomejs/cli-linux-x64',
'command-line-usage',
'@types/koa',
'@codemirror/autocomplete',
'is-natural-number',
'object.map',
'micromark-extension-mdx-md',
'@hapi/boom',
'@iconify/types',
'prosemirror-tables',
'@types/keygrip',
'are-docs-informative',
'@vercel/nft',
'decompress-unzip',
'kareem',
'ts-pattern',
'@apollo/protobufjs',
'chevrotain',
'@aws-sdk/util-hex-encoding',
'@braintree/sanitize-url',
'weak-lru-cache',
'micromark-factory-mdx-expression',
'@aws-sdk/middleware-sdk-sts',
'@react-spring/types',
'iterall',
'decompress-tarbz2',
'@npmcli/metavuln-calculator',
'react-native-safe-area-context',
'raf-schd',
'cacheable',
'superstruct',
'react-datepicker',
'screenfull',
'async-sema',
'@opentelemetry/instrumentation-pino',
'babel-plugin-module-resolver',
'light-my-request',
'relay-runtime',
'get-amd-module-type',
'treeverse',
'flow-enums-runtime',
'webcrypto-core',
'@wdio/types',
'karma-chrome-launcher',
'async-listen',
'dom-serialize',
'@tiptap/extension-italic',
'make-iterator',
'devalue',
'prosemirror-trailing-node',
'swc-loader',
'@tiptap/extension-bold',
'lodash.mapvalues',
'micromark-extension-mdx-expression',
'@graphql-codegen/typescript-operations',
'detective',
'eslint-import-context',
'@algolia/recommend',
'micromark-util-events-to-acorn',
'@aws-sdk/is-array-buffer',
'@remirror/core-constants',
'h3',
'json-schema-to-ts',
'babel-generator',
'@angular/cdk',
'detective-amd',
'@shikijs/engine-javascript',
'@types/react-reconciler',
'prosemirror-markdown',
'@tiptap/extension-paragraph',
'decompress',
'scuid',
'@nuxt/kit',
'@react-spring/shared',
'toad-cache',
'@apidevtools/swagger-methods',
'redis-commands',
'node-modules-regexp',
'@stylistic/eslint-plugin',
'@nestjs/axios',
'@mapbox/unitbezier',
'@nestjs/swagger',
'@urql/core',
'@google-cloud/precise-date',
'i18next-browser-languagedetector',
'@react-spring/core',
'@tiptap/extension-document',
'detective-typescript',
'prosemirror-history',
'empathic',
'should-format',
'should-equal',
'bcrypt',
'@globalart/nestjs-logger',
'fuzzy',
'@aws-sdk/service-error-classification',
'@peculiar/webcrypto',
'prosemirror-menu',
'formatly',
'@types/nodemailer',
'@module-federation/third-party-dts-extractor',
'json-stringify-nice',
'should-util',
'object-treeify',
'@codemirror/language',
'koa-convert',
'@pnpm/types',
'@types/uglify-js',
'should',
'is-url-superb',
'prosemirror-schema-basic',
'qjobs',
'oidc-token-hash',
'rbush',
'promise-all-reject-late',
'@rushstack/rig-package',
'@apidevtools/openapi-schemas',
'module-definition',
'@opentelemetry/instrumentation-net',
'valid-url',
'gl-matrix',
'@storybook/core-webpack',
'truncate-utf8-bytes',
'prosemirror-inputrules',
'@dnd-kit/modifiers',
'@expo/image-utils',
'merge-options',
'@mui/x-internals',
'detective-cjs',
'junk',
'@types/mime-types',
'glob-stream',
'json2mq',
'@types/prismjs',
'react-intersection-observer',
'randomatic',
'@oxc-project/types',
'utf8-byte-length',
'getenv',
'preact-render-to-string',
'table-layout',
'protocol-buffers-schema',
'@lmdb/lmdb-linux-x64',
'js2xmlparser',
'@module-federation/enhanced',
'@opentelemetry/resource-detector-aws',
'unstorage',
'lodash.castarray',
'bs58check',
'stream-chain',
'sass-embedded-linux-x64',
'orderedmap',
'only',
'@ant-design/colors',
'@datadog/libdatadog',
'node-schedule',
'ordered-binary',
'typeorm',
'oauth4webapi',
'@aws-sdk/client-iam',
'karma-source-map-support',
'mdast-util-mdx',
'should-type',
'detective-sass',
'@hapi/address',
'micromark-extension-mdxjs',
'readdir-scoped-modules',
'@storybook/codemod',
'@tiptap/extension-heading',
'unist-util-position-from-estree',
'@module-federation/bridge-react-webpack-plugin',
'@aws-sdk/util-uri-escape',
'@codemirror/state',
'synchronous-promise',
'youch',
'mv',
'@types/content-disposition',
'lodash.escape',
'@chevrotain/utils',
'string-convert',
'@swc/core-linux-arm64-gnu',
'@lezer/highlight',
'@rollup/plugin-terser',
'@jsonjoy.com/codegen',
'@expo/prebuild-config',
'@module-federation/rspack',
'style-search',
'@module-federation/manifest',
'@opentelemetry/instrumentation-restify',
'@fortawesome/fontawesome-common-types',
'swiper',
'flatten',
'@aws-sdk/client-ssm',
'xmlcreate',
'croner',
'string-template',
'@napi-rs/nice-linux-x64-musl',
'unicode-emoji-modifier-base',
'focus-trap',
'@types/ejs',
'alphanum-sort',
'@tiptap/extension-ordered-list',
'add-stream',
'@napi-rs/nice-linux-x64-gnu',
'@fastify/ajv-compiler',
'@aws-sdk/node-http-handler',
'read-yaml-file',
'jsc-safe-url',
'@react-navigation/elements',
'@sqltools/formatter',
'time-span',
'home-or-tmp',
'regex-cache',
'@phenomnomnominal/tsquery',
'inline-style-prefixer',
'vinyl-fs',
'prosemirror-dropcursor',
'is-equal-shallow',
'rc-tooltip',
'@opentelemetry/instrumentation-memcached',
'@redocly/openapi-core',
'@types/jasmine',
'cli-color',
'oniguruma-to-es',
'@nicolo-ribaudo/chokidar-2',
'@tiptap/core',
'detective-scss',
'rope-sequence',
'@tiptap/extension-bubble-menu',
'multicast-dns-service-types',
'@tiptap/extension-bullet-list',
'@types/koa-compose',
'strip-bom-string',
'@tiptap/extension-text',
'react-dnd-html5-backend',
'@opentelemetry/instrumentation-aws-lambda',
'@dual-bundle/import-meta-resolve',
'@iarna/toml',
'@tiptap/extension-strike',
'@flmngr/flmngr-server-node-express',
'use-latest-callback',
'better-sqlite3',
'@graphql-tools/documents',
'@aws-sdk/property-provider',
'expo-modules-autolinking',
'@azure/core-xml',
'simple-plist',
'user-home',
'@react-spring/rafz',
'prosemirror-collab',
'react-toastify',
'@opentelemetry/resource-detector-gcp',
'@anthropic-ai/sdk',
'skin-tone',
'write-json-file',
'@mrmlnc/readdir-enhanced',
'@tiptap/extension-list-item',
'@react-aria/i18n',
'@prisma/debug',
'@prisma/engines',
'get-pkg-repo',
'@module-federation/data-prefetch',
'@microsoft/api-extractor-model',
'should-type-adaptors',
'emojilib',
'@opentelemetry/instrumentation-cassandra-driver',
'libmime',
'@tiptap/extension-horizontal-rule',
'rc-slider',
'crc',
'pg-numeric',
'google-protobuf',
'filename-regex',
'prosemirror-gapcursor',
'buffer-builder',
'bonjour',
'async-hook-jl',
'cls-hooked',
'@react-navigation/native',
'plugin-error',
'@expo/osascript',
'@graphql-codegen/cli',
'@stripe/react-stripe-js',
'@chevrotain/gast',
'math-random',
'react-native',
'secp256k1',
'@microsoft/api-extractor',
'toml',
'dns-txt',
'@globalart/nestjs-swagger',
'fastparse',
'@tiptap/extension-hard-break',
'tw-animate-css',
'babel-plugin-transform-typescript-metadata',
'@aws-sdk/client-cloudwatch-logs',
'server-only',
'@datadog/browser-rum-core',
'geojson-vt',
'@react-spring/web',
'cloneable-readable',
'sync-message-port',
'glob-base',
'@tiptap/extension-code',
'lodash.map',
'spark-md5',
'atomically',
'react-scripts',
'express-session',
'sass-embedded-linux-musl-x64',
'@types/react-test-renderer',
'long-timeout',
'@codemirror/lint',
'typanion',
'reftools',
'focus-lock',
'@react-navigation/core',
'expo-constants',
'ethereumjs-util',
'safe-json-stringify',
'@opentelemetry/instrumentation-socket.io',
'is-stream-ended',
'remark',
'boom',
'nanoclone',
'@wry/caches',
'rc-motion',
'@radix-ui/react-toolbar',
'fast-url-parser',
'@peculiar/json-schema',
'json-schema-ref-resolver',
'clone-buffer',
'serve',
'conventional-recommended-bump',
'@codemirror/commands',
'@mapbox/point-geometry',
'@types/cookies',
'oas-kit-common',
'uncontrollable',
'@firebase/data-connect',
'wonka',
'constructs',
'is-dotfile',
'swagger2openapi',
'babel-plugin-transform-flow-enums',
'tsconfig',
'expo-modules-core',
'json3',
'left-pad',
'@redocly/ajv',
'expo-file-system',
'@types/memcached',
'z-schema',
'shallow-equal',
'stylus',
'@cloudflare/kv-asset-handler',
'oas-resolver',
'@expo/package-manager',
'oas-schema-walker',
'oas-validator',
'indexof',
'rtl-css-js',
'@apollo/utils.keyvaluecache',
'babel-plugin-react-native-web',
'buffer-indexof',
'sync-fetch',
'globule',
'@iconify/utils',
'direction',
'use-debounce',
'now-and-later',
'@nx/eslint',
'@wdio/utils',
'sorted-array-functions',
'unist-builder',
'@tiptap/extension-blockquote',
'chromium-edge-launcher',
'fs-exists-sync',
'node-stream-zip',
'iron-webcrypto',
'@expo/metro-config',
'vue-component-type-helpers',
'@types/http-assert',
'typedoc',
'@tiptap/extension-link',
'@hutson/parse-repository-url',
'resolve-protobuf-schema',
'@aws-sdk/util-buffer-from',
'eslint-plugin-playwright',
'@tiptap/extension-floating-menu',
'@types/dompurify',
'@ant-design/icons',
'vue-tsc',
'react-native-gesture-handler',
'find-process',
'react-native-svg',
'@react-native-async-storage/async-storage',
'@tiptap/extension-gapcursor',
'@fastify/merge-json-schemas',
'slide',
'getopts',
'react-native-screens',
'uniqs',
'@opentelemetry/resource-detector-container',
'@globalart/nestcord',
'@asamuzakjp/nwsapi',
'react-use',
'require-package-name',
'@ljharb/through',
'@types/crypto-js',
'trim-trailing-lines',
'exenv',
'@sendgrid/client',
'@listr2/prompt-adapter-inquirer',
'@bundled-es-modules/tough-cookie',
'pm2',
'karma-jasmine',
'radix3',
'sudo-prompt',
'@aws-sdk/smithy-client',
'utf8',
'@aws-sdk/querystring-builder',
'@vue/compiler-vue2',
'@rollup/rollup-linux-riscv64-musl',
'rambda',
'vendors',
'xstate',
'@angular/build',
'error-stack-parser-es',
'killable',
'idb-keyval',
'motion',
'@swc/cli',
'monaco-editor',
'@types/jquery',
'swagger-ui-express',
'@tiptap/starter-kit',
'ansi-wrap',
'@clack/prompts',
'@apollo/utils.logger',
'@testing-library/react-hooks',
'git-remote-origin-url',
'eslint-plugin-jsdoc',
'@aws-sdk/middleware-retry',
'@mapbox/vector-tile',
'babel-preset-expo',
'@aws-sdk/abort-controller',
'@firebase/app-check-interop-types',
'@swc/core-linux-arm64-musl',
'walk-sync',
'@react-types/button',
'expo',
'@expo/env',
'@datadog/browser-rum',
'@chromatic-com/storybook',
'@aws-sdk/lib-dynamodb',
'stylelint-config-recommended-scss',
'@redocly/config',
'react-native-is-edge-to-edge',
'@react-types/overlays',
'parse-glob',
'bunyan',
'react-number-format',
'@img/colour',
'@biomejs/cli-linux-x64-musl',
'tiny-async-pool',
'pn',
'@sendgrid/helpers',
'@datadog/wasm-js-rewriter',
'time-stamp',
'regex',
'rgba-regex',
'tv4',
'@exodus/schemasafe',
'is-posix-bracket',
'quill',
'is-negated-glob',
'prisma',
'pony-cause',
'jest-canvas-mock',
'is-valid-glob',
'aws-ssl-profiles',
'hono',
'timsort',
'generic-names',
'ulid',
'vite-plugin-svgr',
'oas-linter',
'ox',
'underscore.string',
'aws-cdk',
'match-sorter',
'@aws-sdk/config-resolver',
'@esbuild/openharmony-arm64',
'css-selector-tokenizer',
'eslint-rule-composer',
'css-box-model',
'expo-font',
'js-sha256',
'@expo/cli',
'dotenv-cli',
'babel-helper-replace-supers',
'requirejs',
'babel-plugin-transform-es2015-classes',
'preserve',
'babel-plugin-transform-es2015-arrow-functions',
'lodash.capitalize',
'@aws-sdk/querystring-parser',
'@aws-sdk/shared-ini-file-loader',
'@angular-eslint/bundled-angular-compiler',
'parse-cache-control',
'rehackt',
'@types/ramda',
'@dependents/detective-less',
'error',
'date-fns-jalali',
'@storybook/preset-react-webpack',
'hex-color-regex',
'stream-to-array',
'@angular-eslint/utils',
'use-resize-observer',
'java-properties',
'unload',
'@react-dnd/asap',
'rc-resize-observer',
'sync-child-process',
'cache-manager',
'estree-util-attach-comments',
'@fastify/fast-json-stringify-compiler',
'lodash.isarray',
'parse-headers',
'@vue/devtools-kit',
'@0no-co/graphql.web',
'hast-util-to-string',
'icss-replace-symbols',
'rx-lite',
'prosemirror-changeset',
'lazy-universal-dotenv',
'p-throttle',
'@parcel/watcher-linux-arm64-glibc',
'@googlemaps/js-api-loader',
'@storybook/api',
'readline',
'peek-stream',
'lodash.assign',
'@npmcli/query',
'corepack',
'javascript-stringify',
'align-text',
'realpath-native',
'nano-css',
'@module-federation/inject-external-runtime-core-plugin',
'value-or-function',
'jss',
'@clack/core',
'@types/katex',
'gray-matter',
'is',
'@sentry/hub',
'code-excerpt',
'contains-path',
'@tailwindcss/forms',
'app-root-dir',
'lru.min',
'lead',
'resolve-options',
'graphlib',
'es6-set',
'@opentelemetry/instrumentation-router',
'xmlbuilder2',
'react-helmet',
'@opentelemetry/resource-detector-azure',
'@react-native-community/cli-tools',
'aes-js',
'@img/sharp-linux-arm64',
'@panva/hkdf',
'@tiptap/extension-code-block',
'@parcel/watcher-win32-x64',
'@oozcitak/util',
'three',
'use-memo-one',
'abitype',
'p-pipe',
'gaze',
'@types/which',
'koalas',
'sortablejs',
'platform',
'babel-plugin-const-enum',
'fs-mkdirp-stream',
'@azure/identity',
'@aws-sdk/url-parser',
'@react-aria/visually-hidden',
'http2-client',
'@aws-sdk/middleware-serde',
'convert-to-spaces',
'semifies',
'@types/strip-bom',
'moo-color',
'@img/sharp-libvips-linux-arm64',
'@prisma/get-platform',
'@swc-node/register',
'@types/styled-components',
'@react-navigation/routers',
'@algolia/requester-fetch',
'node-readfiles',
'vinyl-sourcemap',
'@react-stately/collections',
'@react-dnd/invariant',
'tsup',
'@sendgrid/mail',
'lodash.omit',
'trim',
'tlds',
'json-pointer',
'@prisma/fetch-engine',
'@algolia/client-abtesting',
'@aws-sdk/fetch-http-handler',
'enzyme-shallow-equal',
'@wdio/config',
'@types/pretty-hrtime',
'markdown-extensions',
'vue-template-compiler',
'character-parser',
'node-fetch-h2',
'@unrs/resolver-binding-linux-arm64-gnu',
'quote-unquote',
'react-chartjs-2',
'crossws',
'@rollup/plugin-inject',
'init-package-json',
'app-module-path',
'linebreak',
'react-clientside-effect',
'@angular-eslint/eslint-plugin-template',
'@parcel/watcher-linux-arm64-musl',
'lodash._getnative',
'babel-plugin-emotion',
'classcat',
'@swc-node/sourcemap-support',
'gunzip-maybe',
'isbot',
'rgb-regex',
'@tiptap/react',
'@algolia/ingestion',
'is-observable',
'ttl-set',
'miniflare',
'@algolia/client-query-suggestions',
'lodash.set',
'markdown-it-anchor',
'@jest/environment-jsdom-abstract',
'html-react-parser',
'@angular/cli',
'@storybook/cli',
'babel-plugin-transform-strict-mode',
'@swc/core-darwin-arm64',
'downshift',
'expo-asset',
'@restart/hooks',
'@stoplight/json',
'dnd-core',
'to-through',
'datadog-metrics',
'tmp-promise',
'babel-plugin-transform-es2015-modules-commonjs',
'@sentry/nextjs',
'@aws-sdk/middleware-stack',
'js-tiktoken',
'@lit-labs/ssr-dom-shim',
'is-gzip',
'rc-menu',
'faker',
'deep-diff',
'@types/readable-stream',
'signale',
'textextensions',
'@aws-sdk/node-config-provider',
'rc-tree',
'hyperlinker',
'@vue/test-utils',
'@codemirror/search',
'chromatic',
'eslint-plugin-eslint-comments',
'@opentelemetry/instrumentation-dns',
'@vue/devtools-shared',
'expo-keep-awake',
'@react-dnd/shallowequal',
'babel-plugin-syntax-object-rest-spread',
'native-promise-only',
'@webgpu/types',
'@tiptap/extension-dropcursor',
'is-port-reachable',
'@react-stately/overlays',
'section-matter',
'json-stringify-pretty-compact',
'react-helmet-async',
'unist-util-find-after',
'mobx',
'node-mock-http',
'@angular-eslint/eslint-plugin',
'check-disk-space',
'@storybook/builder-manager',
'eyes',
'@types/react-syntax-highlighter',
'mutexify',
'cssfontparser',
'@react-navigation/bottom-tabs',
'@opentelemetry/resource-detector-alibaba-cloud',
'packet-reader',
'sort-object-keys',
'with',
'tween-functions',
'react-intl',
'filing-cabinet',
'@types/tinycolor2',
'regex-utilities',
'binaryextensions',
'plur',
'@azure-rest/core-client',
'unherit',
'acorn-loose',
'readline-sync',
'@aws-sdk/invalid-dependency',
'@oclif/plugin-help',
'@types/strip-json-comments',
'@urql/exchange-retry',
'dogapi',
'isomorphic-unfetch',
'@zxing/text-encoding',
'@base2/pretty-print-object',
'is-redirect',
'regex-recursion',
'@types/cookie-parser',
'@types/bun',
'micromark-extension-frontmatter',
'rc-virtual-list',
'@angular-eslint/template-parser',
'@rspack/binding',
'react-smooth',
'jotai',
'react-reconciler',
'titleize',
'unimport',
'@algolia/monitoring',
'@firebase/app',
'loglevel-plugin-prefix',
'@aws-sdk/middleware-content-length',
'omggif',
'es-aggregate-error',
'sort-package-json',
'hsla-regex',
'buffer-writer',
'@opentelemetry/instrumentation-cucumber',
'@react-aria/overlays',
'rc-dropdown',
'@expo/fingerprint',
'create-error-class',
'@types/cross-spawn',
'lodash.pick',
'password-prompt',
'@aws-sdk/util-body-length-browser',
'hast-util-to-text',
'jstransformer',
'wkx',
'@internationalized/string',
'detect-package-manager',
'tcp-port-used',
'@intlify/shared',
'react-native-reanimated',
'fastest-stable-stringify',
'@aws-sdk/credential-provider-imds',
'twilio',
'@semantic-release/commit-analyzer',
'@jimp/utils',
'@xobotyi/scrollbar-width',
'@semantic-release/release-notes-generator',
'mdast-util-frontmatter',
'murmurhash-js',
'p-map-series',
'retry-as-promised',
'libqp',
'babel-helper-get-function-arity',
'is-in-ci',
'hsl-regex',
'@rspack/binding-linux-x64-gnu',
'framesync',
'postcss-modules',
'sequelize',
'center-align',
'@csstools/selector-resolve-nested',
'is-deflate',
'scule',
'@prisma/client',
'is-subset',
'lodash.foreach',
'circular-json',
'@parcel/watcher-darwin-arm64',
'constantinople',
'pinia',
'mocha-junit-reporter',
'hast-util-to-estree',
'@mapbox/jsonlint-lines-primitives',
'@semantic-release/npm',
'@expo/spawn-async',
'@react-navigation/native-stack',
'is2',
'@napi-rs/canvas',
'sigmund',
'@octokit/auth-app',
'@storybook/manager',
'is-in-browser',
'@firebase/auth',
'heap-js',
'@types/offscreencanvas',
'@types/compression',
'rc-drawer',
'@types/xml2js',
'@ardatan/sync-fetch',
'libnpmpublish',
'vue-loader',
'react-confetti',
'hot-shots',
'@internationalized/message',
'd3-voronoi',
'@opentelemetry/auto-instrumentations-node',
'glob-to-regex.js',
'@cloudflare/workerd-linux-64',
'@envelop/instrumentation',
'ethers',
'timeout-signal',
'hast-util-from-html',
'@opentelemetry/propagation-utils',
'capture-stack-trace',
'react-modal',
'is-invalid-path',
'git-hooks-list',
'@sentry/minimal',
'dottie',
'clean-webpack-plugin',
'@stoplight/yaml-ast-parser',
'@algolia/client-insights',
'karma-coverage',
'fast-shallow-equal',
'@turf/distance',
'scmp',
'react-element-to-jsx-string',
'html-dom-parser',
'@radix-ui/react-icons',
'listr-verbose-renderer',
'load-esm',
'@ai-sdk/openai',
'png-js',
'catharsis',
'dependency-tree',
'@mswjs/cookies',
'react-dnd',
'@aws-sdk/util-body-length-node',
'@hapi/joi',
'mixin-object',
'lockfile',
'rc-overflow',
'is-color-stop',
'@trivago/prettier-plugin-sort-imports',
'cssnano-util-get-arguments',
'@csstools/cascade-layer-name-parser',
'firebase',
'@google-cloud/logging',
'promzard',
'react-focus-lock',
'@types/emscripten',
'estree-util-to-js',
'@manypkg/find-root',
'stylus-lookup',
'nerf-dart',
'@sentry/vercel-edge',
'sass-lookup',
'safe-identifier',
'resolve-dependency-path',
'iterate-iterator',
'env-ci',
'@react-stately/form',
'@types/json-stable-stringify',
'drizzle-kit',
'tslint',
'css-vendor',
'isows',
'token-stream',
'yamljs',
'@types/stylis',
'@fortawesome/fontawesome-svg-core',
'@firebase/firestore',
'rc-input-number',
'@zapier/zapier-sdk',
'typedarray.prototype.slice',
'when-exit',
'@swc/core-win32-arm64-msvc',
'@firebase/installations',
'cssnano-util-same-parent',
'@mapbox/tiny-sdf',
'cssnano-util-raw-cache',
'rc-pagination',
'langsmith',
'@js-joda/core',
'url-to-options',
'nocache',
'pug-error',
'eventid',
'pug-runtime',
'object-path',
'@storybook/channel-postmessage',
'lru_map',
'estree-util-build-jsx',
'@semantic-release/github',
'walkdir',
'errorhandler',
'tedious',
'pug-attrs',
'is-whitespace-character',
'oblivious-set',
'@mapbox/whoots-js',
'@apollo/utils.stripsensitiveliterals',
'reduce-css-calc',
'babel-polyfill',
'markdown-escapes',
'uglify-to-browserify',
'is-word-character',
'@firebase/messaging',
'ts-easing',
'@parcel/watcher-darwin-x64',
'turndown',
'jss-plugin-camel-case',
'babel-register',
'cytoscape',
'@ctrl/tinycolor',
'babel-helper-function-name',
'@aws-cdk/cloud-assembly-schema',
'console-table-printer',
'pug-code-gen',
'@react-aria/label',
'git-log-parser',
'@firebase/functions',
'rc-mentions',
'@oozcitak/dom',
'@firebase/storage',
'rc-table',
'@oozcitak/infra',
'@firebase/analytics',
'tildify',
'@types/qrcode',
'issue-parser',
'@storybook/core-client',
'is-svg',
'next-auth',
'@nx/workspace',
'rc-collapse',
'clone-regexp',
'react-property',
'libbase64',
'webdriver',
'pug',
'@nx/web',
'@react-email/render',
'aws-cdk-lib',
'sparkles',
'react-onclickoutside',
'rc-notification',
'lovable-tagger',
'simple-wcswidth',
'byte-size',
'set-harmonic-interval',
'@ant-design/icons-svg',
'@zeit/schemas',
'unzip-response',
'glogg',
'topojson-client',
'broadcast-channel',
'@firebase/storage-types',
'@swc/core-darwin-x64',
'rc-rate',
'@formatjs/intl',
'@datadog/datadog-ci',
'ordered-read-streams',
'state-toggle',
'any-observable',
'array.prototype.map',
'@aws-sdk/hash-node',
'is-expression',
'@img/sharp-linuxmusl-arm64',
'jsdoc',
'@octokit/auth-oauth-device',
'@types/sanitize-html',
'@react-stately/list',
'@monaco-editor/react',
'@unrs/resolver-binding-linux-arm64-musl',
'@apollo/utils.removealiases',
'karma-jasmine-html-reporter',
'fontfaceobserver',
'intersection-observer',
'pug-lexer',
'requizzle',
'listr-silent-renderer',
'rc-cascader',
'server-destroy',
'rc-select',
'async-listener',
'bullmq',
'pdf-lib',
'@vitest/eslint-plugin',
'node-pty',
'@types/rimraf',
'@zag-js/types',
'rc-tabs',
'react-universal-interface',
'cssnano-util-get-match',
'rc-progress',
'@angular/animations',
'@tiptap/extension-underline',
'@azure/keyvault-common',
'@vue/babel-helper-vue-transform-on',
'@react-native-community/cli-platform-android',
'@firebase/performance',
'rehype-parse',
'mockdate',
'@turf/bbox',
'lib0',
'ansi-gray',
'async-exit-hook',
'@heroicons/react',
'multipipe',
'eslint-config-airbnb-typescript',
'@types/datadog-metrics',
'jsbi',
'@oozcitak/url',
'@types/pluralize',
'@marijn/find-cluster-break',
'@zip.js/zip.js',
'toposort-class',
'highlightjs-vue',
'treeify',
'eslint-plugin-no-only-tests',
'load-script',
'concat-with-sourcemaps',
'@typescript/native-preview-linux-x64',
'usehooks-ts',
'@firebase/auth-types',
'module-lookup-amd',
'pug-parser',
'@expo/sdk-runtime-versions',
'@firebase/analytics-types',
'@apollo/utils.dropunuseddefinitions',
'sequelize-pool',
'libnpmaccess',
'@manypkg/get-packages',
'third-party-web',
'@img/sharp-darwin-arm64',
'farmhash-modern',
'@firebase/functions-types',
'uid2',
'vue-i18n',
'postcss-sorting',
'@parcel/watcher-win32-arm64',
'@storybook/builder-vite',
'stubborn-fs',
'xhr',
'pug-walk',
'make-event-props',
'promise.allsettled',
'fclone',
'qrcode.react',
'stylelint-order',
'iterate-value',
'archive-type',
'elegant-spinner',
'hast-util-to-html',
'spawnd',
'requirejs-config-file',
'@types/urijs',
'@octokit/oauth-methods',
'listr-update-renderer',
'rc-checkbox',
'knex',
'babel-helper-call-delegate',
'@rspack/lite-tapable',
'pug-filters',
'@swc-node/core',
'@zag-js/utils',
'true-case-path',
'clipboard',
'jss-plugin-rule-value-function',
'@solana/codecs-core',
'specificity',
'@apollo/utils.usagereporting',
'@react-aria/selection',
'@parcel/watcher-linux-arm-glibc',
'@typescript/native-preview',
'@aws-sdk/client-sfn',
'react-freeze',
'unix-dgram',
'serve-favicon',
'@parcel/watcher-android-arm64',
'rolldown',
'docker-modem',
'pug-load',
'@apollo/utils.printwithreducedwhitespace',
'@octokit/auth-oauth-app',
'@parcel/watcher-win32-ia32',
'rc-field-form',
'warn-once',
'@salesforce/sf-plugins-core',
'@parcel/watcher-freebsd-x64',
'@angular/material',
'continuation-local-storage',
'sugarss',
'better-path-resolve',
'react-side-effect',
'@react-native-community/cli-server-api',
'@rc-component/trigger',
'@swc/core-win32-x64-msvc',
'rc-steps',
'@cucumber/html-formatter',
'is-subdir',
'native-duplexpair',
'@amplitude/analytics-core',
'any-base',
'@fortawesome/free-solid-svg-icons',
'@unrs/resolver-binding-darwin-arm64',
'@poppinss/dumper',
'through2-filter',
'@react-aria/live-announcer',
'babel-plugin-transform-es2015-sticky-regex',
'unique-stream',
'@vue/babel-plugin-jsx',
'patch-console',
'micromark-extension-math',
'graceful-readlink',
'@storybook/addon-onboarding',
'babel-plugin-transform-es2015-shorthand-properties',
'node-plop',
'has-to-string-tag-x',
'encoding-japanese',
'isurl',
'which-pm',
'jss-plugin-vendor-prefixer',
'semantic-release',
'jsondiffpatch',
'cp-file',
'dtrace-provider',
'@types/d3-quadtree',
'glob-promise',
'vite-plugin-dts',
'@balena/dockerignore',
'argv-formatter',
'@csstools/postcss-relative-color-syntax',
'rc-tree-select',
'assert-never',
'@react-aria/form',
'@firebase/installations-types',
'@csstools/postcss-color-mix-function',
'react-hot-toast',
'request-ip',
'mobx-react-lite',
'@types/supercluster',
'pug-linker',
'babel-plugin-transform-es2015-parameters',
'@xstate/fsm',
'react-virtualized-auto-sizer',
'@octokit/auth-oauth-user',
'@img/sharp-win32-x64',
'ink',
'react-use-measure',
'jss-plugin-global',
'css-mediaquery',
'@octokit/oauth-authorization-url',
'jss-plugin-nested',
'babel-plugin-transform-es2015-unicode-regex',
'jss-plugin-props-sort',
'cwd',
'@apollo/usage-reporting-protobuf',
'@types/bcryptjs',
'babel-helper-hoist-variables',
'dockerode',
'humanize-duration',
'jss-plugin-default-unit',
'@sentry/replay',
'react-native-web',
'bech32',
'@cucumber/cucumber-expressions',
'@img/sharp-libvips-linuxmusl-arm64',
'@img/sharp-libvips-darwin-arm64',
'khroma',
'@prisma/instrumentation',
'rfc4648',
'vitefu',
'@nx/eslint-plugin',
'chance',
'@types/bcrypt',
'rc-upload',
'@intlify/message-compiler',
'babel-helper-define-map',
'@zag-js/collection',
'proggy',
'@adraffy/ens-normalize',
'@sentry/tracing',
'node-polyfill-webpack-plugin',
'@react-types/textfield',
'hey-listen',
'@egjs/hammerjs',
'babel-plugin-transform-es2015-typeof-symbol',
'@next/swc-win32-x64-msvc',
'@unrs/resolver-binding-win32-x64-msvc',
'exceljs',
'rx',
'right-align',
'hook-std',
'async-done',
'irregular-plurals',
'gulplog',
'babel-plugin-transform-es2015-block-scoping',
'@pdf-lib/standard-fonts',
'@apollo/utils.sortast',
'@nrwl/js',
'node-cron',
'pug-strip-comments',
'react-inspector',
'@zag-js/auto-resize',
'@types/cheerio',
'@cucumber/tag-expressions',
'@types/bluebird',
'fast-memoize',
'microevent.ts',
'@google-cloud/pubsub',
'@stoplight/yaml',
'leaflet',
'@types/react-window',
'uri-js-replace',
'babel-plugin-transform-es2015-template-literals',
'@types/passport-strategy',
'passport-jwt',
'@aws-cdk/asset-awscli-v1',
'@walletconnect/types',
'@solana/codecs-numbers',
'module-alias',
'webdriver-bidi-protocol',
'parseqs',
'testcontainers',
'pkginfo',
'@zag-js/toast',
'babel-helper-regex',
'@react-types/dialog',
'merge-refs',
'babel-plugin-transform-es2015-modules-umd',
'copyfiles',
'download',
'@mui/x-data-grid',
'@aws-sdk/client-ses',
'@zag-js/color-utils',
'@graphql-hive/signal',
'@parcel/watcher-linux-arm-musl',
'@next/swc-linux-arm64-gnu',
'remark-frontmatter',
'react-pdf',
'spawn-error-forwarder',
'preferred-pm',
'@base44/vite-plugin',
'babel-plugin-transform-es2015-object-super',
'mapbox-gl',
'openapi-typescript',
'editions',
'whatwg-url-without-unicode',
'@vitest/browser',
'@react-native-community/cli',
'lodash.clonedeepwith',
'@zag-js/toggle-group',
'remark-slug',
'webdriverio',
'@azure/keyvault-keys',
'react-input-autosize',
'listr',
'@rollup/rollup-linux-loongarch64-gnu',
'delegate',
'@lezer/javascript',
'@types/archiver',
'babel-plugin-transform-es2015-spread',
'launchdarkly-eventsource',
'rc-image',
'rc-input',
'pino-http',
'@csstools/postcss-gradients-interpolation-method',
'subarg',
'@pdf-lib/upng',
'react-beautiful-dnd',
'@pm2/io',
'rehype-stringify',
'@zag-js/timer',
'neotraverse',
'@react-aria/menu',
'@tiptap/extension-text-style',
'rc-switch',
'@csstools/postcss-media-queries-aspect-ratio-number-values',
'io-ts',
'critters',
'@nestjs/jwt',
'babel-plugin-check-es2015-constants',
'@next/swc-darwin-arm64',
'@tanstack/eslint-plugin-query',
'@next/swc-linux-arm64-musl',
'has-symbol-support-x',
'fs',
'@csstools/postcss-logical-resize',
'docker-compose',
'@react-native-community/cli-platform-ios',
'kafkajs',
'@csstools/postcss-media-minmax',
'@ethereumjs/rlp',
'parseuri',
'babel-plugin-transform-es2015-block-scoped-functions',
'babel-plugin-transform-es2015-for-of',
'proxy-compare',
'create-react-class',
'cytoscape-cose-bilkent',
'@mapbox/mapbox-gl-supported',
'first-chunk-stream',
'babel-plugin-transform-es2015-function-name',
'ansi-to-html',
'uint8arrays',
'@tiptap/extension-history',
'babel-plugin-transform-es2015-modules-amd',
'@types/whatwg-mimetype',
'rc-textarea',
'@storybook/addon-a11y',
'web-encoding',
'env-editor',
'ultron',
'babel-plugin-transform-object-rest-spread',
'@cacheable/utils',
'packageurl-js',
'worker-rpc',
'@csstools/utilities',
'unist-util-remove',
'csv-parser',
'@turf/clone',
'@aws-sdk/client-sns',
'@zag-js/radio-group',
'@react-stately/menu',
'amqplib',
'es6-object-assign',
'buffer-more-ints',
'noms',
'js-stringify',
'load-yaml-file',
'@react-types/datepicker',
'@graphql-codegen/client-preset',
'@zag-js/menu',
'@zag-js/presence',
'nprogress',
'csscolorparser',
'@nestjs/passport',
'@rollup/plugin-alias',
'@yarnpkg/libzip',
'dagre-d3-es',
'@zag-js/progress',
'@react-types/grid',
'@zag-js/hover-card',
'conventional-changelog',
'@react-stately/tabs',
'@csstools/postcss-logical-float-and-clear',
'@react-stately/selection',
'cuint',
'@react-types/radio',
'@expo/xcpretty',
'@react-native/metro-babel-transformer',
'babel-plugin-transform-es2015-destructuring',
'stylelint-config-standard-scss',
'@sentry/vite-plugin',
'@chevrotain/cst-dts-gen',
'jasmine',
'@react-types/select',
'@langchain/core',
'ftp',
'babel-plugin-transform-es2015-duplicate-keys',
'find-yarn-workspace-root2',
'@react-stately/radio',
'expo-linking',
'@module-federation/cli',
'parse-statements',
'@csstools/postcss-logical-viewport-units',
'@wdio/protocols',
'@react-aria/textfield',
'btoa-lite',
'@react-stately/datepicker',
'@mui/lab',
'axios-mock-adapter',
'doctypes',
'babel-plugin-transform-regenerator',
'@aws-sdk/util-base64-node',
'gulp',
'@intlify/core-base',
'console.table',
'@react-native-community/cli-types',
'tempfile',
'expo-status-bar',
'good-listener',
'@lydell/node-pty',
'phin',
'@csstools/postcss-scope-pseudo-class',
'babel-plugin-react-compiler',
'@rc-component/portal',
'@types/bn.js',
'write-pkg',
'jimp-compact',
'eol',
'@types/css-font-loading-module',
'@react-types/menu',
'@firebase/firestore-compat',
'react-resizable',
'babel-plugin-transform-es2015-modules-systemjs',
'@walletconnect/utils',
'@react-aria/dialog',
'multistream',
'babel-helper-optimise-call-expression',
'@react-aria/listbox',
'@swc/core-win32-ia32-msvc',
'vite-plugin-checker',
'@react-types/table',
'detective-vue2',
'normalize-svg-path',
'@angular-eslint/builder',
'@firebase/auth-compat',
'@algolia/abtesting',
'@react-stately/table',
'@firebase/messaging-compat',
'@react-types/combobox',
'@yarnpkg/fslib',
'highcharts',
'@monaco-editor/loader',
'prettier-plugin-organize-imports',
'@internationalized/number',
'@babel/polyfill',
'@firebase/app-check-compat',
'@rollup/rollup-linux-powerpc64le-gnu',
'@pm2/agent',
'@firebase/storage-compat',
'@unrs/resolver-binding-darwin-x64',
'@firebase/analytics-compat',
'@electron/get',
'@types/events',
'xmldoc',
'@swc/core-linux-arm-gnueabihf',
'@types/ua-parser-js',
'@storybook/postinstall',
'@firebase/performance-compat',
'react-base16-styling',
'cytoscape-fcose',
'@rspack/binding-linux-x64-musl',
'@react-types/tooltip',
'@aws-sdk/client-kms',
'@types/ioredis',
'@cloudflare/unenv-preset',
'@firebase/ai',
'state-local',
'inversify',
'@types/three',
'@react-types/listbox',
'parse-png',
'beasties',
'@firebase/installations-compat',
'color-parse',
'rc-segmented',
'math-expression-evaluator',
'selenium-webdriver',
'universal-cookie',
'@lukeed/uuid',
'@oclif/config',
'@jimp/core',
'@borewit/text-codec',
'css-selector-parser',
'kinesis-local',
'hawk',
'ts-declaration-location',
'babel-walk',
'@react-types/switch',
'@react-stately/tree',
'@rollup/plugin-typescript',
'@jsdoc/salty',
'@next/swc-darwin-x64',
'universal-github-app-jwt',
'lodash.topath',
'subscriptions-transport-ws',
'http-link-header',
'find-package-json',
'expo-splash-screen',
'@rollup/rollup-win32-x64-gnu',
'split-ca',
'@google/genai',
'@types/escodegen',
'enzyme',
'consolidate',
'@react-stately/select',
'seed-random',
'xxhashjs',
'lodash._isiterateecall',
'charm',
'execall',
'@types/cli-progress',
'fbemitter',
'svelte',
'pretty-quick',
'@tiptap/extension-placeholder',
'sntp',
'eslint-plugin-mocha',
'vt-pbf',
'@napi-rs/canvas-linux-x64-musl',
'strip-bom-stream',
'babel-plugin-transform-es2015-literals',
'inspect-with-kind',
'async-settle',
'xmldom',
'@emotion/core',
'@types/lru-cache',
'run-series',
'@posthog/core',
'exec-async',
'@segment/analytics-core',
'abortcontroller-polyfill',
'glob-watcher',
'string-similarity',
'multibase',
'chai-as-promised',
'd3-collection',
'@aws-sdk/util-utf8-node',
'xcode',
'robots-parser',
'@poppinss/exception',
'generate-object-property',
'to-absolute-glob',
'encode-utf8',
'dicer',
'@walletconnect/sign-client',
'@epic-web/invariant',
'oniguruma-parser',
'@react-types/slider',
'@amplitude/analytics-types',
'tcomb',
'csv-generate',
'@metamask/utils',
'figlet',
'scslre',
'is-hotkey',
'@storybook/preview',
'xml-crypto',
'@react-aria/switch',
'emoji-regex-xs',
'child-process-ext',
'lighthouse-stack-packs',
'i18next-http-backend',
'browserify',
'@react-aria/toggle',
'@drizzle-team/brocli',
'@aws-cdk/asset-node-proxy-agent-v6',
'lodash.zip',
'eslint-plugin-import-x',
'@expo/devcert',
'@xhmikosr/downloader',
'babel-plugin-transform-es2015-computed-properties',
'@aws-sdk/client-cognito-identity-provider',
'babel-helper-remap-async-to-generator',
'@xhmikosr/decompress-unzip',
'@next/swc-win32-arm64-msvc',
'launchdarkly-js-sdk-common',
'@poppinss/colors',
'@ungap/promise-all-settled',
'import-from-esm',
'@humanwhocodes/momoa',
'grid-index',
'@react-stately/numberfield',
'find-node-modules',
'@samverschueren/stream-to-observable',
'turbo-stream',
'select',
'@ant-design/react-slick',
'@react-stately/grid',
'@expo/code-signing-certificates',
'@wdio/repl',
'node-environment-flags',
'postcss-reporter',
'react-color',
'@react-aria/toolbar',
'@babel/helper-define-map',
'roughjs',
'@react-aria/radio',
'@react-aria/combobox',
'@ethersproject/bytes',
'yazl',
'parse-github-url',
'@types/passport',
'mathjs',
'mochawesome-report-generator',
'yeast',
'@date-io/core',
'@fastify/accept-negotiator',
'antd',
'stat-mode',
'remark-external-links',
'@lukeed/ms',
'@types/readdir-glob',
'blob',
'reactcss',
'@types/raf',
'refa',
'reduce-flatten',
'natural-orderby',
'regexp-ast-analysis',
'lodash.curry',
'bach',
'@types/diff',
'regexp-match-indices',
'yjs',
'@csstools/postcss-exponential-functions',
'vscode-nls',
'stylus-loader',
'@ethersproject/logger',
'@apm-js-collab/tracing-hooks',
'@rolldown/binding-linux-x64-gnu',
'@octokit/webhooks-types',
'conventional-changelog-codemirror',
'make-cancellable-promise',
'conventional-changelog-eslint',
'tinygradient',
'aws-sdk-client-mock',
'locate-character',
'has-cors',
'properties-reader',
'detect-browser',
'exif-parser',
'@csstools/postcss-gamut-mapping',
'bmp-js',
'@types/set-cookie-parser',
'@react-aria/spinbutton',
'array.prototype.filter',
'youch-core',
'rc-trigger',
'@react-aria/tabs',
'keccak',
'@zag-js/time-picker',
'@ethersproject/abi',
'babel-helper-builder-binary-assignment-operator-visitor',
'last-run',
'@types/webxr',
'ultrahtml',
'super-regex',
'flatbuffers',
'react-copy-to-clipboard',
'es6-map',
'@speed-highlight/core',
'@datadog/browser-logs',
'os-filter-obj',
'@nestjs/schedule',
'@storybook/client-api',
'conventional-changelog-express',
'bin-check',
'gulp-cli',
'@types/find-cache-dir',
'@img/sharp-darwin-x64',
'pm2-axon',
'semver-greatest-satisfied-range',
'pdf-parse',
'expect-playwright',
'conventional-changelog-ember',
'stream-transform',
'requireg',
'@nestjs/typeorm',
'hammerjs',
'@cucumber/cucumber',
'replace-homedir',
'csp_evaluator',
'@expo/metro-runtime',
'@react-aria/progress',
'@lexical/html',
'style-value-types',
'component-type',
'@csstools/postcss-logical-overscroll-behavior',
'@ethersproject/address',
'pm2-multimeter',
'@codemirror/theme-one-dark',
'@types/file-saver',
'@aws-sdk/client-cloudformation',
'@sinonjs/formatio',
'array-filter',
'mermaid',
'@ethersproject/transactions',
'yoga-layout',
'util-arity',
'@unrs/resolver-binding-win32-arm64-msvc',
'@napi-rs/canvas-linux-x64-gnu',
'@unrs/resolver-binding-linux-arm-gnueabihf',
'@unrs/resolver-binding-linux-arm-musleabihf',
'@react-types/link',
'xxhash-wasm',
'@types/npmlog',
'lightningcss-win32-x64-msvc',
'redux-mock-store',
'es6-shim',
'@jimp/types',
'copy-props',
'vite-plugin-inspect',
'date-now',
'rc-picker',
'@unrs/resolver-binding-win32-ia32-msvc',
'tsc-alias',
'human-id',
'@types/warning',
'conventional-changelog-jshint',
'@unrs/resolver-binding-wasm32-wasi',
'@unrs/resolver-binding-linux-ppc64-gnu',
'@unrs/resolver-binding-freebsd-x64',
'@unrs/resolver-binding-linux-s390x-gnu',
'@react-native-community/cli-clean',
'each-props',
'nice-napi',
'@pm2/js-api',
'@lexical/utils',
'git-node-fs',
'@react-types/numberfield',
'pad-right',
'fast-base64-decode',
'@react-aria/breadcrumbs',
'material-colors',
'@jimp/plugin-resize',
'lerna',
'blueimp-md5',
'pm2-axon-rpc',
'babel-plugin-syntax-exponentiation-operator',
'js-git',
'culvert',
'yamux-js',
'periscopic',
'@react-aria/datepicker',
'babel-plugin-syntax-async-functions',
'@vue/babel-plugin-resolve-type',
'conventional-changelog-jquery',
'flatstr',
'@csstools/postcss-initial',
'@xhmikosr/archive-type',
'undertaker',
'fsu',
'@fastify/static',
'csv',
'dynamic-dedupe',
'rc-dialog',
'@changesets/apply-release-plan',
'lodash.reduce',
'after',
'original',
'cryptiles',
'@aws-sdk/client-kinesis',
'@stoplight/path',
'spawndamnit',
'set-immediate-shim',
'conventional-changelog-atom',
'express-joi-validations',
'react-tooltip',
'jest-playwright-preset',
'mochawesome',
'@codemirror/lang-json',
'@codemirror/lang-javascript',
'@angular/language-service',
'@nx/webpack',
'amp',
'matcher-collection',
'@react-aria/link',
'html-loader',
'jest-process-manager',
'@tanstack/match-sorter-utils',
'@ethersproject/keccak256',
'@lydell/node-pty-linux-x64',
'@formatjs/intl-listformat',
'parse-bmfont-xml',
'@changesets/cli',
'printj',
'undertaker-registry',
'@pnpm/error',
'bodec',
'@turf/boolean-point-in-polygon',
'@next/bundle-analyzer',
'mark.js',
'@lexical/clipboard',
'@react-aria/table',
'@react-native-community/cli-config',
'xml-parse-from-string',
'structured-headers',
'@cacheable/memory',
'@aws-sdk/util-middleware',
'posthog-node',
'@changesets/pre',
'mobx-react',
'@lezer/json',
'is-ip',
'parse-bmfont-binary',
'popmotion',
'@tweenjs/tween.js',
'jest-serializer-html',
'@ethereumjs/util',
'@ethersproject/bignumber',
'@changesets/read',
'@mermaid-js/parser',
'@storybook/test-runner',
'iobuffer',
'is64bit',
'npm-conf',
'micromark-extension-directive',
'system-architecture',
'postcss-html',
'babel-plugin-transform-exponentiation-operator',
'@jimp/plugin-print',
'require-uncached',
'@cucumber/gherkin-utils',
'@ethersproject/web',
'@hapi/formula',
'babel-helper-explode-assignable-expression',
'parse-bmfont-ascii',
'log-driver',
'@lexical/rich-text',
'array-from',
'@rollup/rollup-linux-ppc64-gnu',
'@apollo/server-gateway-interface',
'@contentful/rich-text-types',
'broccoli-plugin',
'typed-function',
'ps-list',
'p-wait-for',
'@csstools/postcss-light-dark-function',
'json-schema-typed',
'abstract-leveldown',
'@stoplight/better-ajv-errors',
'mailparser',
'@jimp/plugin-displace',
'launchdarkly-js-client-sdk',
'@cfworker/json-schema',
'@hapi/pinpoint',
'rst-selector-parser',
'promptly',
'function-timeout',
'diffable-html',
'perfect-scrollbar',
'gradient-string',
'cycle',
'@changesets/git',
'node-sass',
'@jimp/plugin-blur',
'postcss-less',
'@changesets/config',
'airbnb-prop-types',
'@react-native-community/cli-doctor',
'asynciterator.prototype',
'@aws-sdk/client-sesv2',
'isomorphic.js',
'last-call-webpack-plugin',
'@xhmikosr/decompress-tar',
'rc-align',
'resolve-package-path',
'@lexical/selection',
'@octokit/tsconfig',
'@sindresorhus/slugify',
'@changesets/logger',
'slate',
'@types/dockerode',
'ts-node-dev',
'tcomb-validation',
'@react-aria/grid',
'its-fine',
'@xhmikosr/decompress-targz',
'gud',
'@ethersproject/properties',
'untyped',
'dash-ast',
'fast-sha256',
'as-table',
'@mapbox/geojson-rewind',
'component-bind',
'@lexical/list',
'@next/swc-win32-ia32-msvc',
'@types/acorn',
'lodash._basecopy',
'@stoplight/spectral-ref-resolver',
'@unrs/resolver-binding-linux-riscv64-gnu',
'array.prototype.find',
'@apollo/cache-control-types',
'@lexical/table',
'@langchain/openai',
'@icons/material',
'babel-plugin-add-react-displayname',
'@aws-sdk/client-eventbridge',
'@pm2/pm2-version-check',
'@react-types/breadcrumbs',
'@stoplight/json-ref-resolver',
'@react-aria/numberfield',
'lexical',
'resolve-workspace-root',
'@rc-component/context',
'merge-deep',
'@changesets/assemble-release-plan',
'@sindresorhus/transliterate',
'teen_process',
'@jimp/plugin-color',
'@changesets/get-dependents-graph',
'lightningcss-linux-arm64-gnu',
'@apollo/server',
'knuth-shuffle-seeded',
'@hapi/validate',
'git-sha1',
'@storybook/ui',
'@ant-design/cssinjs',
'@xhmikosr/decompress',
'parse-svg-path',
'@vercel/oidc',
'@types/mapbox__point-geometry',
'nunjucks',
'jssha',
'@storybook/store',
'drange',
'babel-plugin-transform-async-to-generator',
'ag-grid-community',
'@electric-sql/pglite',
'@walletconnect/universal-provider',
'expo-web-browser',
'diagnostic-channel-publishers',
'@ethersproject/abstract-provider',
'to-array',
'echarts',
'@jimp/plugin-rotate',
'regexparam',
'@octokit/webhooks',
'stream-exhaust',
'@ethereumjs/tx',
'@jimp/plugin-mask',
'uqr',
'@types/concat-stream',
'diagnostic-channel',
'sumchecker',
'@lexical/code',
'vizion',
'lightningcss-darwin-arm64',
'@types/har-format',
'rslog',
'passport-local',
'env-cmd',
'@formatjs/intl-displaynames',
'web-worker',
'@ethersproject/base64',
'parse-imports-exports',
'@storybook/react-vite',
'@aws-sdk/middleware-eventstream',
'cpy',
'@apollo/utils.fetcher',
'@maplibre/maplibre-gl-style-spec',
'@react-stately/dnd',
'debounce-fn',
'postcss-color-gray',
'isomorphic-dompurify',
'lightningcss-linux-arm64-musl',
'@hapi/tlds',
'depcheck',
'@unrs/resolver-binding-linux-riscv64-musl',
'vue-template-es2015-compiler',
'svg-arc-to-cubic-bezier',
'@stoplight/ordered-object-literal',
'@changesets/get-version-range-type',
'remark-math',
'@lexical/markdown',
'@changesets/errors',
'array.prototype.toreversed',
'@lexical/history',
'freeport-async',
'node-ensure',
'@img/sharp-linux-arm',
'@ethersproject/rlp',
'deps-regex',
'hast-util-has-property',
'chroma-js',
'@tanstack/store',
'blake3-wasm',
'@types/react-is',
'amp-message',
'@types/ssh2-streams',
'@ethersproject/abstract-signer',
'@aws-sdk/client-bedrock-runtime',
'pm2-deploy',
'@types/morgan',
'microseconds',
'openapi-fetch',
'mqtt',
'vue-style-loader',
'mute-stdout',
'@ethersproject/signing-key',
'@changesets/parse',
'numeral',
'get-npm-tarball-url',
'@datadog/native-iast-rewriter',
'@oclif/errors',
'@types/es-aggregate-error',
'vuex',
'@xhmikosr/bin-check',
'react-native-webview',
'@types/md5',
'@types/diff-match-patch',
'printable-characters',
'html-comment-regex',
'cli-tableau',
'@types/express-session',
'@rc-component/mutate-observer',
'conf',
'openapi-typescript-helpers',
'@msgpack/msgpack',
'@jimp/plugin-contain',
'@fastify/cors',
'applicationinsights',
'@jimp/plugin-fisheye',
'assertion-error-formatter',
'@use-gesture/react',
'allure-js-commons',
'lodash.find',
'base16',
'component-inherit',
'@react-types/searchfield',
'@react-stately/searchfield',
'@teppeis/multimaps',
'@img/sharp-libvips-darwin-x64',
'@use-gesture/core',
'is-my-json-valid',
'vscode-json-languageservice',
'@img/sharp-win32-ia32',
'mailsplit',
'@apollo/utils.isnodelike',
'@img/sharp-wasm32',
'replace-in-file',
'browser-or-node',
'jest-extended',
'@lexical/link',
'heap',
'@jimp/plugin-circle',
'@fortawesome/react-fontawesome',
'async-validator',
'@lexical/plain-text',
'portscanner',
'@react-types/progress',
'react-hotkeys-hook',
'nano-time',
'@changesets/get-release-plan',
'@xhmikosr/bin-wrapper',
'zimmerframe',
'n8n-nodes-evolution-api',
'@theguild/federation-composition',
'complex.js',
'fs-tree-diff',
'@hapi/cryptiles',
'speedline-core',
'@octokit/webhooks-methods',
'@chevrotain/regexp-to-ast',
'duration',
'@lexical/offset',
'@lexical/overflow',
'is-number-like',
'metaviewport-parser',
'@storybook/react-webpack5',
'optimize-css-assets-webpack-plugin',
'@csstools/postcss-logical-overflow',
'get-assigned-identifiers',
'madge',
'@ethersproject/constants',
'postman-request',
'@koa/router',
'decache',
'ts-algebra',
'validate.io-array',
'@expo/vector-icons',
'escope',
'@ethersproject/networks',
'@zag-js/dom-query',
'@expo/schema-utils',
'@turf/bearing',
'@changesets/write',
'points-on-path',
'xmlhttprequest',
'@react-aria/separator',
'@lexical/dragon',
'@xstate/react',
'args',
'prop-types-exact',
'jest-mock-extended',
'react-player',
'esm-env',
'expo-system-ui',
'@react-pdf/fns',
'react-table',
'sql-highlight',
'p-waterfall',
'@types/js-levenshtein',
'eslint-plugin-security',
'esast-util-from-js',
'@lexical/text',
'int64-buffer',
'umzug',
'@lerna/create',
'@cucumber/gherkin-streams',
'co-body',
'gifwrap',
'@changesets/changelog-git',
'appdirsjs',
'join-component',
'@types/oracledb',
'@types/seedrandom',
'@ethereumjs/common',
'remove-trailing-slash',
'@ethersproject/hash',
'@xhmikosr/os-filter-obj',
'react-virtualized',
'@turf/centroid',
'zrender',
'@react-pdf/font',
'@hapi/iron',
'yaml-eslint-parser',
'@react-types/checkbox',
'chevrotain-allstar',
'path2d',
'@types/pbf',
'mqtt-packet',
'@xhmikosr/decompress-tarbz2',
'js-library-detector',
'@hapi/podium',
'logkitty',
'@react-pdf/png-js',
'mem-fs-editor',
'combine-source-map',
'meshoptimizer',
'@rc-component/tour',
'@types/google-protobuf',
'webpackbar',
'@lexical/mark',
'@lexical/yjs',
'@oxc-project/runtime',
'slick',
'inflation',
'ts-graphviz',
'@hapi/wreck',
'lodash.deburr',
'ag-charts-types',
'@fortawesome/fontawesome-free',
'@storybook/source-loader',
'hast-util-heading-rank',
'@img/sharp-libvips-linux-s390x',
'@lexical/react',
'@lexical/hashtag',
'@elastic/elasticsearch',
'@react-stately/data',
'@aws-sdk/util-base64-browser',
'parse-link-header',
'hachure-fill',
'estree-util-scope',
'postgres',
'async-foreach',
'cz-conventional-changelog',
'abs-svg-path',
'@ckeditor/ckeditor5-core',
'ts-deepmerge',
'swagger-parser',
'@jsep-plugin/ternary',
'remove-bom-buffer',
'ansi-fragments',
'@ant-design/fast-color',
'@googlemaps/markerclusterer',
'vite-hot-client',
'globalyzer',
'@react-pdf/pdfkit',
'vue-hot-reload-api',
'msw-storybook-addon',
'@types/lodash.debounce',
'@octokit/plugin-enterprise-rest',
'react-query',
'typed-rest-client',
'stringstream',
'seroval',
'@react-aria/select',
'@typescript/vfs',
'lodash.isfinite',
'@react-email/text',
'@vercel/build-utils',
'inline-source-map',
'coffeescript',
'response-iterator',
'@stoplight/spectral-parsers',
'@react-aria/searchfield',
'juice',
'multiformats',
'react-overlays',
'@types/color-convert',
'simple-eval',
'lodash._root',
'restructure',
'@react-stately/toggle',
'react-virtuoso',
'@stoplight/spectral-runtime',
'http-shutdown',
'intl-messageformat-parser',
'@csstools/postcss-content-alt-text',
'redux-persist',
'node-cleanup',
'expo-router',
'@types/stats.js',
'arraybuffer.slice',
'@cucumber/ci-environment',
'@rc-component/color-picker',
'@react-email/button',
'points-on-curve',
'tocbot',
'@img/sharp-libvips-linux-arm',
'@tanstack/react-store',
'@nx/jest',
'@img/sharp-linux-s390x',
'postcss-selector-matches',
'@turf/area',
'eta',
'string.prototype.trimleft',
'@react-types/meter',
'jest-fetch-mock',
'@uiw/codemirror-extensions-basic-setup',
'json-cycle',
'@wdio/reporter',
'get-source',
'make-plural',
'react-native-get-random-values',
'eval',
'@types/wait-on',
'image-q',
'libsodium-wrappers',
'hast-to-hyperscript',
'@stablelib/base64',
'eslint-plugin-turbo',
'libsodium',
'nimma',
'@react-email/tailwind',
'@stoplight/spectral-functions',
'@types/is-function',
'html-element-map',
'@asyncapi/specs',
'@aws-sdk/util-config-provider',
'start-server-and-test',
'acorn-dynamic-import',
'@react-email/html',
'@octokit/auth-unauthenticated',
'hast-util-sanitize',
'parents',
'validate.io-function',
'tiny-glob',
'dom-align',
'resolve-pkg',
'@react-email/body',
'jimp',
'prop-types-extra',
'@react-native-community/cli-debugger-ui',
'@solana/codecs-strings',
'@semantic-release/git',
'color2k',
'commist',
'crypto',
'recma-build-jsx',
'promise.series',
'knitwork',
'node-mocks-http',
'style-inject',
'json-schema-to-typescript',
'config',
'@hapi/teamwork',
'point-in-polygon',
'pretty-time',
'inquirer-autocomplete-prompt',
'@storybook/addon-themes',
'rehype-recma',
'react-tabs',
'@react-email/font',
'qr.js',
'safe-json-parse',
'@modern-js/node-bundle-require',
'react-aria',
'request-promise',
'@pkgr/utils',
'fast-png',
'@commander-js/extra-typings',
'rehype-slug',
'@react-stately/toast',
'remove-bom-stream',
'@types/filewriter',
'@types/redis',
'is-my-ip-valid',
'extendable-error',
'jsc-android',
'es5-shim',
'p-all',
'@react-stately/color',
'@motionone/easing',
'rx-lite-aggregates',
'lodash.padend',
'detab',
'md5-file',
'@apollo/utils.createhash',
'@oxc-parser/binding-linux-x64-musl',
'@types/parse-path',
'rate-limiter-flexible',
'svg.select.js',
'unctx',
'@expo/metro',
'keycode',
'recma-jsx',
'append-buffer',
'@rc-component/qrcode',
'react-bootstrap',
'@rc-component/mini-decimal',
'@tiptap/extension-image',
'@hapi/b64',
'@octokit/oauth-app',
'expo-image',
'@expo/ws-tunnel',
'@motionone/generators',
'@nestjs/microservices',
'@expo/mcp-tunnel',
'eslint-import-resolver-alias',
'@aws-sdk/client-ec2',
'json-schema-ref-parser',
'@segment/analytics-generic-utils',
'conventional-commit-types',
'exit-on-epipe',
'inquirer-checkbox-plus-prompt',
'@fastify/proxy-addr',
'edge-paths',
'a-sync-waterfall',
'lottie-react',
'@ethersproject/random',
'expo-linear-gradient',
'web-resource-inliner',
'image-ssim',
'@ethersproject/providers',
'@unrs/resolver-binding-android-arm64',
'tx2',
'country-flag-icons',
'teex',
'@unrs/resolver-binding-android-arm-eabi',
'lodash.restparam',
'promise.prototype.finally',
'path-platform',
'unhead',
'util-extend',
'@fastify/send',
'@react-stately/disclosure',
'@turf/destination',
'@react-pdf/primitives',
'@react-aria/meter',
'@stoplight/spectral-core',
'@apollo/utils.withrequired',
'postcss-color-mod-function',
'@edge-runtime/primitives',
'tree-sitter',
'remark-footnotes',
'module-deps',
'@turf/line-intersect',
'@rolldown/binding-linux-x64-musl',
'@turf/boolean-clockwise',
'@ethersproject/sha2',
'@cucumber/message-streams',
'@nestjs/terminus',
'@ai-sdk/anthropic',
'kysely',
'recma-parse',
'scrypt-js',
'@types/react-helmet',
'@nuxt/devtools-kit',
'ast-kit',
'@vue/devtools-core',
'charset',
'dotenv-defaults',
'react-stately',
'@segment/loosely-validate-event',
'valid-data-url',
'@cacheable/memoize',
'@fastify/forwarded',
'escape-latex',
'@expo/sudo-prompt',
'expo-haptics',
'block-stream',
'string.prototype.trimright',
'thread-loader',
'require-like',
'@material-ui/utils',
're-resizable',
'strip-bom-buf',
'apollo-utilities',
'estree-util-value-to-estree',
'json2csv',
'@storybook/docs-mdx',
'@ckeditor/ckeditor5-engine',
'eslint-plugin-sonarjs',
'@motionone/utils',
'livereload-js',
'qified',
'mylas',
'@xyflow/react',
'@uiw/react-codemirror',
'react-grid-layout',
'react-native-url-polyfill',
'browser-pack',
'sitemap',
'@xyflow/system',
'@types/command-line-args',
'@motionone/dom',
'react-promise-suspense',
'@aws-sdk/util-defaults-mode-browser',
'xdg-portable',
'@fal-works/esbuild-plugin-global-externals',
'slate-react',
'geckodriver',
'@aws-sdk/eventstream-handler-node',
'node-rsa',
'@react-email/img',
'path-data-parser',
'babel-dead-code-elimination',
'@ethersproject/basex',
'openapi-sampler',
'insert-module-globals',
'@edge-runtime/vm',
'@apollographql/graphql-playground-html',
'@yarnpkg/esbuild-plugin-pnp',
'@parcel/watcher-wasm',
'pm2-sysmonit',
'is-valid-path',
're2',
'json-parse-helpfulerror',
'cached-path-relative',
'@google-cloud/bigquery',
'eslint-plugin-react-native',
'@types/quill',
'@react-email/preview',
'@acemir/cssom',
'markdownlint',
'lodash.has',
'micro',
'@material-ui/types',
'compression-webpack-plugin',
'string.fromcodepoint',
'@types/filesystem',
'@react-aria/gridlist',
'@unhead/vue',
'commitizen',
'git-repo-info',
'@motionone/animation',
'esast-util-from-estree',
'@alcalzone/ansi-tokenize',
'@react-aria/dnd',
'@stoplight/spectral-formats',
'express-validator',
'graphql-scalars',
'@azure/opentelemetry-instrumentation-azure-sdk',
'@pnpm/constants',
'ramda-adjunct',
'@react-email/column',
'recma-stringify',
'rollup-plugin-postcss',
'httpreq',
'@types/form-data',
'babel-plugin-add-module-exports',
'eslint-plugin-standard',
'@types/chai-as-promised',
'validate.io-number',
'umd',
'@react-email/section',
'@octokit/app',
'@oclif/screen',
'@pnpm/crypto.base32-hash',
'@jimp/png',
'react-resize-detector',
'react-slick',
'apollo-server-env',
'@aws-sdk/middleware-sdk-ec2',
'default-compare',
'@semantic-release/changelog',
'listhen',
'reduce-function-call',
'@storybook/testing-library',
'istextorbinary',
'mssql',
'labeled-stream-splicer',
'cypress-real-events',
'regexp-to-ast',
'mdast-util-math',
'json-loader',
'@lezer/html',
'@types/micromatch',
'@react-aria/landmark',
'parse-gitignore',
'pdfkit',
'has-binary2',
'array-sort',
'@types/sax',
'redux-saga',
'@react-email/row',
'@rspack/plugin-react-refresh',
'@ethersproject/wallet',
'fetch-cookie',
'@lezer/css',
'@types/marked',
'string.prototype.padstart',
'syntax-error',
'@auth0/auth0-spa-js',
'@aws-sdk/util-defaults-mode-node',
'@sentry/cli-linux-arm64',
'passport-oauth2',
'@motionone/types',
'htmlescape',
'@tanstack/router-core',
'styleq',
'types-ramda',
'arr-map',
'@jimp/plugin-crop',
'babel-plugin-transform-class-properties',
'@vercel/node',
'normalize-selector',
'@kamilkisiela/fast-url-parser',
'@whatwg-node/server',
'node-pre-gyp',
'google-libphonenumber',
'@nx/linter',
'apollo-server-types',
'borsh',
'@microsoft/applicationinsights-web-snippet',
'@types/tunnel',
'@nrwl/jest',
'lodash.defaultsdeep',
'stream-length',
'@algolia/autocomplete-shared',
'lodash.pickby',
'element-resize-detector',
'csv-writer',
'mensch',
'@cypress/webpack-preprocessor',
'@npmcli/config',
'promise-breaker',
'@jimp/custom',
'expo-image-loader',
'seroval-plugins',
'@types/react-native',
'cypress-multi-reporters',
'lodash.some',
'zx',
'@fullcalendar/daygrid',
'stacktracey',
'@josephg/resolvable',
'@types/react-beautiful-dnd',
'autolinker',
'@ethersproject/hdnode',
'array-last',
'lazy',
'@types/chrome',
'stream-splicer',
'@ethersproject/pbkdf2',
'@lexical/devtools-core',
'@types/async-retry',
'method-override',
'octokit',
'@sentry/cli-darwin',
'@codemirror/lang-css',
'serverless',
'fix-dts-default-cjs-exports',
'@hapi/accept',
'@envelop/types',
'mini-create-react-context',
'@react-aria/tag',
'@google/generative-ai',
'jest-preset-angular',
'null-loader',
'@types/is-stream',
'eslint-plugin-perfectionist',
'tiny-lru',
'css-shorthand-properties',
'rgb2hex',
'prettyjson',
'@algolia/autocomplete-core',
'fileset',
'eciesjs',
'gsap',
'deps-sort',
'@jimp/plugin-flip',
'os-shim',
'@nuxt/schema',
'@csstools/convert-colors',
'@react-email/container',
'@material-ui/system',
'@types/sarif',
'create-react-context',
'@react-email/head',
'@types/geojson-vt',
'@react-email/link',
'http-call',
'@jimp/plugin-blit',
'langchain',
'object.reduce',
'esbuild-plugin-alias',
'@algolia/requester-common',
'@rollup/rollup-openharmony-arm64',
'@opentelemetry/instrumentation-runtime-node',
'oxc-parser',
'extrareqp2',
'arr-filter',
'@hono/node-server',
'resend',
'prism-react-renderer',
'@aw-web-design/x-default-browser',
'@ethersproject/units',
'@ethersproject/wordlists',
'esrap',
'babel-plugin-syntax-class-properties',
'react-device-detect',
'@react-aria/color',
'@vue/eslint-config-typescript',
'ember-cli-version-checker',
'read-only-stream',
'@react-pdf/image',
'deep-freeze',
'@postman/tunnel-agent',
'@types/swagger-ui-express',
'fake-indexeddb',
'@ethersproject/json-wallets',
'azure-devops-node-api',
'@types/detect-port',
'reinterval',
'http-response-object',
'@ngx-translate/core',
'@oclif/linewrap',
'vinyl-file',
'@azure/storage-common',
'@types/passport-jwt',
'mkdirp-infer-owner',
'cloudevents',
'queue-lit',
'validate.io-integer',
'blakejs',
'@algolia/cache-common',
'@react-email/heading',
'json-schema-compare',
'@react-email/hr',
'@gerrit0/mini-shiki',
'@assemblyscript/loader',
'traverse-chain',
'untun',
'@vitest/coverage-istanbul',
'lodash.clone',
'lodash._bindcallback',
'jwk-to-pem',
'@react-pdf/renderer',
'@jimp/plugin-cover',
'@vue/component-compiler-utils',
'flatpickr',
'@types/braces',
'eslint-import-resolver-webpack',
'@nx/module-federation',
'postman-url-encoder',
'retry-axios',
'deprecated-react-native-prop-types',
'@material-ui/core',
'media-chrome',
'array-initial',
'dotenv-webpack',
'ow',
'@types/leaflet',
'express-exp',
'@ndelangen/get-tarball',
'@jimp/jpeg',
'@react-stately/virtualizer',
'scss-tokenizer',
'babel-plugin-syntax-dynamic-import',
'spawn-sync',
'@storybook/nextjs',
'require-relative',
'@types/vinyl',
'@zag-js/focus-visible',
'@oclif/table',
'@jimp/bmp',
'json-stream-stringify',
'@types/adm-zip',
'@jimp/gif',
'@types/vscode',
'enquire.js',
'@react-aria/toast',
'@testing-library/cypress',
'@cloudflare/workers-types',
'@mixmark-io/domino',
'@nx/vite',
'@vercel/analytics',
'clear-module',
'@testing-library/react-native',
'esbuild-loader',
'@react-email/components',
'i18n-iso-countries',
'stdout-stream',
'@keyv/bigmap',
'langium',
'spdx-compare',
'spdx-ranges',
'next-intl',
'ts-mixer',
'use-intl',
'@react-pdf/textkit',
'postcss-syntax',
'@vitejs/plugin-vue-jsx',
'validate.io-integer-array',
'npm-run-all2',
'lightningcss-darwin-x64',
'stream-to-promise',
'rework',
'install-artifact-from-github',
'bcp-47-match',
'body-scroll-lock',
'mdast-squeeze-paragraphs',
'default-resolution',
'media-engine',
'@storybook/mdx2-csf',
'@turf/projection',
'sass-graph',
'protobufjs-cli',
'@react-pdf/types',
'@types/cls-hooked',
'undeclared-identifiers',
'@algolia/logger-console',
'@auth/core',
'@react-pdf/layout',
'@react-pdf/render',
'cspell-io',
'@algolia/cache-in-memory',
'postcss-sass',
'normalize.css',
'@postman/form-data',
'node-stdlib-browser',
'@ant-design/cssinjs-utils',
'@jimp/plugin-dither',
'@datadog/datadog-ci-base',
'rehype-katex',
'hyphen',
'cspell-glob',
'text-encoding',
'tailwind-variants',
'@mdx-js/util',
'@react-native-community/cli-platform-apple',
'notistack',
'get-proxy',
'sql-formatter',
'@algolia/transporter',
'caw',
'@types/picomatch',
'contentful-sdk-core',
'postman-collection',
'hdr-histogram-js',
'ono',
'@react-aria/tree',
'posthtml-parser',
'@storybook/semver',
'denodeify',
'path-loader',
'@redux-saga/symbols',
'apollo-server-errors',
'edgedriver',
'apexcharts',
'@ethersproject/strings',
'lighthouse',
'@cspell/dict-golang',
'cypress-file-upload',
'@codemirror/lang-html',
'graphql-subscriptions',
'apollo-link',
'@types/react-datepicker',
'metro-react-native-babel-preset',
'html-to-image',
'plimit-lit',
'@expo/devtools',
'search-insights',
'shallow-copy',
'@cspell/dict-npm',
'@types/object-hash',
'@preact/signals-core',
'sinon-chai',
'@microsoft/applicationinsights-core-js',
'rollup-plugin-dts',
'@redux-saga/deferred',
'@cspell/dict-companies',
'newrelic',
'@redux-saga/core',
'@graphql-tools/mock',
'rollup-plugin-copy',
'compute-lcm',
'@hapi/shot',
'nlcst-to-string',
'case',
'@hapi/bounce',
'@cspell/dict-bash',
'msgpack-lite',
'rc-config-loader',
'to-no-case',
'xdg-app-paths',
'apollo-datasource',
'suspend-react',
'happy-dom',
'memoize',
'@algolia/cache-browser-local-storage',
'@radix-ui/react-form',
'@jimp/plugin-normalize',
'@nrwl/eslint-plugin-nx',
'slashes',
'@cspell/dict-php',
'@ethersproject/solidity',
'parse-numeric-range',
'run-parallel-limit',
'@cspell/dict-filetypes',
'plop',
'json-schema-merge-allof',
'load-bmfont',
'd3-sankey',
'sdp',
'individual',
'inflected',
'edge-runtime',
'babel-plugin-extract-import-names',
'rework-visit',
'@mdn/browser-compat-data',
'parse-imports',
'better-ajv-errors',
'@rc-component/async-validator',
'isomorphic-timers-promises',
'js-message',
'lodash.bind',
'reserved-words',
'@types/buffer-from',
'web3-utils',
'hast-util-from-dom',
'@react-types/form',
'simple-bin-help',
'@turf/rhumb-bearing',
'@cspell/dict-django',
'@types/classnames',
'@cspell/dict-aws',
'@turf/line-segment',
'@cspell/dict-lua',
'lodash.filter',
'eslint-loader',
'@newrelic/native-metrics',
'cronstrue',
'builder-util-runtime',
'platformsh-config',
'@radix-ui/colors',
'shasum-object',
'health',
'@jimp/tiff',
'@types/selenium-webdriver',
'httpntlm',
'tldts-icann',
'bull',
'istanbul',
'@algolia/logger-common',
'@cspell/dict-elixir',
'resolve-path',
'email-validator',
'@cspell/dict-ruby',
'ansi-red',
'@cspell/dict-scala',
'array-iterate',
'@pnpm/dependency-path',
'@material-ui/styles',
'@radix-ui/react-accessible-icon',
'ssh2-streams',
'event-lite',
'rehype',
'webrtc-adapter',
'yaeti',
'@aws-sdk/client-cloudfront',
'@cspell/dict-html-symbol-entities',
'@malept/cross-spawn-promise',
'matchdep',
'@oxc-parser/binding-linux-x64-gnu',
'@stoplight/json-ref-readers',
'eslint-plugin-react-native-globals',
'@amplitude/analytics-client-common',
'eslint-plugin-jsonc',
'timm',
'react-phone-number-input',
'expo-application',
'@hapi/hapi',
'cspell-trie-lib',
'when',
'@cspell/dict-css',
'postcss-reduce-idents',
'compute-gcd',
'@date-io/date-fns',
'@tanstack/history',
'to-space-case',
'@turf/rhumb-distance',
'symbol.prototype.description',
'read-package-tree',
'@turf/polygon-to-line',
'@octokit/plugin-paginate-graphql',
'@react-pdf/stylesheet',
'@types/shell-quote',
'fetch-mock',
'@types/supports-color',
'mdast-util-directive',
'just-debounce',
'@types/command-line-usage',
'@cspell/dict-powershell',
'eslint-plugin-jest-dom',
'@oslojs/encoding',
'resq',
'@vue-macros/common',
'pretty',
'@asteasolutions/zod-to-openapi',
'@neoconfetti/react',
'@cspell/dict-haskell',
'query-selector-shadow-dom',
'remark-squeeze-paragraphs',
'postcss-url',
'slow-redact',
'expo-blur',
'watch',
'websocket',
'@cspell/dict-public-licenses',
'find-test-names',
'@cspell/dict-cpp',
'eslint-plugin-prefer-arrow',
'parse-diff',
'@azure/core-http',
'eslint-plugin-regexp',
'@edge-runtime/format',
'unescape',
'easy-stack',
'@nrwl/workspace',
'pure-color',
'@react-email/markdown',
'@react-native-community/cli-plugin-metro',
'@mantine/hooks',
'@prisma/query-plan-executor',
'@cspell/strong-weak-map',
'apollo-reporting-protobuf',
'@vercel/python',
'keytar',
'draco3d',
'jasmine-spec-reporter',
'@cspell/dict-en_us',
'@docsearch/css',
'sver-compat',
'@next/third-parties',
'@react-hook/passive-layout-effect',
'@apollographql/apollo-tools',
'@messageformat/parser',
'@jimp/plugin-threshold',
'@turf/rewind',
'@react-aria/disclosure',
'airbnb-js-shims',
'unescape-js',
'eslint-plugin-tailwindcss',
'@cspell/cspell-bundled-dicts',
'@turf/nearest-point-on-line',
'@axe-core/playwright',
'mochawesome-merge',
'@ai-sdk/google',
'vite-plugin-pwa',
'@cspell/dict-latex',
'splaytree',
'@rollup/rollup-linux-loong64-gnu',
'valtio',
'@types/eslint-visitor-keys',
'expo-manifests',
'@kubernetes/client-node',
'@types/mapbox-gl',
'unplugin-vue-router',
'collection-map',
'slick-carousel',
'ace-builds',
'log',
'cspell',
'@react-three/fiber',
'sprintf-kit',
'graphql-type-json',
'@ecies/ciphers',
'@aws-sdk/util-waiter',
'@textlint/ast-node-types',
'mime-format',
'blessed',
'vercel',
'@img/sharp-libvips-linux-ppc64',
'@types/codemirror',
'rollup-plugin-inject',
'@google-cloud/run',
'@vercel/static-build',
'cbor',
'fluent-ffmpeg',
'comlink',
'rrule',
'json-refs',
'@aws-sdk/client-api-gateway',
'is-whitespace',
'md5-hex',
'@cspell/dict-fullstack',
'lightningcss-linux-arm-gnueabihf',
'@angular/localize',
'serve-placeholder',
'@google-cloud/functions-framework',
'babel-plugin-apply-mdx-type-prop',
'spdx-satisfies',
'signature_pad',
'@algolia/autocomplete-plugin-algolia-insights',
'@sveltejs/acorn-typescript',
'@csstools/postcss-sign-functions',
'@cspell/dynamic-import',
'hsl-to-rgb-for-reals',
'vscode-textmate',
'focus-trap-react',
'@electron/asar',
'@cspell/dict-fonts',
'lodash._baseassign',
'react-google-recaptcha',
'postcss-merge-idents',
'cspell-lib',
'@types/btoa-lite',
'thirty-two',
'os-paths',
'@edge-runtime/node-utils',
'babel-preset-es2015',
'mem-fs',
'rtlcss',
'nconf',
'jspdf-autotable',
'base32.js',
'@redux-saga/types',
'@cspell/dict-lorem-ipsum',
'@opencensus/core',
'yeoman-generator',
'simple-lru-cache',
'@cspell/dict-en-common-misspellings',
'unist-util-modify-children',
'metro-inspector-proxy',
'@launchdarkly/js-sdk-common',
'@vercel/redwood',
'@material/feature-targeting',
'@fortawesome/free-regular-svg-icons',
'typed-styles',
'@vercel/gatsby-plugin-vercel-builder',
'@turf/point-to-line-distance',
'@gitbeaker/requester-utils',
'@jimp/plugins',
'@jimp/plugin-gaussian',
'parse-git-config',
'uni-global',
'@oclif/plugin-autocomplete',
'@redux-saga/is',
'jayson',
'event-pubsub',
'typescript-tuple',
'apache-arrow',
'@gitbeaker/core',
'@tiptap/extension-text-align',
'dir-compare',
'@types/mustache',
'@react-aria/button',
'typedoc-plugin-markdown',
'mysql',
'@react-stately/checkbox',
'expect-webdriverio',
'node-sarif-builder',
'@cspell/cspell-service-bus',
'@types/mkdirp',
'@turf/circle',
'@types/liftoff',
'sync-rpc',
'@cspell/dict-data-science',
'@cspell/dict-dotnet',
'https',
'babel-plugin-react-docgen',
'@lit-labs/react',
'@cspell/dict-cryptocurrencies',
'@google-cloud/secret-manager',
'@redux-saga/delay-p',
'@amplitude/analytics-remote-config',
'@algolia/client-account',
'postcss-zindex',
'speakingurl',
'lodash._basetostring',
'css-value',
'mammoth',
'number-allocator',
'@docsearch/react',
'expo-image-picker',
'option',
'@nestjs/cache-manager',
'vinyl-sourcemaps-apply',
'rlp',
'winston-daily-rotate-file',
'@ianvs/prettier-plugin-sort-imports',
'draft-js',
'@cspell/dict-ada',
'@react-email/code-block',
'lookup-closest-locale',
'typescript-compare',
'@cspell/dict-docker',
'rollup-plugin-typescript2',
'@vscode/l10n',
'bezier-easing',
'arity-n',
'@upstash/redis',
'@fullcalendar/interaction',
'@types/zen-observable',
'promise-map-series',
'@tediousjs/connection-string',
'ndjson',
'imask',
'koa-send',
'ng-packagr',
'serialize-to-js',
'@types/fined',
'mixpanel-browser',
'@types/formidable',
'gensequence',
'unist-util-find-all-after',
'lightningcss-freebsd-x64',
'showdown',
'@types/lodash.mergewith',
'unorm',
'expo-json-utils',
'@react-stately/combobox',
'find',
'parse-latin',
'@vercel/functions',
'compose-function',
'@cspell/dict-html',
'@cspell/dict-typescript',
'@cspell/dict-rust',
'@vercel/remix-builder',
'safaridriver',
'@amplitude/analytics-browser',
'unist-util-visit-children',
'lcov-parse',
'reflect.ownkeys',
'@mantine/core',
'ensure-posix-path',
'@tailwindcss/oxide-win32-x64-msvc',
'@types/duplexify',
'aws-lambda',
'@cspell/dict-csharp',
'postcss-cli',
'@turf/along',
'@aws-sdk/eventstream-serde-universal',
'@langchain/textsplitters',
'highlight-words-core',
'react-responsive',
'@reactflow/core',
'@figspec/components',
'file-stream-rotator',
'use-deep-compare-effect',
'fs2',
'@hello-pangea/dnd',
'web-tree-sitter',
'nitropack',
'@datadog/datadog-api-client',
'postcss-discard-unused',
'@turf/length',
'junit-report-builder',
'algoliasearch-helper',
'@jimp/plugin-invert',
'@react-native-community/netinfo',
'shx',
'@img/sharp-win32-arm64',
'@stoplight/spectral-rulesets',
'@vercel/ruby',
'@hapi/ammo',
'flux',
'redux-logger',
'case-anything',
'@types/react-table',
'@types/mapbox__vector-tile',
'flmngr',
'@changesets/should-skip-package',
'git-config-path',
'promise-queue',
'vm2',
'@aws-sdk/eventstream-serde-browser',
'@material/rtl',
'syncpack',
'@types/react-modal',
'input-format',
'@ionic/utils-process',
'rettime',
'@reactflow/node-toolbar',
'css-unit-converter',
'install',
'@electron/universal',
'ssh-remote-port-forward',
'@serverless/utils',
'@reactflow/minimap',
'@oclif/plugin-not-found',
'@turf/boolean-point-on-line',
'@react-types/calendar',
'ag-grid-react',
'@hapi/subtext',
'promise-limit',
'fuzzysort',
'sort-desc',
'swagger-jsdoc',
'@hapi/vise',
'cropperjs',
'apollo-server-core',
'uid-promise',
'yeoman-environment',
'condense-newlines',
'nuxt',
'@tailwindcss/oxide-linux-arm64-gnu',
'rpc-websockets',
'@hapi/pez',
'rrweb-snapshot',
'@types/amqplib',
'@react-stately/slider',
'x-is-string',
'vite-plugin-static-copy',
'@vue/reactivity-transform',
'@solana/options',
'universal-analytics',
'jpeg-exif',
'@datadog/datadog-ci-plugin-synthetics',
'@datadog/datadog-ci-plugin-gate',
'@datadog/datadog-ci-plugin-sbom',
'@rails/actioncable',
'estree-to-babel',
'@amplitude/plugin-page-view-tracking-browser',
'vscode-oniguruma',
'@chakra-ui/utils',
'ssh2-sftp-client',
'@aws-sdk/util-utf8',
'is-any-array',
'@aws-sdk/middleware-sdk-api-gateway',
'@reactflow/background',
'react-qr-code',
'@types/turndown',
'@datadog/flagging-core',
'koa-static',
'@figspec/react',
'@postman/tough-cookie',
'expo-updates-interface',
'@sentry/cli-linux-arm',
'@cspell/cspell-types',
'@sentry/profiling-node',
'@sentry/cli-win32-x64',
'expo-dev-menu',
'@react-native/normalize-color',
'@reactflow/node-resizer',
'@launchdarkly/node-server-sdk',
'sort-object',
'@tailwindcss/oxide-linux-arm64-musl',
'@microsoft/fetch-event-source',
'@vanilla-extract/css',
'@types/he',
'embla-carousel-autoplay',
'tweetnacl-util',
'@turf/intersect',
'@sentry/cli-linux-i686',
'email-addresses',
'nuqs',
'@ckeditor/ckeditor5-utils',
'merge-anything',
'connect-redis',
'elkjs',
'@types/html-to-text',
'lan-network',
'schema-dts',
'walk',
'@reactflow/controls',
'steno',
'@aws-sdk/eventstream-codec',
'@react-email/code-inline',
'cspell-gitignore',
'@vueuse/integrations',
'@tiptap/suggestion',
'hdr-histogram-percentiles-obj',
'@algolia/autocomplete-preset-algolia',
'istanbul-api',
'is-window',
'@types/pdfkit',
'@nuxt/telemetry',
'@edge-runtime/ponyfill',
'@paulirish/trace_engine',
'unwasm',
'browser-request',
'@dagrejs/graphlib',
'@jimp/plugin-scale',
'@actions/exec',
'circular-dependency-plugin',
'@types/node-cron',
'@tabler/icons',
'batch-processor',
'event-source-polyfill',
'@react-google-maps/api',
'md-to-react-email',
'ansi-cyan',
'@tanstack/router-generator',
'apollo-server-plugin-base',
'consolidated-events',
'weak-map',
'@types/yup',
'cidr-regex',
'prettier-plugin-packagejson',
'redoc',
'@ionic/utils-subprocess',
'js-sha512',
'@aws-sdk/client-ecr',
'retext',
'canvas-confetti',
'@nx/nx-darwin-arm64',
'tap-parser',
'@vercel/error-utils',
'has-glob',
'@csstools/postcss-random-function',
'compatx',
'@hapi/statehood',
'mux-embed',
'@types/googlepay',
'hsl-to-hex',
'@aws-sdk/client-cloudwatch',
'@types/pngjs',
'@types/expect',
'rehype-external-links',
'@aws-sdk/eventstream-serde-node',
'@types/big.js',
'@msgpackr-extract/msgpackr-extract-linux-arm64',
'foreachasync',
'xhr2',
'@ionic/utils-stream',
'lightningcss-win32-arm64-msvc',
'@turf/center',
'mjml-validator',
'@react-types/tabs',
'@vanilla-extract/integration',
'allure-commandline',
'lodash.assignin',
'thenby',
'@vercel/next',
'@cspell/dict-software-terms',
'maplibre-gl',
'imagemin',
'ts-proto',
'@turf/buffer',
'@vanilla-extract/private',
'readline2',
'@hapi/catbox',
'pdfmake',
'@material/typography',
'image-meta',
'ssr-window',
'magic-string-ast',
'output-file-sync',
'obj-case',
'@react-google-maps/infobox',
'@vercel/blob',
'@types/stream-buffers',
'@react-aria/checkbox',
'@react-native-community/datetimepicker',
'@reach/utils',
'httpxy',
'lodash.flow',
'cspell-config-lib',
'lowdb',
'@otplib/plugin-crypto',
'retext-latin',
'contentful',
'lodash.chunk',
'@langchain/langgraph-sdk',
'expo-location',
'radix-ui',
'micro-ftch',
'@material/ripple',
'@turf/bbox-polygon',
'@types/jscodeshift',
'ua-is-frozen',
'@electron/notarize',
'sqlite3',
'@turf/clean-coords',
'@datadog/datadog-ci-plugin-sarif',
'@datadog/datadog-ci-plugin-dora',
'@datadog/datadog-ci-plugin-deployment',
'copy-to',
'events-intercept',
'@cspell/dict-python',
'postcss-simple-vars',
'@sveltejs/vite-plugin-svelte',
'pg-cursor',
'@vue/tsconfig',
'http-reasons',
'vite-compatible-readable-stream',
'stream-composer',
'@vercel/fun',
'@otplib/preset-default',
'@hapi/content',
'find-index',
'@aws-sdk/client-personalize-events',
'cli-progress-footer',
'remarkable',
'mjml-accordion',
'@babel/helper-builder-react-jsx',
'centra',
'utif2',
'@tyriar/fibonacci-heap',
'uuid-browser',
'@ckeditor/ckeditor5-upload',
'@edsdk/flmngr-ckeditor5',
'@storybook/channel-websocket',
'react-email',
'@fastify/deepmerge',
'enzyme-adapter-utils',
'@turf/union',
'@react-stately/calendar',
'@netlify/serverless-functions-api',
'hast-util-from-html-isomorphic',
'node-uuid',
'request-light',
'solid-js',
'@nuxt/vite-builder',
'@react-google-maps/marker-clusterer',
'@babel/node',
'mjml-table',
'levenary',
'scoped-regex',
'debounce-promise',
'typescript-logic',
'@capacitor/core',
'unix-crypt-td-js',
'mjml-section',
'vinyl-contents',
'@foliojs-fork/linebreak',
'@tabler/icons-react',
'@mui/x-license',
'cdk-assets',
'decko',
'@hapi/nigel',
'@sentry/cli-win32-i686',
'@petamoriken/float16',
'matchmediaquery',
'@tanstack/router-plugin',
'react-map-gl',
'ncjsm',
'rifm',
'@turf/difference',
'@types/tern',
'@koa/cors',
'then-request',
'cspell-dictionary',
'@turf/boolean-disjoint',
'@cspell/dict-fsharp',
'shortid',
'tiny-lr',
'array-tree-filter',
'turbo-linux-arm64',
'isemail',
'@swc/wasm',
'@lerna/child-process',
'font-awesome',
'@launchdarkly/js-server-sdk-common',
'mjml-core',
'multicodec',
'@gulpjs/to-absolute-glob',
'webextension-polyfill',
'jest-when',
'@material/elevation',
'@types/prompts',
'is-standalone-pwa',
'@turf/rhumb-destination',
'@prisma/prisma-fmt-wasm',
'lop',
'nssocket',
'@opentelemetry/sdk-trace-web',
'dagre',
'@react-stately/tooltip',
'@ckeditor/ckeditor5-enter',
'source-map-explorer',
'react-aria-components',
'is-dom',
'@storybook/preview-web',
'@promptbook/utils',
'find-requires',
'expo-dev-launcher',
'i18next-fs-backend',
'@vercel/static-config',
'http-basic',
'trim-off-newlines',
'@cspell/cspell-json-reporter',
'@microsoft/dynamicproto-js',
'@hapi/catbox-memory',
'@types/better-sqlite3',
'asn1.js-rfc5280',
'stream',
'prettier-eslint',
'mjml-head-title',
'rspack-resolver',
'snakecase-keys',
'@fullcalendar/core',
'@hapi/call',
'lodash._objecttypes',
'@ethersproject/contracts',
'commonmark',
'@appium/types',
'@hapi/somever',
'@vercel/gatsby-plugin-vercel-analytics',
'launchdarkly-react-client-sdk',
'@react-spring/three',
'@visx/group',
'@types/nlcst',
'@rspack/dev-server',
'is-cidr',
'vuedraggable',
'@types/redux-mock-store',
'@fullcalendar/timegrid',
'@opentelemetry/instrumentation-oracledb',
'mjml-head-breakpoint',
'@mui/x-data-grid-pro',
'rehype-sanitize',
'mjml-body',
'log-node',
'uglifyjs-webpack-plugin',
'react-to-print',
'otplib',
'striptags',
'broccoli-merge-trees',
'asn1.js-rfc2560',
'react-calendar',
'@otplib/core',
'grunt-cli',
'fast-printf',
'jay-peg',
'@codemirror/legacy-modes',
'@floating-ui/vue',
'liquid-json',
'@hapi/mimos',
'maath',
'@cspell/cspell-resolver',
'@parcel/utils',
'cli-sprintf-format',
'@hapi/heavy',
'@cspell/dict-dart',
'@opentelemetry/propagator-aws-xray',
'remark-smartypants',
'ast-walker-scope',
'date-time',
'@formatjs/ts-transformer',
'@hapi/file',
'@opentelemetry/instrumentation-fetch',
'amazon-cognito-identity-js',
'csvtojson',
'@astrojs/compiler',
'coveralls',
'@types/invariant',
'remeda',
'react-leaflet',
'stream-parser',
'@yr/monotone-cubic-spline',
'@types/yoga-layout',
'mongodb-memory-server',
'proxyquire',
'@turf/nearest-point-to-line',
'@otplib/preset-v11',
'@sveltejs/vite-plugin-svelte-inspector',
'yoga-wasm-web',
'credit-card-type',
'@cspell/dict-node',
'@turf/boolean-contains',
'@turf/kinks',
'@types/react-color',
'@jimp/plugin-shadow',
'pusher-js',
'mongodb-memory-server-core',
'mjml-head-font',
'@rollup/wasm-node',
'mjml-head-preview',
'stylis-rule-sheet',
'mjml-group',
'mjml-wrapper',
'mjml-button',
'eslint-plugin-html',
'three-mesh-bvh',
'xcase',
'd3-geo-projection',
'@visx/scale',
'@xmldom/is-dom-node',
'mjml-head',
'@tanstack/router-utils',
'react-quill',
'yauzl-promise',
'@segment/facade',
'vue-resize',
'rollup-plugin-node-polyfills',
'@img/sharp-linux-ppc64',
'falafel',
'@react-aria/slider',
'mjml-parser-xml',
'vite-plugin-node-polyfills',
'locate-app',
'jest-axe',
'sort-any',
'better-assert',
'multihashes',
'modern-ahocorasick',
'@react-aria/collections',
'@storybook/addon-designs',
'emoji-mart',
'dingbat-to-unicode',
'mjml-navbar',
'get-user-locale',
'mjml-hero',
'mjml-carousel',
'mjml-spacer',
'mjml-head-style',
'db0',
'@turf/transform-translate',
'faye',
'array-map',
'@smithy/middleware-compression',
'@turf/truncate',
'@react-aria/virtualizer',
'wildcard-match',
'@cspell/dict-java',
'srcset',
'@dotenvx/dotenvx',
'stickyfill',
'gulp-util',
'@tiptap/extensions',
'@cspell/dict-julia',
'third-party-capital',
'@types/koa__router',
'short-unique-id',
'posthtml',
'@hypnosphi/create-react-context',
'mjml-head-html-attributes',
'@graphql-codegen/introspection',
'await-to-js',
'@bugsnag/cuid',
'stream-slice',
'@tailwindcss/oxide-darwin-arm64',
'is-scoped',
'@expo/bunyan',
'cheap-ruler',
'@openapitools/openapi-generator-cli',
'@stencil/core',
'@nx/nx-win32-x64-msvc',
'snowflake-sdk',
'@material/shape',
'string.prototype.codepointat',
'computeds',
'@react-aria/calendar',
'firebase-tools',
'sync-request',
'@otplib/plugin-thirty-two',
'@ngx-translate/http-loader',
'@opensearch-project/opensearch',
'@foliojs-fork/pdfkit',
'avsc',
'uglify-es',
'liquidjs',
'@react-native/metro-config',
'@cspell/dict-monkeyc',
'shasum',
'stats.js',
'yauzl-clone',
'yoga-layout-prebuilt',
'css-parse',
'is-hex-prefixed',
'@stylelint/postcss-css-in-js',
'@cspell/dict-git',
'bytewise-core',
'react-sizeme',
'@codemirror/lang-sql',
'@turf/boolean-within',
'@aws-sdk/middleware-endpoint',
'Base64',
'vscode-html-languageservice',
'@types/gtag.js',
'@metamask/safe-event-emitter',
'@turf/transform-scale',
'retext-stringify',
'@electron/osx-sign',
'p-memoize',
'@percy/sdk-utils',
'@cspell/dict-swift',
'deferred',
'media-query-parser',
'expo-dev-client',
'@cspell/dict-vue',
'enzyme-adapter-react-16',
'@ckeditor/ckeditor5-typing',
'atob-lite',
'@tiptap/extension-table',
'@tiptap/extension-highlight',
'mock-fs',
'mjml',
'@netlify/functions',
'github-username',
'mjml-preset-core',
'jest-styled-components',
'eslint-config-turbo',
'@videojs/vhs-utils',
'mjml-text',
'mjml-head-attributes',
'mjml-social',
'@nuxt/devalue',
'mjml-column',
'mjml-raw',
'babel-plugin-syntax-decorators',
'@microsoft/signalr',
'array-reduce',
'saslprep',
'@turf/convex',
'babel-preset-env',
'jschardet',
'@turf/combine',
'@humanwhocodes/gitignore-to-minimatch',
'csprng',
'read-installed',
'rrweb',
'humps',
'@atlaskit/tokens',
'@turf/line-split',
'promisepipe',
'ember-cli-babel',
'shell-exec',
'@aws-sdk/client-firehose',
'@sentry/vue',
'expo-dev-menu-interface',
'react-idle-timer',
'binary-search',
'@tiptap/extension-color',
'@ionic/utils-fs',
'react-loading-skeleton',
'@vercel/hydrogen',
'unconfig',
'@turf/clusters-kmeans',
'@tsconfig/node20',
'@nrwl/cypress',
'stringify-package',
'cockatiel',
'@algolia/events',
'purgecss',
'@wojtekmaj/date-utils',
'cjson',
'@azure/keyvault-secrets',
'@cspell/dict-r',
'@aws-amplify/notifications',
'@react-aria/tooltip',
'react-merge-refs',
'sort-asc',
'@microsoft/microsoft-graph-client',
'@types/secp256k1',
'webpack-chain',
'@segment/isodate',
'@turf/simplify',
'duck',
'hogan.js',
'@oclif/command',
'grunt',
'text-encoding-utf-8',
'@parcel/logger',
'@chakra-ui/styled-system',
'@types/tar',
'@types/busboy',
'@parcel/codeframe',
'vscode-css-languageservice',
'@foliojs-fork/restructure',
'@noble/secp256k1',
'@turf/center-of-mass',
'nofilter',
'react-native-worklets',
'chartjs-plugin-datalabels',
'@oclif/plugin-plugins',
'neverthrow',
'apache-md5',
'@segment/analytics-node',
'mocha-multi-reporters',
'basic-auth-connect',
'@capacitor/cli',
'@vue/eslint-config-prettier',
'@nestjs/websockets',
'babel-plugin-transform-export-extensions',
'zxcvbn',
'@effect/schema',
'@wdio/cli',
'@types/pbkdf2',
'firebase-functions',
'loader-fs-cache',
'@astrojs/internal-helpers',
'@opentelemetry/otlp-proto-exporter-base',
'@turf/line-chunk',
'@types/webpack-bundle-analyzer',
'apollo-server-express',
'getobject',
'typewise-core',
'@remix-run/server-runtime',
'vscode-languageclient',
'is-mobile',
'@turf/nearest-point',
'@mdx-js/loader',
'@types/passport-local',
'@turf/boolean-overlap',
'@segment/isodate-traverse',
'lodash.values',
'react-compiler-runtime',
'@parcel/types',
'worker-loader',
'vite-dev-rpc',
'grouped-queue',
'module-not-found-error',
'@parcel/workers',
'@bugsnag/core',
'new-date',
'sqs-consumer',
'mjml-image',
'react-popper-tooltip',
'@cspell/url',
'@nx/cypress',
'rollup-plugin-babel',
'@material/touch-target',
'coffee-script',
'@turf/explode',
'nanospinner',
'@turf/mask',
'@cspell/dict-gaming-terms',
'concaveman',
'@slack/webhook',
'update-notifier-cjs',
'deep-equal-in-any-order',
'uid-number',
'@aws-sdk/md5-js',
'@types/pixelmatch',
'@types/draco3d',
'@turf/square',
'@cspell/dict-svelte',
'@nuxt/devtools-wizard',
'has-gulplog',
'@babel/runtime-corejs2',
'ts-poet',
'@vercel/go',
'npm-user-validate',
'@amplitude/analytics-connector',
'broccoli-persistent-filter',
'kill-port',
'@shikijs/transformers',
'@material/list',
'@types/enzyme',
'eslint-json-compat-utils',
'json-ptr',
'react-highlight-words',
'systemjs',
'ml-matrix',
'eslint-plugin-ft-flow',
'@solana/spl-token',
'troika-three-utils',
'mjml-cli',
'@turf/line-overlap',
'lodash.unescape',
'mjml-divider',
'electron',
'userhome',
'@apm-js-collab/code-transformer',
'@turf/line-to-polygon',
'is-lite',
'babel-extract-comments',
'recompose',
'lodash.padstart',
'@nx/nx-linux-arm64-musl',
'@aws-sdk/eventstream-serde-config-resolver',
'@foliojs-fork/fontkit',
'@types/canvas-confetti',
'@tiptap/extension-list',
'@turf/unkink-polygon',
'essentials',
'@emotion/styled-base',
'@react-native-community/cli-config-apple',
'eslint-config-flat-gitignore',
'@tsconfig/node18',
'@react-navigation/stack',
'@turf/flatten',
'@rrweb/types',
'rndm',
'@turf/point-grid',
'stylelint-prettier',
'@walletconnect/keyvaluestorage',
'@cspell/dict-k8s',
'@astrojs/markdown-remark',
'babel-plugin-transform-async-generator-functions',
'json-colorizer',
'troika-worker-utils',
'react-infinite-scroll-component',
'@turf/tag',
'@vercel/stega',
'redux-devtools-extension',
'heimdalljs',
'@types/react-select',
'@segment/analytics-next',
'svix',
'node-watch',
'eslint-plugin-tsdoc',
'cli-columns',
'grunt-legacy-util',
'remark-directive',
'detect-europe-js',
'@expo/rudder-sdk-node',
'@tanstack/virtual-file-routes',
'@turf/line-arc',
'async-each-series',
'@turf/line-slice-along',
'probe-image-size',
'mdast-util-compact',
'spacetrim',
'@techteamer/ocsp',
'convict',
'@turf/bbox-clip',
'@turf/midpoint',
'process-utils',
'@turf/flip',
'@oclif/plugin-warn-if-update-available',
'@langchain/langgraph',
'mjml-migrate',
'path-match',
'grunt-legacy-log-utils',
'@nestjs/throttler',
'sequin',
'@visx/curve',
'fill-keys',
'chromium-pickle-js',
'@wdio/globals',
'@serverless/dashboard-plugin',
'@types/chai-subset',
'@tanstack/vue-virtual',
'babel-preset-stage-3',
'@visx/shape',
'@turf/points-within-polygon',
'@turf/envelope',
'workerd',
'@metamask/rpc-errors',
'vue-devtools-stub',
'mamacro',
'fengari',
'troika-three-text',
'in-publish',
'2-thenable',
'three-stdlib',
'object-component',
'bytewise',
'@react-leaflet/core',
'@casl/ability',
'stream-promise',
'ts-error',
'remark-breaks',
'@turf/line-slice',
'@azure/ms-rest-js',
'@tiptap/extension-table-header',
'diacritics',
'http-status',
'@turf/point-on-feature',
'detect-gpu',
'@chakra-ui/theme-tools',
'compare-version',
'util-promisify',
'eth-lib',
'cli',
'@types/shelljs',
'webgl-constants',
'@turf/turf',
'@turf/polygon-tangents',
'@bugsnag/node',
'@sanity/client',
'nwmatcher',
'caniuse-db',
'@nuxt/devtools',
'secure-keys',
'tape',
'@material/icon-button',
'@material/button',
'@restart/ui',
'@newrelic/security-agent',
'vite-plugin-full-reload',
'@appium/support',
'superstatic',
'primeicons',
'@material/menu',
'csrf',
'posthtml-render',
'strip-hex-prefix',
'is-png',
'@material/menu-surface',
'react-spring',
'@turf/line-offset',
'@turf/bezier-spline',
'mixme',
'@chakra-ui/anatomy',
'drizzle-zod',
'@gorhom/portal',
'@turf/clusters-dbscan',
'ringbufferjs',
'eslint-plugin-react-compiler',
'useragent',
'@lezer/python',
'fastestsmallesttextencoderdecoder',
'@angular-eslint/schematics',
'@turf/great-circle',
'@graphql-codegen/typescript-react-apollo',
'as-array',
'@turf/collect',
'@playwright/mcp',
'react-portal',
'jade',
'glsl-noise',
'@turf/isolines',
'@parcel/plugin',
'@oxc-transform/binding-linux-x64-musl',
'@babel/standalone',
'hooker',
'nestjs-pino',
'@gorhom/bottom-sheet',
'@ckeditor/ckeditor5-ui',
'binascii',
'@tiptap/extension-mention',
'@material/select',
'tightrope',
'@endemolshinegroup/cosmiconfig-typescript-loader',
'@mui/styles',
'lodash.reject',
'@swagger-api/apidom-core',
'errx',
'python-struct',
'@msgpackr-extract/msgpackr-extract-win32-x64',
'set-getter',
'static-module',
'graphql-depth-limit',
'@turf/concave',
'babel-preset-stage-2',
'onnxruntime-common',
'@material/textfield',
'@salesforce/kit',
'iserror',
'@eslint-community/eslint-plugin-eslint-comments',
'@aws-sdk/client-rds',
'p-some',
'@turf/hex-grid',
'@turf/transform-rotate',
'@turf/clusters',
'bin-wrapper',
'@tippyjs/react',
'babel-plugin-transform-decorators',
'@material/snackbar',
'@bazel/runfiles',
'@turf/ellipse',
'videojs-font',
'fast-loops',
'@simplewebauthn/browser',
'unraw',
'@turf/interpolate',
'@material/form-field',
'@google-cloud/cloud-sql-connector',
'is-relative-path',
'@vue/babel-sugar-composition-api-inject-h',
'i',
'@tiptap/extension-table-cell',
'antlr4',
'@antfu/ni',
'babel-plugin-syntax-flow',
'@bugsnag/js',
'@react-hook/latest',
'on-change',
'@nx/nx-linux-arm64-gnu',
'@turf/boolean-crosses',
'gherkin',
'continuable-cache',
'@types/pug',
'contentful-resolve-response',
'grunt-legacy-log',
'yocto-spinner',
'camera-controls',
'exegesis',
'react-json-view',
'@turf/boolean-equal',
'@jsii/check-node',
'tree-changes',
'@turf/triangle-grid',
'time-zone',
'ioredis-mock',
'postinstall-postinstall',
'format-util',
'@turf/tesselate',
'@material/dialog',
'jsonrepair',
'@turf/isobands',
'@turf/planepoint',
'topo',
'@nestjs/graphql',
'@dimforge/rapier3d-compat',
'@ngrx/store',
'@ckeditor/ckeditor5-widget',
'@temporalio/proto',
'@amplitude/plugin-autocapture-browser',
'y-protocols',
'meshline',
'level-supports',
'@types/lodash.merge',
'@segment/analytics.js-video-plugins',
'new-find-package-json',
'flattie',
'@bugsnag/browser',
'chrome-remote-interface',
'@turf/shortest-path',
'p-any',
'@types/anymatch',
'@types/reach__router',
'@turf/boolean-parallel',
'@monogrid/gainmap-js',
'@turf/voronoi',
'file-url',
'@ts-graphviz/ast',
'@ts-graphviz/core',
'@nuxt/cli',
'json-diff',
'laravel-vite-plugin',
'@rollup/plugin-image',
'eslint-plugin-yml',
'@panva/asn1.js',
'@ts-graphviz/common',
'retext-smartypants',
'@ts-graphviz/adapter',
'@solana/buffer-layout',
'@material/linear-progress',
'builder-util',
'typewise',
'@mole-inc/bin-wrapper',
'@tiptap/extension-list-keymap',
'extract-stack',
'@ngrx/effects',
'@vercel/hono',
'@nestjs/bull-shared',
'@material/data-table',
'rtl-detect',
'@types/underscore',
'cssauron',
'topojson-server',
'electron-publish',
'auth0',
'@aws-sdk/util-retry',
'@material/tab-scroller',
'@ucast/mongo2js',
'@neondatabase/serverless',
'temp-write',
'@ardatan/aggregate-error',
'wrangler',
'path2d-polyfill',
'@react-native-community/cli-hermes',
'@material/tab-bar',
'@aws-sdk/middleware-sdk-rds',
'js-file-download',
'jest-expo',
'skmeans',
'@turf/tin',
'@cspell/cspell-pipe',
'@material/slider',
'get-them-args',
'@material/chips',
'@googleapis/sqladmin',
'@serverless/platform-client',
'dreamopt',
'sliced',
'@material/drawer',
'route-recognizer',
'sweetalert2',
'find-parent-dir',
'@cspell/dict-makefile',
'@ckeditor/ckeditor5-select-all',
'highcharts-react-official',
'@deca-ui/react',
'vite-plugin-vue-inspector',
'@turf/random',
'@cspell/dict-kotlin',
'grunt-known-options',
'@storybook/addon-vitest',
'@material/card',
'babel-helper-bindify-decorators',
'babel-plugin-transform-remove-console',
'@fontsource/roboto',
'pg-minify',
'@simplewebauthn/server',
'json-bignum',
'karma-coverage-istanbul-reporter',
'@visx/point',
'@material/top-app-bar',
'ansi',
'@swagger-api/apidom-error',
'@ionic/utils-array',
'array-find',
'aws4fetch',
'react-cookie',
'@pulumi/pulumi',
'injection-js',
'@types/numeral',
'@temporalio/common',
'npm-registry-utilities',
'react-easy-crop',
'@streamparser/json',
'eslint-plugin-deprecation',
'options',
'os',
'@cspell/dict-terraform',
'levelup',
'@supabase/ssr',
'ast-metadata-inferer',
'lefthook',
'node-object-hash',
'konva',
'@parcel/events',
'react-image-crop',
'lodash._basecreate',
'koa-bodyparser',
'deferred-leveldown',
'@langchain/community',
'zod-to-ts',
'@types/source-map-support',
'webpack-filter-warnings-plugin',
'eventemitter-asyncresource',
'gulp-rename',
'vue-bundle-renderer',
'fast-stable-stringify',
'broccoli-funnel',
'jsqr',
'@turf/polygonize',
'ts-proto-descriptors',
'glur',
'libnpmsearch',
'cypress-wait-until',
'@cspell/dict-google',
'@appium/schema',
'@expo/server',
'gulp-sourcemaps',
'@material/image-list',
'@types/chance',
'expo-secure-store',
'fast-npm-meta',
'@serverless/event-mocks',
'@loaders.gl/loader-utils',
'eslint-plugin-compat',
'@react-native-firebase/app',
'@turf/center-mean',
'npm-profile',
'@turf/center-median',
'speed-measure-webpack-plugin',
'clean-git-ref',
'@aws-sdk/middleware-sdk-route53',
'emoticon',
'body',
'@vue/babel-helper-vue-jsx-merge-props',
'use-context-selector',
'babel-plugin-syntax-async-generators',
'clap',
'dashify',
'fn-name',
'@material/banner',
'browser-sync-ui',
'@types/jasminewd2',
'toml-eslint-parser',
'@bugsnag/safe-json-stringify',
'sequelize-cli',
'react-native-edge-to-edge',
'dev-ip',
'@vue/babel-sugar-v-on',
'@material/segmented-button',
'@vercel/express',
'dependency-cruiser',
'cspell-grammar',
'@react-stately/autocomplete',
'@salesforce/core',
'jsonata',
'prompt',
'libnpmteam',
'emitter-component',
'@parcel/diagnostic',
'structured-source',
'@redocly/cli',
'vee-validate',
'@fastify/formbody',
'@slack/socket-mode',
'resp-modifier',
'videojs-vtt.js',
'conventional-changelog-config-spec',
'revalidator',
'simple-websocket',
'bs-recipes',
'create-emotion',
'loglevel-colored-level-prefix',
'npm-which',
'ag-charts-community',
'ts-checker-rspack-plugin',
'expo-crypto',
'@netlify/blobs',
'@gitbeaker/rest',
'@elastic/transport',
'@types/async',
'@zkochan/cmd-shim',
'unifont',
'@material-ui/icons',
'@parcel/fs',
'uuidv7',
'@turf/sector',
'has-color',
'@parcel/markdown-ansi',
'ag-grid-enterprise',
'@tiptap/extension-table-row',
'tiktoken',
'is-alphanumeric',
'eslint-flat-config-utils',
'postman-runtime',
'graphology',
'@hexagon/base64',
'@welldone-software/why-did-you-render',
'symlink-or-copy',
'@auth0/auth0-react',
'@pm2/blessed',
'hast-util-select',
'@temporalio/client',
'@pnpm/read-project-manifest',
'slate-history',
'@turf/square-grid',
'eslint-plugin-json',
'glob2base',
'@braintree/browser-detection',
'cli-ux',
'@visx/text',
'unist-util-filter',
'@react-native/eslint-plugin',
'@tsconfig/node22',
'@turf/dissolve',
'ml-array-max',
'ml-array-min',
'thriftrw',
'ckeditor5',
'eslint-config-standard-jsx',
'@httptoolkit/websocket-stream',
'@astrojs/telemetry',
'browserstack',
'@esbuild-plugins/node-modules-polyfill',
'jest-image-snapshot',
'ml-array-rescale',
'@cspell/dict-flutter',
'rrdom',
'@types/lodash.isequal',
'@turf/sample',
'@csstools/postcss-color-mix-variadic-function-arguments',
'@aws-sdk/client-route-53',
'emotion',
'@vue/babel-preset-jsx',
'@material/theme',
'@tanstack/react-router-devtools',
'@lezer/markdown',
'unplugin-vue-components',
'@slack/oauth',
'@vanilla-extract/babel-plugin-debug-ids',
'jaeger-client',
'@oxc-minify/binding-linux-x64-musl',
'@protobuf-ts/runtime',
'@aws-sdk/middleware-websocket',
'@react-aria/autocomplete',
'@ckeditor/ckeditor5-paragraph',
'stylelint-config-prettier',
'browser-sync',
'expr-eval',
'@react-types/autocomplete',
'@walletconnect/window-getters',
'aws-amplify',
'mux.js',
'@reach/observe-rect',
'@turf/standard-deviational-ellipse',
'vfile-reporter',
'@types/react-virtualized',
'add-dom-event-listener',
'@vue/babel-sugar-functional-vue',
'@graphql-yoga/subscription',
'vuetify',
'@gilbarbara/deep-equal',
'string-format',
'prebuildify',
'@microsoft/applicationinsights-dependencies-js',
'htm',
'dom7',
'wait-for-expect',
'style-dictionary',
'danger',
'@react-native/eslint-config',
'@date-io/moment',
'use-subscription',
'@vue/babel-sugar-v-model',
'babel-plugin-named-exports-order',
'libnpmorg',
'@sentry/react-native',
'ssim.js',
'@microsoft/rush',
'immutability-helper',
'babel-helper-explode-class',
'tarjan-graph',
'url-value-parser',
'@tanstack/router-devtools-core',
'@ucast/core',
'@storybook/manager-webpack4',
'@azure/arm-resources',
'jest-transform-stub',
'launchdarkly-node-server-sdk',
'@babel/helper-regex',
'uniqid',
'@ionic/cli-framework-output',
'app-builder-lib',
'pinpoint',
'graphql-tools',
'@ckeditor/ckeditor5-editor-multi-root',
'vfile-statistics',
'lodash.lowercase',
'napi-macros',
'tree-sitter-json',
'@types/docker-modem',
'native-url',
'remark-emoji',
'@types/puppeteer',
'svelte-check',
'broccoli-babel-transpiler',
'promise-worker-transferable',
'redlock',
'@parcel/package-manager',
'tiny-relative-date',
'browser-sync-client',
'standard-engine',
'npm-audit-report',
'lodash.transform',
'ts-custom-error',
'@dagrejs/dagre',
'@vue/babel-sugar-inject-h',
'easy-extender',
'@hey-api/openapi-ts',
'node-ipc',
'@turbo/gen',
'typed-emitter',
'@mjackson/node-fetch-server',
'@vue/babel-plugin-transform-vue-jsx',
'ansi-color',
'babel-plugin-transform-flow-strip-types',
'@storybook/builder-webpack4',
'@nivo/core',
'eslint-plugin-lodash',
'@mui/x-tree-view',
'@amplitude/ua-parser-js',
'dotgitignore',
'@salesforce/ts-types',
'@zag-js/core',
'chartjs-color',
'babelify',
'axe-html-reporter',
'domino',
'tinymce',
'@ckeditor/ckeditor5-horizontal-line',
'launch-editor-middleware',
'@notionhq/client',
'@types/chroma-js',
'm3u8-parser',
'glob-slasher',
'@ckeditor/ckeditor5-clipboard',
'fengari-interop',
'stream-throttle',
'@remix-run/node',
'toxic',
'@types/faker',
'openurl',
'doc-path',
'optional-require',
'pegjs',
'eazy-logger',
'protractor',
'bin-build',
'events-to-array',
'@aws-sdk/client-bedrock-agent-runtime',
'react-async-script',
'new-github-release-url',
'styled-system',
'@vercel/speed-insights',
'@turbo/workspaces',
'@stylelint/postcss-markdown',
'acorn-jsx-walk',
'webgl-sdf-generator',
'@types/jest-axe',
'@msgpackr-extract/msgpackr-extract-darwin-arm64',
'events-listener',
'@types/eslint__js',
'@prisma/generator-helper',
'tosource',
'version-range',
'@cspell/dict-markdown',
'abort-controller-x',
'@trpc/server',
'graphology-types',
'@vue/babel-sugar-composition-api-render-instance',
'typescript-language-server',
'mkdirp-promise',
'hls.js',
'whet.extend',
'@cspell/dict-al',
'enzyme-to-json',
'hexer',
'@ckeditor/ckeditor5-undo',
'@turf/boolean-intersects',
'umask',
'json-2-csv',
'@nestjs/platform-socket.io',
'node-api-version',
'rollup-plugin-node-resolve',
'hermes-profile-transformer',
'@ckeditor/ckeditor5-word-count',
'player.style',
'@prisma/driver-adapter-utils',
'@oclif/parser',
'@coinbase/wallet-sdk',
'@ckeditor/ckeditor5-html-embed',
'backbone',
'expo-device',
'cookies-next',
'expo-server',
'@loaders.gl/worker-utils',
'chai-string',
'parse-github-repo-url',
'@nx/nx-darwin-x64',
'@levischuck/tiny-cbor',
'speakeasy',
'@ngrx/store-devtools',
'libnpmhook',
'@ckeditor/ckeditor5-html-support',
'stats-gl',
'number-to-bn',
'postman-sandbox',
'@opentelemetry/instrumentation-xml-http-request',
'@tanstack/query-persist-client-core',
'@slack/bolt',
'video.js',
'uvm',
'react-native-svg-transformer',
'ltgt',
'@types/resize-observer-browser',
'@ckeditor/ckeditor5-table',
'change-emitter',
'@types/tar-stream',
'lodash.omitby',
'vfile-sort',
'svg.filter.js',
'@azure/arm-appservice',
'bip39',
'lodash._basevalues',
'@wdio/local-runner',
'esbuild-linux-arm64',
'broccoli-source',
'@wdio/runner',
'typescript-plugin-css-modules',
'@metamask/json-rpc-engine',
'broccoli-node-info',
'application-config-path',
'webdriver-manager',
'@develar/schema-utils',
'lottie-react-native',
'@walletconnect/safe-json',
'recyclerlistview',
'hotkeys-js',
'@backstage/backend-app-api',
'@ucast/js',
'@aws-sdk/util-base64',
'@radix-ui/react-one-time-password-field',
'globalize',
'@ckeditor/ckeditor5-code-block',
'lodash.uniqwith',
'@lezer/xml',
'@zag-js/anatomy',
'@ckeditor/ckeditor5-highlight',
'transliteration',
'@ckeditor/ckeditor5-font',
'only-allow',
'jshint',
'@fastify/swagger',
'join-path',
'path2',
'@chakra-ui/theme',
'newman',
'quote-stream',
'react-zoom-pan-pinch',
'base64-stream',
'xorshift',
'@pnpm/write-project-manifest',
'webfontloader',
'html-tokenize',
'@nivo/tooltip',
'intl',
'@codemirror/lang-xml',
'@graphql-codegen/typescript-resolvers',
'license-checker',
'postman-collection-transformer',
'fast-unique-numbers',
'get-it',
'react-immutable-proptypes',
'app-builder-bin',
'pg-query-stream',
'imports-loader',
'@tailwindcss/oxide-darwin-x64',
'@clickhouse/client',
'babel-plugin-transform-react-display-name',
'expo-eas-client',
'@svgr/plugin-prettier',
'utif',
'write-yaml-file',
'metro-react-native-babel-transformer',
'lazy-val',
'node-fetch-npm',
'nice-grpc-common',
'react-csv',
'@unocss/core',
'glob-slash',
'color-rgba',
'@cspell/dict-shell',
'svg.js',
'@textlint/module-interop',
'@sveltejs/kit',
'express-unless',
'lefthook-linux-x64',
'react-native-pager-view',
'chromedriver',
'svg.easing.js',
'@esbuild-plugins/node-globals-polyfill',
'@videojs/http-streaming',
'@ckeditor/ckeditor5-minimap',
'react-content-loader',
'babel-helper-builder-react-jsx',
'browserslist-to-esbuild',
'node.extend',
'custom-media-element',
'apollo-link-http-common',
'@styled-system/core',
'@codemirror/lang-markdown',
'angular-eslint',
'exegesis-express',
'@parcel/cache',
'@firebase/vertexai-preview',
'serialised-error',
'properties',
'@types/mailparser',
'@textlint/types',
'@aws-amplify/data-schema',
'@ionic/utils-terminal',
'bit-twiddle',
'deterministic-object-hash',
'chartjs-color-string',
'protoduck',
'otpauth',
'@astrojs/prism',
'deeks',
'heimdalljs-logger',
'ndarray',
'redux-immutable',
'@graphql-eslint/eslint-plugin',
'junit-report-merger',
'@logdna/tail-file',
'tunnel-rat',
'mdast-util-newline-to-break',
'dmg-builder',
'eslint-config-standard-with-typescript',
'@walletconnect/jsonrpc-types',
'posthog-js',
'bufrw',
'node-oauth1',
'beeper',
'@visx/axis',
'lodash.pad',
'@radix-ui/react-password-toggle-field',
'@aws-amplify/core',
'react-hot-loader',
'@walletconnect/window-metadata',
'@total-typescript/ts-reset',
'@types/format-util',
'is-integer',
'@material/base',
'martinez-polygon-clipping',
'@nivo/legends',
'js-queue',
'i18next-resources-to-backend',
'canonicalize',
'@opentelemetry/exporter-jaeger',
'@types/react-slick',
'@nx/react',
'@swagger-api/apidom-ns-openapi-3-1',
'babel-plugin-transform-react-jsx',
'lodash.maxby',
'expo-build-properties',
'@cypress/code-coverage',
'@material/dom',
'@capacitor/android',
'@graphql-yoga/typed-event-target',
'esbuild-darwin-arm64',
'errlop',
'randomstring',
'expo-notifications',
'json-schema-resolver',
'nomnom',
'meant',
'is-jpg',
'jest-watch-select-projects',
'lodash.toarray',
'memory-cache',
'electron-builder',
'@types/axios',
'blob-to-buffer',
'@swagger-api/apidom-json-pointer',
'@octokit/openapi-webhooks-types',
'@clickhouse/client-common',
'fs-exists-cached',
'is-es2016-keyword',
'turbo-windows-64',
'@nx/angular',
'memfs-or-file-map-to-github-branch',
'apollo-upload-client',
'@vue/cli-shared-utils',
'aes-decrypter',
'sha1',
'nanostores',
'esbuild-windows-64',
'@nrwl/react',
'@types/jest-when',
'tsc-watch',
'@web3-storage/multipart-parser',
'svg.draggable.js',
'@glimmer/util',
'@types/sinon-chai',
'web3-eth-abi',
'octokit-pagination-methods',
'@types/config',
'feed',
'@fortawesome/free-brands-svg-icons',
'passport-google-oauth20',
'nanoassert',
'@styled-system/css',
'run-con',
'lodash._reescape',
'vue-docgen-api',
'mousetrap',
'scrollparent',
'babel-helper-evaluate-path',
'@swagger-api/apidom-ns-openapi-3-0',
'backoff',
'@aws-sdk/credential-provider-login',
'multipasta',
'@vercel/ncc',
'@ai-sdk/openai-compatible',
'cache-loader',
'nice-grpc',
'@types/applepayjs',
'@mischnic/json-sourcemap',
'postcss-mixins',
'@cucumber/pretty-formatter',
'@types/slice-ansi',
'murmurhash',
'babel-plugin-lodash',
'npm-path',
'@zag-js/interact-outside',
'@ckeditor/ckeditor5-editor-decoupled',
'keypress',
'@acuminous/bitsyntax',
'mixpanel',
'release-it',
'@eslint-react/ast',
'@unhead/schema',
'trouter',
'fs-capacitor',
'read-chunk',
'@javascript-obfuscator/estraverse',
'@eslint-react/core',
'@eslint-react/var',
'@eslint-react/shared',
'@zag-js/dismissable',
'@msgpackr-extract/msgpackr-extract-darwin-x64',
'zstddec',
'@microsoft/applicationinsights-common',
'double-ended-queue',
'impound',
'javascript-obfuscator',
'watchify',
'turbo-darwin-arm64',
'point-in-polygon-hao',
'@vscode/vsce',
'reserved-identifiers',
'@types/is-hotkey',
'ink-spinner',
'@ast-grep/napi',
'@atlaskit/platform-feature-flags',
'teleport-javascript',
'@nivo/colors',
'turbo-darwin-64',
'lsofi',
'keycloak-js',
'@vercel/h3',
'@styled-system/position',
'emotion-theming',
'babel-helper-remove-or-void',
'content-type-parser',
'aws-xray-sdk-core',
'@swagger-api/apidom-ns-json-schema-draft-7',
'wif',
'simplebar-react',
'@nx/plugin',
'contentful-management',
'path-posix',
'@cspotcode/source-map-consumer',
'lodash._createassigner',
'line-column',
'@swagger-api/apidom-ast',
'text-decoding',
'svg.pathmorphing.js',
'webdriver-js-extender',
'@styled-system/space',
'precond',
'@ucast/mongo',
'@loaders.gl/schema',
'jsdom-global',
'iota-array',
'stringz',
'@cspell/dict-sql',
'web3-providers-http',
'@tailwindcss/oxide-wasm32-wasi',
'eslint-processor-vue-blocks',
'@swagger-api/apidom-ns-json-schema-draft-4',
'lodash._reevaluate',
'level-js',
'select2',
'hast-util-is-body-ok-link',
'web3-eth-iban',
'can-use-dom',
'@styled-system/grid',
'@ckeditor/ckeditor5-editor-inline',
'taffydb',
'@codemirror/lang-python',
'micro-memoize',
'markdownlint-cli',
'@fingerprintjs/fingerprintjs',
'web3-providers-ipc',
'hast-util-embedded',
'babel-plugin-syntax-export-extensions',
'svg.resize.js',
'@ckeditor/ckeditor5-cloud-services',
'@styled-system/variant',
'@capsizecss/unpack',
'to-camel-case',
'@styled-system/border',
'@swagger-api/apidom-parser-adapter-json',
'@bufbuild/protoplugin',
'@types/babel-types',
'@styled-system/flexbox',
'grammex',
'reduce-reducers',
'@temporalio/worker',
'devtools',
'@swagger-api/apidom-parser-adapter-openapi-json-3-0',
'is-supported-regexp-flag',
'@types/google-libphonenumber',
'@swagger-api/apidom-parser-adapter-openapi-yaml-3-1',
'@styled-system/typography',
'webpack-assets-manifest',
'@walletconnect/jsonrpc-ws-connection',
'saucelabs',
'react-apexcharts',
'@nx/nx-win32-arm64-msvc',
'microdiff',
'@testcontainers/postgresql',
'@swagger-api/apidom-ns-json-schema-draft-6',
'jasminewd2',
'@tailwindcss/oxide-win32-arm64-msvc',
'openpgp',
'outpipe',
'@types/clean-css',
'legacy-javascript',
'@types/postcss-modules-scope',
'http-terminator',
'@javascript-obfuscator/escodegen',
'@types/react-google-recaptcha',
'highlight-es',
'@aws-amplify/auth',
'@types/nprogress',
'@soda/friendly-errors-webpack-plugin',
'typescript-json-schema',
'@aws-amplify/data-schema-types',
'@material/animation',
'@swagger-api/apidom-reference',
'@tailwindcss/oxide-android-arm64',
'@svgdotjs/svg.js',
'datatables.net',
'brfs',
'@tailwindcss/oxide-freebsd-x64',
'@lezer/rust',
'@tailwindcss/oxide-linux-arm-gnueabihf',
'ansi-sequence-parser',
'addressparser',
'@swagger-api/apidom-ns-asyncapi-2',
'node-fetch-commonjs',
'@swagger-api/apidom-parser-adapter-openapi-json-3-1',
'@swagger-api/apidom-parser-adapter-openapi-yaml-3-0',
'@expo/eas-build-job',
'rehype-autolink-headings',
'swagger-client',
'@types/pino',
'temp-file',
'smoothscroll-polyfill',
'blocking-proxy',
'@textlint/linter-formatter',
'isomorphic-git',
'card-validator',
'validate.js',
'webpack-notifier',
'@ckeditor/ckeditor5-essentials',
'nest-winston',
'autosize',
'mpd-parser',
'pg-promise',
'@react-router/node',
'@swagger-api/apidom-parser-adapter-api-design-systems-json',
'@swagger-api/apidom-parser-adapter-api-design-systems-yaml',
'@swagger-api/apidom-parser-adapter-asyncapi-json-2',
'@pinia/testing',
'@swagger-api/apidom-parser-adapter-asyncapi-yaml-2',
'node-jose',
'@turf/moran-index',
'libnpmpack',
'@lerna/validation-error',
'bcp-47',
'@verdaccio/file-locking',
'@styled-system/layout',
'@hono/zod-validator',
'well-known-symbols',
'@stoplight/spectral-ruleset-migrator',
'@temporalio/activity',
'@golevelup/nestjs-discovery',
'@walletconnect/relay-auth',
'ethereum-bloom-filters',
'@nevware21/ts-utils',
'libnpmexec',
'browserstack-local',
'@swagger-api/apidom-ns-api-design-systems',
'urlgrey',
'run-node',
'fzf',
'@protobuf-ts/runtime-rpc',
'@nx/nx-freebsd-x64',
'thunkify',
'pe-library',
'@types/lodash.throttle',
'babel-plugin-syntax-class-constructor-call',
'viem',
'react-ace',
'@redocly/respect-core',
'@react-native-picker/picker',
'@msgpackr-extract/msgpackr-extract-linux-arm',
'override-require',
'sf-symbols-typescript',
'polka',
'dexie',
'ev-emitter',
'@types/swagger-jsdoc',
'mktemp',
'jquery-ui',
'xml-parser-xo',
'karma-junit-reporter',
'babel-preset-react',
'prettier-plugin-svelte',
'@zag-js/pagination',
'@react-native-community/cli-config-android',
'broccoli-output-wrapper',
'glsl-tokenizer',
'gulp-sort',
'react-swipeable',
'standard',
'quick-temp',
'graphql-http',
'@appium/base-driver',
'@zag-js/remove-scroll',
'@ckeditor/ckeditor5-editor-classic',
'geojson-rbush',
'ts-object-utils',
'@zag-js/element-size',
'esbuild-freebsd-64',
'@types/pdf-parse',
'express-http-proxy',
'reactflow',
'@visx/vendor',
'libnpmversion',
'@date-io/dayjs',
'@lerna/package',
'@cspell/dict-en-gb',
'@aws-lambda-powertools/commons',
'console-log-level',
'@walletconnect/jsonrpc-provider',
'webcrypto-shim',
'wasm-feature-detect',
'rc-animate',
'@lezer/yaml',
'obug',
'@capacitor/ios',
'babel-preset-stage-1',
'@netlify/zip-it-and-ship-it',
'@vercel/detect-agent',
'@zag-js/file-utils',
'badgin',
'babel-helper-mark-eval-scopes',
'esbuild-windows-32',
'ethjs-unit',
'esbuild-android-arm64',
'esbuild-linux-mips64le',
'jsforce',
'@vimeo/player',
'esbuild-sunos-64',
'@azure/msal-react',
'@turf/angle',
'@cypress/grep',
'@visx/event',
'@microsoft/applicationinsights-shims',
'toastify-react-native',
'@zag-js/tabs',
'diff3',
'@ffmpeg-installer/ffmpeg',
'jest-sonar-reporter',
'@types/reactcss',
'bole',
'@openzeppelin/contracts',
'micro-api-client',
'@swagger-api/apidom-ns-openapi-2',
'@types/color',
'@zag-js/switch',
'@chakra-ui/hooks',
'@electron/rebuild',
'@emoji-mart/data',
'@walletconnect/jsonrpc-utils',
'@keyv/redis',
'allure-playwright',
'esbuild-freebsd-arm64',
'@zag-js/accordion',
'p-iteration',
'boundary',
'esbuild-netbsd-64',
'@styled-system/color',
'@zag-js/popover',
'@zag-js/rating-group',
'xml-encryption',
'dprint-node',
'eslint-merge-processors',
'native-run',
'@zag-js/combobox',
'@walletconnect/ethereum-provider',
'@zag-js/i18n-utils',
'yaml-loader',
'@zag-js/avatar',
'nanotar',
'@types/verror',
'libnpmfund',
'@vscode/sudo-prompt',
'eslint-plugin-expo',
'express-prom-bundle',
'eslint-plugin-only-warn',
'@okta/okta-auth-js',
'@zag-js/tags-input',
'vite-plugin-vue-tracer',
'@braintree/asset-loader',
'unionfs',
'@zag-js/live-region',
'eslint-plugin-babel',
'iron-session',
'p-transform',
'react-scroll',
'meriyah',
'eslint-config-expo',
'@turf/distance-weight',
'youtube-player',
'@material-ui/lab',
'@ckeditor/ckeditor5-list',
'vali-date',
'is-generator',
'watskeburt',
'@types/oauth',
'test-value',
'@reown/appkit-utils',
'ts-mocha',
'@parcel/runtime-js',
'@zag-js/date-picker',
'dot',
'@sidvind/better-ajv-errors',
'@storybook/mdx1-csf',
'chrono-node',
'hex-rgb',
'babel-plugin-transform-class-constructor-call',
'@nestjs/mongoose',
'expo-updates',
'@types/less',
'@styled-system/background',
'resedit',
'react-native-vector-icons',
'ts-map',
'@types/follow-redirects',
'@zag-js/file-upload',
'@lingui/core',
'@types/plist',
'@stitches/core',
'liftup',
'@swagger-api/apidom-parser-adapter-yaml-1-2',
'@zag-js/rect-utils',
'@ckeditor/ckeditor5-ckfinder',
'clamp',
'media-tracks',
'@reown/appkit',
'@emotion/server',
'@graphql-codegen/fragment-matcher',
'@videojs/xhr',
'@zag-js/date-utils',
'@reach/router',
'@openfeature/core',
'eth-rpc-errors',
'eslint-plugin-vitest',
'@stoplight/spectral-ruleset-bundler',
'@walletconnect/heartbeat',
'@ide/backoff',
'object-deep-merge',
'@zag-js/number-input',
'noop-logger',
'react-inlinesvg',
'xml-formatter',
'@mux/playback-core',
'@malept/flatpak-bundler',
'concordance',
'@cucumber/query',
'babel-plugin-minify-dead-code-elimination',
'@oclif/help',
'@amplitude/experiment-core',
'@zag-js/store',
'string-ts',
'@nx/node',
'samsam',
'@react-native-community/slider',
'@prisma/generator',
'vue-chartjs',
'replacestream',
'@zag-js/carousel',
'rollup-plugin-commonjs',
'@types/mixpanel-browser',
'@cspell/filetypes',
'react-sortable-hoc',
'codecov',
'@formatjs/intl-getcanonicallocales',
'castable-video',
'copy-file',
'@types/lodash.clonedeep',
'mock-socket',
'@zag-js/collapsible',
'jsts',
'@ckeditor/ckeditor5-ckbox',
'@zag-js/color-picker',
'@prisma/dmmf',
'atomic-batcher',
'@testim/chrome-version',
'asyncbox',
'@ckeditor/ckeditor5-heading',
'p-reflect',
'gh-pages',
'@rsbuild/core',
'@docusaurus/react-loadable',
'object-sizeof',
'ripple-address-codec',
'google-artifactregistry-auth',
'next-router-mock',
'@opentelemetry/api-metrics',
'@zag-js/tree-view',
'babel-plugin-minify-guarded-expressions',
'@storybook/addon-mdx-gfm',
'esbuild-windows-arm64',
'@shopify/flash-list',
'@rjsf/utils',
'@primeuix/styled',
'@textlint/resolver',
'esbuild-linux-32',
'minim',
'@react-router/dev',
'@fastify/middie',
'@hotwired/stimulus',
'@ckeditor/ckeditor5-easy-image',
'@schummar/icu-type-parser',
'@turf/rectangle-grid',
'walk-back',
'@swagger-api/apidom-parser-adapter-openapi-yaml-2',
'react-input-mask',
'chain-function',
'@wdio/spec-reporter',
'@remix-run/web-stream',
'@types/mime-db',
'@remix-run/web-blob',
'@secretlint/core',
'@apollo/subgraph',
'@nx/nx-linux-arm-gnueabihf',
'eslint-plugin-jest-formatting',
'date-arithmetic',
'@types/eventsource',
'@remix-run/web-form-data',
'@remix-run/web-fetch',
'cypress-axe',
'@pnpm/graceful-fs',
'@turf/polygon-smooth',
'@types/zxcvbn',
'@tanstack/form-core',
'@contentful/content-source-maps',
'@remix-run/web-file',
'esprima-fb',
'libnpmdiff',
'@quansync/fs',
'broccoli-node-api',
'@codemirror/lang-yaml',
'react-native-device-info',
'express-basic-auth',
'@fastify/cookie',
'@react-native/typescript-config',
'blurhash',
'esbuild-linux-ppc64le',
'localtunnel',
'sdp-transform',
'semaphore',
'sort-css-media-queries',
'@aws-sdk/chunked-blob-reader',
'@types/unzipper',
'@nrwl/cli',
'@walletconnect/time',
'tabtab',
'esbuild-darwin-64',
'@zag-js/focus-trap',
'@swagger-api/apidom-parser-adapter-openapi-json-2',
'temp-fs',
'level-errors',
'exec-buffer',
'to-vfile',
'detective-less',
'@reach/auto-id',
'oxc-transform',
'@babel/helper-call-delegate',
'just-curry-it',
'@statsig/js-client',
'@tailwindcss/aspect-ratio',
'@zag-js/clipboard',
'postcss-filter-plugins',
'@storybook/addon-knobs',
'web3',
'@aws-sdk/hash-stream-node',
'eslint-formatter-pretty',
'@lerna/collect-updates',
'gatsby-core-utils',
'postcss-message-helpers',
'npm-check-updates',
'@ckeditor/ckeditor5-indent',
'svelte-eslint-parser',
'@tailwindcss/container-queries',
'@angular/platform-server',
'@nx/playwright',
'@zag-js/signature-pad',
'@zag-js/qr-code',
'@lmdb/lmdb-win32-x64',
'expo-structured-headers',
'cloudflare',
'@mux/mux-player',
'@bull-board/ui',
'@temporalio/workflow',
'@types/postcss-modules-local-by-default',
'spex',
'proxy-middleware',
'react-konva',
'intl-tel-input',
'is-running',
'ag-charts-locale',
'esbuild-openbsd-64',
'@uppy/utils',
'minimisted',
'@secretlint/types',
'@lerna/package-graph',
'weakmap-polyfill',
'@types/ioredis-mock',
'@snyk/github-codeowners',
'sister',
'guid-typescript',
'@atlaskit/ds-lib',
'primeng',
'@mui/x-date-pickers-pro',
'@applitools/logger',
'@mux/mux-video',
'@walletconnect/environment',
'react-router-config',
'babel-plugin-transform-member-expression-literals',
'@parcel/node-resolver-core',
'ts-retry-promise',
'codelyzer',
'@lerna/project',
'@types/symlink-or-copy',
'@reown/appkit-common',
'lodash.without',
'@pnpm/util.lex-comparator',
'ava',
'@react-oauth/google',
'web3-core',
'@walletconnect/relay-api',
'minisearch',
'@statsig/client-core',
'envify',
'babel-plugin-minify-builtins',
'tap',
'fixturify',
'cwise-compiler',
'esbuild-linux-arm',
'level-iterator-stream',
'@reown/appkit-ui',
'vite-plugin-istanbul',
'magic-regexp',
'express-jwt',
'vite-plugin-vue-devtools',
'bigint-buffer',
'@primeuix/utils',
'headers-utils',
'@reown/appkit-wallet',
'standard-version',
'@types/common-tags',
'fs-merger',
'expo-clipboard',
'react-big-calendar',
'@react-pdf/reconciler',
'@reown/appkit-polyfills',
'@ckeditor/ckeditor5-paste-from-office',
'@vue/babel-preset-app',
'exifr',
'@applitools/utils',
'turbo-windows-arm64',
'supabase',
'bip32',
'@pinojs/redact',
'mocked-exports',
'@walletconnect/core',
'@nrwl/node',
'brcast',
'@vercel/backends',
'@mux/mux-player-react',
'@lezer/cpp',
'temporal-polyfill',
'@visx/bounds',
'babel-preset-flow',
'@parcel/source-map',
'@zag-js/steps',
'@reown/appkit-scaffold-ui',
'@ffmpeg-installer/linux-x64',
'matchit',
'web3-providers-ws',
'lodash._createset',
'@ts-common/iterator',
'solc',
'dev-null',
'@nivo/axes',
'@supercharge/promise-pool',
'@apollo/federation-internals',
'@hubspot/api-client',
'@types/fontkit',
'@contentful/rich-text-react-renderer',
'@types/d3-sankey',
'promise-coalesce',
'@types/event-source-polyfill',
'@ng-bootstrap/ng-bootstrap',
'is-empty',
'babel-plugin-minify-replace',
'react-native-mmkv',
'lerc',
'@types/websocket',
'expose-loader',
'@walletconnect/logger',
'read-binary-file-arch',
'axios-ntlm',
'@langchain/langgraph-checkpoint',
'eslint-plugin-react-hooks-extra',
'babel-helper-is-void-0',
'pkcs7',
'babel-plugin-minify-flip-comparisons',
'@reown/appkit-controllers',
'gifsicle',
'@ngrx/operators',
'accept-language-parser',
'react-youtube',
'keyvaluestorage-interface',
'@pandacss/is-valid-prop',
'@nx/rollup',
'@fullcalendar/react',
'config-file-ts',
'is-odd',
'@middy/core',
'jsrsasign',
'drizzle-orm',
'aws-crt',
'@pnpm/logger',
'@vue/cli-service',
'@eslint/markdown',
'@parcel/graph',
'radash',
'@types/bson',
'vitest-mock-extended',
'babel-cli',
'vite-plugin-eslint',
'@tanstack/react-query-persist-client',
'@esbuild-kit/esm-loader',
'react-native-linear-gradient',
'@secretlint/config-creator',
'@loadable/component',
'@ckeditor/ckeditor5-basic-styles',
'@secretlint/secretlint-rule-preset-recommend',
'@zag-js/highlight-word',
'@lerna/prerelease-id-from-version',
'@types/web',
'espurify',
'zlibjs',
'@nx/esbuild',
'@aws-sdk/hash-blob-browser',
'react-json-tree',
'@pulumi/aws',
'react-gtm-module',
'assert-options',
'esm-resolve',
'zhead',
'imagemin-svgo',
'@graphql-yoga/logger',
'native-request',
'geist',
'@lerna/describe-ref',
'component-indexof',
'@ai-sdk/ui-utils',
'@vue/cli-overlay',
'@lerna/npm-run-script',
'react-spinners',
'react-signature-canvas',
'cids',
'@types/glob-to-regexp',
'@vercel/cervel',
'hast-util-phrasing',
'@lerna/get-npm-exec-opts',
'fs-access',
'@nestjs/apollo',
'babel-plugin-transform-property-literals',
'babel-plugin-transform-simplify-comparison-operators',
'@parcel/transformer-js',
'howler',
'@esbuild-kit/core-utils',
'x-default-browser',
'maxmin',
'escape-carriage',
'http-auth',
'@aws-amplify/api',
'ts-md5',
'color-space',
'@trpc/client',
'@babel/helper-builder-react-jsx-experimental',
'@visx/tooltip',
'@ark-ui/react',
'genfun',
'parse-semver',
'redis-info',
'@uiw/codemirror-themes',
'@types/dom-speech-recognition',
'tiny-typed-emitter',
'react-moment-proptypes',
'eslint-plugin-svelte',
'@types/escape-html',
'babel-plugin-syntax-function-bind',
'babel-plugin-minify-mangle-names',
'babel-plugin-transform-do-expressions',
'babel-plugin-transform-react-jsx-self',
'rhea',
'dropzone',
'expo-camera',
'teamcity-service-messages',
'@parcel/packager-js',
'@nevware21/ts-async',
'chartjs-plugin-annotation',
'externality',
'web3-core-promievent',
'@cucumber/junit-xml-formatter',
'@svgdotjs/svg.draggable.js',
'@date-io/luxon',
'onnxruntime-web',
'semver-dsl',
'soap',
'temporal-spec',
'karma-webpack',
'multiparty',
'p-settle',
'imagemin-optipng',
'is-gif',
'parse-author',
'@bull-board/api',
'@storybook/addon-webpack5-compiler-babel',
'is-immutable-type',
'@aws-cdk/cx-api',
'babel-plugin-minify-numeric-literals',
'@aws-amplify/api-rest',
'@types/swagger-schema-official',
'jsftp',
'@walletconnect/events',
'@orval/core',
'@intlify/bundle-utils',
'@codemirror/lang-php',
'@netlify/binary-info',
'babel-plugin-syntax-do-expressions',
'deasync',
'ktx-parse',
'babel-plugin-transform-remove-undefined',
'@parcel/resolver-default',
'@zag-js/scroll-snap',
'bootstrap-icons',
'@aws-amplify/api-graphql',
'@zag-js/tour',
'@aws-amplify/storage',
'typeforce',
'apollo-link-http',
'postcss-sort-media-queries',
'@microsoft/applicationinsights-channel-js',
'geojson',
'@angular/material-moment-adapter',
'markdown-it-emoji',
'imagemin-gifsicle',
'@aws-sdk/client-textract',
'@google-cloud/opentelemetry-resource-util',
'@styled-system/shadow',
'@vercel/otel',
'@material/density',
'cssnano-preset-advanced',
'buffer-shims',
'@lerna/filter-options',
'@uidotdev/usehooks',
'oxlint',
'react-json-view-lite',
'@types/bootstrap',
'@connectrpc/connect',
'debug-fabulous',
'argv',
'@aws-amplify/analytics',
'dotenv-flow',
'babel-plugin-transform-inline-consecutive-adds',
'gettext-parser',
'focus-visible',
'json11',
'ecstatic',
'remark-mdx-frontmatter',
'@antv/util',
'@preact/signals',
'swagger-schema-official',
'@types/googlemaps',
'md5-o-matic',
'react-paginate',
'reserved',
'@lerna/prompt',
'@evocateur/npm-registry-fetch',
'gm',
'@ioredis/as-callback',
'@ai-sdk/react',
'@types/react-copy-to-clipboard',
'babel-plugin-transform-regexp-constructors',
'ethjs-util',
'until-async',
'optipng-bin',
'worker-timers',
'apg-lite',
'nice-grpc-client-middleware-retry',
'@lerna/changed',
'@t3-oss/env-core',
'@lerna/init',
'@lerna/import',
'@lerna/link',
'http-cookie-agent',
'snyk',
'@metamask/providers',
'@lerna/run-lifecycle',
'@appium/docutils',
'cypress-terminal-report',
'@lerna/write-log-file',
'@formatjs/intl-locale',
'@eslint-react/eff',
'@lerna/symlink-dependencies',
'@lerna/symlink-binary',
'@lerna/npm-install',
'@microsoft/applicationinsights-properties-js',
'@types/mongodb',
'@parcel/namer-default',
'smtp-address-parser',
'pop-iterate',
'@lerna/npm-dist-tag',
'make-error-cause',
'overlayscrollbars',
'@leafygreen-ui/polymorphic',
'react-native-permissions',
'@lerna/check-working-tree',
'@lerna/output',
'amqp-connection-manager',
'@lerna/global-options',
'babel-plugin-minify-type-constructors',
'summary',
'@codemirror/lang-cpp',
'jasmine-reporters',
'@lerna/listable',
'path-equal',
'@backstage/backend-plugin-api',
'@material/notched-outline',
'babel-plugin-minify-constant-folding',
'postcss-prefix-selector',
'@aws-sdk/s3-presigned-post',
'child_process',
'isomorphic-rslog',
'babel-plugin-minify-infinity',
'react-native-tab-view',
'@microsoft/applicationinsights-analytics-js',
'babel-plugin-transform-merge-sibling-variables',
'worker-timers-broker',
'uuidv4',
'apache-crypt',
'level-codec',
'ansi-escape-sequences',
'@storybook/addon-webpack5-compiler-swc',
'@contrast/fn-inspect',
'@parcel/core',
'vue-component-meta',
'buffer-json',
'@tanstack/react-form',
'babel-plugin-transform-function-bind',
'async-disk-cache',
'@react-hook/resize-observer',
'canvaskit-wasm',
'mout',
'@microsoft/applicationinsights-web',
'@aws-amplify/datastore',
'@material/floating-label',
'better-auth',
'npm-lifecycle',
'storybook-addon-pseudo-states',
'level-concat-iterator',
'tailwind-scrollbar',
'@lerna/run-topologically',
'@lerna/command',
'@types/dotenv',
'safe-execa',
'd3-interpolate-path',
'jsbarcode',
'@hookform/error-message',
'@types/base16',
'@ckeditor/ckeditor5-autoformat',
'puppeteer-extra-plugin',
'@electron/fuses',
'babel-plugin-transform-undefined-to-void',
'hast-util-minify-whitespace',
'colormin',
'difflib',
'@formatjs/cli',
'react-simple-animate',
'url-polyfill',
'@firebase/vertexai',
'emoji-picker-react',
'@phosphor-icons/react',
'component-classes',
'babel-helper-flip-expressions',
'@lerna/exec',
'discord-api-types',
'babel-plugin-transform-remove-debugger',
'eslint-plugin-local-rules',
'@babel/plugin-transform-object-assign',
'@rjsf/core',
'find-cypress-specs',
'@csstools/postcss-alpha-function',
'jsonp',
'load-plugin',
'@wdio/mocha-framework',
'eslint-restricted-globals',
'@ckeditor/ckeditor5-block-quote',
'@rushstack/package-deps-hash',
'esprima-next',
'@nestjs/platform-fastify',
'web3-eth-accounts',
'web3-net',
'@angular/service-worker',
'@testing-library/vue',
'@lerna/github-client',
'array-parallel',
'@stablelib/wipe',
'@rollup/plugin-yaml',
'@vue/cli-plugin-vuex',
'@hotwired/turbo',
'@reach/portal',
'is-html',
'broccoli-kitchen-sink-helpers',
'@stdlib/number-float64-base-normalize',
'@vue/cli-plugin-router',
'@jimp/js-jpeg',
'@parcel/transformer-json',
'@parcel/bundler-default',
'json-rpc-engine',
'web3-eth-personal',
'web3-eth',
'@material/tokens',
'@amplitude/plugin-network-capture-browser',
'react-outside-click-handler',
'lodash._basefor',
'@react-native-masked-view/masked-view',
'json-source-map',
'react-imask',
'galactus',
'@achrinza/node-ipc',
'fixturify-project',
'react-debounce-input',
'proj4',
'@lerna/filter-packages',
'rate-limit-redis',
'@nivo/scales',
'react-dates',
'@vue/cli-plugin-babel',
'babel-helper-is-nodes-equiv',
'callsite-record',
'@oxlint/linux-x64-gnu',
'cosmiconfig-toml-loader',
'flow-bin',
'babel-preset-stage-0',
'@material/radio',
'@netlify/dev-utils',
'o11y_schema',
'react-easy-swipe',
'react-with-direction',
'ripple-binary-codec',
'@types/dagre',
'@types/babylon',
'@svgr/cli',
'@types/react-grid-layout',
'@types/ip',
'@lerna/timer',
'culori',
'response-time',
'@walletconnect/jsonrpc-http-connection',
'serverless-offline',
'structured-clone-es',
'@parcel/reporter-dev-server',
'@netlify/open-api',
'@parcel/compressor-raw',
'web3-core-requestmanager',
'vue-inbrowser-compiler-independent-utils',
'notepack.io',
'css-animation',
'babel-plugin-transform-minify-booleans',
'@sanity/mutate',
'web3-eth-ens',
'web3-core-method',
'@parcel/packager-raw',
'@hapi/h2o2',
'openapi-path-templating',
'@types/gapi',
'@types/core-js',
'@mui/x-charts',
'@svgdotjs/svg.select.js',
'koa-is-json',
'ci-parallel-vars',
'@vis.gl/react-google-maps',
'@types/flat',
'@stoplight/spectral-cli',
'lokijs',
'react-native-iphone-x-helper',
'ink-text-input',
'@solana/addresses',
'@stablelib/binary',
'@pinia/nuxt',
'@zag-js/toggle',
'worker-timers-worker',
'@chakra-ui/color-mode',
'lock',
'esbuild-linux-riscv64',
'@types/babel__code-frame',
'colornames',
'@fullcalendar/list',
'@neon-rs/load',
'react-responsive-carousel',
'orval',
'@ast-grep/napi-linux-x64-gnu',
'@material/focus-ring',
'@lerna/conventional-commits',
'@zag-js/listbox',
'react-devtools-inline',
'@chakra-ui/icon',
'little-state-machine',
'eslint-plugin-markdown',
'@codemirror/lang-java',
'global-tunnel-ng',
'@intercom/messenger-js-sdk',
'@react-types/color',
'@material/progress-indicator',
'parse-listing',
'@datadog/openfeature-node-server',
'lodash.intersection',
'array-series',
'@lerna/rimraf-dir',
'@material/line-ripple',
'@solana/buffer-layout-utils',
'@lerna/npm-publish',
'@lerna/resolve-symlink',
'openapi-server-url-templating',
'velocityjs',
'@lerna/has-npm-version',
'keycharm',
'@lingui/message-utils',
'@types/grecaptcha',
'@lezer/java',
'@lerna/query-graph',
'@svgdotjs/svg.resize.js',
'findit2',
'@docusaurus/plugin-google-analytics',
'qrcode-generator',
'@lerna/log-packed',
'@protobuf-ts/protoc',
'tiny-secp256k1',
'@types/aws4',
'react-motion',
'kew',
'@types/d3-voronoi',
'daisyui',
'argon2',
'ce-la-react',
'@docusaurus/plugin-debug',
'@yarnpkg/shell',
'@nivo/annotations',
'fishery',
'html2pdf.js',
'reactstrap',
'simplebar',
'@temporalio/core-bridge',
'@types/punycode',
'bent',
'autosuggest-highlight',
'@unocss/config',
'@unhead/shared',
'@visx/grid',
'browser-tabs-lock',
'semver-intersect',
'geotiff',
'@svgdotjs/svg.filter.js',
'@gulp-sourcemaps/map-sources',
'unist-util-inspect',
'@vitejs/plugin-legacy',
'@appium/logger',
'karma-mocha',
'@zag-js/angle-slider',
'url-search-params-polyfill',
'hyperid',
'webpack-stats-plugin',
'@browserbasehq/sdk',
'@ledgerhq/errors',
'hash-stream-validation',
'size-sensor',
'@stablelib/random',
'normalizr',
'github-url-from-git',
'@redux-devtools/extension',
'@mapbox/geojson-types',
'metro-minify-uglify',
'@zxing/library',
'@lerna/pack-directory',
'@zag-js/floating-panel',
'@prisma/dev',
'rollup-plugin-esbuild',
'recoil',
'@fontsource/inter',
'@lerna/get-packed',
'@swagger-api/apidom-ns-json-schema-2020-12',
'@types/react-virtualized-auto-sizer',
'@swagger-api/apidom-ns-json-schema-2019-09',
'@stardazed/streams-text-encoding',
'esbuild-linux-s390x',
'@parcel/fs-search',
'@aws-sdk/util-stream-node',
'@types/ssh2-sftp-client',
'eth-ens-namehash',
'@types/react-resizable',
'@vue/web-component-wrapper',
'@jsdevtools/coverage-istanbul-loader',
'thrift',
'@arr/every',
'@azu/style-format',
'eslint-plugin-filenames',
'console-stream',
'is-localhost-ip',
'@lerna/collect-uncommitted',
'@istanbuljs/nyc-config-typescript',
'@formatjs/intl-pluralrules',
'babel-helper-to-multiple-sequence-expressions',
'karma-firefox-launcher',
'@cspell/dict-en-gb-mit',
'react-native-maps',
'bufferstreams',
'@nrwl/web',
'@chakra-ui/react-utils',
'@fullstory/browser',
'@unhead/dom',
'@formatjs/intl-numberformat',
'is-relative-url',
'@discordjs/collection',
'@nx/rspack',
'@prettier/plugin-xml',
'semver-utils',
'dom-event-types',
'ngx-toastr',
'@ckeditor/ckeditor5-link',
'lpad-align',
'lodash.orderby',
'@lerna/version',
'logalot',
'@azure/functions',
'@netlify/runtime-utils',
'@lerna/bootstrap',
'@orval/query',
'@orval/axios',
'@orval/angular',
'cloudinary',
'@orval/swr',
'graphology-utils',
'@lerna/cli',
'simple-html-tokenizer',
'@lerna/list',
'@types/tsscmp',
'dotignore',
'@jimp/plugin-quantize',
'@google-cloud/opentelemetry-cloud-trace-exporter',
'appium-adb',
'web3-core-helpers',
'@ckeditor/ckeditor5-media-embed',
'swrv',
'@pulumi/docker',
'copy-text-to-clipboard',
'@biomejs/cli-linux-arm64',
'@solana/web3.js',
'@orval/zod',
'@node-ipc/js-queue',
'code-red',
'expo-symbols',
'@turf/geojson-rbush',
'@lezer/php',
'@types/cypress',
'csurf',
'@react-native-clipboard/clipboard',
'@codesandbox/sandpack-client',
'apollo-cache',
'@lerna/otplease',
'puppeteer-extra-plugin-user-preferences',
'author-regex',
'@ibm-cloud/openapi-ruleset',
'react-loadable-ssr-addon-v5-slorber',
'vasync',
'pg-gateway',
'@types/lodash.memoize',
'@intlify/unplugin-vue-i18n',
'unified-engine',
'bippy',
'eslint-plugin-i18next',
'snappyjs',
'web3-shh',
'cucumber-expressions',
'utf7',
'@googlemaps/google-maps-services-js',
'@cosmjs/encoding',
'htmlfy',
'better-call',
'zenscroll',
'esbuild-android-64',
'@types/react-highlight-words',
'@nx/storybook',
'angular',
'@stdlib/assert-has-tostringtag-support',
'oidc-client-ts',
'birecord',
'@nestjs/serve-static',
'glob-escape',
'@xml-tools/parser',
'serialize-query-params',
'@appium/tsconfig',
'propagating-hammerjs',
'cypress-iframe',
'@xterm/xterm',
'rehype-minify-whitespace',
'floating-vue',
'@graphql-codegen/near-operation-file-preset',
'es-cookie',
'get-size',
'countup.js',
'react-native-animatable',
'hash-wasm',
'react-innertext',
'@ledgerhq/hw-transport',
'@types/moment-timezone',
'@elastic/ecs-helpers',
'@lottiefiles/dotlottie-web',
'@types/wicg-file-system-access',
'@electric-sql/pglite-tools',
'graphql-language-service',
'@zag-js/password-input',
'netlify',
'@azu/format-text',
'scriptjs',
'web3-bzz',
'@types/fluent-ffmpeg',
'@lhci/utils',
'rolldown-plugin-dts',
'chai-http',
'@vanilla-extract/dynamic',
'ipx',
'finity',
'@appium/base-plugin',
'@effect/platform',
'react-window-infinite-loader',
'@lerna/pulse-till-done',
'@codemirror/lang-sass',
'@react-hook/intersection-observer',
'ftp-response-parser',
'simple-xml-to-json',
'uri-templates',
'oboe',
'vite-svg-loader',
'@types/bytes',
'react-native-blob-util',
'rollup-plugin-sourcemaps',
'@vercel/fastify',
'@types/styled-system',
'@glimmer/interfaces',
'@solana/spl-token-metadata',
'@aws-sdk/ec2-metadata-service',
'@nestjs/event-emitter',
'@lhci/cli',
'@mantine/dates',
'@phc/format',
'ripple-keypairs',
'move-file',
'@ckeditor/ckeditor5-image',
'@stdlib/assert-has-symbol-support',
'dommatrix',
'@napi-rs/nice-linux-arm64-gnu',
'framebus',
'puppeteer-extra-plugin-user-data-dir',
'@material/checkbox',
'@stdlib/utils-define-property',
'dag-map',
'@rollup/plugin-virtual',
'rou3',
'pg-hstore',
'smartwrap',
'react-floater',
'@lmdb/lmdb-linux-arm64',
'benchmark',
'@emmetio/abbreviation',
'infima',
'@stylistic/eslint-plugin-ts',
'@remix-run/react',
'@fastify/swagger-ui',
'@jimp/file-ops',
'@vscode/test-electron',
'varuint-bitcoin',
'js-md5',
'bytesish',
'njwt',
'encode-registry',
'axe-playwright',
'is-type-of',
'normalize-wheel',
'intl-format-cache',
'@npmcli/ci-detect',
'@nrwl/linter',
'@prisma/schema-files-loader',
'ember-cli-htmlbars',
'@parcel/hash',
'@napi-rs/nice-win32-x64-msvc',
'@ckeditor/ckeditor5-watchdog',
'jest-fail-on-console',
'@unocss/rule-utils',
'spec-change',
'secretlint',
'expo-localization',
'@tree-sitter-grammars/tree-sitter-yaml',
'babel-preset-minify',
'@types/draft-js',
'@orval/mock',
'cuid',
'@types/k6',
'browser-image-compression',
'bitcoinjs-lib',
'reading-time',
'require-and-forget',
'squeak',
'@hookform/devtools',
'@oxc-transform/binding-linux-x64-gnu',
'es6-templates',
'@storybook/addon-storysource',
'@oclif/color',
'@ionic/utils-object',
'web3-core-subscriptions',
'@ledgerhq/devices',
'turndown-plugin-gfm',
'@types/chart.js',
'find-my-way-ts',
'eslint-config-xo',
'yosay',
'electron-updater',
'@swagger-api/apidom-ns-arazzo-1',
'@changesets/get-github-info',
'commitlint',
'puppeteer-extra-plugin-stealth',
'babel-import-util',
'@fluentui/react-context-selector',
'@glimmer/syntax',
'pofile',
'@vscode/vsce-sign',
'@codemirror/lang-rust',
'@messageformat/runtime',
'@types/hapi__joi',
'@stdlib/math-base-napi-binary',
'@percy/logger',
'html-to-react',
'turf-jsts',
'@stdlib/regexp-function-name',
'idna-uts46-hx',
'onnxruntime-node',
'@opentelemetry/winston-transport',
'eslint-config-google',
'require-at',
'ng-mocks',
'@unocss/preset-mini',
'derive-valtio',
'@swagger-api/apidom-parser-adapter-arazzo-yaml-1',
'@swagger-api/apidom-parser-adapter-arazzo-json-1',
'@stdlib/assert-tools-array-function',
'@capacitor/app',
'@rive-app/canvas',
'@orval/hono',
'@chakra-ui/system',
'axios-proxy-builder',
'emmet',
'@microsoft/applicationinsights-cfgsync-js',
'null-check',
'@stdlib/string-replace',
'@swaggerexpert/cookie',
'@stdlib/string-base-format-tokenize',
'breakword',
'yorkie',
'lambda-local',
'shadcn',
'@electron-forge/shared-types',
'@react-native/debugger-shell',
'@applitools/screenshoter',
'expo-av',
'linkify-react',
'combine-promises',
'@headlessui/tailwindcss',
'@graphql-inspector/core',
'deprecated-decorator',
'@rjsf/validator-ajv8',
'@stdlib/assert-is-array',
'@stdlib/assert-is-buffer',
'@stdlib/process-cwd',
'base64-url',
'@react-router/express',
'@noble/ed25519',
'@stdlib/utils-constructor-name',
'react-instantsearch-core',
'oauth-1.0a',
'ember-cli-typescript',
'apollo-server-caching',
'@jimp/js-tiff',
'@emmetio/scanner',
'@stdlib/utils-define-nonenumerable-read-only-property',
'json-rpc-random-id',
'tslint-config-prettier',
'@sentry/cli-win32-arm64',
'sweepline-intersections',
'@react-spring/native',
'ts-json-schema-generator',
'hermes-compiler',
'@stdlib/fs-resolve-parent-path',
'loglevelnext',
'@fullstory/snippet',
'@stdlib/utils-get-prototype-of',
'@types/testing-library__dom',
'@changesets/changelog-github',
'is-error',
'@orval/fetch',
'@docusaurus/plugin-google-tag-manager',
'ibm-cloud-sdk-core',
'@storybook/addon-styling-webpack',
'reka-ui',
'tty-table',
'gradle-to-js',
'rehype-prism-plus',
'next-i18next',
'@storybook/jest',
'fs-jetpack',
'sver',
'partial-json',
'oxc-minify',
'url-toolkit',
'datadog-lambda-js',
'@emmetio/css-abbreviation',
'@stdlib/utils-library-manifest',
'web3-eth-contract',
'react-composer',
'@material/tab',
'@messageformat/date-skeleton',
'@aws-sdk/client-rekognition',
'@secretlint/profiler',
'@braintree/wrap-promise',
'@applitools/spec-driver-webdriver',
'bind-event-listener',
'@volar/language-service',
'rss-parser',
'@fastify/multipart',
'@stdlib/assert-has-own-property',
'mersenne-twister',
'safevalues',
'animate.css',
'eslint-rule-docs',
'bmp-ts',
'@percy/client',
'@googlemaps/url-signature',
'@stdlib/array-float64',
'@applitools/nml-client',
'document.contains',
'@types/promise.allsettled',
'@unocss/extractor-arbitrary-variants',
'del-cli',
'@ngneat/falso',
'react-diff-viewer-continued',
'@lerna/info',
'@ewoudenberg/difflib',
'@google-cloud/logging-winston',
'react-native-swipe-gestures',
'@types/json2csv',
'@huggingface/jinja',
'@applitools/req',
'@stdlib/math-base-assert-is-nan',
'@tailwindcss/cli',
'size-limit',
'@graphiql/toolkit',
'react-phone-input-2',
'hi-base32',
'@vscode/emmet-helper',
'svg-pan-zoom',
'@opencensus/propagation-b3',
'react-simple-code-editor',
'console-polyfill',
'css-tokenize',
'@uppy/companion-client',
'brotli-wasm',
'@transloadit/prettier-bytes',
'babel-plugin-debug-macros',
'apollo-graphql',
'binary-search-bounds',
'@types/debounce',
'@types/sharp',
'@amplitude/plugin-web-vitals-browser',
'@stdlib/assert-is-uint32array',
'@jimp/plugin-hash',
'@napi-rs/nice-linux-arm64-musl',
'@stdlib/utils-escape-regexp-string',
'flexsearch',
'generate-password',
'@ibm-cloud/openapi-ruleset-utilities',
'jetifier',
'@metamask/object-multiplex',
'parse-css-color',
'@jimp/js-png',
'@leafygreen-ui/typography',
'@applitools/core-base',
'@types/mjml',
'sass-embedded-linux-arm64',
'slate-dom',
'@stdlib/array-uint16',
'emojibase',
'@stdlib/assert-has-uint16array-support',
'rewire',
'xml-utils',
'@percy/core',
'@material/layout-grid',
'sort-on',
'@stablelib/int',
'@stdlib/assert-is-float32array',
'@compodoc/compodoc',
'@stdlib/assert-is-number',
'modern-screenshot',
'add',
'@gulpjs/messages',
'victory-core',
'braintree-web',
'cli-spinner',
'to-px',
'react-with-styles-interface-css',
'is-json',
'iframe-resizer',
'@messageformat/number-skeleton',
'vite-plugin-html',
'@stdlib/fs-exists',
'@langchain/weaviate',
'final-form',
'@aws-cdk/asset-kubectl-v20',
'srvx',
'pad-component',
'@stdlib/utils-global',
'@angular/elements',
'@react-spring/zdog',
'appium-chromedriver',
'@types/is-empty',
'@browserbasehq/stagehand',
'@golevelup/ts-jest',
'@stdlib/assert-is-regexp',
'dpop',
'@stdlib/assert-is-boolean',
'@rushstack/rush-sdk',
'@rushstack/problem-matcher',
'@peculiar/asn1-cms',
'@formatjs/intl-relativetimeformat',
'vega-expression',
'natives',
'eslint-plugin-check-file',
'@types/rbush',
'aws-jwt-verify',
'@aws-lambda-powertools/logger',
'@peculiar/asn1-csr',
'content-security-policy-builder',
'@applitools/ufg-client',
'@biomejs/cli-linux-arm64-musl',
'fontace',
'digest-fetch',
'@stdlib/assert-is-object',
'chokidar-cli',
'@stdlib/constants-uint16-max',
'standardwebhooks',
'json-logic-js',
'lodash.create',
'@percy/cli',
'@stdlib/assert-is-function',
'react-virtual',
'@react-native-firebase/messaging',
'@stdlib/utils-convert-path',
'awesome-phonenumber',
'scroll',
'@probe.gl/stats',
'@asyncapi/parser',
'@percy/cli-exec',
'polygon-clipping',
'uzip',
'lodash._shimkeys',
'satori',
'parenthesis',
'@percy/cli-build',
'@stdlib/utils-native-class',
'eslint-plugin-react-dom',
'moment-duration-format',
'cucumber-messages',
'@types/moment',
'ink-gradient',
'staged-git-files',
'@hey-api/json-schema-ref-parser',
'graphql-yoga',
'@rspack/cli',
'@stdlib/assert-is-plain-object',
'leveldown',
'@percy/config',
'@stdlib/math-base-napi-unary',
'flowbite',
'@lit/react',
'@scalar/openapi-types',
'desm',
'@jspm/core',
'slug',
'@messageformat/core',
'@lerna/clean',
'@lerna/add',
'@stdlib/assert-is-float64array',
'@tiptap/extension-character-count',
'short-uuid',
'@hotwired/turbo-rails',
'eslint-plugin-no-relative-import-paths',
'@oclif/plugin-update',
'@probe.gl/env',
'@material/switch',
'merge-class-names',
'@t3-oss/env-nextjs',
'react-native-keyboard-controller',
'@stdlib/assert-has-float32array-support',
'@types/pegjs',
'@headlessui/vue',
'@stdlib/constants-float64-ninf',
'xml-but-prettier',
'@lerna/create-symlink',
'express-fileupload',
'@stdlib/regexp-extended-length-path',
'ismobilejs',
'@material/tab-indicator',
'@date-fns/utc',
'@lezer/go',
'wgs84',
'@material/fab',
'@stdlib/number-float64-base-to-float32',
'ts-debounce',
'postcss-styled-syntax',
'@metamask/eth-json-rpc-provider',
'@storybook/manager-webpack5',
'@oven/bun-linux-x64-musl-baseline',
'@metamask/superstruct',
'react-uid',
'eslint-plugin-typescript-sort-keys',
'@types/express-unless',
'first-match',
'is-base64',
'@oxc-resolver/binding-linux-arm64-gnu',
'@ledgerhq/logs',
'@vueuse/components',
'@percy/dom',
'jest-date-mock',
'babel-plugin-transform-runtime',
'brotli-size',
'@stdlib/constants-uint32-max',
'@fastify/helmet',
'runed',
'eslint-plugin-react-x',
'@peculiar/asn1-pkcs9',
'@solidity-parser/parser',
'@stdlib/os-float-word-order',
'@oven/bun-linux-x64-musl',
'@ngrx/router-store',
'is-touch-device',
'@lerna/profiler',
'http-headers',
'@nx/nest',
'@stdlib/assert-is-big-endian',
'@salesforce/schemas',
'@stdlib/assert-has-uint32array-support',
'@bull-board/express',
'with-open-file',
'@sentry-internal/node-cpu-profiler',
'@soda/get-current-script',
'rust-result',
'@types/throttle-debounce',
'@sentry/nestjs',
'clean-set',
'react-immutable-pure-component',
'@stdlib/array-uint32',
'@stdlib/math-base-assert-is-infinite',
'redux-actions',
'kebab-case',
'@stdlib/assert-has-uint8array-support',
'timezone-mock',
'is-string-blank',
'ngx-cookie-service',
'primevue',
'eslint-plugin-antfu',
'@types/async-lock',
'stockfish',
'strict-event-emitter-types',
'@stdlib/os-byte-order',
'@jimp/js-bmp',
'hotscript',
'@keystonehq/bc-ur-registry',
'libnpmconfig',
'@tiptap/extension-task-item',
'@metamask/sdk-communication-layer',
'http-https',
'tablesort',
'priorityqueuejs',
'gulp-concat',
'@tailwindcss/line-clamp',
'@turf/jsts',
'@csstools/postcss-color-function-display-p3-linear',
'tesseract.js-core',
'@secretlint/config-loader',
'tsdown',
'@secretlint/source-creator',
'@percy/cli-command',
'@edge-runtime/cookies',
'@lmdb/lmdb-darwin-arm64',
'@stdlib/string-base-format-interpolate',
'@secretlint/formatter',
'@secretlint/node',
'@stdlib/string-format',
'lossless-json',
'@arcanis/slice-ansi',
'spdx-license-list',
'analytics-node',
'react-scan',
'codemirror-graphql',
'@compodoc/ngd-transformer',
'@parcel/profiler',
'@wojtekmaj/enzyme-adapter-react-17',
'next-line',
'aws-sdk-client-mock-jest',
'@aws-sdk/client-sagemaker',
'eslint-plugin-chai-friendly',
'@rrweb/utils',
'@stdlib/complex-float32',
'@aduh95/viz.js',
'map-limit',
'@stdlib/types',
'pngquant-bin',
'type-of',
'omit.js',
'instantsearch.js',
'@types/vfile-message',
'remark-html',
'graphql-query-complexity',
'graphql-compose',
'svgpath',
'@stdlib/number-ctor',
'react-joyride',
'@stdlib/array-uint8',
'@chakra-ui/react',
'@craco/craco',
'@stdlib/number-float64-base-get-high-word',
'@vercel/routing-utils',
'@compodoc/ngd-core',
'@types/hapi__mimos',
'chunkd',
'chartjs-adapter-date-fns',
'@types/mjml-core',
'unicode-emoji-utils',
'@turf/quadrat-analysis',
'@stdlib/array-float32',
'@turf/nearest-neighbor-analysis',
'@emoji-mart/react',
'humanize-string',
'@mui/x-charts-vendor',
'@lerna/diff',
'@chakra-ui/tabs',
'@uppy/core',
'@applitools/tunnel-client',
'@nestjs/bullmq',
'lodash.startswith',
'extension-port-stream',
'@stdlib/constants-float64-min-base2-exponent-subnormal',
'@ariakit/core',
'unplugin-auto-import',
'@react-native-firebase/analytics',
'stylelint-config-recess-order',
'@bufbuild/buf',
'murmurhash3js',
'sonarqube-scanner',
'@ariakit/react',
'@lerna/publish',
'nestjs-cls',
'@braintree/uuid',
'@workos-inc/node',
'@types/vfile',
'speedometer',
'@material/auto-init',
'@chakra-ui/avatar',
'@vscode/vsce-sign-linux-x64',
'json-schema-faker',
'@lerna/run',
'elementtree',
'@google/gemini-cli-core',
'@lerna/npm-conf',
'@codemirror/lang-wast',
'oxc-walker',
'@sanity/comlink',
'@ng-select/ng-select',
'numbro',
'@types/pdfmake',
'xml-escape',
'@percy/cli-upload',
'@stdlib/assert-is-string',
'@verdaccio/core',
'@material/circular-progress',
'code-error-fragment',
'svelte-hmr',
'mgrs',
'@stdlib/constants-float64-pinf',
'@size-limit/file',
'@mui/x-virtualizer',
'@react-spring/konva',
'@nrwl/webpack',
'jsii-rosetta',
'supertap',
'splaytree-ts',
'@babel/eslint-plugin',
'appium',
'@0no-co/graphqlsp',
'@devexpress/error-stack-parser',
'@stdlib/utils-type-of',
'@stdlib/number-float64-base-exponent',
'@docsearch/js',
'@wojtekmaj/enzyme-adapter-utils',
'@solana/functional',
'uint8array-tools',
'@types/treeify',
'@stdlib/assert-is-uint8array',
'@stdlib/assert-has-float64array-support',
'@nivo/voronoi',
'@stdlib/constants-uint8-max',
'@stdlib/assert-is-uint16array',
'@scalar/types',
'ahooks',
'@stdlib/utils-noop',
'unzip-stream',
'@percy/env',
'java-invoke-local',
'eth-block-tracker',
'@nrwl/angular',
'@percy/cli-snapshot',
'@stdlib/constants-float64-max-base2-exponent-subnormal',
'type-level-regexp',
'polyclip-ts',
'trivial-deferred',
'density-clustering',
'@jimp/js-gif',
'regexp-clone',
'@sanity/ui',
'expo-sharing',
'@gulp-sourcemaps/identity-map',
'@stdlib/assert-has-node-buffer-support',
'monocle-ts',
'vanilla-picker',
'@volar/language-server',
'@jimp/diff',
'path-complete-extname',
'hamt_plus',
'unicode-length',
'vega-util',
'fastify-warning',
'lodash.istypedarray',
'imap',
'nativewind',
'@stdlib/math-base-special-copysign',
'@lmdb/lmdb-darwin-x64',
'codemaker',
'restricted-input',
'geojson-equality-ts',
'@peculiar/x509',
'@ast-grep/napi-linux-x64-musl',
'@microsoft/microsoft-graph-types',
'@aws-sdk/rds-signer',
'url-set-query',
'@applitools/ec-client',
'@choojs/findup',
'cpx',
'react-infinite-scroller',
'lodash._stringtopath',
'@secretlint/resolver',
'bip66',
'@codesandbox/sandpack-react',
'@storybook/expect',
'lodash.identity',
'next-seo',
'babel-plugin-minify-simplify',
'imagemin-pngquant',
'relative',
'@applitools/driver',
'nodemailer-fetch',
'win-release',
'locutus',
'@mdi/font',
'@coral-xyz/borsh',
'react-ga4',
'@svgr/rollup',
'@manypkg/tools',
'@ckeditor/ckeditor5-adapter-ckfinder',
'tiny-hashes',
'@turf/boolean-valid',
'logrocket',
'@unocss/preset-uno',
'react-with-styles',
'typescript-auto-import-cache',
'is-valid-domain',
'@testing-library/jest-native',
'@solana/promises',
'@tiptap/extension-subscript',
'@docusaurus/bundler',
'ink-select-input',
'react-hotkeys',
'@probe.gl/log',
'@chakra-ui/shared-utils',
'@stdlib/complex-float64',
'echarts-for-react',
'@types/request-ip',
'snappy',
'@types/google.accounts',
'node-simctl',
'@docusaurus/types',
'@codesandbox/nodebox',
'mime-match',
'@sanity/eventsource',
'ag-charts-enterprise',
'@solana/rpc-spec',
'@codemirror/language-data',
'color-alpha',
'@visx/responsive',
'@ibm-cloud/watsonx-ai',
'nodemailer-shared',
'@solana/nominal-types',
'react-final-form',
'react-addons-shallow-compare',
'rootpath',
'ndarray-pack',
'@snowplow/tracker-core',
'@eslint-react/eslint-plugin',
'class-is',
'@zkochan/which',
'@rails/activestorage',
'@types/content-type',
'progress-stream',
'next-sitemap',
'@jsii/spec',
'@types/component-emitter',
'@libsql/core',
'tsyringe',
'weaviate-client',
'@types/webpack-dev-server',
'koa-router',
'videojs-contrib-quality-levels',
'requestidlecallback',
'x-xss-protection',
'@tensorflow/tfjs-core',
'@types/svgo',
'@percy/cli-app',
'jstat',
'dasherize',
'@mapbox/polyline',
'@cosmjs/utils',
'namespace-emitter',
'@ag-grid-community/core',
'@uppy/store-default',
'http_ece',
'tesseract.js',
'@stdlib/number-float64-base-to-words',
'@resvg/resvg-js',
'@flatten-js/interval-tree',
'sync-disk-cache',
'regl',
'react-native-modal',
'stylelint-config-css-modules',
'hsts',
'proxy-memoize',
'@docusaurus/utils',
'@types/graphql',
'helmet-csp',
'@stdlib/number-float64-base-from-words',
'element-plus',
'volar-service-html',
'babel-plugin-import',
'karma-spec-reporter',
'libsql',
'@ai-sdk/svelte',
'currency.js',
'@stdlib/assert-is-object-like',
'nub',
'@react-navigation/drawer',
'@mapbox/geojson-area',
'@shuding/opentype.js',
'vitest-canvas-mock',
'@aws-sdk/client-translate',
'@ai-sdk/vue',
'@stdlib/constants-float64-exponent-bias',
'@stdlib/constants-float64-max-base2-exponent',
'react-plaid-link',
'global-cache',
'@solana/keys',
'checkpoint-client',
'@stdlib/constants-float64-high-word-exponent-mask',
'editor',
'express-handlebars',
'@solana/rpc-transport-http',
'@stylistic/eslint-plugin-js',
'@semantic-release/exec',
'parse-unit',
'@docusaurus/babel',
'@rushstack/heft-config-file',
'@types/ini',
'glslify',
'@ai-sdk/solid',
'taketalk',
'sass-embedded-linux-musl-arm64',
'@langchain/google-gauth',
'@interactjs/types',
'@stdlib/assert-is-little-endian',
'@aws-sdk/client-kendra',
'@types/teen_process',
'embla-carousel-fade',
'twig',
'non-layered-tidy-tree-layout',
'apollo-client',
'@unocss/preset-wind',
'react-select-event',
'apollo-cache-inmemory',
'@stdlib/complex-reimf',
'@nestjs/bull',
'@lerna/gitlab-client',
'@percy/cli-config',
'@aws-sdk/client-scheduler',
'oo-ascii-tree',
'@solana/rpc-transformers',
'@solana/rpc-parsed-types',
'static-browser-server',
'react-countup',
'extract-text-webpack-plugin',
'ansistyles',
'bcp-47-normalize',
'react-native-localize',
'function-loop',
'@solana/rpc-api',
'@corex/deepmerge',
'appium-uiautomator2-driver',
'@stdlib/complex-reim',
'@turf/boolean-concave',
'glslify-bundle',
'react-dnd-touch-backend',
'@chakra-ui/react-use-focus-on-pointer-down',
'dot-object',
'bitsyntax',
'@types/styled-jsx',
'winreg',
'@iconify/react',
'@elastic/ecs-pino-format',
'rehype-highlight',
'is-self-closing',
'gulp-header',
'@stdlib/math-base-special-ldexp',
'@jsforce/jsforce-node',
'groq-sdk',
'array-unflat-js',
'glsl-token-string',
'@solana/transaction-confirmation',
'@solana/rpc-subscriptions-spec',
'@types/hapi__shot',
'bytes-iec',
'cypress-recurse',
'@stdlib/streams-node-stdin',
'@solana/rpc',
'axios-cookiejar-support',
'@nuxt/eslint-config',
'langfuse',
'@solana/sysvars',
'cssjanus',
'@solana/rpc-subscriptions-channel-websocket',
'react-native-fs',
'css-box-shadow',
'electron-builder-squirrel-windows',
'@turf/boolean-touches',
'@aws-sdk/util-stream-browser',
'hpkp',
'@libsql/hrana-client',
'gts',
'@emotion/jest',
'@tiptap/extension-superscript',
'@stdlib/regexp-regexp',
'http-auth-connect',
'@solana/subscribable',
'@vuepic/vue-datepicker',
'referrer-policy',
'@chakra-ui/form-control',
'@vue/cli-plugin-eslint',
'@nivo/bar',
'use-immer',
'eslint-plugin-sort-keys-fix',
'@mui/x-license-pro',
'gh-got',
'@protobuf-ts/plugin',
'@types/relateurl',
'@stdlib/math-base-special-abs',
'opossum',
'glob-all',
'mailgun.js',
'envalid',
'jsonlines',
'@docusaurus/logger',
'@wdio/allure-reporter',
'@types/isomorphic-fetch',
'@types/react-csv',
'giturl',
'@lottiefiles/dotlottie-react',
'expo-document-picker',
'@slorber/remark-comment',
'@cdktf/hcl2json',
'fastparallel',
'@bahmutov/cypress-esbuild-preprocessor',
'eslint-plugin-formatjs',
'import-modules',
'@formkit/auto-animate',
'tus-js-client',
'@types/passport-google-oauth20',
'json-to-ast',
'@types/passport-oauth2',
'rtcpeerconnection-shim',
'@livekit/protocol',
'fabric',
'@material/tooltip',
'@types/json-stringify-safe',
'@langchain/google-genai',
'node-request-interceptor',
'decode-formdata',
'pg-format',
'@google-cloud/tasks',
'@snowplow/browser-tracker-core',
'@solana/spl-token-group',
'shell-escape',
'@types/babel__helper-plugin-utils',
'react-animate-height',
'@tinymce/tinymce-react',
'@ark/util',
'@unocss/transformer-variant-group',
'diagnostics',
'@growthbook/growthbook',
'custom-event-polyfill',
'typia',
'arktype',
'@docusaurus/utils-common',
'unleash-client',
'@types/mssql',
'@nivo/line',
'@flmngr/flmngr-server-node',
'newtype-ts',
'@wagmi/connectors',
'@mantine/notifications',
'mutationobserver-shim',
'@aws-sdk/client-location',
'volar-service-typescript',
'geojson-equality',
'react-from-dom',
'antlr4ts',
'graphql-playground-html',
'@types/stream-chain',
'date-and-time',
'rolldown-vite',
'ag-charts-core',
'react-native-share',
'@oxc-resolver/binding-linux-arm64-musl',
'@types/lodash.get',
'@stdlib/regexp-eol',
'dom-scroll-into-view',
'@apollo/server-plugin-landing-page-graphql-playground',
'@react-router/serve',
'expo-auth-session',
'string-split-by',
'@aws-sdk/client-codecommit',
'lodash._baseiteratee',
'@stdlib/buffer-ctor',
'vue-observe-visibility',
'@aws-sdk/eventstream-marshaller',
'unocss',
'tsutils-etc',
'@chakra-ui/react-env',
'nats',
'@types/hapi__catbox',
'@chakra-ui/react-use-safe-layout-effect',
'@types/ncp',
'true-myth',
'@zag-js/json-tree-utils',
'@types/got',
'@verdaccio/utils',
'@codemirror/lang-vue',
'@badeball/cypress-cucumber-preprocessor',
'@types/redux-logger',
'noop-fn',
'react-event-listener',
'sodium-native',
'@stdlib/constants-float64-smallest-normal',
'@ariakit/react-core',
'@75lb/deep-merge',
'@unocss/cli',
'@yarnpkg/core',
'trim-canvas',
'koa-body',
'@stdlib/utils-next-tick',
'@trpc/react-query',
'react-text-mask',
'glsl-token-whitespace-trim',
'@math.gl/web-mercator',
'@stdlib/cli-ctor',
'swagger-ui-react',
'custom-error-instance',
'@types/configstore',
'@node-rs/xxhash',
'@aws-sdk/chunked-blob-reader-native',
'alce',
'@types/stream-json',
'@docusaurus/utils-validation',
'env-var',
'@nuxt/eslint-plugin',
'typedarray-pool',
'@pnpm/resolver-base',
'@docusaurus/mdx-loader',
'langfuse-core',
'eslint-plugin-command',
'to-data-view',
'i18next-parser',
'@unocss/reset',
'@chakra-ui/popper',
'li',
'env-variable',
'@docusaurus/core',
'@types/showdown',
'wavesurfer.js',
'seamless-immutable',
'@metamask/eth-sig-util',
'react-native-render-html',
'async-cache',
'react-native-keyboard-aware-scroll-view',
'@stdlib/string-lowercase',
'wkt-parser',
'@aws-sdk/client-polly',
'iso8601-duration',
'dtype',
'simple-statistics',
'phantomjs-prebuilt',
'@braintree/event-emitter',
'react-measure',
'@napi-rs/nice-darwin-arm64',
'react-script-hook',
'@swaggerexpert/json-pointer',
'puppeteer-extra',
'rollup-plugin-peer-deps-external',
'get-node-dimensions',
'@compodoc/live-server',
'dup',
'@amplitude/session-replay-browser',
'glsl-inject-defines',
'web-push',
'opentype.js',
'@chakra-ui/alert',
'charcodes',
'nouislider',
'optional-js',
'connect-livereload',
'@unocss/preset-typography',
'express-async-errors',
'@braintree/iframer',
'@stdlib/process-read-stdin',
'@types/cron',
'@tiptap/extension-task-list',
'marchingsquares',
'telnet-client',
'@sanity/types',
'eslint-plugin-vuejs-accessibility',
'@google/gemini-cli',
'@rails/ujs',
'postject',
'dont-sniff-mimetype',
'scope-analyzer',
'@better-auth/core',
'grunt-contrib-watch',
'eslint-plugin-react-web-api',
'pre-commit',
'i18n',
'bip174',
'@nivo/arcs',
'lodash.noop',
'flora-colossus',
'@metamask/sdk',
'@oxlint/linux-x64-musl',
'@types/is-glob',
'@google-cloud/opentelemetry-cloud-monitoring-exporter',
'@chakra-ui/event-utils',
'@types/react-native-vector-icons',
'react-list',
'@unocss/transformer-compile-class',
'simplebar-core',
'@amplitude/rrweb-packer',
'@stitches/react',
'@emotion/css-prettifier',
'after-all-results',
'@stdlib/constants-float64-high-word-abs-mask',
'@types/testing-library__react',
'@ngrx/entity',
'@cosmjs/crypto',
'eslint-plugin-header',
'glsl-token-depth',
'countries-and-timezones',
'color-diff',
'pyodide',
'read-all-stream',
'@material-ui/pickers',
'@pnpm/crypto.polyfill',
'gl-mat4',
'@azure/cosmos',
'slate-hyperscript',
'gulp-sass',
'@cypress/browserify-preprocessor',
'@prisma/studio-core-licensed',
'@chakra-ui/transition',
'stylelint-config-html',
'vite-plugin-mkcert',
'@callstack/react-theme-provider',
'@atlaskit/theme',
'uuid-parse',
'@types/lockfile',
'@types/is-ci',
'preview-email',
'xrpl',
'@reown/appkit-pay',
'@types/url-parse',
'pretty-data',
'hash-it',
'@wallet-standard/base',
'downloadjs',
'@react-stately/layout',
'@unocss/transformer-directives',
'extend-object',
'@percy/webdriver-utils',
'commoner',
'@applitools/snippets',
'react-share',
'@unocss/inspector',
'@lezer/sass',
'hashery',
'color-normalize',
'@codemirror/lang-go',
'lodash._baseuniq',
'rollbar',
'eth-query',
'geojson-polygon-self-intersections',
'encoding-down',
'eslint-plugin-no-unsanitized',
'clean-yaml-object',
'@antv/matrix-util',
'death',
'superagent-proxy',
'@amplitude/analytics-node',
'@libsql/isomorphic-fetch',
'@zkochan/rimraf',
'eslint-ast-utils',
'@unocss/vite',
'@oxc-minify/binding-linux-x64-gnu',
'appium-webdriveragent',
'portal-vue',
'passwd-user',
'use-stick-to-bottom',
'minio',
'@stdlib/utils-regexp-from-string',
'glsl-token-inject-block',
'@solana/programs',
'@electron/windows-sign',
'@pnpm/core-loggers',
'split-array-stream',
'd3-queue',
'@wagmi/core',
'zstd-codec',
'spdx-expression-validate',
'country-list',
'@chakra-ui/object-utils',
'@types/hapi__hapi',
'react-native-view-shot',
'connect-pg-simple',
'imagemin-mozjpeg',
'cmd-extension',
'parse-duration',
'appium-ios-device',
'@segment/tsub',
'lodash._isnative',
'graphiql',
'hide-powered-by',
'@stdlib/buffer-from-string',
'messageformat-parser',
'vitepress',
'@types/p-queue',
'react-native-vision-camera',
'@stdlib/fs-read-file',
'glsl-token-descope',
'eslint-plugin-react-naming-convention',
'@codemirror/lang-less',
'get-object',
'username',
'@microsoft/rush-lib',
'@libsql/linux-x64-musl',
'@sheerun/mutationobserver-shim',
'@libsql/client',
'@unocss/preset-icons',
'cucumber-html-reporter',
'iced-lock',
'moment-range',
'@lmdb/lmdb-linux-arm',
'@stdlib/assert-is-regexp-string',
'@applitools/image',
'@emmetio/stream-reader-utils',
'parse-multipart-data',
'@types/react-gtm-module',
'@types/jest-image-snapshot',
'@tiptap/extension-typography',
'has-binary',
'@ckeditor/ckeditor5-theme-lark',
'@zag-js/scroll-area',
'inject-stylesheet',
'@n1ru4l/push-pull-async-iterable-iterator',
'@aws-sdk/url-parser-native',
'@sliphua/lilconfig-ts-loader',
'find-cache-directory',
'@types/stack-trace',
'glslify-deps',
'@sanity/image-url',
'currency-symbol-map',
'url-regex',
'i18n-js',
'@linear/sdk',
'@seznam/compose-react-refs',
'content-hash',
'music-metadata',
'@nx/next',
'@safe-global/safe-apps-provider',
'@unocss/preset-web-fonts',
'volar-service-css',
'volar-service-emmet',
'@n8n_io/riot-tmpl',
'eslint-plugin-toml',
'elastic-apm-node',
'@types/deep-diff',
'@stdlib/constants-float64-high-word-sign-mask',
'@nivo/pie',
'@unocss/preset-attributify',
'victory-pie',
'mdast-util-toc',
'@unocss/astro',
'estree-is-function',
'simple-is',
'jsdoctypeparser',
'@iconify-json/simple-icons',
'@aws-sdk/client-ecs',
'@unocss/preset-tagify',
'appium-android-driver',
'yarn-deduplicate',
'css-font-size-keywords',
'ngx-mask',
'tree-sync',
'@ai-sdk/xai',
'@gbulls-org/gbulls-sdk',
'@mapbox/geojson-normalize',
'@rsdoctor/client',
'lodash.keysin',
'@embroider/shared-internals',
'sass-embedded-win32-x64',
'@chakra-ui/breakpoint-utils',
'@opentelemetry/instrumentation-document-load',
'self-closing-tags',
'@graphiql/react',
'countries-list',
'@chakra-ui/react-context',
'@aws-sdk/client-comprehend',
'node-bitmap',
'doiuse',
'combine-errors',
'retimer',
'sswr',
'@types/html-minifier',
'express-openapi-validator',
'debug-log',
'@types/speakeasy',
'@types/dom-webcodecs',
'parse-color',
'@codegenie/serverless-express',
'bitmap-sdf',
'@aws-amplify/cache',
'sequelize-typescript',
'@chakra-ui/button',
'@ark/schema',
'nest-commander',
'typeof-article',
'conventional-changelog-cli',
'@bufbuild/buf-linux-x64',
'@stablelib/constant-time',
'@coral-xyz/anchor',
'@napi-rs/nice-darwin-x64',
'graphql-upload',
'@adyen/adyen-web',
'@rushstack/rush-azure-storage-build-cache-plugin',
'apollo-link-error',
'@chakra-ui/tag',
'@unocss/postcss',
'@chakra-ui/checkbox',
'@chakra-ui/live-region',
'@rushstack/rush-amazon-s3-build-cache-plugin',
'@libsql/isomorphic-ws',
'@codemirror/lang-angular',
'set-interval-async',
'@types/hogan.js',
'@n8n/tournament',
'mozjpeg',
'@playwright/browser-chromium',
'expo-image-manipulator',
'@rspack/binding-win32-x64-msvc',
'use-query-params',
'keychain',
'@chakra-ui/descendant',
'@chakra-ui/react-use-animation-state',
'@rspack/binding-linux-arm64-gnu',
'vis',
'osx-release',
'@applitools/socket',
'@applitools/dom-snapshot',
'@mozilla/readability',
'@wolfy1339/lru-cache',
'modern-normalize',
'@graphql-codegen/typescript-graphql-request',
'schemes',
'@libsql/linux-x64-gnu',
'@remix-run/node-fetch-server',
'@types/klaw',
'gulp-uglify',
'glsl-token-defines',
'signum',
'@shopify/react-native-skia',
'@rsbuild/plugin-react',
'@unocss/transformer-attributify-jsx',
'coffeeify',
'@intlify/vue-i18n-extensions',
'@turf/point-to-polygon-distance',
'wouter',
'urllib',
'@chakra-ui/close-button',
'@chakra-ui/popover',
'@nx/docker',
'picomatch-browser',
'use-deep-compare',
'ndarray-ops',
'@aws-sdk/client-eks',
'postmark',
'level-fix-range',
'@chakra-ui/table',
'svg-url-loader',
'console-grid',
'appium-ios-simulator',
'bunyan-debug-stream',
'@sphinxxxx/color-conversion',
'react-google-recaptcha-v3',
'@types/get-port',
'@types/pino-std-serializers',
'broccoli-caching-writer',
'htmlnano',
'properties-file',
'@types/handlebars',
'feature-policy',
'@chakra-ui/select',
'@chakra-ui/number-input',
'@gql.tada/internal',
'rusha',
'@langchain/anthropic',
'tcompare',
'napi-wasm',
'yaml-language-server',
'@types/co-body',
'jks-js',
'handlebars-utils',
'jest-html-reporter',
'glsl-token-scope',
'get-own-enumerable-keys',
'cross-dirname',
'merge-trees',
'@zxcvbn-ts/core',
'single-spa',
'@mdxeditor/editor',
'find-workspaces',
'@chakra-ui/progress',
'lz-utils',
'@openai/codex',
'turbo-ignore',
'bootstrap.native',
'ts-prune',
'aws-xray-sdk-mysql',
'appium-remote-debugger',
'lucide-vue-next',
'connected-react-router',
'vanilla-colorful',
'@amplitude/rrdom',
'react-waypoint',
'@mux/mux-data-google-ima',
'measured-reporting',
'fn-args',
'@luma.gl/constants',
'unified-lint-rule',
'@flmngr/flmngr-angular',
'@linaria/core',
'express-winston',
'koa-compress',
'verdaccio-htpasswd',
'@chakra-ui/layout',
'@chakra-ui/textarea',
'jest-localstorage-mock',
'aws-xray-sdk',
'@applitools/core',
'@chakra-ui/modal',
'array-range',
'flag-icons',
'@types/date-arithmetic',
'@snowplow/browser-tracker',
'@bufbuild/protoc-gen-es',
'@types/newrelic',
'eth-json-rpc-filters',
'@types/pino-pretty',
'eslint-plugin-mdx',
'@chakra-ui/theme-utils',
'@chakra-ui/react-use-interval',
'@solana/transaction-messages',
'eslint-etc',
'npm-keyword',
'@mysten/bcs',
'@chakra-ui/accordion',
'swrev',
'@aws-sdk/cloudfront-signer',
'@oclif/plugin-version',
'@chakra-ui/breadcrumb',
'@chakra-ui/image',
'unidiff',
'@emmetio/html-matcher',
'@zag-js/async-list',
'@chakra-ui/slider',
'@cloudflare/vitest-pool-workers',
'io-ts-types',
'react-display-name',
'@middy/util',
'aws-xray-sdk-postgres',
'sudo-block',
'xhr-request',
'@types/react-router-config',
'@nrwl/nx-plugin',
'use-effect-event',
'@chakra-ui/visually-hidden',
'@chakra-ui/skeleton',
'@aws-sdk/client-acm',
'svelte-preprocess',
'@codemirror/lang-liquid',
'funpermaproxy',
'hast-util-to-mdast',
'wagmi',
'@newrelic/fn-inspect',
'redux-form',
'aws-xray-sdk-express',
'@angular-builders/custom-webpack',
'react-router-dom-v5-compat',
'fnv-plus',
'@fluentui/react',
'eight-colors',
'@capacitor/status-bar',
'@eslint-react/kit',
'@chakra-ui/menu',
'css-font-style-keywords',
'@vanilla-extract/webpack-plugin',
'lodash.forown',
'json-schema-deref-sync',
'@chakra-ui/tooltip',
'@types/plotly.js',
'@metamask/json-rpc-middleware-stream',
'ignore-loader',
'expo-doctor',
'@chakra-ui/control-box',
'pkg-config',
'grunt-contrib-copy',
'detox',
'root-check',
'downgrade-root',
'karma-mocha-reporter',
'sqlite',
'pyright',
'pinia-plugin-persistedstate',
'plotly.js',
'victory-chart',
'@heroui/shared-utils',
'@types/signature_pad',
'@types/sqlite3',
'parse-help',
'yeoman-doctor',
'@types/webfontloader',
'@apphosting/common',
'@chakra-ui/portal',
'monocart-coverage-reports',
'@pnpm/ramda',
'default-user-agent',
'math-log2',
'package-changed',
'swagger-typescript-api',
'lodash._arrayeach',
'pmx',
'mappersmith',
'dom-css',
'@portabletext/toolkit',
'@bitgo/public-types',
'@chakra-ui/toast',
'mdast-add-list-metadata',
'ally.js',
'volar-service-typescript-twoslash-queries',
'yurnalist',
'@safe-global/safe-apps-sdk',
'@secretlint/secretlint-rule-no-dotenv',
'react-fit',
'unicode-substring',
'@braintree/extended-promise',
'error-callsites',
'@applitools/eyes',
'cypress-mochawesome-reporter',
'fixpack',
'to-gfm-code-block',
'stream-meter',
'arrgv',
'@secretlint/secretlint-formatter-sarif',
'remove-markdown',
'@types/imagemin',
'xhr-request-promise',
'@types/npm-package-arg',
'npm-check',
'@graphql-tools/load-files',
'@napi-rs/nice-linux-s390x-gnu',
'@chakra-ui/input',
'@sanity/icons',
'@parcel/rust',
'stream-chopper',
'grunt-contrib-clean',
'flatten-vertex-data',
'@types/react-scroll',
'@chakra-ui/spinner',
'@rsdoctor/sdk',
'@napi-rs/nice-freebsd-x64',
'@thednp/shorty',
'math-interval-parser',
'jest-fixed-jsdom',
'polybooljs',
'@verdaccio/streams',
'@braze/web-sdk',
'amd-name-resolver',
'@astrojs/check',
'@remix-run/dev',
'@tiptap/vue-3',
'@rork-ai/toolkit-sdk',
'@parcel/transformer-raw',
'@types/recharts',
'css-url-regex',
'@parcel/runtime-browser-hmr',
'empower-core',
'create-vite',
'node-localstorage',
'is_js',
'@eslint/config-inspector',
'unplugin-swc',
'@docusaurus/plugin-svgr',
'@napi-rs/nice-win32-arm64-msvc',
'verdaccio-audit',
'@connectrpc/connect-web',
'lucide-react-native',
'@types/sortablejs',
'@newrelic/superagent',
'monitor-event-loop-delay',
'@napi-rs/nice-linux-riscv64-gnu',
'@loaders.gl/images',
'@primeuix/styles',
'buffer-to-arraybuffer',
'resumer',
'react-linkify',
'@formatjs/intl-utils',
'physical-cpu-count',
'stylelint-no-unsupported-browser-features',
'@types/base-x',
'@orval/mcp',
'@tiptap/extension-code-block-lowlight',
'tap-yaml',
'oracledb',
'object-filter-sequence',
'@volar/kit',
'@oclif/plugin-commands',
'node-xlsx',
'memdown',
'number-to-words',
'@pulumi/random',
'azurite',
'@types/react-textarea-autosize',
'vue-property-decorator',
'@math.gl/types',
'@astrojs/language-server',
'utile',
'parent-require',
'@types/paypal-checkout-components',
'unplugin-icons',
'@netlify/config',
'glsl-token-properties',
'@img/sharp-linux-riscv64',
'async-value-promise',
'@chakra-ui/focus-lock',
'verdaccio',
'@applitools/dom-capture',
'@applitools/dom-shared',
'@nrwl/vite',
'elementary-circuits-directed-graph',
'p-debounce',
'@portabletext/react',
'@remix-run/express',
'file-sync-cmp',
'css-background-parser',
'yo',
'@sapphire/async-queue',
'react-native-modal-datetime-picker',
'@aws-sdk/signature-v4-crt',
'magic-bytes.js',
'original-url',
'dom-mutator',
'@angular-builders/common',
'glsl-token-assignments',
'string-replace-loader',
'@thednp/event-listener',
'@effect/platform-node-shared',
'jsii-pacmak',
'@emmetio/stream-reader',
'@chakra-ui/switch',
'css-font-stretch-keywords',
'@resvg/resvg-js-linux-x64-gnu',
'mock-property',
'clipboard-copy',
'@verdaccio/ui-theme',
'@typeform/embed',
'mipd',
'is-blob',
'@readme/openapi-parser',
'cypress-xpath',
'@types/on-finished',
'@chakra-ui/pin-input',
'eslint-mdx',
'@vercel/elysia',
'@js-temporal/polyfill',
'html-tag',
'react-docgen-typescript-plugin',
'JSV',
'@types/segment-analytics',
'shallow-compare',
'block-stream2',
'react-native-css-interop',
'@kafkajs/confluent-schema-registry',
'fake-xml-http-request',
'@rsdoctor/core',
'node-sql-parser',
'@expo/apple-utils',
'cpy-cli',
'default-uid',
'deep-metrics',
'@types/xmldom',
'@ckeditor/ckeditor5-remove-format',
'@types/google.analytics',
'vue-class-component',
'@types/nunjucks',
'json-server',
'@typescript-eslint/rule-tester',
'glsl-resolve',
'@rushstack/stream-collator',
'@unhead/ssr',
'eslint-config-riot',
'@types/psl',
'karma-sourcemap-loader',
'@pnpm/text.comments-parser',
'@docusaurus/cssnano-preset',
'color-id',
'@mapbox/mapbox-gl-draw',
'tap-mocha-reporter',
'@chakra-ui/stat',
'@chakra-ui/provider',
'graphviz',
'@metamask/sdk-install-modal-web',
'@docusaurus/module-type-aliases',
'@tracetail/react',
'@types/mimetext',
'victory-shared-events',
'@codexteam/icons',
'@portabletext/types',
'node-version',
'react-lottie',
'@chakra-ui/media-query',
'@parcel/runtime-service-worker',
'npm-api',
'sort-json',
'h3-js',
'add-px-to-style',
'@vendia/serverless-express',
'victory-axis',
'breadth-filter',
'react-date-range',
'@types/snowflake-sdk',
'@json2csv/formatters',
'@types/react-big-calendar',
'@parcel/packager-css',
'cli-list',
'unidecode',
'prefix-style',
'@pinecone-database/pinecone',
'substyle',
'@cosmjs/math',
'eslint-plugin-eslint-plugin',
'@types/cache-manager',
'lodash.every',
'font-measure',
'@parcel/transformer-babel',
'markdown-it-container',
'optional',
'@applitools/execution-grid-tunnel',
'@parcel/transformer-html',
'@parcel/transformer-posthtml',
'leb',
'nanoevents',
'@chakra-ui/counter',
'w-json',
'@vuetify/loader-shared',
'vite-plugin-vuetify',
'@ui5/fs',
'lodash._baseclone',
'appium-uiautomator2-server',
'hash-for-dep',
'tsd',
'plaid',
'victory-area',
'@ngrx/signals',
'stylelint-config-sass-guidelines',
'markdown-it-task-lists',
'react-router-redux',
'discord.js',
'@types/jwt-decode',
'@sap/xsenv',
'@napi-rs/nice-linux-ppc64-gnu',
'react-sortablejs',
'@atlaskit/pragmatic-drag-and-drop',
'@tensorflow/tfjs-backend-cpu',
'crypto-hash',
'@eslint-react/jsx',
'@ckeditor/ckeditor5-alignment',
'victory-group',
'webpack-core',
'helmet-crossdomain',
'@types/deep-equal',
'css-global-keywords',
'rhea-promise',
'@formatjs/intl-enumerator',
'react-medium-image-zoom',
'victory-selection-container',
'@nuxt/friendly-errors-webpack-plugin',
'@swc/plugin-styled-components',
'@parcel/transformer-image',
'split-skip',
'autobind-decorator',
'memjs',
'servify',
'ethereumjs-tx',
'html-whitespace-sensitive-tag-names',
'@google-cloud/vertexai',
'@xterm/headless',
'raven',
'@chakra-ui/radio',
'@conventional-changelog/git-client',
'@types/memoizee',
'victory-zoom-container',
'jsii-reflect',
'vite-plugin-storybook-nextjs',
'yaml-lint',
'@clerk/types',
'victory-legend',
'async-value',
'moize',
'@types/object-path',
'jalaali-js',
'victory-create-container',
'victory-cursor-container',
'@sapphire/shapeshift',
'@nrwl/nx-linux-x64-gnu',
'font-atlas',
'@stablelib/hash',
'@rushstack/rush-http-build-cache-plugin',
'sql-summary',
'react-native-video',
'micromark-extension-footnote',
'memory-streams',
'@sindresorhus/base62',
'@parcel/packager-svg',
'@mui/x-telemetry',
'is-browser',
'@rsdoctor/types',
'@oxc-resolver/binding-darwin-arm64',
'simple-oauth2',
'path-name',
'tagged-tag',
'bestzip',
'@verdaccio/config',
'alpinejs',
'@aws-sdk/client-codebuild',
'lodash._baseisequal',
'zlib',
'y-prosemirror',
'@stylistic/stylelint-plugin',
'dependency-path',
'gulp-replace',
'qunit',
'escape-string-applescript',
'gulp-match',
'vite-plugin-dynamic-import',
'pretender',
'svgo-loader',
'@textlint/markdown-to-ast',
'bops',
'@microsoft/eslint-formatter-sarif',
'cosmjs-types',
'nano-json-stream-parser',
'object-identity-map',
'jest-serializer-vue',
'@testcontainers/redis',
'@anthropic-ai/claude-agent-sdk',
'tiny-worker',
'sass-embedded-darwin-arm64',
'@napi-rs/nice-win32-ia32-msvc',
'@paypal/paypal-js',
'ionicons',
'rehype-rewrite',
'strip-comments-strings',
'@napi-rs/nice-android-arm-eabi',
'@vis.gl/react-maplibre',
'@pivanov/utils',
'fullname',
'lodash.isequalwith',
'@lexical/headless',
'@clerk/shared',
'@tanstack/query-sync-storage-persister',
'@langchain/google-common',
'instantsearch-ui-components',
'@csstools/postcss-contrast-color-function',
'victory-scatter',
'graph-data-structure',
'zod-from-json-schema',
'@wallet-standard/features',
'exeunt',
'@types/braintree-web',
'react-autosuggest',
'@types/express-jwt',
'env-string',
'shallow-clone-shim',
'@aws-sdk/util-create-request',
'pnpm-workspace-yaml',
'@mui/material-nextjs',
'blueimp-canvas-to-blob',
'@parcel/optimizer-image',
'@types/sequelize',
'@apollo/federation',
'@radix-ui/themes',
'@deck.gl/layers',
'@pnpm/read-package-json',
'@angular/ssr',
'lodash._arraycopy',
'@types/gradient-string',
'exports-loader',
'tether',
'eslint-template-visitor',
'@segment/analytics-page-tools',
'react-loadable',
'@newrelic/koa',
'@effect/platform-node',
'd3-hexbin',
'@vanilla-extract/sprinkles',
'@readme/better-ajv-errors',
'@prisma/schema-engine-wasm',
'messageformat',
'bson-objectid',
'strongly-connected-components',
'@pnpm/link-bins',
'browserify-optional',
'geolib',
'@deck.gl/core',
'lodash.last',
'mapcap',
'sylvester',
'@json2csv/plainjs',
'rehype-remark',
'@ljharb/resumer',
'flags',
'@glimmer/validator',
'@open-rpc/schema-utils-js',
'victory-bar',
'@visx/gradient',
'@biomejs/cli-darwin-arm64',
'io.appium.settings',
'mouse-event-offset',
'swarm-js',
'fast-stream-to-buffer',
'filtrex',
'@parcel/packager-html',
'@google-cloud/compute',
'ts-is-present',
'@mdi/js',
'@vladfrangu/async_event_emitter',
'@json-schema-tools/dereferencer',
'react-app-rewired',
'victory-tooltip',
'openapi-typescript-codegen',
'relative-microtime',
'unicode-byte-truncate',
'@sap-devx/yeoman-ui-types',
'cucumber',
'@types/mousetrap',
'async-hook-domain',
'@replit/vite-plugin-runtime-error-modal',
'intl-pluralrules',
'esbuild-plugins-node-modules-polyfill',
'victory-stack',
'is-proto-prop',
'@types/junit-report-builder',
'@stablelib/hkdf',
'worker-factory',
'@metamask/onboarding',
'tinylogic',
'ink-testing-library',
'@aws-crypto/material-management-node',
'iterate-object',
'@inertiajs/core',
'@aws-cdk/service-spec-types',
'css-system-font-keywords',
'@pnpm/package-bins',
'@types/base64-stream',
'detect-element-overflow',
'urql',
'@parcel/optimizer-css',
'@types/stylus',
'grunt-contrib-uglify',
'bluebird-lst',
'vis-data',
'react-circular-progressbar',
'@vuelidate/validators',
'@types/lodash.camelcase',
'jss-plugin-compose',
'display-notification',
'@nuxt/eslint',
'@bundled-es-modules/deepmerge',
'multimap',
'ast-transform',
'backslash',
'@thi.ng/errors',
'stylelint-config-recommended-vue',
'livekit-client',
'@newrelic/aws-sdk',
'alter',
'sass-embedded-linux-arm',
'@parcel/transformer-css',
'number-is-integer',
'morphdom',
'@base-org/account',
'react-image-gallery',
'@napi-rs/nice-linux-arm-gnueabihf',
'react-mentions',
'@wallet-standard/wallet',
'@cosmjs/amino',
'@types/helmet',
'@types/jsonpath',
'typedi',
'grant',
're-reselect',
'title',
'vfile-matter',
'leaflet.markercluster',
'jss-preset-default',
'@pnpm/lockfile-types',
'babel-preset-gatsby',
'ts-patch',
'node-bin-setup',
'right-now',
'canvas-fit',
'@wyw-in-js/shared',
'react-use-websocket',
'@parcel/transformer-react-refresh-wrap',
'devcert',
'@percy/selenium-webdriver',
'@types/mv',
'@near-js/types',
'@nuxtjs/i18n',
'css-font',
'level',
'@reach/descendants',
'@n8n/errors',
'vue-meta',
'parsimmon',
'restify-errors',
'@opentelemetry/context-zone-peer-dep',
'volar-service-prettier',
'ng2-charts',
'@storybook/vue3',
'storybook-dark-mode',
'mouse-change',
'@hey-api/client-fetch',
'gpt-tokenizer',
'obj-props',
'@wix/wix-code-types',
'@openrouter/ai-sdk-provider',
'@aws-sdk/client-lex-runtime-service',
'pick-by-alias',
'@codemirror/merge',
'js-types',
'gl-text',
'@docusaurus/plugin-content-docs',
'@pulumi/gcp',
'draw-svg-path',
'ctype',
'apollo-link-context',
'@napi-rs/nice-android-arm64',
'lil-http-terminator',
'@tanstack/vue-table',
'victory-line',
'@lingui/react',
'@plotly/d3-sankey-circular',
'canonical-path',
'react-native-drawer-layout',
'@types/dateformat',
'fast-isnumeric',
'@amplitude/rrweb-types',
'random-int',
'store',
'caf',
'typeorm-naming-strategies',
'react-native-image-picker',
'@bundled-es-modules/memfs',
'inputmask',
'@rushstack/package-extractor',
'gel',
'@aws-sdk/client-apigatewayv2',
'@types/find-root',
'@vercel/microfrontends',
'pnpm-sync-lib',
'is-obj-prop',
'@types/undertaker-registry',
'@iflow-ai/iflow-cli',
'@grafana/faro-web-sdk',
'is-file-esm',
'@pnpm/node-fetch',
'@amplitude/rrweb-snapshot',
'world-calendars',
'@splitsoftware/splitio-commons',
'@mantine/store',
'delaunay-find',
'mdast-util-footnote',
'lodash.flatmap',
'jest-expect-message',
'react-native-paper',
'@salesforce/telemetry',
'@iconify/vue',
'dpdm',
'cohere-ai',
'@rsdoctor/graph',
'@thednp/position-observer',
'emojibase-regex',
'@vis.gl/react-mapbox',
'trace-event-lib',
'@fullhuman/postcss-purgecss',
'babel-plugin-remove-graphql-queries',
'wicked-good-xpath',
'@uppy/provider-views',
'lodash._baseflatten',
'vite-plugin-environment',
'ajv-formats-draft2019',
'vue-virtual-scroller',
'@types/gensync',
'@types/humanize-duration',
'codeowners',
'@babel/plugin-proposal-throw-expressions',
'regl-splom',
'astro',
'@types/debounce-promise',
'concat',
'webgl-context',
'@ui5/logger',
'path-unified',
'ics',
'@lingui/conf',
'@salesforce/apex-node',
'@google-cloud/resource-manager',
'is-svg-path',
'@tsconfig/strictest',
'@chakra-ui/clickable',
'regl-error2d',
'sha',
'@tanstack/vue-query',
'serverless-prune-plugin',
'@prettier/plugin-ruby',
'@types/normalize-path',
'golden-fleece',
'sorcery',
'eslint-plugin-pnpm',
'bower',
'@babel/plugin-external-helpers',
'@amplitude/rrweb',
'stylelint-config-styled-components',
'@rsdoctor/utils',
'@mantine/form',
'@astrojs/sitemap',
'array-normalize',
'@stoplight/spectral-formatters',
'ternary-stream',
'@uppy/thumbnail-generator',
'tryor',
'@chakra-ui/icons',
'formstream',
'measured-core',
'@uppy/dashboard',
'@grafana/faro-core',
'node-downloader-helper',
'@sap/cf-tools',
'@chakra-ui/react-use-controllable-state',
'call-signature',
'@vercel/edge-config',
'get-set-props',
'jest-environment-emit',
'chai-exclude',
'ngx-infinite-scroll',
'type-name',
'ethereumjs-abi',
'@segment/ajv-human-errors',
'regl-scatter2d',
'parsejson',
'@open-wc/dedupe-mixin',
'@shikijs/twoslash',
'regl-line2d',
'@docusaurus/theme-common',
'@types/dedent',
'inngest',
'@astrojs/yaml2ts',
'brace',
'has-hover',
'country-regex',
'animejs',
'multi-stage-sourcemap',
'ngx-bootstrap',
'gherkin-lint',
'eas-cli',
'@types/etag',
'cypress-plugin-tab',
'@slorber/react-helmet-async',
'@opentelemetry/context-zone',
'node-vault',
'obj-multiplex',
'@vue/preload-webpack-plugin',
'is-js-type',
'@amplitude/plugin-session-replay-browser',
'yeoman-character',
'victory-voronoi',
'@types/string-hash',
'@bazel/ibazel',
'eslint-plugin-react-debug',
'monocart-locator',
'nkeys.js',
'next-transpile-modules',
'@native-html/transient-render-engine',
'bind-obj-methods',
'@luma.gl/shadertools',
'react-string-replace',
'linkedom',
'get-canvas-context',
'@mixpanel/rrweb-snapshot',
'@native-html/css-processor',
'findup',
'@unocss/preset-wind3',
'@sanity/message-protocol',
'@docusaurus/theme-translations',
'@emurgo/cardano-serialization-lib-nodejs',
'gatsby-plugin-utils',
'victory-candlestick',
'@lobehub/chat',
'@storybook/react-native',
'sha3',
'@rspack/binding-linux-arm64-musl',
'electron-log',
'@react-hook/throttle',
'lodash.cond',
'parse-rect',
'@aws-crypto/client-node',
'@better-auth/utils',
'@types/undertaker',
'react-native-config',
'detect-kerning',
'@plotly/point-cluster',
'@langchain/aws',
'@chakra-ui/react-use-merge-refs',
'svg-path-sdf',
'@jsamr/react-native-li',
'@jsamr/counter-style',
'lodash.unionby',
'css-font-weight-keywords',
'draftjs-utils',
'@auth0/nextjs-auth0',
'vite-plugin-css-injected-by-js',
'futoin-hkdf',
'@parcel/transformer-postcss',
'babel-plugin-transform-import-meta',
'@parcel/config-default',
'@xterm/addon-fit',
'mouse-wheel',
'progress-webpack-plugin',
'@types/eslint-config-prettier',
'pixi.js',
'react-themeable',
'fast-jwt',
'right-pad',
'@chakra-ui/react-use-callback-ref',
'@chakra-ui/css-reset',
'@datastructures-js/heap',
'react-country-flag',
'@ai-sdk/azure',
'@percy/appium-app',
'@pnpm/git-utils',
'@parcel/optimizer-swc',
'typescript-memoize',
'@solana/kit',
'tar-pack',
'@types/joi',
'ollama',
'@types/topojson-specification',
'maxmind',
'@wallet-standard/app',
'@electron-forge/maker-base',
'@intlify/core',
'@docusaurus/plugin-content-pages',
'@types/d3-collection',
'@aws-crypto/material-management',
'multi-sort-stream',
'koa-range',
'apollo-cache-control',
'@expo/steps',
'not',
'electron-winstaller',
'@chakra-ui/editable',
'@docusaurus/plugin-content-blog',
'@sap-ux/ui5-config',
'becke-ch--regex--s0-0-v1--base--pl--lib',
'victory-brush-container',
'vike',
'ts-command-line-args',
'@plotly/d3-sankey',
'@primeuix/themes',
'@chakra-ui/react-types',
'gatsby-cli',
'typesafe-path',
'@multiformats/multiaddr',
'@parcel/transformer-svg',
'@storybook/preset-create-react-app',
'@bundled-es-modules/glob',
'sass-embedded-linux-musl-arm',
'@oxc-resolver/binding-darwin-x64',
'passport-http-bearer',
'@antv/path-util',
'@astrojs/react',
'@tsd/typescript',
'@rspack/binding-darwin-arm64',
'gcs-resumable-upload',
'@deck.gl/react',
'digest-header',
'@capacitor/keyboard',
'@nicolo-ribaudo/semver-v6',
'@heroui/system',
'sander',
'@tracetail/js',
'sass-embedded-darwin-x64',
'rxjs-report-usage',
'fastfall',
'@plotly/regl',
'stream-consume',
'@hocuspocus/common',
'mouse-event',
'hardhat',
'hsluv',
'html-element-attributes',
'monaco-editor-webpack-plugin',
'react-plotly.js',
'@parcel/runtime-react-refresh',
'@aws-sdk/client-appconfig',
'to-utf8',
'electrodb',
'stylis-plugin-rtl',
'@nomicfoundation/edr',
'node-status-codes',
'gatsby',
'@inversifyjs/core',
'@pnpm/lockfile.types',
'@mui/styled-engine-sc',
'remove-undefined-objects',
'@mistralai/mistralai',
'bootstrap-sass',
'tronweb',
'@docusaurus/theme-classic',
'totp-generator',
'mjolnir.js',
'@storybook/angular',
'node-html-markdown',
'@sanity/color',
'@expo/logger',
'@types/chai-string',
'json-schema-to-typescript-lite',
'is-tar',
'tss-react',
'@pnpm/patching.types',
'@sveltejs/adapter-auto',
'react-international-phone',
'@chakra-ui/react-children-utils',
'eslint-plugin-import-lite',
'volar-service-yaml',
'flairup',
'zen-push',
'@backstage/types',
'@types/string-similarity',
'natural',
'@chakra-ui/react-use-event-listener',
'@rive-app/react-canvas',
'pepper-scanner',
'@pnpm/read-modules-dir',
'@anatine/zod-openapi',
'gulp-if',
'@docusaurus/plugin-google-gtag',
'@reach/rect',
'@fig/complete-commander',
'json',
'google-map-react',
'cbor-sync',
'@electron-forge/tracer',
'@cosmjs/stargate',
'has-passive-events',
'@types/json-bigint',
'@atlaskit/feature-gate-js-client',
'clear',
'@heroui/react-utils',
'docx',
'eslint-plugin-ava',
'dedent-js',
'@ckeditor/ckeditor5-emoji',
'@antv/scale',
'streamifier',
'@vercel/edge',
'uri-path',
'@chakra-ui/react-use-outside-click',
'@expo/eas-json',
'@better-auth/telemetry',
'update-diff',
'heic2any',
'babel-plugin-ember-modules-api-polyfill',
'svg-path-bounds',
'phoenix',
'@sapphire/snowflake',
'@aws-sdk/client-rds-data',
'gatsby-legacy-polyfills',
'@inversifyjs/reflect-metadata-utils',
'stringmap',
'img-loader',
'@salesforce/plugin-info',
'clean-deep',
'rollup-plugin-node-externals',
'sass-embedded-android-arm',
'@prisma/internals',
'mobx-utils',
'@verdaccio/logger-prettify',
'pseudolocale',
'@percy/monitoring',
'@types/negotiator',
'inspect-function',
'is-iexplorer',
'@trezor/env-utils',
'@docusaurus/plugin-sitemap',
'rollup-plugin-polyfill-node',
'is-firefox',
'@types/analytics-node',
'macaddress',
'@docusaurus/theme-search-algolia',
'@verdaccio/signature',
'@docusaurus/preset-classic',
'acorn-private-class-elements',
'mock-require',
'@types/overlayscrollbars',
'groq-js',
'graphql-extensions',
'karma-cli',
'@aws-crypto/raw-keyring',
'express-graphql',
'appium-xcode',
'react-switch',
'markdown-it-sup',
'@amplitude/utils',
'vite-plugin-ruby',
'update-input-width',
'flush-promises',
'electron-store',
'@better-fetch/fetch',
'@verdaccio/url',
'@chakra-ui/react-use-update-effect',
'@cosmjs/proto-signing',
'@wdio/appium-service',
'@sap-ux/yaml',
'@types/connect-pg-simple',
'arr-rotate',
'@wordpress/i18n',
'vue-multiselect',
'cucumber-tag-expressions',
'@react-navigation/material-top-tabs',
'markdown-it-mark',
'@react-native-firebase/crashlytics',
'@react-types/accordion',
'@nuxt/test-utils',
'mathjax-full',
'@mixpanel/rrweb-utils',
'@apphosting/build',
'@node-saml/node-saml',
'@tiptap/extension-font-family',
'buffer-layout',
'@types/recursive-readdir',
'@aws-cdk/cloudformation-diff',
'@chakra-ui/dom-utils',
'@tensorflow/tfjs-converter',
'sass-embedded-win32-arm64',
'jsii',
'@upstash/ratelimit',
'@atlaskit/icon',
'@vercel/introspection',
'js2xmlparser2',
'@spruceid/siwe-parser',
'sh-syntax',
'tryit',
'@verdaccio/logger-commons',
'sass-embedded-android-arm64',
'sass-embedded-android-x64',
'stringset',
'magicli',
'@inversifyjs/common',
'gatsby-plugin-typescript',
'fizzy-ui-utils',
'@prisma/adapter-pg',
'@hono/zod-openapi',
'@plotly/d3',
'array-bounds',
'relay-compiler',
'@verdaccio/tarball',
'bunyamin',
'dom-storage',
'@amplitude/experiment-js-client',
'@types/text-table',
'react-avatar-editor',
'hjson',
'parse-data-uri',
'@docusaurus/plugin-css-cascade-layers',
'@types/continuation-local-storage',
'array-move',
'json-query',
'@types/esquery',
'@expo/multipart-body-parser',
'sass-embedded-linux-riscv64',
'sass-embedded-linux-musl-riscv64',
'degit',
'simple-fmt',
'@metamask/abi-utils',
'@arethetypeswrong/cli',
'fork-stream',
'theming',
'printf',
'snakeize',
'formatio',
'@chakra-ui/react-use-focus-effect',
'@expo/pkcs12',
'graphql-transformer-common',
'jwt-simple',
'lodash.tail',
'@chakra-ui/lazy-utils',
'@types/json-diff',
'@azure/service-bus',
'@angular-devkit/build-optimizer',
'to-iso-string',
'@griffel/style-types',
'@types/mock-fs',
'@types/lodash.chunk',
'eslint-plugin-sort-class-members',
'ml-distance-euclidean',
'gatsby-plugin-page-creator',
'json-schema-to-zod',
'is-get-set-prop',
'@fastify/rate-limit',
'to-float32',
'@google-cloud/translate',
'isolated-vm',
'material-ui-popup-state',
'@types/react-input-mask',
'espower-location-detector',
'vis-network',
'@aws-sdk/client-athena',
'lodash._createwrapper',
'@upstash/context7-mcp',
'@microsoft/eslint-plugin-sdl',
'@aws-sdk/client-redshift-data',
'@gwhitney/detect-indent',
'prettier-plugin-sh',
'@ckeditor/ckeditor5-react',
'svgicons2svgfont',
'stream-read-all',
'@bugsnag/plugin-react',
'inspect-parameters-declaration',
'chai-subset',
'gatsby-react-router-scroll',
'element-size',
'@firebase/polyfill',
'@fastify/websocket',
'eslint-plugin-graphql',
'@expo/plugin-warn-if-update-available',
'typedoc-default-themes',
'@aws-crypto/serialize',
'usb',
'@lottiefiles/react-lottie-player',
'random-js',
'@lifeomic/attempt',
'@resvg/resvg-js-linux-x64-musl',
'sass-embedded-android-riscv64',
'json-schema-migrate',
'partysocket',
'sha256-uint8array',
'expand-braces',
'@pnpm/fetching-types',
'appium-idb',
'md5hex',
'publint',
'dashjs',
'react-native-qrcode-svg',
'@chakra-ui/react-use-timeout',
'braintrust',
'@rushstack/lookup-by-path',
'strip-color',
'@electron/packager',
'victory-brush-line',
'deglob',
'@tsoa/runtime',
'@readme/openapi-schemas',
'@types/koa-bodyparser',
'collect.js',
'react-feather',
'reactotron-core-client',
'jest-dev-server',
'username-sync',
'own-or-env',
'babel-plugin-formatjs',
'loadjs',
'@chakra-ui/number-utils',
'own-or',
'jpegtran-bin',
'typechain',
'contra',
'superscript-text',
'prettier-plugin-astro',
'@types/serve-favicon',
'ag-grid-angular',
'@prisma/prisma-schema-wasm',
'@stablelib/ed25519',
'@pnpm/find-workspace-dir',
'create-gatsby',
'victory-errorbar',
'@amplitude/rrweb-plugin-console-record',
'graphology-traversal',
'@types/update-notifier',
'@types/http-proxy-middleware',
'@opentelemetry/instrumentation-openai',
'typed-error',
'@aws-crypto/kms-keyring',
'@fluentui/react-icons',
'@types/loadable__component',
'@ai-sdk/amazon-bedrock',
'acorn-class-fields',
'pusher',
'elasticsearch',
'@node-rs/xxhash-linux-x64-gnu',
'gatsby-link',
'ajv-cli',
'@vscode-logging/logger',
'highlight-words',
'react-native-uuid',
'@storybook/addon-coverage',
'@reportportal/client-javascript',
'@napi-rs/canvas-win32-x64-msvc',
'apollo-tracing',
'react-use-intercom',
'section-iterator',
'tabster',
'ol',
'dts-resolver',
'absolute-path',
'@primevue/core',
'@portabletext/block-tools',
'xterm',
'@types/method-override',
'react-currency-input-field',
'vega-typings',
'@arethetypeswrong/core',
'@verdaccio/commons-api',
'@apollo/gateway',
'react-ga',
'flow-remove-types',
'fastseries',
'timestring',
'packrup',
'@restart/context',
'@chakra-ui/react-use-disclosure',
'@okta/okta-react',
'mdast-comment-marker',
'@types/react-window-infinite-loader',
'@oslojs/crypto',
'apparatus',
'vega-event-selector',
'desandro-matches-selector',
'@stomp/stompjs',
'babel-plugin-transform-react-jsx-source',
'@miragejs/pretender-node-polyfill',
'@expo/plugin-help',
'@types/libsodium-wrappers',
'cross-var',
'@napi-rs/snappy-linux-x64-gnu',
'@expo/results',
'@mui/x-data-grid-premium',
'redux-saga-test-plan',
'@nrwl/nx-linux-x64-musl',
'rosie',
'through2-concurrent',
'get-folder-size',
'@zkochan/retry',
'@storybook/react-native-theming',
'@marsidev/react-turnstile',
'@bcherny/json-schema-ref-parser',
'xdate',
'@chakra-ui/react-use-pan-event',
'victory-histogram',
'@salesforce/source-tracking',
'@stablelib/sha512',
'lorem-ipsum',
'array-rearrange',
'@ag-grid-community/client-side-row-model',
'css-modules-loader-core',
'@langchain/google-vertexai',
'hast-util-format',
'number-flow',
'tsort',
'@lingui/babel-plugin-extract-messages',
'is-class-hotfix',
'cross-spawn-async',
'@amplitude/types',
'js-sha1',
'@storybook/nextjs-vite',
'level-packager',
'lodash-id',
'@temporalio/testing',
'html-to-draftjs',
'multiple-cucumber-html-reporter',
'@ngrx/component-store',
'replaceall',
'broker-factory',
'@embroider/macros',
'@netlify/node-cookies',
'babel-plugin-transform-async-to-promises',
'markdown-it-footnote',
'@primevue/icons',
'cfonts',
'nextjs-toploader',
'@types/w3c-web-usb',
'phone',
'babel-plugin-htmlbars-inline-precompile',
'@cosmjs/socket',
'prettier-plugin-sort-json',
'mongoose-legacy-pluralize',
'opencv-bindings',
'@types/swagger-ui-react',
'@discordjs/util',
'core-object',
'@near-js/utils',
'@zxcvbn-ts/language-common',
'@vercel/fetch',
'bloom-filters',
'@wdio/junit-reporter',
'@ckeditor/ckeditor5-source-editing',
'acorn-static-class-features',
'@vscode/test-cli',
'observable-fns',
'cls-bluebird',
'@aws-crypto/raw-aes-keyring-node',
'polylabel',
'diff2html',
'@types/jsftp',
'react-prop-types',
'node-match-path',
'gatsby-telemetry',
'cmake-js',
'request-compose',
'hygen',
'@node-rs/xxhash-linux-x64-musl',
'markdownlint-cli2',
'google-spreadsheet',
'typeid-js',
'nanocolors',
'hashids',
'remark-github',
'@clerk/backend',
'stringifier',
'@vueuse/nuxt',
'@trezor/utils',
'@babel/plugin-proposal-function-sent',
'this-file',
'pptxgenjs',
'@ai-sdk/google-vertex',
'@biomejs/cli-win32-x64',
'cliff',
'date.js',
'next-mdx-remote',
'eslint-typegen',
'@microlink/react-json-view',
'file-set',
'react-native-pdf',
'@react-hook/event',
'adal-node',
'requestretry',
'@types/fs-capacitor',
'@verdaccio/middleware',
'export-to-csv',
'@element-plus/icons-vue',
'svelte2tsx',
'@tensorflow/tfjs-backend-webgl',
'ksuid',
'react-instantsearch',
'gl-util',
'@verdaccio/logger',
'@biomejs/cli-darwin-x64',
'primeflex',
'7zip-bin',
'react-jss',
'react-style-proptype',
'xpath.js',
'mj-context-menu',
'jss-plugin-rule-value-observable',
'markdown-it-sub',
'stream-via',
'@discordjs/rest',
'tomlify-j0.4',
'@aws-sdk/crt-loader',
'rehype-format',
'child-process-promise',
'markdownlint-micromark',
'@cosmjs/stream',
'run-script-os',
'@vue/vue3-jest',
'react-native-reanimated-carousel',
'bytebuffer',
'laravel-echo',
'@aws-crypto/encrypt-node',
'emoji-toolkit',
'@chakra-ui/card',
'speech-rule-engine',
'@sanity/generate-help-url',
'@types/connect-redis',
'@types/howler',
'pad',
'bunfig',
'@fluentui/react-theme',
'reduce-configs',
'@nomicfoundation/edr-win32-x64-msvc',
'@aws-crypto/decrypt-node',
'@vscode-logging/types',
'@oxc-resolver/binding-win32-arm64-msvc',
'json-schema-walker',
'fstream-ignore',
'@tsconfig/recommended',
'@electron-forge/plugin-base',
'ascii-table',
'@fortawesome/vue-fontawesome',
'classlist-polyfill',
'@vercel/style-guide',
'@netlify/cache-utils',
'mailosaur',
'comver-to-semver',
'zod-openapi',
'grunt-contrib-concat',
'jss-plugin-extend',
'@oxc-resolver/binding-linux-arm-gnueabihf',
'@apollo/query-planner',
'replace',
'@chakra-ui/react-use-size',
'@types/imagemin-gifsicle',
'mailcomposer',
'@types/extract-files',
'is-bluebird',
'@typescript-eslint/eslint-plugin-tslint',
'quoted-printable',
'@emotion/eslint-plugin',
'vega-scale',
'@types/object-inspect',
'esbuild-sass-plugin',
'@types/ungap__structured-clone',
'expect-puppeteer',
'camelize-ts',
'postcss-css-variables',
'keyborg',
'@semantic-release/gitlab',
'vega-loader',
'reactotron-core-contract',
'@google-cloud/container',
'@portabletext/editor',
'@verdaccio/search-indexer',
'@cosmjs/json-rpc',
'@salesforce/plugin-data',
'koa-morgan',
'@aws-sdk/client-appsync',
'@currents/commit-info',
'@microsoft/teams-js',
'@types/glob-stream',
'@nuxt/image',
'vitest-fetch-mock',
'cookie-session',
'@luma.gl/engine',
'@salesforce/packaging',
'@openapi-contrib/openapi-schema-to-json-schema',
'rgb-hex',
'vega-dataflow',
'@chakra-ui/react-use-latest-ref',
'statsig-node',
'@verdaccio/auth',
'eslint-formatter-gitlab',
'cbor-x',
'keymirror',
'@builder.io/partytown',
'astro-eslint-parser',
'mockttp',
'rsa-pem-from-mod-exp',
'@lvce-editor/verror',
'unique-names-generator',
'core-assert',
'stream-wormhole',
'react-native-toast-message',
'messageformat-formatters',
'@oxc-resolver/binding-wasm32-wasi',
'serialize-error-cjs',
'@salesforce/plugin-deploy-retrieve',
'proto-props',
'css-gradient-parser',
'react-native-codegen',
'cheminfo-types',
'lodash.uniqueid',
'react-native-keychain',
'svg2ttf',
'@prettier/sync',
'paged-request',
'fractional-indexing',
'@oclif/plugin-which',
'@visx/drag',
'@salesforce/plugin-org',
'@azure/core-asynciterator-polyfill',
'@sanity/codegen',
'@docusaurus/tsconfig',
'fsm-iterator',
'@salesforce/templates',
'@expo/react-native-action-sheet',
'r-json',
'@types/smoothscroll-polyfill',
'@virtuoso.dev/react-urx',
'ngx-quill',
'@react-three/drei',
'await-lock',
'@fullcalendar/premium-common',
'@types/vimeo__player',
'regextras',
'lodash.assignwith',
'@expo/timeago.js',
'lodash-unified',
'ip3country',
'@apollo/rover',
'postcss-load-plugins',
'@types/accept-language-parser',
'@sanity/presentation-comlink',
'@effect/language-service',
'@backstage/plugin-permission-common',
'textarea-caret',
'@aws-crypto/caching-materials-manager-node',
'twoslash',
'jest-html-reporters',
'apollo-env',
'@rspack/binding-darwin-x64',
'@tsoa/cli',
'@salesforce/plugin-auth',
'@lezer/generator',
'@salesforce/plugin-apex',
'postcss-jsx',
'unleash-proxy-client',
'@vuelidate/core',
's.color',
'@tauri-apps/api',
'vega',
'@types/angular',
'@atlaskit/atlassian-context',
'@wordpress/element',
'typesense',
'@aws-crypto/cache-material',
'd3-octree',
'ipv6-normalize',
'@aws-amplify/cli',
'humanize-number',
'@chakra-ui/react-use-previous',
'react-date-picker',
'suf-log',
'babel-plugin-transform-imports',
'date-holidays',
'cross-argv',
'@verdaccio/loaders',
'@ngrx/schematics',
'reactotron-react-native',
'png-async',
'@splitsoftware/splitio',
'astronomia',
'yalc',
'ember-rfc176-data',
'gatsby-page-utils',
'@deck.gl/extensions',
'@heroui/system-rsc',
'replace-string',
'@sanity/insert-menu',
'victory-polar-axis',
'@types/xml-encryption',
'@vvo/tzdb',
'semver-store',
'@formatjs/intl-datetimeformat',
'miragejs',
'@salesforce/plugin-limits',
'vega-functions',
'@types/imagemin-svgo',
'@types/react-infinite-scroller',
'babel-plugin-transform-inline-environment-variables',
'@solana/wallet-standard-features',
'vega-lite',
'@aws-sdk/client-iot',
'@salesforce/plugin-telemetry',
'koa-logger',
'angular-sanitize',
'esrever',
'bitcoin-ops',
'get-ready',
'@number-flow/react',
'@math.gl/polygon',
'victory-voronoi-container',
'@heroui/react-rsc-utils',
'twoslash-protocol',
'utility',
'@huggingface/tasks',
'@types/imagemin-optipng',
'wtf-8',
'@sanity/asset-utils',
'vega-scenegraph',
'java-parser',
'victory-canvas',
'stream-replace-string',
'gatsby-graphiql-explorer',
'uhyphen',
'@luma.gl/webgl',
'@aws-crypto/kms-keyring-node',
'@syncfusion/ej2-base',
'@pulumi/kubernetes',
'vue-server-renderer',
'@nuxtjs/tailwindcss',
'awilix',
'@sparticuz/chromium',
'@ckeditor/ckeditor5-special-characters',
'@opentelemetry/id-generator-aws-xray',
'pad-left',
'@lingui/cli',
'jsox',
'@types/jszip',
'@activepieces/shared',
'jss-plugin-expand',
'vega-time',
'@livekit/mutex',
'@cosmjs/tendermint-rpc',
'@types/jsrsasign',
'timekeeper',
'mendoza',
'vue-jest',
'@testcontainers/localstack',
'hat',
'@types/lodash.set',
'fetch-ponyfill',
'node-hex',
'@salesforce/plugin-settings',
'draftjs-to-html',
'@okta/jwt-verifier',
'vega-crossfilter',
'restify',
'nano-pubsub',
'@virtuoso.dev/urx',
'vite-plugin-compression',
'markdownlint-cli2-formatter-default',
'@types/bull',
'@uppy/informer',
'laravel-mix',
'react-rnd',
'@vercel/webpack-asset-relocator-loader',
'@atlaskit/primitives',
'bits-ui',
'cleave.js',
'@types/sass',
'string-to-stream',
'commandpost',
'buildmail',
'gridstack',
'@types/proper-lockfile',
'char-spinner',
'@nestjs-modules/mailer',
'@aws-sdk/client-lex-runtime-v2',
'@types/systemjs',
'@appium/strongbox',
'@types/moo',
'gulp-babel',
'markdown-escape',
'@rocket.chat/icons',
'@sanity/preview-url-secret',
'@astrojs/mdx',
'vega-transforms',
'@salesforce/cli',
'redux-observable',
'@aws-crypto/hkdf-node',
'json-diff-ts',
'node-api-headers',
'power-assert-util-string-width',
'ohm-js',
'passthrough-counter',
'@azure/monitor-opentelemetry-exporter',
'@sentry/angular',
'@sanity/util',
'get-package-info',
'govuk-frontend',
'@chakra-ui/stepper',
'@aws-amplify/pubsub',
'vue-flow-layout',
'prepin',
'express-urlrewrite',
'vega-encode',
'sass-formatter',
'@types/title',
'vega-force',
'@pnpm/merge-lockfile-changes',
'currency-codes',
'@vanilla-extract/vite-plugin',
'reconnecting-websocket',
'tailwind-scrollbar-hide',
'react-refractor',
'@visx/voronoi',
'embla-carousel-wheel-gestures',
'@solana/accounts',
'tailwind-config-viewer',
'vega-view',
'html5-qrcode',
'@salesforce/plugin-schema',
'@salesforce/plugin-trust',
'@sap-ux/project-input-validator',
'vite-plugin-top-level-await',
'buf-compare',
'@types/query-string',
'pluralize-esm',
'angular-html-parser',
'posthtml-svg-mode',
'victory-box-plot',
'typescript-transform-paths',
'domready',
'@emotion/babel-utils',
'google-auto-auth',
'vega-selections',
'@antv/g-math',
'openapi-merge',
'postcss-markdown',
'@types/markdown-escape',
'sqs-producer',
'@ledgerhq/hw-transport-webhid',
'@sanity/migrate',
'airtable',
'powerbi-client',
'onchange',
'sleep-promise',
'jss-plugin-template',
'mhchemparser',
'@netflix/nerror',
'hex2dec',
'get-pixels',
'@mantine/utils',
'@azure/openai',
'@wdio/cucumber-framework',
'@salesforce/plugin-user',
'streamdown',
'@next/swc-linux-arm-gnueabihf',
'@aws-crypto/raw-rsa-keyring-node',
'@antfu/eslint-config',
'@salesforce/o11y-reporter',
'afinn-165',
'remark-message-control',
'pdf2json',
'@blueprintjs/core',
'to-snake-case',
'@effect/vitest',
'@httptoolkit/subscriptions-transport-ws',
'image-to-base64',
'react-transition-state',
'vite-plugin-commonjs',
'@oxc-resolver/binding-win32-x64-msvc',
'durations',
'@tsconfig/svelte',
'o11y',
'blob-polyfill',
'esbuild-plugin-copy',
'suffix',
'git-last-commit',
'lodash.xorby',
'@types/culori',
'@sap-ux/feature-toggle',
'shapefile',
'victory',
'deprecated',
'cross-zip',
'@types/type-is',
'@antv/g-canvas',
'@salesforce/plugin-packaging',
'num-sort',
'@parcel/feature-flags',
'@optimizely/optimizely-sdk',
'@stellar/stellar-sdk',
'ol-mapbox-style',
'lodash._slice',
'string-strip-html',
'@types/koa__cors',
'@types/xlsx',
'@fastify/jwt',
'react-lazyload',
'int53',
'ansi-green',
'i18next-chained-backend',
'tiptap-markdown',
'remark-toc',
'buble',
'@wdio/browserstack-service',
'vega-regression',
'@graphql-tools/batch-delegate',
'connect-flash',
'vega-canvas',
'aws-sdk-mock',
'@csstools/postcss-global-data',
'parcel',
'@adiwajshing/keyed-db',
'react-native-calendars',
'@napi-rs/cli',
'easy-bem',
'@types/basic-auth',
'amplitude-js',
'@sanity/visual-editing-types',
'@simplewebauthn/types',
'date-bengali-revised',
'atlassian-openapi',
'rxjs-compat',
'@types/koa-router',
'deep-strict-equal',
'common-sequence',
'date-chinese',
'autocannon',
'@progress/kendo-react-common',
'@ckeditor/ckeditor5-bookmark',
'rcedit',
'imagemin-jpegtran',
'xo',
'@intlify/h3',
'@progress/kendo-licensing',
'node-ssh',
'@salesforce/agents',
'@eslint/json',
'@applitools/functional-commons',
'folder-hash',
'unconfig-core',
'@syncfusion/ej2-buttons',
'datauri',
'@stacks/common',
'vega-parser',
'expo-server-sdk',
'shlex',
'vega-projection',
'lodash.support',
'json-dup-key-validator',
'html_codesniffer',
'keyboard-key',
'@ckeditor/ckeditor5-mention',
'rehype-ignore',
'@types/gulp',
'@types/estraverse',
'@remix-run/serve',
'@types/autosuggest-highlight',
'@opentelemetry/instrumentation-user-interaction',
'react-datetime',
'codem-isoboxer',
'@types/auth0',
'@googleapis/drive',
'@metaplex-foundation/mpl-token-metadata',
'sjcl',
'ttf2woff2',
'express-http-context',
'vega-wordcloud',
'indefinite',
'ldjson-stream',
'@types/clone',
'promise-timeout',
'@types/speakingurl',
'@types/cordova',
'@griffel/react',
'@schematics/update',
'@react-native-google-signin/google-signin',
'git-rev-sync',
'dragula',
'@storybook/addon-ondevice-controls',
'jsencrypt',
'curve25519-js',
'@atlaskit/analytics-next',
'eslint-plugin-boundaries',
'@sanity/diff-patch',
'vega-geo',
'semantic-ui-react',
'ngx-markdown',
'@opentelemetry/host-metrics',
'@ionic/core',
'@types/topojson-client',
'prettify-xml',
'rehype-attr',
'eslint-plugin-rxjs',
'@breejs/later',
'@aws-sdk/client-pinpoint',
'@cypress/listr-verbose-renderer',
'@typeform/embed-react',
'@sap/cds',
'esbuild-jest',
'ml-array-sum',
'@solid-primitives/utils',
'photoswipe',
'react-codemirror2',
'@googleapis/sheets',
'base62',
'@uppy/status-bar',
'make-synchronized',
'@oxc-resolver/binding-linux-riscv64-gnu',
'yarn-install',
'vega-hierarchy',
'gql.tada',
'@oxc-resolver/binding-linux-s390x-gnu',
'steed',
'@miyaneee/rollup-plugin-json5',
'@visx/react-spring',
'@wdio/dot-reporter',
'pikaday',
'@griffel/core',
'onecolor',
'koa-session',
'detect-passive-events',
'@safe-global/safe-gateway-typescript-sdk',
'react-draft-wysiwyg',
'@aws-amplify/ui',
'eslint-plugin-no-use-extend-native',
'@esbuild-kit/cjs-loader',
'@pnpm/pick-fetcher',
'react-server-dom-webpack',
'date-easter',
'@toruslabs/eccrypto',
'@storybook/vue3-vite',
'ibantools',
'mocha-suppress-logs',
'@salesforce/plugin-agent',
'@amplitude/rrweb-utils',
'@rnx-kit/chromium-edge-launcher',
'simple-git-hooks',
'pa11y',
'@motionone/vue',
'level-sublevel',
'oas',
'@progress/kendo-svg-icons',
'@vercel/edge-config-fs',
'react-cropper',
'serverless-http',
'node-polyglot',
'env-schema',
'@luma.gl/core',
'relative-time-format',
'destroyable-server',
'@solana/wallet-standard-util',
'dinero.js',
'yaml-js',
'@module-federation/utilities',
'@types/request-promise-native',
'combine-lists',
'dom-to-image',
'@applitools/eg-frpc',
'viewport-mercator-project',
'@types/vinyl-fs',
'@andrewbranch/untar.js',
'@salesforce/plugin-templates',
'escape-regexp-component',
'get-random-values',
'@types/earcut',
'assets-webpack-plugin',
'accounting',
'js-binary-schema-parser',
'@aws-sdk/client-codepipeline',
'npm-logical-tree',
'ms-rest-azure',
'@types/apollo-upload-client',
'hdb',
'@nomicfoundation/solidity-analyzer-linux-x64-gnu',
'io-ts-reporters',
'@pulumi/docker-build',
'ably',
'@solana/wallet-standard-chains',
'@sap/cds-compiler',
'caldate',
'@nestjs/cqrs',
'@fluentui/react-shared-contexts',
'cldrjs',
'ml-array-mean',
'lodash._setbinddata',
'@mastra/core',
'imsc',
'vega-statistics',
'@types/sprintf-js',
'date-utils',
'@connectrpc/connect-node',
'bcp47',
'vega-format',
'typechecker',
'pagefind',
'@resvg/resvg-wasm',
'git-diff',
'@leafygreen-ui/lib',
'@types/webextension-polyfill',
'@google-cloud/kms',
'vega-tooltip',
'@oclif/multi-stage-output',
'@aws-amplify/interactions',
'manage-path',
'@canvas/image-data',
'@types/intercom-web',
'read-tls-client-hello',
'@azure/msal-angular',
'gatsby-sharp',
'deep-freeze-strict',
'@openfeature/server-sdk',
'@salesforce/types',
'@types/winston',
'react-html-parser',
'@netlify/edge-bundler',
'mimer',
'markdown-it-deflist',
'parse-domain',
'expo-apple-authentication',
'angularx-qrcode',
'@nomicfoundation/solidity-analyzer',
'vega-voronoi',
'capnp-ts',
'@pnpm/lockfile-file',
'@vanilla-extract/css-utils',
'moment-locales-webpack-plugin',
'cbor-js',
'@heroui/aria-utils',
'download-stats',
'ip-range-check',
'angular-oauth2-oidc',
'jsx-ast-utils-x',
'@types/highlight.js',
'@types/json-pointer',
'@toruslabs/http-helpers',
'@types/asn1',
'@oclif/plugin-search',
'@zxing/browser',
'graphology-indices',
'jsoneditor',
'cubic2quad',
'@sveltejs/adapter-node',
'lodash._basebind',
'require-dir',
'cypress-split',
'@strapi/utils',
'@solana/errors',
'extract-from-css',
'@types/stoppable',
'@visx/legend',
'@types/promise-retry',
'net',
'gatsby-source-filesystem',
'react-slider',
'@parcel/types-internal',
'@base-ui-components/react',
'@react-hook/debounce',
'stylelint-webpack-plugin',
'@gitbeaker/node',
'window-post-message-proxy',
'hbs',
'@types/decompress',
'@types/redux',
'vitest-environment-nuxt',
'crossvent',
'@fullcalendar/scrollgrid',
'smtp-server',
'proxy-chain',
'adaptivecards',
'trix',
'@discordjs/ws',
'date-holidays-parser',
'gulp-postcss',
'graphemesplit',
'@visx/glyph',
'audit-ci',
'eslint-plugin-you-dont-need-lodash-underscore',
'line-height',
'@types/react-signature-canvas',
'samlify',
'@parcel/optimizer-htmlnano',
'humanize',
'@intlify/utils',
'friendly-errors-webpack-plugin',
'npm-registry-client',
'ts-mockito',
'@contentful/rich-text-html-renderer',
'@fluentui/react-popover',
'@plotly/mapbox-gl',
'lodash._basecreatewrapper',
'libsodium-sumo',
'@iconify/collections',
'msal',
'@sindresorhus/df',
'@httptoolkit/httpolyglot',
'@types/shallow-equals',
'event-target-polyfill',
'@ckeditor/ckeditor5-page-break',
'release-please',
'@auth/prisma-adapter',
'imagesloaded',
'@rsdoctor/rspack-plugin',
'@backstage/config',
'@aws-amplify/predictions',
'@gql.tada/cli-utils',
'react-native-haptic-feedback',
'vue-functional-data-merge',
'css-rule-stream',
'@atlaskit/pragmatic-drag-and-drop-hitbox',
'@react-native-community/eslint-plugin',
'react-tracked',
'ngx-build-plus',
'timeago.js',
'eslint-plugin-sort-destructure-keys',
'@salesforce/plugin-sobject',
'remix-utils',
'@solana/wallet-standard-wallet-adapter-base',
'@fluentui/tokens',
'@rspack/binding-win32-arm64-msvc',
'velocity-animate',
'@cacheable/node-cache',
'@reach/visually-hidden',
'@sap/hdi',
'@antv/g2',
'http-post-message',
'powerbi-router',
'@pulumi/awsx',
'ml-distance',
'transformation-matrix',
'expo-media-library',
'success-symbol',
'react-native-markdown-display',
'log-ok',
'@parcel/reporter-cli',
'asar',
'posthtml-rename-id',
'@ag-grid-community/csv-export',
'deep-copy',
'ms-rest',
'@testing-library/svelte',
'testcafe-hammerhead',
'jasmine-marbles',
'@apollo/composition',
'express-promise-router',
'try-resolve',
'graphql-sock',
'cors-gate',
'@backstage/catalog-model',
'react-swipeable-views-core',
'babel-helper-vue-jsx-merge-props',
'insert-css',
'detect-it',
'svg-baker',
'@parcel/optimizer-terser',
'esotope-hammerhead',
'xterm-addon-fit',
'material-symbols',
'@replit/vite-plugin-cartographer',
'react-rx',
'typeson',
'outlayer',
'@biomejs/cli-win32-arm64',
'@ag-grid-community/styles',
'@mediapipe/tasks-vision',
'@trpc/next',
'@qdrant/js-client-rest',
'@wordpress/components',
'@netlify/redirect-parser',
'wheel-gestures',
'@types/ps-tree',
'@ckeditor/ckeditor5-editor-balloon',
'node',
'vega-label',
'http',
'@nuxtjs/eslint-config',
'@rspack/binding-win32-ia32-msvc',
'react-loader-spinner',
'call-matcher',
'@microsoft/applicationinsights-react-js',
'cm6-theme-basic-light',
'ttf2woff',
'collection-utils',
'freshlinks',
'@next-auth/prisma-adapter',
'webpack-remove-empty-scripts',
'compromise',
'@ckeditor/ckeditor5-restricted-editing',
'@ag-grid-enterprise/core',
'blueimp-load-image',
'@npmcli/disparity-colors',
'cdktf',
'inquirer-autocomplete-standalone',
'postcss-preset-mantine',
'@currents/playwright',
'@sanity/export',
'@ckeditor/ckeditor5-style',
'i18next-http-middleware',
'@loaders.gl/core',
'browserslist-load-config',
'@pact-foundation/pact',
'@heroui/framer-utils',
'unified-message-control',
'@anthropic-ai/mcpb',
'@mikro-orm/core',
'bmpimagejs',
'@clerk/clerk-react',
'ci-env',
'dts-bundle-generator',
'@types/enzyme-adapter-react-16',
'@ungap/url-search-params',
'@inngest/ai',
'@glimmer/wire-format',
'@tiptap/extension-collaboration',
'lodash.indexof',
'text-mask-addons',
'tsoa',
'react-keyed-flatten-children',
'@portabletext/to-html',
'bezier-js',
'@eth-optimism/core-utils',
'is-valid-app',
'@types/gitconfiglocal',
'@lexical/extension',
'accept-language',
'sequencify',
'@heroui/use-aria-button',
'@node-saml/passport-saml',
'pg-copy-streams',
'@types/interpret',
'@ckeditor/ckeditor5-find-and-replace',
'koa-etag',
'd3-cloud',
'jest-silent-reporter',
'crosspath',
'url-slug',
'@cfcs/core',
'microbuffer',
'normalize-wheel-es',
'wordnet-db',
'@wallet-standard/core',
'json-lexer',
'babel-merge',
'@types/jwk-to-pem',
'material-react-table',
'@types/gapi.auth2',
'nuxi',
'object-filter',
'@chakra-ui/skip-nav',
'@stacksjs/eslint-config',
'async-promise-queue',
'graphql-parse-resolve-info',
'@braintrust/core',
'@vanilla-extract/recipes',
'@types/backbone',
'@apollo/query-graphs',
'@anatine/zod-mock',
'react-oidc-context',
'connect-timeout',
'@reach/dialog',
'@electron-forge/template-base',
'request-oauth',
'@splidejs/splide',
'@progress/kendo-drawing',
'cargo-cp-artifact'
]
| wooorm/npm-high-impact | 100 | The high-impact (popular) packages of npm | JavaScript | wooorm | Titus | |
lib/top.js | JavaScript | export const top = [
'semver',
'ansi-styles',
'debug',
'chalk',
'minimatch',
'supports-color',
'strip-ansi',
'ms',
'ansi-regex',
'string-width',
'tslib',
'brace-expansion',
'lru-cache',
'wrap-ansi',
'emoji-regex',
'glob',
'commander',
'color-convert',
'color-name',
'type-fest',
'source-map',
'has-flag',
'readable-stream',
'escape-string-regexp',
'p-locate',
'locate-path',
'picomatch',
'uuid',
'p-limit',
'find-up',
'safe-buffer',
'ajv',
'yallist',
'is-fullwidth-code-point',
'minipass',
'glob-parent',
'isarray',
'json-schema-traverse',
'signal-exit',
'string_decoder',
'js-yaml',
'which',
'eslint-visitor-keys',
'telecom-mas-agent',
'yargs-parser',
'argparse',
'iconv-lite',
'@types/node',
'acorn',
'globals',
'yargs',
'resolve',
'pretty-format',
'get-stream',
'resolve-from',
'ws',
'path-key',
'ignore',
'fs-extra',
'mime-db',
'path-exists',
'cliui',
'estraverse',
'kind-of',
'camelcase',
'json5',
'agent-base',
'react-is',
'postcss',
'cross-spawn',
'rimraf',
'punycode',
'is-stream',
'mime-types',
'form-data',
'webidl-conversions',
'@jridgewell/trace-mapping',
'inherits',
'eslint-scope',
'@babel/types',
'entities',
'mkdirp',
'convert-source-map',
'slash',
'qs',
'tr46',
'@jest/types',
'whatwg-url',
'shebang-regex',
'universalify',
'shebang-command',
'strip-json-comments',
'onetime',
'is-number',
'chokidar',
'undici-types',
'execa',
'https-proxy-agent',
'braces',
'make-dir',
'fill-range',
'isexe',
'micromatch',
'jsesc',
'picocolors',
'y18n',
'@babel/parser',
'function-bind',
'buffer',
'path-to-regexp',
'is-glob',
'js-tokens',
'statuses',
'schema-utils',
'cookie',
'strip-bom',
'minimist',
'balanced-match',
'readdirp',
'pify',
'get-intrinsic',
'has-symbols',
'@babel/helper-validator-identifier',
'@dataform/core',
'npm-run-path',
'parse-json',
'yaml',
'ci-info',
'@babel/generator',
'graceful-fs',
'to-regex-range',
'browserslist',
'negotiator',
'encodeurl',
'mime',
'normalize-path',
'lodash',
'fast-deep-equal',
'@jridgewell/sourcemap-codec',
'node-fetch',
'fast-glob',
'cosmiconfig',
'electron-to-chromium',
'ansi-escapes',
'hasown',
'jsonfile',
'escalade',
'object-inspect',
'yocto-queue',
'jest-worker',
'doctrine',
'human-signals',
'once',
'source-map-support',
'gopd',
'@babel/traverse',
'jest-util',
'es-define-property',
'es-errors',
'concat-map',
'@types/yargs',
'depd',
'wrappy',
'is-arrayish',
'@smithy/util-utf8',
'@types/estree',
'has-tostringtag',
'http-errors',
'@babel/runtime',
'caniuse-lite',
'@babel/template',
'callsites',
'dotenv',
'globby',
'@jridgewell/gen-mapping',
'http-proxy-agent',
'path-type',
'@babel/core',
'anymatch',
'ini',
'is-core-module',
'is-extglob',
'espree',
'call-bind-apply-helpers',
'import-fresh',
'esbuild',
'node-releases',
'axios',
'jackspeak',
'@babel/code-frame',
'async',
'@rollup/rollup-linux-x64-musl',
'sprintf-js',
'@aws-sdk/types',
'path-scurry',
'mimic-fn',
'util-deprecate',
'typescript',
'get-proto',
'@jridgewell/resolve-uri',
'get-caller-file',
'type-check',
'es-set-tostringtag',
'path-parse',
'@smithy/types',
'slice-ansi',
'safer-buffer',
'@babel/helper-module-imports',
'esprima',
'update-browserslist-db',
'optionator',
'@babel/helper-plugin-utils',
'@babel/helper-module-transforms',
'combined-stream',
'eslint',
'delayed-stream',
'nanoid',
'rxjs',
'asynckit',
'es-object-atoms',
'setprototypeof',
'flat-cache',
'object-assign',
'pkg-dir',
'levn',
'dunder-proto',
'postcss-selector-parser',
'fastq',
'json-parse-even-better-errors',
'cli-cursor',
'@babel/helper-string-parser',
'fast-json-stable-stringify',
'imurmurhash',
'define-property',
'write-file-atomic',
'magic-string',
'hosted-git-info',
'@babel/helpers',
'prelude-ls',
'@babel/compat-data',
'require-directory',
'follow-redirects',
'call-bind',
'esutils',
'reusify',
'p-try',
'lines-and-columns',
'diff',
'core-util-is',
'supports-preserve-symlinks-flag',
'fast-levenshtein',
'@smithy/util-buffer-from',
'foreground-child',
'chownr',
'is-plain-obj',
'path-is-absolute',
'strip-final-newline',
'math-intrinsics',
'@jest/schemas',
'file-entry-cache',
'parent-module',
'flatted',
'@smithy/is-array-buffer',
'uri-js',
'run-parallel',
'@babel/helper-validator-option',
'extend-shallow',
'@esbuild/linux-x64',
'parse5',
'fs.realpath',
'restore-cursor',
'istanbul-lib-instrument',
'finalhandler',
'tough-cookie',
'keyv',
'@nodelib/fs.stat',
'bytes',
'binary-extensions',
'queue-microtask',
'@babel/helper-compilation-targets',
'on-finished',
'merge2',
'base64-js',
'open',
'ajv-keywords',
'@eslint/eslintrc',
'ipaddr.js',
'call-bound',
'raw-body',
'is-binary-path',
'@typescript-eslint/typescript-estree',
'buffer-from',
'acorn-jsx',
'ieee754',
'has-property-descriptors',
'@nodelib/fs.scandir',
'natural-compare',
'p-map',
'is-callable',
'estree-walker',
'@typescript-eslint/types',
'deep-is',
'proxy-from-env',
'is-regex',
'acorn-walk',
'is-wsl',
'prettier',
'@nodelib/fs.walk',
'eventemitter3',
'@typescript-eslint/visitor-keys',
'define-properties',
'indent-string',
'regenerator-runtime',
'source-map-js',
'esrecurse',
'@types/json-schema',
'esquery',
'send',
'detect-libc',
'domhandler',
'log-symbols',
'domutils',
'which-typed-array',
'fresh',
'error-ex',
'@eslint/js',
'@sinclair/typebox',
'object.assign',
'postcss-value-parser',
'accepts',
'arg',
'jest-message-util',
'jest-regex-util',
'side-channel-list',
'define-data-property',
'json-buffer',
'json-stable-stringify-without-jsonify',
'body-parser',
'media-typer',
'express',
'side-channel-weakmap',
'jest-diff',
'dom-serializer',
'content-disposition',
'csstype',
'type-is',
'pump',
'lightningcss-linux-x64-musl',
'aria-query',
'lodash.merge',
'loader-utils',
'@typescript-eslint/scope-manager',
'is-plain-object',
'eastasianwidth',
'zod',
'is-unicode-supported',
'@eslint-community/regexpp',
'@eslint-community/eslint-utils',
'gensync',
'merge-stream',
'is-docker',
'es-abstract',
'cookie-signature',
'deepmerge',
'is-typed-array',
'@img/sharp-linuxmusl-x64',
'inflight',
'retry',
'end-of-stream',
'side-channel-map',
'available-typed-arrays',
'merge-descriptors',
'tapable',
'require-from-string',
'word-wrap',
'tar',
'tmp',
'object-keys',
'set-function-length',
'tsconfig-paths',
'jiti',
'@tailwindcss/oxide-linux-x64-musl',
'safe-regex-test',
'is-extendable',
'mute-stream',
'for-each',
'normalize-package-data',
'array-union',
'enhanced-resolve',
'side-channel',
'events',
'is-symbol',
'@isaacs/cliui',
'content-type',
'figures',
'domelementtype',
'process-nextick-args',
'istanbul-lib-coverage',
'toidentifier',
'es-to-primitive',
'regexp.prototype.flags',
'isobject',
'@humanwhocodes/module-importer',
'ee-first',
'escape-html',
'unpipe',
'rollup',
'string.prototype.trimend',
'range-parser',
'@types/react',
'is-date-object',
'is-string',
'@opentelemetry/semantic-conventions',
'jest-get-type',
'css-tree',
'@sinonjs/fake-timers',
'mdn-data',
'is-shared-array-buffer',
'jest-mock',
'loose-envify',
'vary',
'parseurl',
'which-boxed-primitive',
'clone',
'core-js',
'bl',
'sax',
'istanbul-lib-source-maps',
'jest-matcher-utils',
'@opentelemetry/core',
'etag',
'possible-typed-array-names',
'colorette',
'serialize-javascript',
'htmlparser2',
'test-exclude',
'is-path-inside',
'@babel/helper-annotate-as-pure',
'is-descriptor',
'jest-haste-map',
'read-pkg',
'terser',
'bn.js',
'decamelize',
'@types/babel__core',
'is-generator-function',
'is-bigint',
'pirates',
'internal-slot',
'fdir',
'xtend',
'cjs-module-lexer',
'graphemer',
'is-weakref',
'is-boolean-object',
'@typescript-eslint/utils',
'whatwg-mimetype',
'has-proto',
'type-detect',
'fast-xml-parser',
'string.prototype.trimstart',
'@pkgjs/parseargs',
'dir-glob',
'ts-api-utils',
'minizlib',
'ajv-formats',
'@types/babel__generator',
'expect',
'package-json-from-dist',
'forwarded',
'unbox-primitive',
'@jest/transform',
'@smithy/property-provider',
'ora',
'@smithy/protocol-http',
'is-array-buffer',
'typed-array-buffer',
'tar-stream',
'diff-sequences',
'mimic-response',
'@sinonjs/commons',
'@types/babel__template',
'webpack-sources',
'istanbul-reports',
'extend',
'array-buffer-byte-length',
'proxy-addr',
'function.prototype.name',
'is-number-object',
'globalthis',
'get-symbol-description',
'@types/babel__traverse',
'typed-array-length',
'kleur',
'@babel/plugin-syntax-jsx',
'pako',
'@types/istanbul-reports',
'fs-minipass',
'istanbul-lib-report',
'html-escaper',
'set-function-name',
'@jest/test-result',
'jwa',
'strip-indent',
'dedent',
'vite',
'string.prototype.trim',
'prop-types',
'has-bigints',
'define-lazy-prop',
'@aws-sdk/middleware-user-agent',
'typed-array-byte-offset',
'safe-array-concat',
'@jest/console',
'destroy',
'nopt',
'array-flatten',
'@aws-sdk/util-user-agent-browser',
'@aws-sdk/util-user-agent-node',
'array-includes',
'is-negative-zero',
'functions-have-names',
'@aws-sdk/middleware-logger',
'@jest/environment',
'@babel/helper-member-expression-to-functions',
'pathe',
'@istanbuljs/schema',
'@humanwhocodes/retry',
'es-module-lexer',
'jest-validate',
'css-select',
'utils-merge',
'@aws-sdk/middleware-host-header',
'is-map',
'@typescript-eslint/parser',
'@aws-sdk/credential-provider-env',
'whatwg-encoding',
'babel-jest',
'@types/express-serve-static-core',
'is-set',
'@aws-sdk/credential-provider-node',
'is-buffer',
'serve-static',
'@aws-sdk/core',
'@aws-sdk/credential-provider-ini',
'babel-plugin-istanbul',
'@jest/fake-timers',
'@aws-sdk/middleware-recursion-detection',
'is-weakset',
'clsx',
'object.values',
'which-collection',
'jest-resolve',
'typed-array-byte-length',
'babel-plugin-jest-hoist',
'cssesc',
'@babel/plugin-syntax-typescript',
'css-what',
'cli-width',
'escodegen',
'find-cache-dir',
'@babel/helper-replace-supers',
'@types/yargs-parser',
'@aws-sdk/token-providers',
'ansi-colors',
'array.prototype.flat',
'through',
'lilconfig',
'neo-async',
'arraybuffer.prototype.slice',
'@aws-sdk/util-endpoints',
'leven',
'jest-watcher',
'jsdom',
'@types/istanbul-lib-coverage',
'xmlbuilder',
'methods',
'string-length',
'long',
'@rollup/rollup-linux-x64-gnu',
'jest-docblock',
'@aws-sdk/credential-provider-web-identity',
'babel-preset-jest',
'@types/react-dom',
'randombytes',
'@aws-sdk/credential-provider-sso',
'import-local',
'@types/unist',
'through2',
'inquirer',
'@smithy/shared-ini-file-loader',
'text-table',
'cssom',
'@types/send',
'@aws-sdk/credential-provider-process',
'resolve-cwd',
'data-view-buffer',
'nth-check',
'tinyglobby',
'read-pkg-up',
'@ampproject/remapping',
'data-view-byte-offset',
'abbrev',
'dom-accessibility-api',
'@smithy/smithy-client',
'chardet',
'@aws-sdk/client-sso',
'fast-uri',
'xml-name-validator',
'data-urls',
'@typescript-eslint/eslint-plugin',
'@babel/helper-create-class-features-plugin',
'@smithy/abort-controller',
'strnum',
'is-weakmap',
'cssstyle',
'@babel/helper-optimise-call-expression',
'char-regex',
'stack-utils',
'regjsparser',
'cli-spinners',
'@types/express',
'@jest/source-map',
'process',
'jest-leak-detector',
'jest-environment-node',
'@types/stack-utils',
'es-shim-unscopables',
'util',
'pnpm',
'is-data-view',
'node-addon-api',
'webpack',
'@smithy/fetch-http-handler',
'detect-newline',
'is-async-function',
'ts-node',
'@types/istanbul-lib-report',
'socks-proxy-agent',
'make-error',
'@smithy/util-middleware',
'eslint-plugin-import',
'object.fromentries',
'jest-resolve-dependencies',
'jest',
'@babel/plugin-syntax-object-rest-spread',
'jest-snapshot',
'@smithy/url-parser',
'@smithy/util-stream',
'@jest/expect-utils',
'@smithy/middleware-serde',
'requires-port',
'date-fns',
'spdx-expression-parse',
'spdx-license-ids',
'clean-stack',
'normalize-url',
'@smithy/middleware-endpoint',
'@tootallnate/once',
'co',
'@smithy/querystring-builder',
'buffer-crc32',
'emittery',
'jest-changed-files',
'prompts',
'@smithy/node-config-provider',
'jest-runtime',
'@babel/plugin-syntax-numeric-separator',
'@babel/helper-skip-transparent-expression-wrappers',
'@babel/plugin-syntax-top-level-await',
'cacache',
'eslint-module-utils',
'is-finalizationregistry',
'array.prototype.flatmap',
'@babel/plugin-syntax-import-attributes',
'is-interactive',
'core-js-compat',
'jest-cli',
'ssri',
'terser-webpack-plugin',
'@opentelemetry/api-logs',
'sisteransi',
'bser',
'@smithy/node-http-handler',
'@babel/plugin-transform-modules-commonjs',
'@babel/plugin-syntax-optional-catch-binding',
'@types/qs',
'@bcoe/v8-coverage',
'saxes',
'@smithy/util-base64',
'data-view-byte-length',
'@jest/reporters',
'data-uri-to-buffer',
'@babel/plugin-syntax-nullish-coalescing-operator',
'@smithy/util-hex-encoding',
'@aws-sdk/credential-provider-http',
'node-int64',
'eslint-config-prettier',
'jest-runner',
'@eslint/core',
'split2',
'@smithy/util-retry',
'@babel/plugin-syntax-class-properties',
'jsbn',
'@babel/plugin-syntax-async-generators',
'aggregate-error',
'eslint-import-resolver-node',
'ast-types',
'shell-quote',
'watchpack',
'reflect.getprototypeof',
'@smithy/util-uri-escape',
'socks',
'decimal.js',
'jest-config',
'@types/serve-static',
'arrify',
'html-encoding-sniffer',
'color',
'@typescript-eslint/type-utils',
'@jridgewell/source-map',
'@smithy/signature-v4',
'v8-to-istanbul',
'walker',
'bluebird',
'@ungap/structured-clone',
'@babel/plugin-syntax-json-strings',
'w3c-xmlserializer',
'which-builtin-type',
'get-package-type',
'@babel/plugin-syntax-optional-chaining',
'@babel/plugin-syntax-import-meta',
'stop-iteration-iterator',
'object.entries',
'tmpl',
'babel-preset-current-node-syntax',
'@smithy/middleware-stack',
'baseline-browser-mapping',
'@babel/plugin-transform-parameters',
'@babel/plugin-transform-destructuring',
'jest-each',
'fb-watchman',
'@humanwhocodes/config-array',
'set-blocking',
'lodash.isplainobject',
'env-paths',
'spdx-correct',
'object-hash',
'@babel/highlight',
'@jest/globals',
'babel-plugin-polyfill-corejs3',
'spdx-exceptions',
'@smithy/querystring-parser',
'@babel/plugin-transform-modules-umd',
'@smithy/middleware-retry',
'@jest/test-sequencer',
'@aws-sdk/region-config-resolver',
'@istanbuljs/load-nyc-config',
'@types/body-parser',
'@smithy/util-defaults-mode-node',
'@colors/colors',
'@babel/plugin-syntax-logical-assignment-operators',
'wordwrap',
'uglify-js',
'autoprefixer',
'@radix-ui/react-primitive',
'@babel/helper-create-regexp-features-plugin',
'@types/json5',
'psl',
'@babel/plugin-transform-classes',
'boolbase',
'@smithy/core',
'@smithy/util-defaults-mode-browser',
'@jest/core',
'regexpu-core',
'@webassemblyjs/ast',
'@babel/helper-define-polyfill-provider',
'@humanwhocodes/object-schema',
'file-type',
'is-arguments',
'is-typedarray',
'glob-to-regexp',
'@types/ws',
'@babel/plugin-transform-template-literals',
'@babel/plugin-transform-spread',
'@smithy/credential-provider-imds',
'@babel/plugin-transform-shorthand-properties',
'chai',
'@types/mime',
'@babel/plugin-transform-function-name',
'is-generator-fn',
'redent',
'loader-runner',
'@smithy/middleware-content-length',
'scheduler',
'@webassemblyjs/helper-wasm-bytecode',
'smart-buffer',
'@babel/plugin-transform-block-scoping',
'defaults',
'regenerate-unicode-properties',
'makeerror',
'on-headers',
'@smithy/service-error-classification',
'@types/range-parser',
'@webassemblyjs/wasm-opt',
'@webassemblyjs/helper-wasm-section',
'protobufjs',
'symbol-tree',
'ip-address',
'jest-circus',
'is-obj',
'@webassemblyjs/wast-printer',
'@webassemblyjs/utf8',
'rfdc',
'@eslint/plugin-kit',
'@webassemblyjs/helper-api-error',
'validate-npm-package-license',
'@types/jest',
'@babel/plugin-transform-async-to-generator',
'eslint-plugin-react',
'http-cache-semantics',
'xmlchars',
'@opentelemetry/instrumentation',
'jws',
'@webassemblyjs/helper-buffer',
'@smithy/util-body-length-browser',
'cli-truncate',
'tailwindcss',
'@tsconfig/node10',
'@webassemblyjs/ieee754',
'@img/sharp-libvips-linuxmusl-x64',
'@jridgewell/set-array',
'@webassemblyjs/wasm-edit',
'safe-push-apply',
'@babel/plugin-transform-modules-systemjs',
'@babel/helper-globals',
'get-tsconfig',
'run-async',
'collect-v8-coverage',
'jest-pnp-resolver',
'@types/uuid',
'decompress-response',
'unicode-match-property-value-ecmascript',
'yn',
'pure-rand',
'json-stringify-safe',
'@tsconfig/node16',
'lower-case',
'@types/lodash',
'@babel/plugin-transform-member-expression-literals',
'tinyexec',
'abort-controller',
'nwsapi',
'@babel/plugin-transform-for-of',
'dayjs',
'babel-plugin-polyfill-corejs2',
'@babel/plugin-transform-arrow-functions',
'lodash.debounce',
'@babel/plugin-transform-sticky-regex',
'@babel/plugin-transform-literals',
'@smithy/config-resolver',
'jsx-ast-utils',
'@vitest/utils',
'@babel/helper-wrap-function',
'@babel/plugin-transform-computed-properties',
'immutable',
'@webassemblyjs/leb128',
'@babel/helper-remap-async-to-generator',
'@types/eslint',
'dequal',
'@babel/plugin-transform-exponentiation-operator',
'@cspotcode/source-map-support',
'@babel/plugin-transform-named-capturing-groups-regex',
'@floating-ui/dom',
'lowercase-keys',
'quick-lru',
'no-case',
'@aws-crypto/util',
'color-string',
'@tsconfig/node14',
'@swc/helpers',
'meow',
'concat-stream',
'@webassemblyjs/wasm-parser',
'@babel/plugin-transform-property-literals',
'@babel/plugin-transform-regenerator',
'@babel/preset-env',
'is-data-descriptor',
'@babel/plugin-transform-new-target',
'@types/prop-types',
'@babel/plugin-transform-dotall-regex',
'@opentelemetry/resources',
'@babel/plugin-transform-reserved-words',
'@octokit/types',
'@webassemblyjs/floating-point-hex-parser',
'@smithy/invalid-dependency',
'wcwidth',
'@babel/plugin-transform-block-scoped-functions',
'@typescript-eslint/tsconfig-utils',
'set-proto',
'@smithy/util-body-length-node',
'@babel/plugin-transform-object-super',
'log-update',
'string.prototype.matchall',
'@webassemblyjs/wasm-gen',
'@jridgewell/remapping',
'he',
'lodash.memoize',
'@typescript-eslint/project-service',
'@rollup/pluginutils',
'create-require',
'@smithy/hash-node',
'unique-slug',
'unicode-canonical-property-names-ecmascript',
'dot-prop',
'react',
'jsonc-parser',
'resolve-pkg-maps',
'v8-compile-cache-lib',
'babel-plugin-polyfill-regenerator',
'@babel/plugin-proposal-private-property-in-object',
'exit',
'tar-fs',
'event-target-shim',
'json-schema',
'map-obj',
'@types/graceful-fs',
'@jest/expect',
'@babel/plugin-transform-unicode-regex',
'@sindresorhus/is',
'chrome-trace-event',
'@babel/plugin-transform-unicode-escapes',
'ecdsa-sig-formatter',
'@babel/plugin-transform-typeof-symbol',
'assertion-error',
'url-parse',
'is-accessor-descriptor',
'@babel/plugin-transform-modules-amd',
'gaxios',
'@babel/plugin-syntax-private-property-in-object',
'unicode-match-property-ecmascript',
'@tsconfig/node12',
'got',
'require-main-filename',
'proc-log',
'commondir',
'is-potential-custom-element-name',
'@babel/plugin-syntax-import-assertions',
'deep-eql',
'@aws-crypto/sha256-js',
'resolve.exports',
'@babel/plugin-transform-duplicate-keys',
'@babel/plugin-syntax-class-static-block',
'normalize-range',
'undici',
'extsprintf',
'@floating-ui/core',
'postcss-load-config',
'node-forge',
'@aws-sdk/xml-builder',
'own-keys',
'@emnapi/runtime',
'@protobufjs/float',
'is-windows',
'asap',
'@smithy/util-endpoints',
'@xtuc/long',
'tunnel-agent',
'jsonwebtoken',
'@testing-library/dom',
'@xtuc/ieee754',
'listr2',
'handlebars',
'@types/parse-json',
'@types/connect',
'assert-plus',
'object.groupby',
'regjsgen',
'progress',
'any-promise',
'deep-extend',
'@smithy/util-config-provider',
'setimmediate',
'interpret',
'lodash.isstring',
'buffer-equal-constant-time',
'make-fetch-happen',
'xml2js',
'tweetnacl',
'array.prototype.findlastindex',
'@octokit/openapi-types',
'@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression',
'@types/http-errors',
'querystringify',
'@vitest/pretty-format',
'astral-regex',
'compression',
'yauzl',
'react-dom',
'which-module',
'safe-stable-stringify',
'cors',
'@babel/helper-split-export-declaration',
'moment',
'@webassemblyjs/helper-numbers',
'loupe',
'min-indent',
'lodash.once',
'unicode-property-aliases-ecmascript',
'rc',
'nan',
'@radix-ui/react-slot',
'big.js',
'check-error',
'axobject-query',
'performance-now',
'@types/semver',
'compressible',
'unique-filename',
'axe-core',
'@aws-crypto/supports-web-crypto',
'@npmcli/fs',
'@eslint/object-schema',
'fraction.js',
'@aws-sdk/nested-clients',
'@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining',
'@radix-ui/react-context',
'load-json-file',
'p-finally',
'@types/ms',
'os-tmpdir',
'@babel/plugin-transform-private-methods',
'async-function',
'@emotion/memoize',
'is-promise',
'@eslint/config-array',
'@babel/plugin-transform-object-rest-spread',
'@babel/plugin-transform-class-properties',
'typedarray',
'stylis',
'regenerate',
'@humanfs/core',
'@radix-ui/react-compose-refs',
'array.prototype.tosorted',
'tiny-invariant',
'pathval',
'minimalistic-assert',
'@opentelemetry/sdk-trace-base',
'@babel/plugin-transform-typescript',
'@babel/plugin-transform-optional-chaining',
'mz',
'@unrs/resolver-binding-linux-x64-musl',
'emojis-list',
'google-auth-library',
'@babel/preset-modules',
'thenify-all',
'deep-equal',
'p-cancelable',
'lodash.camelcase',
'has-values',
'component-emitter',
'to-fast-properties',
'fsevents',
'@napi-rs/wasm-runtime',
'@humanfs/node',
'hoist-non-react-statics',
'@radix-ui/primitive',
'has-value',
'@vitest/spy',
'@babel/plugin-transform-private-property-in-object',
'@vitest/expect',
'supports-hyperlinks',
'lodash.isboolean',
'fast-diff',
'simple-swizzle',
'fs-constants',
'@babel/plugin-transform-logical-assignment-operators',
'es-iterator-helpers',
'minipass-fetch',
'memfs',
'cross-fetch',
'synckit',
'asn1',
'@floating-ui/react-dom',
'gtoken',
'@babel/plugin-transform-numeric-separator',
'iterator.prototype',
'@babel/plugin-transform-nullish-coalescing-operator',
'@opentelemetry/api',
'@grpc/proto-loader',
'html-entities',
'jose',
'flat',
'gcp-metadata',
'validate-npm-package-name',
'@protobufjs/pool',
'@babel/plugin-transform-async-generator-functions',
'@eslint/config-helpers',
'@testing-library/jest-dom',
'@babel/preset-typescript',
'global-prefix',
'cacheable-request',
'@aws-crypto/sha256-browser',
'external-editor',
'@babel/plugin-transform-optional-catch-binding',
'@babel/helper-simple-access',
'thenify',
'@protobufjs/eventemitter',
'@protobufjs/inquire',
'@protobufjs/base64',
'@babel/plugin-transform-unicode-property-regex',
'global-modules',
'unist-util-visit-parents',
'camel-case',
'web-streams-polyfill',
'http-signature',
'enquirer',
'rechoir',
'css-loader',
'npm-package-arg',
'svgo',
'pend',
'eslint-plugin-prettier',
'ejs',
'verror',
'unist-util-is',
'tree-kill',
'@protobufjs/utf8',
'@protobufjs/fetch',
'sshpk',
'bignumber.js',
'@types/normalize-package-data',
'dot-case',
'param-case',
'@emotion/unitless',
'@radix-ui/react-use-layout-effect',
'duplexify',
'minipass-collect',
'@floating-ui/utils',
'pkg-types',
'@babel/helper-function-name',
'@babel/plugin-transform-export-namespace-from',
'@rtsao/scc',
'@pkgr/core',
'@graphql-tools/utils',
'lodash.includes',
'colors',
'@babel/plugin-transform-unicode-sets-regex',
'@types/aria-query',
'@types/eslint-scope',
'graphql',
'babel-plugin-macros',
'@babel/plugin-transform-class-static-block',
'@protobufjs/path',
'fd-slicer',
'@protobufjs/codegen',
'@inquirer/type',
'lodash.isinteger',
'aws4',
'array.prototype.findlast',
'unist-util-visit',
'fast-safe-stringify',
'acorn-globals',
'std-env',
'webpack-dev-middleware',
'decode-uri-component',
'@babel/plugin-transform-react-jsx',
'bcrypt-pbkdf',
'p-retry',
'babel-loader',
'lz-string',
'postcss-modules-extract-imports',
'@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly',
'aproba',
'@emnapi/core',
'abab',
'@babel/plugin-transform-json-strings',
'lodash.isnumber',
'dotenv-expand',
'responselike',
'eslint-utils',
'encoding',
'@types/hast',
'getpass',
'@hapi/hoek',
'jake',
'http-proxy-middleware',
'icss-utils',
'postcss-modules-values',
'@radix-ui/react-use-controllable-state',
'path-browserify',
'@babel/plugin-transform-dynamic-import',
'node-gyp-build',
'http-parser-js',
'err-code',
'widest-line',
'@types/tough-cookie',
'sharp',
'd3-array',
'caseless',
'url',
'damerau-levenshtein',
'tsutils',
'@grpc/grpc-js',
'postcss-modules-local-by-default',
'bowser',
'isstream',
'@szmarczak/http-timer',
'@protobufjs/aspromise',
'dashdash',
'lodash.uniq',
'domexception',
'fflate',
'at-least-node',
'node-gyp',
'filelist',
'@adobe/css-tools',
'repeat-string',
'@babel/plugin-syntax-unicode-sets-regex',
'consola',
'p-timeout',
'websocket-driver',
'eslint-plugin-jsx-a11y',
'postcss-modules-scope',
'promise-retry',
'invariant',
'get-east-asian-width',
'react-transition-group',
'cli-table3',
'crypto-random-string',
'is-ci',
'string.prototype.repeat',
'unicorn-magic',
'micromark-util-symbol',
'are-we-there-yet',
'object-is',
'@radix-ui/react-presence',
'clone-deep',
'ts-jest',
'language-tags',
'language-subtag-registry',
'tinyspy',
'@types/retry',
'string-argv',
'ua-parser-js',
'ret',
'csso',
'@radix-ui/react-dismissable-layer',
'unique-string',
'character-entities',
'faye-websocket',
'http-proxy',
'pascal-case',
'forever-agent',
'stream-shift',
'ecc-jsbn',
'npmlog',
'pretty-bytes',
'ast-types-flow',
'jsprim',
'unist-util-stringify-position',
'streamsearch',
'mdast-util-to-string',
'@emotion/is-prop-valid',
'minipass-flush',
'postcss-import',
'@radix-ui/react-id',
'@inquirer/core',
'classnames',
'sucrase',
'@babel/plugin-bugfix-firefox-class-in-computed-class-key',
'husky',
'shallow-clone',
'read-cache',
'd3-shape',
'@aws-sdk/util-locate-window',
'vfile',
'lodash-es',
'dom-helpers',
'css.escape',
'pluralize',
'@radix-ui/react-use-callback-ref',
'promise',
'@types/debug',
'pg-types',
'prettier-linter-helpers',
'react-router-dom',
'tldts-core',
'websocket-extensions',
'has',
'@smithy/util-waiter',
'@babel/plugin-transform-runtime',
'@vitest/snapshot',
'import-in-the-middle',
'duplexer',
'marked',
'gauge',
'micromark-util-character',
'@vitest/runner',
'json-parse-better-errors',
'detect-node',
'@testing-library/react',
'@babel/plugin-transform-react-display-name',
'd3-path',
'fast-fifo',
'npm-normalize-package-bin',
'@radix-ui/react-portal',
'eslint-plugin-react-hooks',
'detect-indent',
'immer',
'sass',
'@octokit/request-error',
'lie',
'tinyrainbow',
'streamx',
'@types/minimatch',
'postcss-js',
'acorn-import-attributes',
'webpack-virtual-modules',
'@alloc/quick-lru',
'node-domexception',
'cli-boxes',
'@noble/hashes',
'jest-environment-jsdom',
'aws-sign2',
'character-entities-legacy',
'vitest',
'table',
'@tybys/wasm-util',
'@emotion/hash',
'typedarray-to-buffer',
'sha.js',
'minipass-pipeline',
'typescript-eslint',
'@babel/preset-react',
'memoize-one',
'react-remove-scroll',
'property-information',
'stack-trace',
'camelcase-keys',
'@img/sharp-linux-x64',
'dlv',
'reflect-metadata',
'busboy',
'@babel/plugin-transform-react-jsx-source',
'boxen',
'postgres-array',
'@testing-library/user-event',
'luxon',
'postgres-bytea',
'@types/mdast',
'@types/chai',
'b4a',
'd3-interpolate',
'archiver-utils',
'postcss-nested',
'ts-interface-checker',
'defer-to-connect',
'immediate',
'postgres-date',
'eslint-import-resolver-typescript',
'unplugin',
'@inquirer/confirm',
'clean-css',
'arr-diff',
'mrmime',
'crc-32',
'd3-time',
'pidtree',
'file-uri-to-path',
'unified',
'bs-logger',
'@octokit/endpoint',
'rrweb-cssom',
'lodash.sortby',
'hash-base',
'module-details-from-path',
'validator',
'@radix-ui/react-use-escape-keydown',
'pg-protocol',
'@csstools/css-tokenizer',
'@babel/helper-hoist-variables',
'extract-zip',
'stackframe',
'winston',
'builtin-modules',
'fork-ts-checker-webpack-plugin',
'process-warning',
'style-loader',
'@inquirer/figures',
'@babel/plugin-transform-react-jsx-development',
'json-bigint',
'micromark-util-types',
'micromark',
'fastest-levenshtein',
'jquery',
'@smithy/eventstream-codec',
'@vitest/mocker',
'delegates',
'@emnapi/wasi-threads',
'@octokit/request',
'cac',
'upath',
'vfile-message',
'@csstools/css-parser-algorithms',
'postgres-interval',
'minipass-sized',
'space-separated-tokens',
'require-in-the-middle',
'@babel/plugin-transform-duplicate-named-capturing-groups-regex',
'@babel/plugin-bugfix-safari-class-field-initializer-scope',
'confbox',
'obuf',
'parse-entities',
'http2-wrapper',
'common-tags',
'@img/sharp-libvips-linux-x64',
'get-uri',
'is-alphanumerical',
'create-jest',
'redux',
'@babel/helper-environment-visitor',
'napi-postinstall',
'@radix-ui/react-focus-guards',
'tsx',
'@azure/abort-controller',
'vite-node',
'is-decimal',
'registry-auth-token',
'@babel/plugin-transform-react-pure-annotations',
'proxy-agent',
'd3-time-format',
'@rolldown/pluginutils',
'@radix-ui/react-collection',
'@isaacs/fs-minipass',
'd3-color',
'global-dirs',
'why-is-node-running',
'trim-newlines',
'postcss-loader',
'dateformat',
'webpack-merge',
'array-unique',
'symbol-observable',
'for-in',
'@types/resolve',
'error-stack-parser',
'd3-format',
'camelcase-css',
'atob',
'@aws-crypto/crc32',
'character-reference-invalid',
'sirv',
'whatwg-fetch',
'nice-try',
'bare-events',
'temp-dir',
'@emotion/serialize',
'querystring',
'pino',
'cacheable-lookup',
'@babel/plugin-proposal-class-properties',
'is-hexadecimal',
'yoctocolors-cjs',
'@types/yauzl',
'default-browser-id',
'bindings',
'@popperjs/core',
'd3-timer',
'didyoumean',
'sonic-boom',
'@radix-ui/react-focus-scope',
'd3-scale',
'universal-user-agent',
'regenerator-transform',
'has-unicode',
'react-hook-form',
'@vitejs/plugin-react',
'pac-resolver',
'lodash.get',
'winston-transport',
'exponential-backoff',
'pg-connection-string',
'@hapi/topo',
'image-size',
'@babel/plugin-syntax-dynamic-import',
'fs-monkey',
'lodash.defaults',
'@discoveryjs/json-ext',
'recast',
'js-cookie',
'ansi-align',
'remark-parse',
'logform',
'mdast-util-from-markdown',
'pac-proxy-agent',
'map-cache',
'get-stdin',
'generator-function',
'jsonparse',
'mimic-function',
'fetch-blob',
'gzip-size',
'siginfo',
'@types/glob',
'set-value',
'underscore',
'@smithy/eventstream-serde-config-resolver',
'degenerator',
'tldts',
'@babel/plugin-transform-react-jsx-self',
'@types/http-proxy',
'@smithy/eventstream-serde-universal',
'@octokit/plugin-paginate-rest',
'wide-align',
'console-control-strings',
'@octokit/auth-token',
'agentkeepalive',
'micromark-factory-space',
'@smithy/eventstream-serde-browser',
'query-string',
'tinybench',
'@radix-ui/react-direction',
'@emotion/utils',
'unrs-resolver',
'@swc/counter',
'tinypool',
'crc32-stream',
'has-ansi',
'is-inside-container',
'is-installed-globally',
'@types/jsonwebtoken',
'text-decoder',
'd3-ease',
'@emotion/weak-memoize',
'parse5-htmlparser2-tree-adapter',
'formidable',
'@aws-sdk/middleware-sdk-s3',
'@babel/plugin-syntax-bigint',
'oauth-sign',
'pngjs',
'internmap',
'expand-brackets',
'@babel/plugin-transform-regexp-modifiers',
'connect-history-api-fallback',
'@opentelemetry/sdk-metrics',
'@aws-sdk/signature-v4-multi-region',
'fecha',
'@aws-sdk/client-sts',
'lint-staged',
'webpack-dev-server',
'get-value',
'@emotion/cache',
'@parcel/watcher',
'micromark-util-sanitize-uri',
'@octokit/graphql',
'@aws-sdk/util-arn-parser',
'run-applescript',
'react-refresh',
'extglob',
'selfsigned',
'zwitch',
'trough',
'before-after-hook',
'environment',
'@smithy/eventstream-serde-node',
'sass-loader',
'bundle-name',
'color-support',
'mini-css-extract-plugin',
'@octokit/core',
'@polka/url',
'@emotion/sheet',
'arr-union',
'@types/node-fetch',
'joi',
'pino-std-serializers',
'bail',
'remove-trailing-separator',
'default-browser',
'is-alphabetical',
'@swc/core',
'batch',
'aria-hidden',
'stackback',
'html-minifier-terser',
'assert',
'comma-separated-tokens',
'eventemitter2',
'del',
'pg-int8',
'zip-stream',
'@types/pg',
'snake-case',
'jszip',
'styled-jsx',
'postcss-discard-duplicates',
'@radix-ui/react-popper',
'dompurify',
'@sentry/types',
'@csstools/color-helpers',
'@radix-ui/react-use-size',
'mitt',
'mkdirp-classic',
'select-hose',
'change-case',
'lazystream',
'reselect',
'@babel/plugin-transform-flow-strip-types',
'safe-regex',
'archiver',
'pino-abstract-transport',
'triple-beam',
'hpack.js',
'multicast-dns',
'request',
'compress-commons',
'stream-browserify',
'@types/d3-color',
'lodash.isequal',
'postcss-calc',
'postcss-merge-rules',
'micromark-util-chunked',
'micromark-util-classify-character',
'@types/d3-time',
'micromark-util-normalize-identifier',
'denque',
'postcss-minify-selectors',
'client-only',
'micromark-util-decode-numeric-character-reference',
'micromark-factory-whitespace',
'basic-ftp',
'ccount',
'dns-packet',
'micromark-factory-label',
'tailwind-merge',
'@types/d3-interpolate',
'mdurl',
'pinkie-promise',
'postcss-discard-empty',
'async-retry',
'har-validator',
'micromark-util-encode',
'terminal-link',
'@types/d3-shape',
'enabled',
'spdy-transport',
'kuler',
'formdata-polyfill',
'regexpp',
'postcss-minify-params',
'mdast-util-to-markdown',
'eventsource',
'lucide-react',
'find-root',
'colord',
'micromark-factory-destination',
'relateurl',
'wbuf',
'micromark-util-html-tag-name',
'simple-get',
'throat',
'promise-inflight',
'one-time',
'micromark-core-commonmark',
'google-logging-utils',
'@babel/plugin-syntax-flow',
'postcss-discard-comments',
'source-map-resolve',
'linkify-it',
'handle-thing',
'humanize-ms',
'envinfo',
'postcss-normalize-charset',
'use-sidecar',
'text-hex',
'get-port',
'untildify',
'@radix-ui/react-arrow',
'spdy',
'totalist',
'@vue/shared',
'@types/http-cache-semantics',
'@octokit/plugin-rest-endpoint-methods',
'functional-red-black-tree',
'big-integer',
'@fastify/busboy',
'postcss-minify-gradients',
'ripemd160',
'postcss-normalize-url',
'superagent',
'react-fast-compare',
'core-js-pure',
'longest-streak',
'type',
'ansi-html-community',
'micromark-util-decode-string',
'postcss-minify-font-values',
'eslint-plugin-jest',
'proto-list',
'stylehacks',
'cssnano',
'@swc/types',
'simple-concat',
'micromark-util-subtokenize',
'fast-equals',
'har-schema',
'http-deceiver',
'wildcard',
'unist-util-position',
'react-redux',
'micromark-factory-title',
'@csstools/css-color-parser',
'asn1.js',
'@xmldom/xmldom',
'@aws-sdk/middleware-bucket-endpoint',
'@aws-sdk/middleware-ssec',
'@types/prettier',
'postcss-normalize-unicode',
'lightningcss',
'@types/d3-array',
'@swc/core-linux-x64-gnu',
'@csstools/css-calc',
'@radix-ui/react-dialog',
'postcss-merge-longhand',
'devtools-protocol',
'@opentelemetry/context-async-hooks',
'@sentry/utils',
'pinkie',
'micromark-util-resolve-all',
'serve-index',
'cheerio',
'import-lazy',
'@inquirer/external-editor',
'fn.name',
'config-chain',
'postcss-unique-selectors',
'postcss-colormin',
'thunky',
'elliptic',
'ufo',
'@dabh/diagnostics',
'html-webpack-plugin',
'postcss-normalize-whitespace',
'@tootallnate/quickjs-emscripten',
'use-callback-ref',
'string.prototype.includes',
'@types/triple-beam',
'sort-keys',
'object.pick',
'react-remove-scroll-bar',
'dezalgo',
'postcss-reduce-transforms',
'@aws-sdk/middleware-expect-continue',
'@radix-ui/react-roving-focus',
'@radix-ui/rect',
'@types/cors',
'resolve-alpn',
'hash.js',
'xdg-basedir',
'postcss-reduce-initial',
'@smithy/md5-js',
'zod-to-json-schema',
'router',
'@inquirer/prompts',
'retry-request',
'micromark-util-combine-extensions',
'filesize',
'@types/d3-path',
'opener',
'@sentry/core',
'@babel/plugin-proposal-object-rest-spread',
'postcss-convert-values',
'registry-url',
'get-nonce',
'strip-eof',
'postcss-svgo',
'expand-tilde',
'to-buffer',
'react-style-singleton',
'@trysound/sax',
'@aws-sdk/middleware-flexible-checksums',
'@asamuzakjp/css-color',
'is-path-cwd',
'postcss-discard-overridden',
'es6-promise',
'sockjs',
'@tanstack/query-core',
'@types/jsdom',
'@radix-ui/react-visually-hidden',
'@babel/plugin-syntax-decorators',
'defu',
'strip-literal',
'@sindresorhus/merge-streams',
'mocha',
'postcss-normalize-string',
'@emotion/use-insertion-effect-with-fallbacks',
'css-declaration-sorter',
'@isaacs/balanced-match',
'shimmer',
'@aws-sdk/client-s3',
'postcss-normalize-positions',
'zustand',
'browserify-zlib',
'errno',
'teeny-request',
'uc.micro',
'create-hash',
'lodash.clonedeep',
'postcss-ordered-values',
'clone-response',
'@emotion/react',
'mdast-util-to-hast',
'pretty-error',
'p-queue',
'@angular-devkit/schematics',
'set-cookie-parser',
'confusing-browser-globals',
'@isaacs/brace-expansion',
'postcss-normalize-repeat-style',
'caniuse-api',
'cssnano-preset-default',
'repeat-element',
'strict-uri-encode',
'@vue/compiler-core',
'union-value',
'renderkid',
'assign-symbols',
'url-join',
'homedir-polyfill',
'upper-case',
'node-abort-controller',
'@npmcli/agent',
'prr',
'detect-node-es',
'es-get-iterator',
'inline-style-parser',
'@types/cookie',
'postcss-normalize-display-values',
'q',
'node-abi',
'@radix-ui/react-use-previous',
'@types/trusted-types',
'@types/react-transition-group',
'@unrs/resolver-binding-linux-x64-gnu',
'moment-timezone',
'serialize-error',
'resolve-url',
'brorand',
'source-map-url',
'highlight.js',
'expect-type',
'lightningcss-linux-x64-gnu',
'prismjs',
'@tanstack/react-query',
'minimist-options',
'warning',
'strtok3',
'is-what',
'hmac-drbg',
'is-regexp',
'postcss-normalize-timing-functions',
'@graphql-tools/merge',
'atomic-sleep',
'@babel/plugin-proposal-decorators',
'@inquirer/input',
'@js-sdsl/ordered-map',
'@types/node-forge',
'@aws-sdk/middleware-location-constraint',
'arr-flatten',
'cross-env',
'decode-named-character-reference',
'split-string',
'npm-pick-manifest',
'@graphql-tools/schema',
'playwright-core',
'@rushstack/eslint-patch',
'@types/connect-history-api-fallback',
'object-visit',
'collection-visit',
'decamelize-keys',
'pseudomap',
'engine.io-parser',
'@opentelemetry/sdk-logs',
'launch-editor',
'pascalcase',
'v8-compile-cache',
'style-to-object',
'copy-descriptor',
'urix',
'@emotion/babel-plugin',
'static-extend',
'pg-pool',
'parse-ms',
'pg',
'fragment-cache',
'arch',
'void-elements',
'@inquirer/select',
'@types/d3-timer',
'use-sync-external-store',
'parse-passwd',
'@yarnpkg/lockfile',
'@types/hoist-non-react-statics',
'@svgr/core',
'ignore-walk',
'ramda',
'markdown-it',
'@types/d3-ease',
'@inquirer/expand',
'@vue/compiler-dom',
'@vue/compiler-sfc',
'cookiejar',
'to-object-path',
'@svgr/babel-plugin-transform-react-native-svg',
'npm-packlist',
'use',
'debounce',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@svgr/babel-plugin-svg-dynamic-title',
'@types/serve-index',
'@svgr/babel-plugin-add-jsx-attribute',
'@svgr/hast-util-to-babel-ast',
'@inquirer/password',
'socket.io-parser',
'@inquirer/checkbox',
'pretty-ms',
'to-regex',
'@babel/plugin-proposal-optional-chaining',
'@typescript-eslint/experimental-utils',
'@svgr/plugin-jsx',
'colorspace',
'loglevel',
'path-is-inside',
'tempy',
'minimalistic-crypto-utils',
'snapdragon',
'@svgr/babel-plugin-replace-jsx-attribute-value',
'jsonpointer',
'npm-bundled',
'react-router',
'memory-fs',
'@types/minimist',
'class-utils',
'configstore',
'@types/long',
'duplexer2',
'@babel/helper-builder-binary-assignment-operator-visitor',
'shallowequal',
'@svgr/babel-plugin-svg-em-dimensions',
'@smithy/hash-stream-node',
'cipher-base',
'pbkdf2',
'cache-base',
'secure-json-parse',
'dom-converter',
'readdir-glob',
'@csstools/selector-specificity',
'@types/html-minifier-terser',
'object-copy',
'unset-value',
'@npmcli/promise-spawn',
'acorn-import-assertions',
'@types/keyv',
'ts-dedent',
'mixin-deep',
'mlly',
'@parcel/watcher-linux-x64-glibc',
'@types/deep-eql',
'utila',
'@hookform/resolvers',
'@svgr/babel-plugin-remove-jsx-empty-expression',
'@smithy/chunked-blob-reader-native',
'@inquirer/editor',
'eventsource-parser',
'workerpool',
'snapdragon-util',
'@esbuild/linux-arm64',
'es6-symbol',
'klona',
'mri',
'@inquirer/rawlist',
'snapdragon-node',
'@radix-ui/number',
'd',
'ip',
'filter-obj',
'regex-not',
'base',
'@types/sockjs',
'@types/bonjour',
'@rollup/plugin-node-resolve',
'@svgr/babel-preset',
'bonjour-service',
'@smithy/hash-blob-browser',
'character-entities-html4',
'markdown-table',
'browser-process-hrtime',
'xml',
'next-tick',
'urlpattern-polyfill',
'@opentelemetry/otlp-transformer',
'idb',
'split',
'@azure/core-tracing',
'@types/responselike',
'lodash.isarguments',
'posix-character-classes',
'resolve-dir',
'form-data-encoder',
'token-types',
'nanomatch',
'npm-install-checks',
'pumpify',
'browserify-aes',
'stringify-entities',
'quick-format-unescaped',
'@vue/compiler-ssr',
'browserify-sign',
'JSONStream',
'prepend-http',
'on-exit-leak-free',
'@aws-crypto/crc32c',
'@opentelemetry/otlp-exporter-base',
'@aws-crypto/sha1-browser',
'file-loader',
'@inquirer/search',
'crypto-browserify',
'@inquirer/number',
'es5-ext',
'jest-serializer',
'number-is-nan',
'md5',
'playwright',
'@types/geojson',
'lodash.truncate',
'@parcel/watcher-linux-x64-musl',
'is-lambda',
'upper-case-first',
'@jest/get-type',
'ohash',
'object.getownpropertydescriptors',
'tabbable',
'@swc/core-linux-x64-musl',
'hard-rejection',
'crypt',
'charenc',
'@babel/plugin-syntax-export-namespace-from',
'@smithy/chunked-blob-reader',
'constants-browserify',
'prebuild-install',
'@standard-schema/spec',
'findup-sync',
'@google-cloud/promisify',
'@leichtgewicht/ip-codec',
'is-bun-module',
'is-retry-allowed',
'html-tags',
'cluster-key-slot',
'map-visit',
'tunnel',
'notifications-node-client',
'node-fetch-native',
'raf',
'des.js',
'@storybook/core-events',
'magicast',
'@npmcli/git',
'conventional-commits-parser',
'@svgr/babel-plugin-remove-jsx-attribute',
'babel-runtime',
'address',
'web-vitals',
'@octokit/rest',
'copy-anything',
'hast-util-whitespace',
'@types/sinonjs__fake-timers',
'hast-util-parse-selector',
'mdast-util-phrasing',
'google-gax',
'pgpass',
'sourcemap-codec',
'stringify-object',
'ip-regex',
'@storybook/client-logger',
'traverse',
'trim-lines',
'crypto-js',
'@formatjs/intl-localematcher',
'create-hmac',
'builtins',
'shelljs',
'w3c-hr-time',
'proto3-json-serializer',
'@sentry/node',
'is-reference',
'@sideway/formula',
'preact',
'es6-iterator',
'jwt-decode',
'stable',
'isomorphic-ws',
'browser-stdout',
'diffie-hellman',
'remark-rehype',
'@types/use-sync-external-store',
'@faker-js/faker',
'ts-loader',
'@sideway/address',
'libphonenumber-js',
'code-point-at',
'is-module',
'https-browserify',
'webpack-cli',
'connect',
'console-browserify',
'i18next',
'github-from-package',
'pg-cloudflare',
'util.promisify',
'pkg-up',
'async-limiter',
'svg-parser',
'real-require',
'json-stable-stringify',
'md5.js',
'default-gateway',
'es6-error',
'hastscript',
'@nolyfill/is-core-module',
'cssnano-utils',
'@opentelemetry/instrumentation-http',
'needle',
'timers-browserify',
'copy-webpack-plugin',
'conventional-changelog-angular',
'stream-http',
'base64-arraybuffer',
'puppeteer-core',
'source-list-map',
'array-uniq',
'@storybook/channels',
'import-from',
'parse-asn1',
'@radix-ui/react-select',
'yargs-unparser',
'redux-thunk',
'common-path-prefix',
'call-me-maybe',
'@sideway/pinpoint',
'micromark-extension-gfm-table',
'devlop',
'domain-browser',
'builtin-status-codes',
'@jest/diff-sequences',
'infer-owner',
'evp_bytestokey',
'@radix-ui/react-separator',
'os-homedir',
'os-browserify',
'semver-compare',
'querystring-es3',
'package-json',
'jest-jasmine2',
'npm',
'express-rate-limit',
'@azure/core-rest-pipeline',
'@types/request',
'aws-sdk',
'perfect-debounce',
'@babel/plugin-proposal-numeric-separator',
'ioredis',
'get-func-name',
'@storybook/theming',
'concurrently',
'node-emoji',
'@mdx-js/react',
'@npmcli/move-file',
'redis-parser',
'bare-fs',
'deprecation',
'@radix-ui/react-dropdown-menu',
'@aws-sdk/client-sso-oidc',
'cheerio-select',
'sentence-case',
'netmask',
'@radix-ui/react-tabs',
'buffer-xor',
'npm-registry-fetch',
'tty-browserify',
'touch',
'@graphql-typed-document-node/core',
'@babel/plugin-transform-explicit-resource-management',
'vm-browserify',
'better-opn',
'nodemon',
'undefsafe',
'limiter',
'portfinder',
'browserify-rsa',
'ignore-by-default',
'throttleit',
'@noble/curves',
'fbjs',
'@types/shimmer',
'@mui/utils',
'@tokenizer/token',
'miller-rabin',
'path-case',
'jsonify',
'redis-errors',
'@radix-ui/react-menu',
'@babel/plugin-proposal-private-methods',
'ext',
'public-encrypt',
'@azure/msal-common',
'stream-events',
'@remix-run/router',
'@tailwindcss/oxide',
'recharts',
'@tailwindcss/node',
'vscode-uri',
'@esbuild/darwin-arm64',
'local-pkg',
'lodash.flatten',
'@aws/lambda-invoke-store',
'engine.io',
'simple-update-notifier',
'micromark-extension-gfm',
'@esbuild/win32-x64',
'@radix-ui/react-tooltip',
'@emotion/styled',
'socket.io',
'@jest/pattern',
'source-map-loader',
'@google-cloud/paginator',
'get-own-enumerable-property-symbols',
'@svgr/plugin-svgo',
'@babel/eslint-parser',
'ansis',
'bplist-parser',
'class-variance-authority',
'pacote',
'@formatjs/ecma402-abstract',
'napi-build-utils',
'randomfill',
'semver-diff',
'browserify-cipher',
'resize-observer-polyfill',
'bare-path',
'create-ecdh',
'adm-zip',
'destr',
'jmespath',
'stubs',
'known-css-properties',
'@storybook/csf',
'@modelcontextprotocol/sdk',
'expand-template',
'case-sensitive-paths-webpack-plugin',
'supertest',
'dependency-graph',
'@socket.io/component-emitter',
'pstree.remy',
'toposort',
'd3-dispatch',
'resolve-url-loader',
'@opentelemetry/instrumentation-express',
'@npmcli/run-script',
'constant-case',
'bare-stream',
'is-builtin-module',
'mdast-util-find-and-replace',
'bare-os',
'@types/caseless',
'is-relative',
'hermes-parser',
'browserify-des',
'motion-utils',
'base64id',
'for-own',
'@google-cloud/projectify',
'yup',
'header-case',
'stable-hash',
'from2',
'citty',
'hermes-estree',
'@types/validator',
'remark-stringify',
'@octokit/plugin-request-log',
'@types/scheduler',
'bson',
'giget',
'micromark-extension-gfm-autolink-literal',
'd3-selection',
'@types/fs-extra',
'basic-auth',
'@whatwg-node/fetch',
'dargs',
'@azure/core-util',
'mdast-util-gfm-autolink-literal',
'@npmcli/package-json',
'mdast-util-gfm',
'micromark-extension-gfm-footnote',
'unbzip2-stream',
'strict-event-emitter',
'victory-vendor',
'@opentelemetry/instrumentation-pg',
'micromark-extension-gfm-strikethrough',
'split-on-first',
'regex-parser',
'compare-func',
'@radix-ui/react-collapsible',
'fast-redact',
'lodash.mergewith',
'url-parse-lax',
'less',
'es-array-method-boxes-properly',
'@radix-ui/react-popover',
'punycode.js',
'@sentry-internal/feedback',
'sinon',
'p-defer',
'rsvp',
'@paralleldrive/cuid2',
'polished',
'append-field',
'is-utf8',
'@opentelemetry/instrumentation-mongodb',
'lodash.flattendeep',
'@webpack-cli/info',
'mdast-util-gfm-strikethrough',
'd3-transition',
'mustache',
'use-isomorphic-layout-effect',
'adjust-sourcemap-loader',
'is-unc-path',
'@esbuild/darwin-x64',
'socket.io-adapter',
'@types/mdx',
'@mui/types',
'@webpack-cli/serve',
'capital-case',
'camelize',
'postcss-safe-parser',
'@radix-ui/react-label',
'@svgr/babel-plugin-transform-svg-component',
'@babel/runtime-corejs3',
'identity-obj-proxy',
'isbinaryfile',
'acorn-import-phases',
'array-ify',
'@opentelemetry/instrumentation-mongoose',
'text-extensions',
'micromark-extension-gfm-task-list-item',
'latest-version',
'natural-compare-lite',
'@opentelemetry/redis-common',
'outvariant',
'@radix-ui/react-use-rect',
'hasha',
'@rollup/plugin-commonjs',
'is-text-path',
'event-emitter',
'tsconfig-paths-webpack-plugin',
'@puppeteer/browsers',
'decimal.js-light',
'@turf/helpers',
'estree-util-is-identifier-name',
'is-absolute',
'@types/aws-lambda',
'webpack-bundle-analyzer',
'@opentelemetry/instrumentation-hapi',
'@mapbox/node-pre-gyp',
'is-absolute-url',
'@inquirer/ansi',
'is-nan',
'd3-drag',
'compare-versions',
'@tailwindcss/oxide-linux-x64-gnu',
'walk-up-path',
'@types/cacheable-request',
'micromark-extension-gfm-tagfilter',
'react-easy-router',
'caller-path',
'mdast-util-mdx-jsx',
'mdast-util-gfm-table',
'git-raw-commits',
'@apidevtools/json-schema-ref-parser',
'@npmcli/node-gyp',
'@types/sizzle',
'escape-goat',
'remark-gfm',
'@vitest/coverage-v8',
'@esbuild/linux-loong64',
'@mswjs/interceptors',
'@opentelemetry/instrumentation-knex',
'react-markdown',
'@formatjs/icu-messageformat-parser',
'is-npm',
'graphql-tag',
'@opentelemetry/instrumentation-mysql',
'@next/env',
'@sentry-internal/replay-canvas',
'mdast-util-gfm-task-list-item',
'@esbuild/win32-arm64',
'csv-parse',
'async-each',
'@formatjs/icu-skeleton-parser',
'jsonpath-plus',
'd3-zoom',
'@opentelemetry/instrumentation-fs',
'mdast-util-mdx-expression',
'@radix-ui/react-use-effect-event',
'mongodb',
'import-meta-resolve',
'nullthrows',
'multer',
'@esbuild/openbsd-x64',
'title-case',
'@storybook/components',
'joycon',
'@esbuild/win32-ia32',
'cachedir',
'@esbuild/linux-ppc64',
'@esbuild/netbsd-x64',
'@opentelemetry/instrumentation-ioredis',
'@npmcli/installed-package-contents',
'react-docgen',
'@graphql-codegen/plugin-helpers',
'css-to-react-native',
'@opentelemetry/instrumentation-graphql',
'copy-to-clipboard',
'@opentelemetry/instrumentation-connect',
'standard-as-callback',
'unc-path-regex',
'@esbuild/linux-arm',
'harmony-reflect',
'@webpack-cli/configtest',
'@esbuild/android-arm64',
'@esbuild/linux-riscv64',
'@types/mysql',
'path-root-regex',
'archy',
'styled-components',
'intl-messageformat',
'next',
'@opentelemetry/instrumentation-tedious',
'js-base64',
'@whatwg-node/node-fetch',
'@types/doctrine',
'property-expr',
'replace-ext',
'@opentelemetry/instrumentation-koa',
'@opentelemetry/instrumentation-mysql2',
'globrex',
'array-back',
'@opentelemetry/instrumentation-lru-memoizer',
'sonner',
'@esbuild/freebsd-x64',
'@azure/logger',
'jsdoc-type-pratt-parser',
'@rollup/plugin-replace',
'lodash.union',
'@ioredis/commands',
'lodash.difference',
'@sinonjs/samsam',
'lodash.snakecase',
'@opentelemetry/instrumentation-generic-pool',
'react-docgen-typescript',
'date-format',
'babel-core',
'@esbuild/linux-mips64el',
'@esbuild/freebsd-arm64',
'detect-file',
'stdin-discarder',
'is-url',
'c12',
'@reduxjs/toolkit',
'vue',
'@types/pg-pool',
'is-node-process',
'@storybook/global',
'lodash.throttle',
'jest-junit',
'peek-readable',
'chromium-bidi',
'openai',
'@types/js-yaml',
'@pmmmwh/react-refresh-webpack-plugin',
'eslint-plugin-react-refresh',
'@azure/msal-browser',
'css-color-keywords',
'@svgr/webpack',
'@opentelemetry/instrumentation-amqplib',
'esniff',
'p-is-promise',
'@types/superagent',
'parse-node-version',
'thread-stream',
'recharts-scale',
'@radix-ui/react-checkbox',
'@radix-ui/react-toggle',
'react-lifecycles-compat',
'lodash.isfunction',
'postcss-nesting',
'path-root',
'@babel/register',
'@types/luxon',
'is-directory',
'vfile-location',
'robust-predicates',
'@babel/plugin-proposal-async-generator-functions',
'@esbuild/linux-ia32',
'@formatjs/fast-memoize',
'@storybook/preview-api',
'@babel/plugin-proposal-optional-catch-binding',
'@esbuild/android-arm',
'cron-parser',
'@babel/plugin-transform-react-constant-elements',
'@esbuild/linux-s390x',
'mdast-util-mdxjs-esm',
'motion-dom',
'tiny-warning',
'os-locale',
'exsolve',
'array-differ',
'rw',
'zod-validation-error',
'simple-git',
'@gar/promisify',
'tinycolor2',
'fast-copy',
'append-transform',
'eslint-plugin-testing-library',
'nodemailer',
'jsep',
'@open-draft/until',
'nypm',
'@opentelemetry/sdk-trace-node',
'msw',
'@esbuild/android-x64',
'@esbuild/sunos-x64',
'path-dirname',
'@aws-sdk/client-cognito-identity',
'@jest/create-cache-key-function',
'@aashutoshrathi/word-wrap',
'@mui/system',
'tsconfck',
'executable',
'update-notifier',
'parse-filepath',
'eslint-config-airbnb-base',
'@sentry/cli',
'@sigstore/protobuf-specs',
'@opentelemetry/exporter-trace-otlp-http',
'd3-geo',
'morgan',
'wsl-utils',
'@aws-sdk/credential-provider-cognito-identity',
'@nicolo-ribaudo/eslint-scope-5-internals',
'pkce-challenge',
'@next/swc-linux-x64-gnu',
'toggle-selection',
'lodash.kebabcase',
'@jsonjoy.com/json-pack',
'babylon',
'@types/supertest',
'@prisma/engines-version',
'@radix-ui/react-toggle-group',
'yarn',
'@floating-ui/react',
'@babel/helper-get-function-arity',
'dataloader',
'dset',
'd3-hierarchy',
'node-gyp-build-optional-packages',
'log4js',
'socket.io-client',
'@babel/plugin-proposal-logical-assignment-operators',
'tuf-js',
'@sigstore/tuf',
'queue',
'@ts-morph/common',
'redis',
'@aws-sdk/util-format-url',
'forwarded-parse',
'@radix-ui/react-progress',
'nyc',
'semver-regex',
'xmlhttprequest-ssl',
'@jsonjoy.com/util',
'@angular-devkit/core',
'@azure/msal-node',
'tsscmp',
'mem',
'conventional-changelog-conventionalcommits',
'lazy-cache',
'@aws-sdk/credential-providers',
'compute-scroll-into-view',
'@storybook/types',
'mdast-util-gfm-footnote',
'types-registry',
'@lukeed/csprng',
'@babel/plugin-proposal-unicode-property-regex',
'@sentry-internal/replay',
'read-package-json-fast',
'@opentelemetry/propagator-b3',
'@opentelemetry/sql-common',
'@react-native/normalize-colors',
'@azure/core-client',
'vinyl',
'fbjs-css-vars',
'slugify',
'history',
'@mui/private-theming',
'@types/cookiejar',
'temp',
'is-finite',
'@storybook/node-logger',
'comment-json',
'istanbul-lib-hook',
'html-void-elements',
'p-reduce',
'class-transformer',
'ajv-errors',
'@cypress/request',
'@sentry/react',
'multimatch',
'@types/tedious',
'@sigstore/bundle',
'@aws-sdk/util-utf8-browser',
'typical',
'cypress',
'is-lower-case',
'postcss-attribute-case-insensitive',
'pino-pretty',
'@sentry-internal/browser-utils',
'@google-cloud/storage',
'@radix-ui/react-switch',
'css-minimizer-webpack-plugin',
'react-i18next',
'postcss-color-rebeccapurple',
'@radix-ui/react-radio-group',
'postcss-color-hex-alpha',
'sigstore',
'svg-tags',
'postcss-media-query-parser',
'postcss-custom-properties',
'react-select',
'pupa',
'tree-dump',
'@jsdevtools/ono',
'fast-check',
'check-more-types',
'@types/q',
'@opentelemetry/propagator-jaeger',
'@sentry/browser',
'@radix-ui/react-avatar',
'engine.io-client',
'postcss-color-functional-notation',
'@ai-sdk/provider-utils',
'rc9',
'@mui/material',
'streamroller',
'caller-callsite',
'@kwsites/promise-deferred',
'@babel/preset-flow',
'jest-watch-typeahead',
'duplexer3',
'@sigstore/sign',
'@radix-ui/react-accordion',
'style-to-js',
'@playwright/test',
'@opentelemetry/instrumentation-dataloader',
'thingies',
'@opentelemetry/instrumentation-undici',
'es6-weak-map',
'@mui/styled-engine',
'value-or-promise',
'postcss-custom-media',
'@babel/plugin-proposal-json-strings',
'yoctocolors',
'lodash.escaperegexp',
'invert-kv',
'array-find-index',
'@storybook/addon-outline',
'read',
'@tufjs/models',
'@types/markdown-it',
'@react-types/shared',
'@vue/server-renderer',
'@types/phoenix',
'@pnpm/npm-conf',
'array.prototype.reduce',
'@types/whatwg-url',
'postcss-place',
'ansi-html',
'@graphql-tools/optimize',
'@smithy/uuid',
'fast-content-type-parse',
'stylelint',
'postcss-custom-selectors',
'puppeteer',
'css-blank-pseudo',
'@jsep-plugin/regex',
'ts-morph',
'fault',
'turbo',
'postcss-logical',
'postcss-selector-not',
'@radix-ui/react-scroll-area',
'filenamify',
'postcss-lab-function',
'css-has-pseudo',
'is-upper-case',
'@microsoft/tsdoc',
'@vue/reactivity',
'filename-reserved-regex',
'postcss-double-position-gradients',
'p-event',
'delaunator',
'@graphql-tools/relay-operation-optimizer',
'postcss-gap-properties',
'@next/swc-linux-x64-musl',
'@opentelemetry/instrumentation-kafkajs',
'postcss-pseudo-class-any-link',
'postcss-image-set-function',
'lodash.startcase',
'swap-case',
'formdata-node',
'postcss-preset-env',
'@jest/snapshot-utils',
'@nestjs/common',
'find-versions',
'@supabase/storage-js',
'@supabase/postgrest-js',
'lazy-ass',
'@storybook/router',
'fromentries',
'@supabase/functions-js',
'postcss-font-variant',
'vscode-languageserver-types',
'postcss-focus-visible',
'@open-draft/deferred-promise',
'effect',
'web-namespaces',
'postcss-replace-overflow-wrap',
'request-progress',
'react-dropzone',
'@vue/runtime-dom',
'postcss-dir-pseudo-class',
'caching-transform',
'postcss-page-break',
'@angular-devkit/architect',
'html-parse-stringify',
'is-property',
'url-template',
'editorconfig',
'lcid',
'spawn-wrap',
'postcss-focus-within',
'@pnpm/network.ca-file',
'@graphql-codegen/visitor-plugin-common',
'css-prefers-color-scheme',
'd3-quadtree',
'mongodb-connection-string-url',
'jju',
'base-x',
'@standard-schema/utils',
'stream-buffers',
'd3-force',
'help-me',
'lower-case-first',
'github-slugger',
'swagger-ui-dist',
'@module-federation/sdk',
'tailwindcss-animate',
'@nx/devkit',
'default-require-extensions',
'memoizerific',
'object.hasown',
'graphql-ws',
'@rollup/plugin-babel',
'headers-polyfill',
'@supabase/auth-js',
'@jsonjoy.com/base64',
'delay',
'@isaacs/ttlcache',
'isomorphic-fetch',
'cssdb',
'@sec-ant/readable-stream',
'@storybook/core-common',
'@tanstack/table-core',
'ajv-draft-04',
'change-case-all',
'@vue/runtime-core',
'@storybook/addon-actions',
'unquote',
'@tufjs/canonical-json',
'@pnpm/config.env-replace',
'attr-accept',
'@storybook/icons',
'swr',
'find-up-simple',
'@azure/core-lro',
'babel-plugin-dynamic-import-node',
'nise',
'release-zalgo',
'@babel/plugin-proposal-dynamic-import',
'@open-draft/logger',
'hyperdyperid',
'@types/mdurl',
'@radix-ui/react-slider',
'detect-port',
'@esbuild/aix-ppc64',
'@storybook/manager-api',
'less-loader',
'd3-dsv',
'chart.js',
'w3c-keyname',
'@actions/http-client',
'fstream',
'array-timsort',
'stream-combiner',
'mnemonist',
'@next/eslint-plugin-next',
'cosmiconfig-typescript-loader',
'@stoplight/types',
'global',
'format',
'@supabase/realtime-js',
'@babel/regjsgen',
'@types/d3-selection',
'auto-bind',
'hast-util-from-parse5',
'repeating',
'react-error-boundary',
'code-block-writer',
'babel-plugin-syntax-trailing-function-commas',
'vscode-languageserver-textdocument',
'is-path-in-cwd',
'recursive-readdir',
'grapheme-splitter',
'coa',
'graphql-request',
'yaml-ast-parser',
'@bufbuild/protobuf',
'queue-tick',
'@dnd-kit/core',
'ospath',
'@mui/core-downloads-tracker',
'@storybook/core',
'global-directory',
'lighthouse-logger',
'@babel/plugin-proposal-export-namespace-from',
'webpack-node-externals',
'protocols',
'exec-sh',
'file-selector',
'metro-source-map',
'requireindex',
'unzipper',
'@storybook/addon-highlight',
'stylelint-config-recommended',
'@azure/core-paging',
'msgpackr',
'@aws-sdk/middleware-signing',
'process-on-spawn',
'generic-pool',
'@csstools/media-query-list-parser',
'flush-write-stream',
'esbuild-register',
'uint8array-extras',
'react-day-picker',
'@kwsites/file-exists',
'@tanstack/react-virtual',
'@react-aria/utils',
'@tanstack/react-table',
'package-hash',
'@types/d3-time-format',
'hyphenate-style-name',
'@radix-ui/react-alert-dialog',
'workbox-core',
'js-beautify',
'vue-eslint-parser',
'deepmerge-ts',
'@commitlint/types',
'@dnd-kit/utilities',
'chrome-launcher',
'@types/statuses',
'map-or-similar',
'moo',
'pretty-hrtime',
'@tailwindcss/postcss',
'@commitlint/execute-rule',
'@react-aria/ssr',
'eslint-plugin-promise',
'min-document',
'd3',
'ssh2',
'helmet',
'@yarnpkg/parsers',
'@typespec/ts-http-runtime',
'randexp',
'request-promise-core',
'react-error-overlay',
'wait-on',
'@dnd-kit/accessibility',
'jasmine-core',
'@sentry/cli-linux-x64',
'@firebase/database-compat',
'd3-delaunay',
'vite-tsconfig-paths',
'@supabase/supabase-js',
'@cypress/xvfb',
'@dnd-kit/sortable',
'strip-comments',
'postcss-resolve-nested-selector',
'memorystream',
'@types/mocha',
'regexp-tree',
'has-yarn',
'@vue/devtools-api',
'@contenthook/node',
'is-yarn-global',
'@types/d3-zoom',
'@nestjs/core',
'ent',
'clipboardy',
'@opentelemetry/otlp-grpc-exporter-base',
'@types/d3-format',
'@storybook/addon-controls',
'unist-util-remove-position',
'@storybook/addon-docs',
'just-extend',
'@types/d3-scale',
'to-arraybuffer',
'@anthropic-ai/claude-code',
'@storybook/addon-viewport',
'btoa',
'@commitlint/resolve-extends',
'contenthook',
'hast-util-to-jsx-runtime',
'postcss-overflow-shorthand',
'cmdk',
'write',
'@types/js-cookie',
'msgpackr-extract',
'fast-decode-uri-component',
'quansync',
'exit-x',
'@turf/invariant',
'shellwords',
'postcss-flexbugs-fixes',
'growly',
'conventional-changelog-writer',
'css-line-break',
'@types/d3-transition',
'bs58',
'conventional-commits-filter',
'@contenthook/browser',
'@storybook/react',
'crelt',
'mathml-tag-names',
'to-readable-stream',
'obliterator',
'p-each-series',
'jscodeshift',
'embla-carousel',
'please-upgrade-node',
'is-network-error',
'istanbul-lib-processinfo',
'koa',
'url-loader',
'workbox-cacheable-response',
'mdast-util-definitions',
'ob1',
'workbox-routing',
'@ardatan/relay-compiler',
'@types/methods',
'@graphql-tools/batch-execute',
'@types/d3-delaunay',
'd3-axis',
'getos',
'jwks-rsa',
'webpack-hot-middleware',
'pdfjs-dist',
'd3-random',
'@opentelemetry/instrumentation-redis-4',
'@types/webidl-conversions',
'@commitlint/load',
'readable-web-to-node-stream',
'workbox-google-analytics',
'@types/d3-drag',
'metro-runtime',
'chalk-template',
'v8flags',
'iterare',
'p-filter',
'@react-native/codegen',
'@jsep-plugin/assignment',
'zen-observable-ts',
'@ai-sdk/provider',
'ts-invariant',
'workbox-navigation-preload',
'workbox-sw',
'read-package-json',
'is-primitive',
'throttle-debounce',
'@graphql-tools/delegate',
'comment-parser',
'dom-walk',
'buffers',
'd3-polygon',
'sqlstring',
'css-select-base-adapter',
'react-test-renderer',
'read-cmd-shim',
'package-manager-detector',
'flow-parser',
'@module-federation/runtime',
'@nx/nx-linux-x64-gnu',
'hast-util-raw',
'uid',
'@graphql-tools/graphql-tag-pluck',
'uniq',
'quickselect',
'@graphql-tools/load',
'piscina',
'@opentelemetry/exporter-trace-otlp-grpc',
'@sentry/opentelemetry',
'date-fns-tz',
'@graphql-tools/graphql-file-loader',
'@storybook/addon-backgrounds',
'@storybook/addon-toolbars',
'buffer-alloc-unsafe',
'@rollup/rollup-linux-arm64-gnu',
'workbox-streams',
'd3-brush',
'@radix-ui/react-toast',
'papaparse',
'pause-stream',
'eslint-plugin-storybook',
'blob-util',
'workbox-expiration',
'buffer-alloc',
'next-themes',
'node-notifier',
'term-size',
'@graphql-tools/wrap',
'map-age-cleaner',
'fuse.js',
'event-stream',
'@sinonjs/text-encoding',
'@graphql-tools/import',
'workbox-window',
'marky',
'googleapis-common',
'browser-assert',
'node-dir',
'exit-hook',
'@storybook/addon-essentials',
'postcss-values-parser',
'node-machine-id',
'@storybook/addon-measure',
'map-stream',
'@redis/client',
'metro-cache',
'@actions/core',
'localforage',
'@sigstore/core',
'@rollup/rollup-win32-x64-msvc',
'cmd-shim',
'workbox-background-sync',
'fast-querystring',
'metro-symbolicate',
'cpu-features',
'workbox-strategies',
'node-preload',
'babel-code-frame',
'globjoin',
'binary',
'bootstrap',
'@graphql-tools/url-loader',
'@react-aria/interactions',
'@types/history',
'@module-federation/runtime-tools',
'metro-config',
'index-to-position',
'react-icons',
'@commitlint/parse',
'@sentry-internal/tracing',
'@commitlint/lint',
'bcryptjs',
'encoding-sniffer',
'@types/d3-geo',
'string.prototype.padend',
'events-universal',
'cyclist',
'eslint-config-next',
'turbo-linux-64',
'@types/d3-scale-chromatic',
'workbox-build',
'@tanstack/virtual-core',
'@npmcli/redact',
'@commitlint/format',
'is-root',
'workbox-broadcast-update',
'buffer-fill',
'mississippi',
'@opentelemetry/instrumentation-redis',
'@sigstore/verify',
'cookies',
'@react-stately/utils',
'@storybook/react-dom-shim',
'workbox-range-requests',
'js-levenshtein',
'@commitlint/is-ignored',
'eslint-plugin-unused-imports',
'@tailwindcss/typography',
'metro-cache-key',
'@sentry/babel-plugin-component-annotate',
'html2canvas',
'@volar/source-map',
'@module-federation/error-codes',
'@commitlint/message',
'@repeaterjs/repeater',
'opentracing',
'adler-32',
'd3-contour',
'parse5-parser-stream',
'@turf/meta',
'@radix-ui/react-hover-card',
'class-validator',
'sparse-bitfield',
'metro-transform-worker',
'cli-progress',
'parse-path',
'metro-transform-plugins',
'opn',
'@mongodb-js/saslprep',
'parallel-transform',
'eslint-plugin-flowtype',
'cookie-parser',
'@types/sinon',
'@storybook/csf-tools',
'@csstools/postcss-ic-unit',
'@prisma/config',
'@graphql-tools/executor',
'nx',
'@csstools/postcss-color-function',
'chainsaw',
'@opentelemetry/exporter-metrics-otlp-http',
'@opentelemetry/exporter-trace-otlp-proto',
'eslint-plugin-es',
'postcss-initial',
'browser-resolve',
'embla-carousel-react',
'@commitlint/read',
'@csstools/postcss-normalize-display-values',
'git-url-parse',
'@zkochan/js-yaml',
'parse-url',
'@commitlint/config-validator',
'@react-native/debugger-frontend',
'react-resizable-panels',
'smol-toml',
'@csstools/postcss-progressive-custom-properties',
'@csstools/postcss-font-format-keywords',
'@expo/json-file',
'@radix-ui/react-aspect-ratio',
'brotli',
'@module-federation/runtime-core',
'metro',
'qrcode',
'bottleneck',
'@commitlint/ensure',
'@csstools/postcss-oklab-function',
'eslint-plugin-unicorn',
'@msgpackr-extract/msgpackr-extract-linux-x64',
'metro-babel-transformer',
'react-devtools-core',
'@vitest/ui',
'csv-stringify',
'eslint-compat-utils',
'node-libs-browser',
'hast-util-to-parse5',
'@babel/helper-explode-assignable-expression',
'kolorist',
'@bundled-es-modules/statuses',
'cross-inspect',
'@commitlint/to-lines',
'd3-chord',
'plist',
'@types/d3-hierarchy',
'@react-aria/focus',
'columnify',
'@storybook/blocks',
'es6-promisify',
'unfetch',
'@types/webpack',
'strip-dirs',
'stealthy-require',
'array-slice',
'axios-retry',
'@redis/search',
'detect-port-alt',
'@redis/time-series',
'unixify',
'keygrip',
'framer-motion',
'klaw',
'@csstools/postcss-unset-value',
'from',
'@volar/language-core',
'babel-plugin-transform-react-remove-prop-types',
'currently-unhandled',
'telejson',
'@aws-crypto/ie11-detection',
'@commitlint/cli',
'loud-rejection',
'@graphql-tools/code-file-loader',
'@aws-sdk/s3-request-presigner',
'@mui/icons-material',
'@commitlint/config-conventional',
'tiny-emitter',
'stream-each',
'@commitlint/rules',
'string-natural-compare',
'd3-fetch',
'iferr',
'@emotion/stylis',
'@csstools/postcss-is-pseudo-class',
'@sentry/bundler-plugin-core',
'@opentelemetry/instrumentation-fastify',
'@contenthook/cli',
'generate-function',
'tiny-inflate',
'@csstools/postcss-hwb-function',
'@cucumber/messages',
'@wry/trie',
'lowlight',
'storybook',
'postcss-clamp',
'@react-native/dev-middleware',
'postcss-opacity-percentage',
'lodash.isobject',
'de-indent',
'sade',
'ai',
'@rollup/rollup-linux-arm64-musl',
'is-ssh',
'eslint-plugin-n',
'value-equal',
'popper.js',
'proper-lockfile',
'fast-text-encoding',
'react-popper',
'zen-observable',
'osenv',
'@firebase/util',
'css-functions-list',
'@surma/rollup-plugin-off-main-thread',
'@esbuild/openbsd-arm64',
'astring',
'@redis/json',
'@types/react-redux',
'git-up',
'metro-minify-terser',
'lodash.groupby',
'amdefine',
'@types/d3-dsv',
'html-url-attributes',
'@types/d3-force',
'jsonschema',
'@csstools/postcss-stepped-value-functions',
'ts-toolbelt',
'react-dev-utils',
'@csstools/postcss-trigonometric-functions',
'num2fraction',
'tinyqueue',
'@one-ini/wasm',
'@types/d3-random',
'@module-federation/webpack-bundler-runtime',
'@opentelemetry/instrumentation-nestjs-core',
'graphql-config',
'ncp',
'@radix-ui/react-navigation-menu',
'nock',
'@storybook/csf-plugin',
'@rushstack/node-core-library',
'lru-memoizer',
'@wry/equality',
'@graphql-tools/json-file-loader',
'@csstools/postcss-text-decoration-shorthand',
'@azure/core-http-compat',
'worker-farm',
'async-mutex',
'stack-generator',
'css',
'ssf',
'memory-pager',
'@types/pako',
'@types/d3',
'vlq',
'vue-demi',
'@storybook/addon-links',
'propagate',
'koa-compose',
'@rollup/rollup-darwin-arm64',
'@vue/language-core',
'@aws-sdk/client-lambda',
'unicode-trie',
'private',
'codepage',
'postcss-media-minmax',
'figgy-pudding',
'defined',
'@types/testing-library__jest-dom',
'@radix-ui/react-context-menu',
'html-to-text',
'@cnakazawa/watch',
'@angular/core',
'anser',
'@csstools/postcss-cascade-layers',
'@csstools/postcss-nested-calc',
'clone-stats',
'check-types',
'sane',
'ast-v8-to-istanbul',
'@graphql-tools/executor-legacy-ws',
'fs-readdir-recursive',
'workbox-recipes',
'fs-write-stream-atomic',
'static-eval',
'ext-name',
'into-stream',
'matcher',
'xlsx',
'@nestjs/platform-express',
'@types/d3-axis',
'webpack-manifest-plugin',
'hpagent',
'request-promise-native',
'lodash.template',
'indexes-of',
'@hapi/bourne',
'remove-accents',
'ext-list',
'rc-util',
'@storybook/builder-webpack5',
'@firebase/component',
'run-queue',
'rollup-plugin-terser',
'mysql2',
'embla-carousel-reactive-utils',
'move-concurrently',
'fast-json-patch',
'seek-bzip',
'bidi-js',
'muggle-string',
'zone.js',
'metro-file-map',
'xpath',
'@storybook/addon-interactions',
'oxc-resolver',
'@actions/io',
'passport',
'@types/d3-dispatch',
'@types/d3-contour',
'google-p12-pem',
'strip-outer',
'vscode-languageserver-protocol',
'eslint-plugin-vue',
'http-server',
'@commitlint/top-level',
'workbox-precaching',
'@babel/plugin-proposal-export-default-from',
'bfj',
'@rollup/plugin-json',
'stoppable',
'babel-preset-react-app',
'@react-native/virtualized-lists',
'ansicolors',
'@react-native/js-polyfills',
'@types/react-router',
'earcut',
'@graphql-tools/executor-http',
'kdbush',
'spawn-command',
'eslint-webpack-plugin',
'signedsource',
'@types/d3-brush',
'corser',
'@nestjs/schematics',
'@redis/bloom',
'@react-native/gradle-plugin',
'babel-eslint',
'sort-keys-length',
'babel-types',
'passport-strategy',
'hash-sum',
'app-root-path',
'stripe',
'@types/d3-chord',
'dns-equal',
'@internationalized/date',
'@datadog/pprof',
'@types/d3-polygon',
'find-yarn-workspace-root',
'@types/d3-fetch',
'hoopy',
'http-assert',
'@aws-sdk/client-secrets-manager',
'@shikijs/types',
'stylelint-config-standard',
'jpeg-js',
'svg-pathdata',
'tiny-case',
'@opentelemetry/sdk-node',
'@graphql-tools/executor-graphql-ws',
'http-status-codes',
'timers-ext',
'file-saver',
'memoizee',
'timed-out',
'postcss-env-function',
'@asamuzakjp/dom-selector',
'seedrandom',
'clean-regexp',
'rollup-pluginutils',
'@esbuild/netbsd-arm64',
'@nrwl/devkit',
'bin-links',
'varint',
'meros',
'text-segmentation',
'@nestjs/mapped-types',
'lodash._reinterpolate',
'trim-repeated',
'cfb',
'@selderee/plugin-htmlparser2',
'@tanstack/react-query-devtools',
'vaul',
'@juggle/resize-observer',
'lodash.templatesettings',
'@swc/jest',
'copy-concurrently',
'@react-native/assets-registry',
'@react-native/community-cli-plugin',
'refractor',
'@keyv/serialize',
'@lezer/common',
'growl',
'@vueuse/shared',
'openid-client',
'eslint-config-react-app',
'@angular/compiler',
'tryer',
'boolean',
'@slack/types',
'word',
'utrie',
'supercluster',
'postcss-scss',
'superjson',
'@nrwl/tao',
'has-own-prop',
'roarr',
'parseley',
'googleapis',
'named-placeholders',
'@expo/config-plugins',
'knip',
'common-ancestor-path',
'pvtsutils',
'webpack-subresource-integrity',
'@eslint/compat',
'react-textarea-autosize',
'@radix-ui/react-menubar',
'@volar/typescript',
'canvas',
'union',
'vue-router',
'lodash.isnil',
'@shikijs/engine-oniguruma',
'@webassemblyjs/wast-parser',
'resolve-pathname',
'@vitejs/plugin-vue',
'utility-types',
'cookie-es',
'foreach',
'@tokenizer/inflate',
'@apideck/better-ajv-errors',
'buffer-indexof-polyfill',
'capture-exit',
'selderee',
'@vueuse/metadata',
'@scure/bip39',
'@npmcli/name-from-folder',
'@google-cloud/common',
'@tailwindcss/vite',
'canvg',
'nested-error-stacks',
'buildcheck',
'c8',
'codemirror',
'extract-files',
'scroll-into-view-if-needed',
'@react-native/babel-preset',
'node-html-parser',
'pixelmatch',
'esm',
'@firebase/logger',
'lodash.uniqby',
'shiki',
'unist-util-generated',
'@aws-sdk/middleware-endpoint-discovery',
'katex',
'promise-polyfill',
'@react-native/babel-plugin-codegen',
'@npmcli/map-workspaces',
'vscode-languageserver',
'prettier-plugin-tailwindcss',
'stackblur-canvas',
'fast-json-parse',
'listenercount',
'@kurkle/color',
'@fast-csv/parse',
'@rollup/rollup-darwin-x64',
'dd-trace',
'@babel/plugin-syntax-export-default-from',
'stacktrace-js',
'lunr',
'@graphql-tools/apollo-engine-loader',
'lru-queue',
'import-cwd',
'longest',
'peberminta',
'@sentry/integrations',
'@types/lodash-es',
'jspdf',
'redeyed',
'@slack/logger',
'@wry/context',
'@rushstack/ts-command-line',
'@fast-csv/format',
'@nx/nx-linux-x64-musl',
'node-cache',
'@graphql-tools/git-loader',
'@types/react-router-dom',
'bare-url',
'@angular/common',
'@types/inquirer',
'dijkstrajs',
'@angular/platform-browser',
'asn1js',
'fd-package-json',
'@es-joy/jsdoccomment',
'@bundled-es-modules/cookie',
'markdown-to-jsx',
'typed-query-selector',
'path',
'vscode-jsonrpc',
'babel-plugin-styled-components',
'@babel/plugin-proposal-class-static-block',
'@vueuse/core',
'@oxc-resolver/binding-linux-x64-gnu',
'@apollo/client',
'@datadog/native-iast-taint-tracking',
'string-env-interpolation',
'secure-compare',
'@aws-sdk/client-sqs',
'@graphql-codegen/schema-ast',
'@graphql-codegen/core',
'babel-traverse',
'prom-client',
'@opentelemetry/exporter-metrics-otlp-proto',
'stacktrace-gps',
'window-size',
'pause',
'@datadog/native-appsec',
'@types/multer',
'@lezer/lr',
'bintrees',
'crypto-randomuuid',
'@scarf/scarf',
'lodash.isempty',
'@types/through',
'objectorarray',
'opencollective-postinstall',
'cli-highlight',
'trim-right',
'stacktrace-parser',
'npm-run-all',
'hast-util-is-element',
'@types/webpack-sources',
'@nx/js',
'xregexp',
'@webassemblyjs/helper-module-context',
'@types/hammerjs',
'lodash.isundefined',
'tarn',
'@nestjs/testing',
'@flmngr/flmngr-react',
'@whatwg-node/promise-helpers',
'endent',
'global-agent',
'@types/argparse',
'@types/bunyan',
'inflection',
'front-matter',
'is-function',
'@react-stately/flags',
'optimist',
'babel-preset-fbjs',
'@schematics/angular',
'@aws-sdk/middleware-sdk-sqs',
'cardinal',
'leac',
'ethereum-cryptography',
'@storybook/instrumenter',
'is-resolvable',
'pprof-format',
'lodash.keys',
'@oclif/core',
'klaw-sync',
'patch-package',
'collapse-white-space',
'@opentelemetry/exporter-metrics-otlp-grpc',
'parse-srcset',
'@jsonjoy.com/json-pointer',
'lodash.upperfirst',
'@aws-sdk/client-dynamodb',
'@graphql-codegen/add',
'@opentelemetry/instrumentation-grpc',
'@cucumber/gherkin',
'@opentelemetry/exporter-logs-otlp-http',
'react-app-polyfill',
'@graphql-tools/github-loader',
'remark-mdx',
'@datadog/native-metrics',
'@antfu/utils',
'@opentelemetry/exporter-zipkin',
'@rollup/rollup-win32-arm64-msvc',
'openapi3-ts',
'babel-plugin-syntax-jsx',
'cose-base',
'@azure/core-auth',
'flagged-respawn',
'jsonc-eslint-parser',
'@expo/plist',
'@rollup/rollup-win32-ia32-msvc',
'prosemirror-model',
'command-exists',
'@storybook/addons',
'@angular/router',
'@shikijs/vscode-textmate',
'use-composed-ref',
'@firebase/app-check',
'@semantic-release/error',
'@rollup/rollup-android-arm-eabi',
'pvutils',
'@radix-ui/react-use-is-hydrated',
'@shikijs/langs',
'@storybook/react-docgen-typescript-plugin',
'stylelint-scss',
'@shikijs/themes',
'sift',
'callsite',
'css-in-js-utils',
'use-latest',
'@biomejs/biome',
'@supabase/node-fetch',
'@algolia/client-common',
'@octokit/plugin-retry',
'eslint-plugin-node',
'rehype-raw',
'fined',
'@types/mute-stream',
'is-object',
'@whatwg-node/events',
'@firebase/database-types',
'sanitize-html',
'marked-terminal',
'@expo/config-types',
'babel-messages',
'webpack-log',
'urijs',
'@rollup/rollup-android-arm64',
'@rollup/rollup-linux-arm-musleabihf',
'@storybook/docs-tools',
'@scure/bip32',
'goober',
'@webassemblyjs/helper-code-frame',
'nearley',
'@webassemblyjs/helper-fsm',
'uid-safe',
'@angular/compiler-cli',
'react-window',
'is-electron',
'lit',
'@csstools/css-syntax-patches-for-csstree',
'@stripe/stripe-js',
'cron',
'@firebase/remote-config',
'@aws-sdk/protocol-http',
'@firebase/webchannel-wrapper',
'alien-signals',
'esbuild-wasm',
'gonzales-pe',
'fast-csv',
'frac',
'array-each',
'@whatwg-node/disposablestack',
'fastify-plugin',
'@rushstack/terminal',
'async-lock',
'unicode-properties',
'prosemirror-transform',
'@graphql-tools/executor-common',
'react-draggable',
'nano-spawn',
'@azure/storage-blob',
'modify-values',
'@storybook/core-server',
'@vitejs/plugin-react-swc',
'@types/tapable',
'optimism',
'js-sdsl',
'@angular/forms',
'object.defaults',
'railroad-diagrams',
'@vitejs/plugin-basic-ssl',
'@firebase/app-types',
'workbox-webpack-plugin',
'lodash.ismatch',
'@aws-sdk/endpoint-cache',
'react-syntax-highlighter',
'eslint-plugin-cypress',
'babel-template',
'eslint-config-airbnb',
'typed-assert',
'find-file-up',
'prosemirror-view',
'@firebase/database',
'@expo/config',
'@codemirror/view',
'@scure/base',
'linkifyjs',
'@nestjs/config',
'remove-trailing-spaces',
'input-otp',
'@mui/base',
'@firebase/remote-config-types',
'@microsoft/tsdoc-config',
'prosemirror-commands',
'os-name',
'node-source-walk',
'@algolia/requester-browser-xhr',
'base-64',
'find-my-way',
'@types/linkify-it',
'@tanstack/query-devtools',
'merge',
'@algolia/requester-node-http',
'@firebase/app-compat',
'@slack/web-api',
'prosemirror-state',
'ast-module-types',
'lmdb',
'@firebase/firestore-types',
'@babel/cli',
'@rollup/rollup-linux-riscv64-gnu',
'@noble/ciphers',
'object.omit',
'gitconfiglocal',
'@firebase/performance-types',
'update-check',
'@angular/platform-browser-dynamic',
'raw-loader',
'@oxc-resolver/binding-linux-x64-musl',
'pidusage',
'd3-scale-chromatic',
'@graphql-codegen/typescript',
'@opentelemetry/exporter-prometheus',
'tdigest',
'qrcode-terminal',
'git-semver-tags',
'lit-html',
'@aws-sdk/lib-storage',
'discontinuous-range',
'metro-resolver',
'base64url',
'metro-core',
'mongoose',
'birpc',
'ts-log',
'cli-table',
'react-colorful',
'license-webpack-plugin',
'@rollup/rollup-linux-arm-gnueabihf',
'read-package-up',
'semver-truncate',
'backo2',
'fp-ts',
'pnp-webpack-plugin',
'watchpack-chokidar2',
'@algolia/client-search',
'@types/tmp',
'ts-essentials',
'@angular-devkit/schematics-cli',
'algoliasearch',
'strong-log-transformer',
'array-equal',
'lit-element',
'@graphql-codegen/typed-document-node',
'@nestjs/cli',
'ky',
'remedial',
'@aws-sdk/signature-v4',
'emitter-listener',
'@firebase/remote-config-compat',
'stream-combiner2',
'sanitize.css',
'find-pkg',
'internal-ip',
'dc-polyfill',
'@changesets/types',
'windows-release',
'bplist-creator',
'byline',
'fast-json-stringify',
'@opentelemetry/exporter-logs-otlp-grpc',
'@ngtools/webpack',
'eslint-plugin-es-x',
'ps-tree',
'openapi-types',
'@types/conventional-commits-parser',
'@firebase/functions-compat',
'lottie-web',
'@antfu/install-pkg',
'@google-cloud/firestore',
'bun-types',
'@mdx-js/mdx',
'seq-queue',
'@types/web-bluetooth',
'eslint-plugin-simple-import-sort',
'css-color-names',
'buffer-equal',
'hookable',
'fastify',
'@fastify/error',
'dfa',
'parse5-sax-parser',
'@angular-devkit/build-angular',
'mini-svg-data-uri',
'@types/wrap-ansi',
'mquery',
'diff-match-patch',
'@opentelemetry/exporter-logs-otlp-proto',
'js-sha3',
'bufferutil',
'@datadog/sketches-js',
'babel-plugin-named-asset-import',
'jsonpath',
'@nuxtjs/opencollective',
'mpath',
'prosemirror-keymap',
'@angular-devkit/build-webpack',
'minipass-json-stream',
'parse-conflict-json',
'hoek',
'formik',
'@firebase/app-check-types',
'random-bytes',
'@napi-rs/nice',
'load-tsconfig',
'fetch-retry',
'stable-hash-x',
'@sentry/webpack-plugin',
'conventional-changelog-preset-loader',
'postcss-normalize',
'systeminformation',
'@octokit/plugin-throttling',
'which-pm-runs',
'@firebase/auth-interop-types',
'@rollup/rollup-linux-s390x-gnu',
'@types/papaparse',
'conventional-changelog-core',
'potpack',
'command-line-args',
'macos-release',
'@types/parse5',
'bin-version-check',
'resolve-global',
'@firebase/messaging-interop-types',
'detective-postcss',
'promise-call-limit',
'@types/ssh2',
'bin-version',
'just-diff',
'@joshwooding/vite-plugin-react-docgen-typescript',
'wmf',
'debuglog',
'tippy.js',
'@mui/x-date-pickers',
'hexoid',
'postcss-browser-comments',
'style-mod',
'@sentry/node-core',
'@edsdk/n1ed-react',
'uncrypto',
'@graphql-tools/prisma-loader',
'stream-json',
'fontkit',
'json-to-pretty-yaml',
'@wdio/logger',
'@graphql-codegen/gql-tag-operations',
'@types/google.maps',
'tlhunter-sorted-set',
'ts-pnp',
'@emotion/css',
'wait-port',
'xml-js',
'pkg-conf',
'xss',
'@envelop/core',
'smob',
'@chevrotain/types',
'wordwrapjs',
'unplugin-utils',
'@opentelemetry/instrumentation-aws-sdk',
'@peculiar/asn1-schema',
'@ai-sdk/gateway',
'find-replace',
'@apidevtools/swagger-parser',
'@storybook/telemetry',
'estree-util-visit',
'@types/accepts',
'@lit/reactive-element',
'@date-fns/tz',
'pbf',
'rgbcolor',
'safe-regex2',
'@shikijs/core',
'sponge-case',
'@types/webpack-env',
'oauth',
'ylru',
'find-babel-config',
'cssfilter',
'@algolia/client-analytics',
'@redis/graph',
'clipanion',
'micromark-extension-mdx-jsx',
'@types/source-list-map',
'string-hash',
'@opentelemetry/instrumentation-bunyan',
'parse5-html-rewriting-stream',
'js-md4',
'store2',
'karma',
'unenv',
'@npmcli/arborist',
'fancy-log',
'eslint-config-standard',
'esbuild-linux-64',
'quill-delta',
'babel-helpers',
'get-port-please',
'detective-stylus',
'serve-handler',
'sockjs-client',
'prosemirror-schema-list',
'expand-range',
'liftoff',
'outdent',
'custom-event',
'avvio',
'stack-chain',
'colorjs.io',
'@isaacs/string-locale-compare',
'detective-es6',
'ofetch',
'babel-plugin-syntax-hermes-parser',
'postgres-range',
'just-diff-apply',
'@headlessui/react',
'micromark-extension-mdxjs-esm',
'sass-embedded',
'easy-table',
'di',
'@aws-sdk/util-dynamodb',
'lolex',
'@tiptap/pm',
'sanitize-filename',
'file-system-cache',
'layout-base',
'javascript-natural-sort',
'cache-content-type',
'@csstools/normalize.css',
'@actions/github',
'@storybook/test',
'react-shallow-renderer',
'@rollup/rollup-freebsd-x64',
'@rollup/rollup-freebsd-arm64',
'abstract-logging',
'firebase-admin',
'@opentelemetry/instrumentation-winston',
'bundle-require',
'@jsonjoy.com/buffers',
'acorn-node',
'rollup-plugin-visualizer',
'@types/jsonfile',
'@react-spring/animated',
'@module-federation/managers',
'uvu',
'decompress-tar',
'decompress-targz',
'@types/estree-jsx',
'@types/color-name',
'valibot',
'utf-8-validate',
'@algolia/client-personalization',
'convert-hrtime',
'@module-federation/dts-plugin',
'hookified',
'precinct',
'merge-source-map',
'deep-object-diff',
'html-minifier',
'js-string-escape',
'parchment',
'@datadog/browser-core',
'@nuxt/opencollective',
'@biomejs/cli-linux-x64',
'command-line-usage',
'@types/koa',
'@codemirror/autocomplete',
'is-natural-number',
'object.map',
'micromark-extension-mdx-md',
'@hapi/boom',
'@iconify/types',
'prosemirror-tables',
'@types/keygrip',
'are-docs-informative',
'@vercel/nft',
'decompress-unzip',
'kareem',
'ts-pattern',
'@apollo/protobufjs',
'chevrotain',
'@aws-sdk/util-hex-encoding',
'@braintree/sanitize-url',
'weak-lru-cache',
'micromark-factory-mdx-expression',
'@aws-sdk/middleware-sdk-sts',
'@react-spring/types',
'iterall',
'decompress-tarbz2',
'@npmcli/metavuln-calculator',
'react-native-safe-area-context',
'raf-schd',
'cacheable',
'superstruct',
'react-datepicker',
'screenfull',
'async-sema',
'@opentelemetry/instrumentation-pino',
'babel-plugin-module-resolver',
'light-my-request',
'relay-runtime',
'get-amd-module-type',
'treeverse',
'flow-enums-runtime',
'webcrypto-core',
'@wdio/types',
'karma-chrome-launcher',
'async-listen',
'dom-serialize',
'@tiptap/extension-italic',
'make-iterator',
'devalue',
'prosemirror-trailing-node',
'swc-loader',
'@tiptap/extension-bold',
'lodash.mapvalues',
'micromark-extension-mdx-expression',
'@graphql-codegen/typescript-operations',
'detective',
'eslint-import-context',
'@algolia/recommend',
'micromark-util-events-to-acorn',
'@aws-sdk/is-array-buffer',
'@remirror/core-constants',
'h3',
'json-schema-to-ts',
'babel-generator',
'@angular/cdk',
'detective-amd',
'@shikijs/engine-javascript',
'@types/react-reconciler',
'prosemirror-markdown',
'@tiptap/extension-paragraph',
'decompress',
'scuid',
'@nuxt/kit',
'@react-spring/shared',
'toad-cache',
'@apidevtools/swagger-methods',
'redis-commands',
'node-modules-regexp',
'@stylistic/eslint-plugin',
'@nestjs/axios',
'@mapbox/unitbezier',
'@nestjs/swagger',
'@urql/core',
'@google-cloud/precise-date',
'i18next-browser-languagedetector',
'@react-spring/core',
'@tiptap/extension-document',
'detective-typescript',
'prosemirror-history',
'empathic',
'should-format',
'should-equal',
'bcrypt',
'@globalart/nestjs-logger',
'fuzzy',
'@aws-sdk/service-error-classification',
'@peculiar/webcrypto',
'prosemirror-menu',
'formatly',
'@types/nodemailer',
'@module-federation/third-party-dts-extractor',
'json-stringify-nice',
'should-util',
'object-treeify',
'@codemirror/language',
'koa-convert',
'@pnpm/types',
'@types/uglify-js',
'should',
'is-url-superb',
'prosemirror-schema-basic',
'qjobs',
'oidc-token-hash',
'rbush',
'promise-all-reject-late',
'@rushstack/rig-package',
'@apidevtools/openapi-schemas',
'module-definition',
'@opentelemetry/instrumentation-net',
'valid-url',
'gl-matrix',
'@storybook/core-webpack',
'truncate-utf8-bytes',
'prosemirror-inputrules',
'@dnd-kit/modifiers',
'@expo/image-utils',
'merge-options',
'@mui/x-internals',
'detective-cjs',
'junk',
'@types/mime-types',
'glob-stream',
'json2mq',
'@types/prismjs',
'react-intersection-observer',
'randomatic',
'@oxc-project/types',
'utf8-byte-length',
'getenv',
'preact-render-to-string',
'table-layout',
'protocol-buffers-schema',
'@lmdb/lmdb-linux-x64',
'js2xmlparser',
'@module-federation/enhanced',
'@opentelemetry/resource-detector-aws',
'unstorage',
'lodash.castarray',
'bs58check',
'stream-chain',
'sass-embedded-linux-x64',
'orderedmap',
'only',
'@ant-design/colors',
'@datadog/libdatadog',
'node-schedule',
'ordered-binary',
'typeorm',
'oauth4webapi',
'@aws-sdk/client-iam',
'karma-source-map-support',
'mdast-util-mdx',
'should-type',
'detective-sass',
'@hapi/address',
'micromark-extension-mdxjs',
'readdir-scoped-modules',
'@storybook/codemod',
'@tiptap/extension-heading',
'unist-util-position-from-estree',
'@module-federation/bridge-react-webpack-plugin',
'@aws-sdk/util-uri-escape',
'@codemirror/state',
'synchronous-promise',
'youch',
'mv',
'@types/content-disposition',
'lodash.escape',
'@chevrotain/utils',
'string-convert',
'@swc/core-linux-arm64-gnu',
'@lezer/highlight',
'@rollup/plugin-terser',
'@jsonjoy.com/codegen',
'@expo/prebuild-config',
'@module-federation/rspack',
'style-search',
'@module-federation/manifest',
'@opentelemetry/instrumentation-restify',
'@fortawesome/fontawesome-common-types',
'swiper',
'flatten',
'@aws-sdk/client-ssm',
'xmlcreate',
'croner',
'string-template',
'@napi-rs/nice-linux-x64-musl',
'unicode-emoji-modifier-base',
'focus-trap',
'@types/ejs',
'alphanum-sort',
'@tiptap/extension-ordered-list',
'add-stream',
'@napi-rs/nice-linux-x64-gnu',
'@fastify/ajv-compiler',
'@aws-sdk/node-http-handler',
'read-yaml-file',
'jsc-safe-url',
'@react-navigation/elements',
'@sqltools/formatter',
'time-span',
'home-or-tmp',
'regex-cache',
'@phenomnomnominal/tsquery',
'inline-style-prefixer',
'vinyl-fs',
'prosemirror-dropcursor',
'is-equal-shallow',
'rc-tooltip',
'@opentelemetry/instrumentation-memcached',
'@redocly/openapi-core',
'@types/jasmine',
'cli-color',
'oniguruma-to-es',
'@nicolo-ribaudo/chokidar-2',
'@tiptap/core',
'detective-scss',
'rope-sequence',
'@tiptap/extension-bubble-menu',
'multicast-dns-service-types',
'@tiptap/extension-bullet-list',
'@types/koa-compose',
'strip-bom-string',
'@tiptap/extension-text',
'react-dnd-html5-backend',
'@opentelemetry/instrumentation-aws-lambda',
'@dual-bundle/import-meta-resolve',
'@iarna/toml',
'@tiptap/extension-strike',
'@flmngr/flmngr-server-node-express',
'use-latest-callback',
'better-sqlite3',
'@graphql-tools/documents',
'@aws-sdk/property-provider',
'expo-modules-autolinking',
'@azure/core-xml',
'simple-plist',
'user-home',
'@react-spring/rafz',
'prosemirror-collab',
'react-toastify',
'@opentelemetry/resource-detector-gcp',
'@anthropic-ai/sdk',
'skin-tone',
'write-json-file',
'@mrmlnc/readdir-enhanced',
'@tiptap/extension-list-item',
'@react-aria/i18n',
'@prisma/debug',
'@prisma/engines',
'get-pkg-repo',
'@module-federation/data-prefetch',
'@microsoft/api-extractor-model',
'should-type-adaptors',
'emojilib',
'@opentelemetry/instrumentation-cassandra-driver',
'libmime',
'@tiptap/extension-horizontal-rule',
'rc-slider',
'crc',
'pg-numeric',
'google-protobuf',
'filename-regex',
'prosemirror-gapcursor',
'buffer-builder',
'bonjour',
'async-hook-jl',
'cls-hooked',
'@react-navigation/native',
'plugin-error',
'@expo/osascript',
'@graphql-codegen/cli',
'@stripe/react-stripe-js',
'@chevrotain/gast',
'math-random',
'react-native',
'secp256k1',
'@microsoft/api-extractor',
'toml',
'dns-txt',
'@globalart/nestjs-swagger',
'fastparse',
'@tiptap/extension-hard-break',
'tw-animate-css',
'babel-plugin-transform-typescript-metadata',
'@aws-sdk/client-cloudwatch-logs',
'server-only',
'@datadog/browser-rum-core',
'geojson-vt',
'@react-spring/web',
'cloneable-readable',
'sync-message-port',
'glob-base',
'@tiptap/extension-code',
'lodash.map',
'spark-md5',
'atomically',
'react-scripts',
'express-session',
'sass-embedded-linux-musl-x64',
'@types/react-test-renderer',
'long-timeout',
'@codemirror/lint',
'typanion',
'reftools',
'focus-lock',
'@react-navigation/core',
'expo-constants',
'ethereumjs-util',
'safe-json-stringify',
'@opentelemetry/instrumentation-socket.io',
'is-stream-ended',
'remark',
'boom',
'nanoclone',
'@wry/caches',
'rc-motion',
'@radix-ui/react-toolbar',
'fast-url-parser',
'@peculiar/json-schema',
'json-schema-ref-resolver',
'clone-buffer',
'serve',
'conventional-recommended-bump',
'@codemirror/commands',
'@mapbox/point-geometry',
'@types/cookies',
'oas-kit-common',
'uncontrollable',
'@firebase/data-connect',
'wonka',
'constructs',
'is-dotfile',
'swagger2openapi',
'babel-plugin-transform-flow-enums',
'tsconfig',
'expo-modules-core',
'json3',
'left-pad',
'@redocly/ajv',
'expo-file-system',
'@types/memcached',
'z-schema',
'shallow-equal',
'stylus',
'@cloudflare/kv-asset-handler',
'oas-resolver',
'@expo/package-manager',
'oas-schema-walker',
'oas-validator',
'indexof',
'rtl-css-js',
'@apollo/utils.keyvaluecache',
'babel-plugin-react-native-web',
'buffer-indexof',
'sync-fetch',
'globule',
'@iconify/utils',
'direction',
'use-debounce',
'now-and-later',
'@nx/eslint',
'@wdio/utils',
'sorted-array-functions',
'unist-builder',
'@tiptap/extension-blockquote',
'chromium-edge-launcher',
'fs-exists-sync',
'node-stream-zip',
'iron-webcrypto',
'@expo/metro-config',
'vue-component-type-helpers',
'@types/http-assert',
'typedoc',
'@tiptap/extension-link',
'@hutson/parse-repository-url',
'resolve-protobuf-schema',
'@aws-sdk/util-buffer-from',
'eslint-plugin-playwright',
'@tiptap/extension-floating-menu',
'@types/dompurify',
'@ant-design/icons',
'vue-tsc',
'react-native-gesture-handler',
'find-process',
'react-native-svg',
'@react-native-async-storage/async-storage',
'@tiptap/extension-gapcursor',
'@fastify/merge-json-schemas',
'slide',
'getopts',
'react-native-screens',
'uniqs',
'@opentelemetry/resource-detector-container',
'@globalart/nestcord',
'@asamuzakjp/nwsapi',
'react-use',
'require-package-name',
'@ljharb/through',
'@types/crypto-js',
'trim-trailing-lines',
'exenv',
'@sendgrid/client',
'@listr2/prompt-adapter-inquirer',
'@bundled-es-modules/tough-cookie',
'pm2',
'karma-jasmine',
'radix3',
'sudo-prompt',
'@aws-sdk/smithy-client',
'utf8',
'@aws-sdk/querystring-builder',
'@vue/compiler-vue2',
'@rollup/rollup-linux-riscv64-musl',
'rambda',
'vendors',
'xstate',
'@angular/build',
'error-stack-parser-es',
'killable',
'idb-keyval',
'motion',
'@swc/cli',
'monaco-editor',
'@types/jquery',
'swagger-ui-express',
'@tiptap/starter-kit',
'ansi-wrap',
'@clack/prompts',
'@apollo/utils.logger',
'@testing-library/react-hooks',
'git-remote-origin-url',
'eslint-plugin-jsdoc',
'@aws-sdk/middleware-retry',
'@mapbox/vector-tile',
'babel-preset-expo',
'@aws-sdk/abort-controller',
'@firebase/app-check-interop-types',
'@swc/core-linux-arm64-musl',
'walk-sync',
'@react-types/button',
'expo',
'@expo/env',
'@datadog/browser-rum',
'@chromatic-com/storybook',
'@aws-sdk/lib-dynamodb',
'stylelint-config-recommended-scss',
'@redocly/config',
'react-native-is-edge-to-edge',
'@react-types/overlays',
'parse-glob',
'bunyan',
'react-number-format',
'@img/colour',
'@biomejs/cli-linux-x64-musl',
'tiny-async-pool',
'pn',
'@sendgrid/helpers',
'@datadog/wasm-js-rewriter',
'time-stamp',
'regex',
'rgba-regex',
'tv4',
'@exodus/schemasafe',
'is-posix-bracket',
'quill',
'is-negated-glob',
'prisma',
'pony-cause',
'jest-canvas-mock',
'is-valid-glob',
'aws-ssl-profiles',
'hono',
'timsort',
'generic-names',
'ulid',
'vite-plugin-svgr',
'oas-linter',
'ox',
'underscore.string',
'aws-cdk',
'match-sorter',
'@aws-sdk/config-resolver',
'@esbuild/openharmony-arm64',
'css-selector-tokenizer',
'eslint-rule-composer',
'css-box-model',
'expo-font',
'js-sha256',
'@expo/cli',
'dotenv-cli',
'babel-helper-replace-supers',
'requirejs',
'babel-plugin-transform-es2015-classes',
'preserve',
'babel-plugin-transform-es2015-arrow-functions',
'lodash.capitalize',
'@aws-sdk/querystring-parser',
'@aws-sdk/shared-ini-file-loader',
'@angular-eslint/bundled-angular-compiler',
'parse-cache-control',
'rehackt',
'@types/ramda',
'@dependents/detective-less',
'error',
'date-fns-jalali',
'@storybook/preset-react-webpack',
'hex-color-regex',
'stream-to-array',
'@angular-eslint/utils',
'use-resize-observer',
'java-properties',
'unload',
'@react-dnd/asap',
'rc-resize-observer',
'sync-child-process',
'cache-manager',
'estree-util-attach-comments',
'@fastify/fast-json-stringify-compiler',
'lodash.isarray',
'parse-headers',
'@vue/devtools-kit',
'@0no-co/graphql.web',
'hast-util-to-string',
'icss-replace-symbols',
'rx-lite',
'prosemirror-changeset',
'lazy-universal-dotenv',
'p-throttle',
'@parcel/watcher-linux-arm64-glibc',
'@googlemaps/js-api-loader',
'@storybook/api',
'readline',
'peek-stream',
'lodash.assign',
'@npmcli/query',
'corepack',
'javascript-stringify',
'align-text',
'realpath-native',
'nano-css',
'@module-federation/inject-external-runtime-core-plugin',
'value-or-function',
'jss',
'@clack/core',
'@types/katex',
'gray-matter',
'is',
'@sentry/hub',
'code-excerpt',
'contains-path',
'@tailwindcss/forms',
'app-root-dir',
'lru.min',
'lead',
'resolve-options',
'graphlib',
'es6-set',
'@opentelemetry/instrumentation-router',
'xmlbuilder2',
'react-helmet',
'@opentelemetry/resource-detector-azure',
'@react-native-community/cli-tools',
'aes-js',
'@img/sharp-linux-arm64',
'@panva/hkdf',
'@tiptap/extension-code-block',
'@parcel/watcher-win32-x64',
'@oozcitak/util',
'three',
'use-memo-one',
'abitype',
'p-pipe',
'gaze',
'@types/which',
'koalas',
'sortablejs',
'platform',
'babel-plugin-const-enum',
'fs-mkdirp-stream',
'@azure/identity',
'@aws-sdk/url-parser',
'@react-aria/visually-hidden',
'http2-client',
'@aws-sdk/middleware-serde',
'convert-to-spaces',
'semifies',
'@types/strip-bom',
'moo-color',
'@img/sharp-libvips-linux-arm64',
'@prisma/get-platform',
'@swc-node/register',
'@types/styled-components',
'@react-navigation/routers',
'@algolia/requester-fetch',
'node-readfiles',
'vinyl-sourcemap',
'@react-stately/collections',
'@react-dnd/invariant',
'tsup',
'@sendgrid/mail',
'lodash.omit',
'trim',
'tlds',
'json-pointer',
'@prisma/fetch-engine',
'@algolia/client-abtesting',
'@aws-sdk/fetch-http-handler',
'enzyme-shallow-equal',
'@wdio/config',
'@types/pretty-hrtime',
'markdown-extensions',
'vue-template-compiler',
'character-parser',
'node-fetch-h2',
'@unrs/resolver-binding-linux-arm64-gnu',
'quote-unquote',
'react-chartjs-2',
'crossws',
'@rollup/plugin-inject',
'init-package-json',
'app-module-path',
'linebreak',
'react-clientside-effect',
'@angular-eslint/eslint-plugin-template',
'@parcel/watcher-linux-arm64-musl',
'lodash._getnative',
'babel-plugin-emotion',
'classcat',
'@swc-node/sourcemap-support',
'gunzip-maybe',
'isbot',
'rgb-regex',
'@tiptap/react',
'@algolia/ingestion',
'is-observable',
'ttl-set',
'miniflare',
'@algolia/client-query-suggestions',
'lodash.set',
'markdown-it-anchor',
'@jest/environment-jsdom-abstract',
'html-react-parser',
'@angular/cli',
'@storybook/cli',
'babel-plugin-transform-strict-mode',
'@swc/core-darwin-arm64',
'downshift',
'expo-asset',
'@restart/hooks',
'@stoplight/json',
'dnd-core',
'to-through',
'datadog-metrics',
'tmp-promise',
'babel-plugin-transform-es2015-modules-commonjs',
'@sentry/nextjs',
'@aws-sdk/middleware-stack',
'js-tiktoken',
'@lit-labs/ssr-dom-shim',
'is-gzip',
'rc-menu',
'faker',
'deep-diff',
'@types/readable-stream',
'signale',
'textextensions',
'@aws-sdk/node-config-provider',
'rc-tree',
'hyperlinker',
'@vue/test-utils',
'@codemirror/search',
'chromatic',
'eslint-plugin-eslint-comments',
'@opentelemetry/instrumentation-dns',
'@vue/devtools-shared',
'expo-keep-awake',
'@react-dnd/shallowequal',
'babel-plugin-syntax-object-rest-spread',
'native-promise-only',
'@webgpu/types',
'@tiptap/extension-dropcursor',
'is-port-reachable',
'@react-stately/overlays',
'section-matter',
'json-stringify-pretty-compact',
'react-helmet-async',
'unist-util-find-after',
'mobx',
'node-mock-http',
'@angular-eslint/eslint-plugin',
'check-disk-space',
'@storybook/builder-manager',
'eyes',
'@types/react-syntax-highlighter',
'mutexify',
'cssfontparser',
'@react-navigation/bottom-tabs',
'@opentelemetry/resource-detector-alibaba-cloud',
'packet-reader',
'sort-object-keys',
'with',
'tween-functions',
'react-intl',
'filing-cabinet',
'@types/tinycolor2',
'regex-utilities',
'binaryextensions',
'plur',
'@azure-rest/core-client',
'unherit',
'acorn-loose',
'readline-sync',
'@aws-sdk/invalid-dependency',
'@oclif/plugin-help',
'@types/strip-json-comments',
'@urql/exchange-retry',
'dogapi',
'isomorphic-unfetch',
'@zxing/text-encoding',
'@base2/pretty-print-object',
'is-redirect',
'regex-recursion',
'@types/cookie-parser',
'@types/bun',
'micromark-extension-frontmatter',
'rc-virtual-list',
'@angular-eslint/template-parser',
'@rspack/binding',
'react-smooth',
'jotai',
'react-reconciler',
'titleize',
'unimport',
'@algolia/monitoring',
'@firebase/app',
'loglevel-plugin-prefix',
'@aws-sdk/middleware-content-length',
'omggif',
'es-aggregate-error',
'sort-package-json',
'hsla-regex',
'buffer-writer',
'@opentelemetry/instrumentation-cucumber',
'@react-aria/overlays',
'rc-dropdown',
'@expo/fingerprint',
'create-error-class',
'@types/cross-spawn',
'lodash.pick',
'password-prompt',
'@aws-sdk/util-body-length-browser',
'hast-util-to-text',
'jstransformer',
'wkx',
'@internationalized/string',
'detect-package-manager',
'tcp-port-used',
'@intlify/shared',
'react-native-reanimated',
'fastest-stable-stringify',
'@aws-sdk/credential-provider-imds',
'twilio',
'@semantic-release/commit-analyzer',
'@jimp/utils',
'@xobotyi/scrollbar-width',
'@semantic-release/release-notes-generator',
'mdast-util-frontmatter',
'murmurhash-js',
'p-map-series',
'retry-as-promised',
'libqp',
'babel-helper-get-function-arity',
'is-in-ci',
'hsl-regex',
'@rspack/binding-linux-x64-gnu',
'framesync',
'postcss-modules',
'sequelize',
'center-align',
'@csstools/selector-resolve-nested',
'is-deflate',
'scule',
'@prisma/client',
'is-subset',
'lodash.foreach',
'circular-json',
'@parcel/watcher-darwin-arm64',
'constantinople',
'pinia',
'mocha-junit-reporter',
'hast-util-to-estree',
'@mapbox/jsonlint-lines-primitives',
'@semantic-release/npm',
'@expo/spawn-async',
'@react-navigation/native-stack',
'is2',
'@napi-rs/canvas',
'sigmund',
'@octokit/auth-app',
'@storybook/manager',
'is-in-browser',
'@firebase/auth',
'heap-js',
'@types/offscreencanvas',
'@types/compression',
'rc-drawer',
'@types/xml2js',
'@ardatan/sync-fetch',
'libnpmpublish',
'vue-loader',
'react-confetti',
'hot-shots',
'@internationalized/message',
'd3-voronoi',
'@opentelemetry/auto-instrumentations-node',
'glob-to-regex.js',
'@cloudflare/workerd-linux-64',
'@envelop/instrumentation',
'ethers',
'timeout-signal',
'hast-util-from-html',
'@opentelemetry/propagation-utils',
'capture-stack-trace',
'react-modal',
'is-invalid-path',
'git-hooks-list',
'@sentry/minimal',
'dottie',
'clean-webpack-plugin',
'@stoplight/yaml-ast-parser',
'@algolia/client-insights',
'karma-coverage',
'fast-shallow-equal',
'@turf/distance',
'scmp',
'react-element-to-jsx-string',
'html-dom-parser',
'@radix-ui/react-icons',
'listr-verbose-renderer',
'load-esm',
'@ai-sdk/openai',
'png-js',
'catharsis',
'dependency-tree',
'@mswjs/cookies',
'react-dnd',
'@aws-sdk/util-body-length-node',
'@hapi/joi',
'mixin-object',
'lockfile',
'rc-overflow',
'is-color-stop',
'@trivago/prettier-plugin-sort-imports',
'cssnano-util-get-arguments',
'@csstools/cascade-layer-name-parser',
'firebase',
'@google-cloud/logging',
'promzard',
'react-focus-lock',
'@types/emscripten',
'estree-util-to-js',
'@manypkg/find-root',
'stylus-lookup',
'nerf-dart',
'@sentry/vercel-edge',
'sass-lookup',
'safe-identifier',
'resolve-dependency-path',
'iterate-iterator',
'env-ci',
'@react-stately/form',
'@types/json-stable-stringify',
'drizzle-kit',
'tslint',
'css-vendor',
'isows',
'token-stream',
'yamljs',
'@types/stylis',
'@fortawesome/fontawesome-svg-core',
'@firebase/firestore',
'rc-input-number',
'@zapier/zapier-sdk',
'typedarray.prototype.slice',
'when-exit',
'@swc/core-win32-arm64-msvc',
'@firebase/installations',
'cssnano-util-same-parent',
'@mapbox/tiny-sdf',
'cssnano-util-raw-cache',
'rc-pagination',
'langsmith',
'@js-joda/core',
'url-to-options',
'nocache',
'pug-error',
'eventid',
'pug-runtime',
'object-path',
'@storybook/channel-postmessage',
'lru_map',
'estree-util-build-jsx',
'@semantic-release/github',
'walkdir',
'errorhandler',
'tedious',
'pug-attrs',
'is-whitespace-character',
'oblivious-set',
'@mapbox/whoots-js',
'@apollo/utils.stripsensitiveliterals',
'reduce-css-calc',
'babel-polyfill',
'markdown-escapes',
'uglify-to-browserify',
'is-word-character',
'@firebase/messaging',
'ts-easing',
'@parcel/watcher-darwin-x64',
'turndown',
'jss-plugin-camel-case',
'babel-register',
'cytoscape',
'@ctrl/tinycolor',
'babel-helper-function-name',
'@aws-cdk/cloud-assembly-schema',
'console-table-printer',
'pug-code-gen',
'@react-aria/label',
'git-log-parser',
'@firebase/functions',
'rc-mentions',
'@oozcitak/dom',
'@firebase/storage',
'rc-table',
'@oozcitak/infra',
'@firebase/analytics',
'tildify',
'@types/qrcode',
'issue-parser',
'@storybook/core-client',
'is-svg',
'next-auth',
'@nx/workspace',
'rc-collapse',
'clone-regexp',
'react-property',
'libbase64',
'webdriver',
'pug',
'@nx/web',
'@react-email/render',
'aws-cdk-lib',
'sparkles',
'react-onclickoutside',
'rc-notification',
'lovable-tagger',
'simple-wcswidth',
'byte-size',
'set-harmonic-interval',
'@ant-design/icons-svg',
'@zeit/schemas',
'unzip-response',
'glogg',
'topojson-client',
'broadcast-channel',
'@firebase/storage-types',
'@swc/core-darwin-x64',
'rc-rate',
'@formatjs/intl',
'@datadog/datadog-ci',
'ordered-read-streams',
'state-toggle',
'any-observable',
'array.prototype.map',
'@aws-sdk/hash-node',
'is-expression',
'@img/sharp-linuxmusl-arm64',
'jsdoc',
'@octokit/auth-oauth-device',
'@types/sanitize-html',
'@react-stately/list',
'@monaco-editor/react',
'@unrs/resolver-binding-linux-arm64-musl',
'@apollo/utils.removealiases',
'karma-jasmine-html-reporter',
'fontfaceobserver',
'intersection-observer',
'pug-lexer',
'requizzle',
'listr-silent-renderer',
'rc-cascader',
'server-destroy',
'rc-select',
'async-listener',
'bullmq',
'pdf-lib',
'@vitest/eslint-plugin',
'node-pty',
'@types/rimraf',
'@zag-js/types',
'rc-tabs',
'react-universal-interface',
'cssnano-util-get-match',
'rc-progress',
'@angular/animations',
'@tiptap/extension-underline',
'@azure/keyvault-common',
'@vue/babel-helper-vue-transform-on',
'@react-native-community/cli-platform-android',
'@firebase/performance',
'rehype-parse',
'mockdate',
'@turf/bbox',
'lib0',
'ansi-gray',
'async-exit-hook',
'@heroicons/react',
'multipipe',
'eslint-config-airbnb-typescript',
'@types/datadog-metrics',
'jsbi',
'@oozcitak/url',
'@types/pluralize',
'@marijn/find-cluster-break',
'@zip.js/zip.js',
'toposort-class',
'highlightjs-vue',
'treeify',
'eslint-plugin-no-only-tests',
'load-script',
'concat-with-sourcemaps',
'@typescript/native-preview-linux-x64',
'usehooks-ts',
'@firebase/auth-types',
'module-lookup-amd',
'pug-parser',
'@expo/sdk-runtime-versions',
'@firebase/analytics-types',
'@apollo/utils.dropunuseddefinitions',
'sequelize-pool',
'libnpmaccess',
'@manypkg/get-packages',
'third-party-web',
'@img/sharp-darwin-arm64',
'farmhash-modern',
'@firebase/functions-types',
'uid2',
'vue-i18n',
'postcss-sorting',
'@parcel/watcher-win32-arm64',
'@storybook/builder-vite',
'stubborn-fs',
'xhr',
'pug-walk',
'make-event-props',
'promise.allsettled',
'fclone',
'qrcode.react',
'stylelint-order',
'iterate-value',
'archive-type',
'elegant-spinner',
'hast-util-to-html',
'spawnd',
'requirejs-config-file',
'@types/urijs',
'@octokit/oauth-methods',
'listr-update-renderer',
'rc-checkbox',
'knex',
'babel-helper-call-delegate',
'@rspack/lite-tapable',
'pug-filters',
'@swc-node/core',
'@zag-js/utils',
'true-case-path',
'clipboard',
'jss-plugin-rule-value-function',
'@solana/codecs-core',
'specificity',
'@apollo/utils.usagereporting',
'@react-aria/selection',
'@parcel/watcher-linux-arm-glibc',
'@typescript/native-preview',
'@aws-sdk/client-sfn',
'react-freeze',
'unix-dgram',
'serve-favicon',
'@parcel/watcher-android-arm64',
'rolldown',
'docker-modem',
'pug-load',
'@apollo/utils.printwithreducedwhitespace',
'@octokit/auth-oauth-app',
'@parcel/watcher-win32-ia32',
'rc-field-form',
'warn-once',
'@salesforce/sf-plugins-core',
'@parcel/watcher-freebsd-x64',
'@angular/material',
'continuation-local-storage',
'sugarss',
'better-path-resolve',
'react-side-effect',
'@react-native-community/cli-server-api',
'@rc-component/trigger',
'@swc/core-win32-x64-msvc',
'rc-steps',
'@cucumber/html-formatter',
'is-subdir',
'native-duplexpair',
'@amplitude/analytics-core',
'any-base',
'@fortawesome/free-solid-svg-icons',
'@unrs/resolver-binding-darwin-arm64',
'@poppinss/dumper',
'through2-filter',
'@react-aria/live-announcer',
'babel-plugin-transform-es2015-sticky-regex',
'unique-stream',
'@vue/babel-plugin-jsx',
'patch-console',
'micromark-extension-math',
'graceful-readlink',
'@storybook/addon-onboarding',
'babel-plugin-transform-es2015-shorthand-properties',
'node-plop',
'has-to-string-tag-x',
'encoding-japanese',
'isurl',
'which-pm',
'jss-plugin-vendor-prefixer',
'semantic-release',
'jsondiffpatch',
'cp-file',
'dtrace-provider',
'@types/d3-quadtree',
'glob-promise',
'vite-plugin-dts',
'@balena/dockerignore',
'argv-formatter',
'@csstools/postcss-relative-color-syntax',
'rc-tree-select',
'assert-never',
'@react-aria/form',
'@firebase/installations-types',
'@csstools/postcss-color-mix-function',
'react-hot-toast',
'request-ip',
'mobx-react-lite',
'@types/supercluster',
'pug-linker',
'babel-plugin-transform-es2015-parameters',
'@xstate/fsm',
'react-virtualized-auto-sizer',
'@octokit/auth-oauth-user',
'@img/sharp-win32-x64',
'ink',
'react-use-measure',
'jss-plugin-global',
'css-mediaquery',
'@octokit/oauth-authorization-url',
'jss-plugin-nested',
'babel-plugin-transform-es2015-unicode-regex',
'jss-plugin-props-sort',
'cwd',
'@apollo/usage-reporting-protobuf',
'@types/bcryptjs',
'babel-helper-hoist-variables',
'dockerode',
'humanize-duration',
'jss-plugin-default-unit',
'@sentry/replay',
'react-native-web',
'bech32',
'@cucumber/cucumber-expressions',
'@img/sharp-libvips-linuxmusl-arm64',
'@img/sharp-libvips-darwin-arm64',
'khroma',
'@prisma/instrumentation',
'rfc4648',
'vitefu',
'@nx/eslint-plugin',
'chance',
'@types/bcrypt',
'rc-upload',
'@intlify/message-compiler',
'babel-helper-define-map',
'@zag-js/collection',
'proggy',
'@adraffy/ens-normalize',
'@sentry/tracing',
'node-polyfill-webpack-plugin',
'@react-types/textfield',
'hey-listen',
'@egjs/hammerjs',
'babel-plugin-transform-es2015-typeof-symbol',
'@next/swc-win32-x64-msvc',
'@unrs/resolver-binding-win32-x64-msvc',
'exceljs',
'rx',
'right-align',
'hook-std',
'async-done',
'irregular-plurals',
'gulplog',
'babel-plugin-transform-es2015-block-scoping',
'@pdf-lib/standard-fonts',
'@apollo/utils.sortast',
'@nrwl/js',
'node-cron',
'pug-strip-comments',
'react-inspector',
'@zag-js/auto-resize',
'@types/cheerio',
'@cucumber/tag-expressions',
'@types/bluebird',
'fast-memoize',
'microevent.ts',
'@google-cloud/pubsub',
'@stoplight/yaml',
'leaflet',
'@types/react-window',
'uri-js-replace',
'babel-plugin-transform-es2015-template-literals',
'@types/passport-strategy',
'passport-jwt',
'@aws-cdk/asset-awscli-v1',
'@walletconnect/types',
'@solana/codecs-numbers',
'module-alias',
'webdriver-bidi-protocol',
'parseqs',
'testcontainers',
'pkginfo',
'@zag-js/toast',
'babel-helper-regex',
'@react-types/dialog',
'merge-refs',
'babel-plugin-transform-es2015-modules-umd',
'copyfiles',
'download',
'@mui/x-data-grid',
'@aws-sdk/client-ses',
'@zag-js/color-utils',
'@graphql-hive/signal',
'@parcel/watcher-linux-arm-musl',
'@next/swc-linux-arm64-gnu',
'remark-frontmatter',
'react-pdf',
'spawn-error-forwarder',
'preferred-pm',
'@base44/vite-plugin',
'babel-plugin-transform-es2015-object-super',
'mapbox-gl',
'openapi-typescript',
'editions',
'whatwg-url-without-unicode',
'@vitest/browser',
'@react-native-community/cli',
'lodash.clonedeepwith',
'@zag-js/toggle-group',
'remark-slug',
'webdriverio',
'@azure/keyvault-keys',
'react-input-autosize',
'listr',
'@rollup/rollup-linux-loongarch64-gnu',
'delegate',
'@lezer/javascript',
'@types/archiver',
'babel-plugin-transform-es2015-spread',
'launchdarkly-eventsource',
'rc-image',
'rc-input',
'pino-http',
'@csstools/postcss-gradients-interpolation-method',
'subarg',
'@pdf-lib/upng',
'react-beautiful-dnd',
'@pm2/io',
'rehype-stringify',
'@zag-js/timer',
'neotraverse',
'@react-aria/menu',
'@tiptap/extension-text-style',
'rc-switch',
'@csstools/postcss-media-queries-aspect-ratio-number-values',
'io-ts',
'critters',
'@nestjs/jwt',
'babel-plugin-check-es2015-constants',
'@next/swc-darwin-arm64',
'@tanstack/eslint-plugin-query',
'@next/swc-linux-arm64-musl',
'has-symbol-support-x',
'fs',
'@csstools/postcss-logical-resize',
'docker-compose',
'@react-native-community/cli-platform-ios',
'kafkajs',
'@csstools/postcss-media-minmax',
'@ethereumjs/rlp',
'parseuri',
'babel-plugin-transform-es2015-block-scoped-functions',
'babel-plugin-transform-es2015-for-of',
'proxy-compare',
'create-react-class',
'cytoscape-cose-bilkent',
'@mapbox/mapbox-gl-supported',
'first-chunk-stream',
'babel-plugin-transform-es2015-function-name',
'ansi-to-html',
'uint8arrays',
'@tiptap/extension-history',
'babel-plugin-transform-es2015-modules-amd',
'@types/whatwg-mimetype',
'rc-textarea',
'@storybook/addon-a11y',
'web-encoding',
'env-editor',
'ultron',
'babel-plugin-transform-object-rest-spread',
'@cacheable/utils',
'packageurl-js',
'worker-rpc',
'@csstools/utilities',
'unist-util-remove',
'csv-parser',
'@turf/clone',
'@aws-sdk/client-sns',
'@zag-js/radio-group',
'@react-stately/menu',
'amqplib',
'es6-object-assign',
'buffer-more-ints',
'noms',
'js-stringify',
'load-yaml-file',
'@react-types/datepicker',
'@graphql-codegen/client-preset',
'@zag-js/menu',
'@zag-js/presence',
'nprogress',
'csscolorparser',
'@nestjs/passport',
'@rollup/plugin-alias',
'@yarnpkg/libzip',
'dagre-d3-es',
'@zag-js/progress',
'@react-types/grid',
'@zag-js/hover-card',
'conventional-changelog',
'@react-stately/tabs',
'@csstools/postcss-logical-float-and-clear',
'@react-stately/selection',
'cuint',
'@react-types/radio',
'@expo/xcpretty',
'@react-native/metro-babel-transformer',
'babel-plugin-transform-es2015-destructuring',
'stylelint-config-standard-scss',
'@sentry/vite-plugin',
'@chevrotain/cst-dts-gen',
'jasmine',
'@react-types/select',
'@langchain/core',
'ftp',
'babel-plugin-transform-es2015-duplicate-keys',
'find-yarn-workspace-root2',
'@react-stately/radio',
'expo-linking',
'@module-federation/cli',
'parse-statements',
'@csstools/postcss-logical-viewport-units',
'@wdio/protocols',
'@react-aria/textfield',
'btoa-lite',
'@react-stately/datepicker',
'@mui/lab',
'axios-mock-adapter',
'doctypes',
'babel-plugin-transform-regenerator',
'@aws-sdk/util-base64-node',
'gulp',
'@intlify/core-base',
'console.table',
'@react-native-community/cli-types',
'tempfile',
'expo-status-bar',
'good-listener',
'@lydell/node-pty',
'phin',
'@csstools/postcss-scope-pseudo-class',
'babel-plugin-react-compiler',
'@rc-component/portal',
'@types/bn.js',
'write-pkg',
'jimp-compact',
'eol',
'@types/css-font-loading-module',
'@react-types/menu',
'@firebase/firestore-compat',
'react-resizable',
'babel-plugin-transform-es2015-modules-systemjs',
'@walletconnect/utils',
'@react-aria/dialog',
'multistream',
'babel-helper-optimise-call-expression',
'@react-aria/listbox',
'@swc/core-win32-ia32-msvc',
'vite-plugin-checker',
'@react-types/table',
'detective-vue2',
'normalize-svg-path',
'@angular-eslint/builder',
'@firebase/auth-compat',
'@algolia/abtesting',
'@react-stately/table',
'@firebase/messaging-compat',
'@react-types/combobox',
'@yarnpkg/fslib',
'highcharts',
'@monaco-editor/loader',
'prettier-plugin-organize-imports',
'@internationalized/number',
'@babel/polyfill',
'@firebase/app-check-compat',
'@rollup/rollup-linux-powerpc64le-gnu',
'@pm2/agent',
'@firebase/storage-compat',
'@unrs/resolver-binding-darwin-x64',
'@firebase/analytics-compat',
'@electron/get',
'@types/events',
'xmldoc',
'@swc/core-linux-arm-gnueabihf',
'@types/ua-parser-js',
'@storybook/postinstall',
'@firebase/performance-compat',
'react-base16-styling',
'cytoscape-fcose',
'@rspack/binding-linux-x64-musl',
'@react-types/tooltip',
'@aws-sdk/client-kms',
'@types/ioredis',
'@cloudflare/unenv-preset',
'@firebase/ai',
'state-local',
'inversify',
'@types/three',
'@react-types/listbox',
'parse-png',
'beasties',
'@firebase/installations-compat',
'color-parse',
'rc-segmented',
'math-expression-evaluator',
'selenium-webdriver',
'universal-cookie',
'@lukeed/uuid',
'@oclif/config',
'@jimp/core',
'@borewit/text-codec',
'css-selector-parser',
'kinesis-local',
'hawk',
'ts-declaration-location',
'babel-walk',
'@react-types/switch',
'@react-stately/tree',
'@rollup/plugin-typescript',
'@jsdoc/salty',
'@next/swc-darwin-x64',
'universal-github-app-jwt',
'lodash.topath',
'subscriptions-transport-ws',
'http-link-header',
'find-package-json',
'expo-splash-screen',
'@rollup/rollup-win32-x64-gnu',
'split-ca',
'@google/genai',
'@types/escodegen',
'enzyme',
'consolidate',
'@react-stately/select',
'seed-random',
'xxhashjs',
'lodash._isiterateecall',
'charm',
'execall',
'@types/cli-progress',
'fbemitter',
'svelte',
'pretty-quick',
'@tiptap/extension-placeholder',
'sntp',
'eslint-plugin-mocha',
'vt-pbf',
'@napi-rs/canvas-linux-x64-musl',
'strip-bom-stream',
'babel-plugin-transform-es2015-literals',
'inspect-with-kind',
'async-settle',
'xmldom',
'@emotion/core',
'@types/lru-cache',
'run-series',
'@posthog/core',
'exec-async',
'@segment/analytics-core',
'abortcontroller-polyfill',
'glob-watcher',
'string-similarity',
'multibase',
'chai-as-promised',
'd3-collection',
'@aws-sdk/util-utf8-node',
'xcode',
'robots-parser',
'@poppinss/exception',
'generate-object-property',
'to-absolute-glob',
'encode-utf8',
'dicer',
'@walletconnect/sign-client',
'@epic-web/invariant',
'oniguruma-parser',
'@react-types/slider',
'@amplitude/analytics-types',
'tcomb',
'csv-generate',
'@metamask/utils',
'figlet',
'scslre',
'is-hotkey',
'@storybook/preview',
'xml-crypto',
'@react-aria/switch',
'emoji-regex-xs',
'child-process-ext',
'lighthouse-stack-packs',
'i18next-http-backend',
'browserify',
'@react-aria/toggle',
'@drizzle-team/brocli',
'@aws-cdk/asset-node-proxy-agent-v6',
'lodash.zip',
'eslint-plugin-import-x',
'@expo/devcert',
'@xhmikosr/downloader',
'babel-plugin-transform-es2015-computed-properties',
'@aws-sdk/client-cognito-identity-provider',
'babel-helper-remap-async-to-generator',
'@xhmikosr/decompress-unzip',
'@next/swc-win32-arm64-msvc',
'launchdarkly-js-sdk-common',
'@poppinss/colors',
'@ungap/promise-all-settled',
'import-from-esm',
'@humanwhocodes/momoa',
'grid-index',
'@react-stately/numberfield',
'find-node-modules',
'@samverschueren/stream-to-observable',
'turbo-stream',
'select',
'@ant-design/react-slick',
'@react-stately/grid',
'@expo/code-signing-certificates',
'@wdio/repl',
'node-environment-flags',
'postcss-reporter',
'react-color',
'@react-aria/toolbar',
'@babel/helper-define-map',
'roughjs',
'@react-aria/radio',
'@react-aria/combobox',
'@ethersproject/bytes',
'yazl',
'parse-github-url',
'@types/passport',
'mathjs',
'mochawesome-report-generator',
'yeast',
'@date-io/core',
'@fastify/accept-negotiator',
'antd',
'stat-mode',
'remark-external-links',
'@lukeed/ms',
'@types/readdir-glob',
'blob',
'reactcss',
'@types/raf',
'refa',
'reduce-flatten',
'natural-orderby',
'regexp-ast-analysis',
'lodash.curry',
'bach',
'@types/diff',
'regexp-match-indices',
'yjs',
'@csstools/postcss-exponential-functions',
'vscode-nls',
'stylus-loader',
'@ethersproject/logger',
'@apm-js-collab/tracing-hooks',
'@rolldown/binding-linux-x64-gnu',
'@octokit/webhooks-types',
'conventional-changelog-codemirror',
'make-cancellable-promise',
'conventional-changelog-eslint',
'tinygradient',
'aws-sdk-client-mock',
'locate-character',
'has-cors',
'properties-reader',
'detect-browser',
'exif-parser',
'@csstools/postcss-gamut-mapping',
'bmp-js',
'@types/set-cookie-parser',
'@react-aria/spinbutton',
'array.prototype.filter',
'youch-core',
'rc-trigger',
'@react-aria/tabs',
'keccak',
'@zag-js/time-picker',
'@ethersproject/abi',
'babel-helper-builder-binary-assignment-operator-visitor',
'last-run',
'@types/webxr',
'ultrahtml',
'super-regex',
'flatbuffers',
'react-copy-to-clipboard',
'es6-map',
'@speed-highlight/core',
'@datadog/browser-logs',
'os-filter-obj',
'@nestjs/schedule',
'@storybook/client-api',
'conventional-changelog-express',
'bin-check',
'gulp-cli',
'@types/find-cache-dir',
'@img/sharp-darwin-x64',
'pm2-axon',
'semver-greatest-satisfied-range',
'pdf-parse',
'expect-playwright',
'conventional-changelog-ember',
'stream-transform',
'requireg',
'@nestjs/typeorm',
'hammerjs',
'@cucumber/cucumber',
'replace-homedir',
'csp_evaluator',
'@expo/metro-runtime',
'@react-aria/progress',
'@lexical/html',
'style-value-types',
'component-type',
'@csstools/postcss-logical-overscroll-behavior',
'@ethersproject/address',
'pm2-multimeter',
'@codemirror/theme-one-dark',
'@types/file-saver',
'@aws-sdk/client-cloudformation',
'@sinonjs/formatio',
'array-filter',
'mermaid',
'@ethersproject/transactions',
'yoga-layout',
'util-arity',
'@unrs/resolver-binding-win32-arm64-msvc',
'@napi-rs/canvas-linux-x64-gnu',
'@unrs/resolver-binding-linux-arm-gnueabihf',
'@unrs/resolver-binding-linux-arm-musleabihf',
'@react-types/link',
'xxhash-wasm',
'@types/npmlog',
'lightningcss-win32-x64-msvc',
'redux-mock-store',
'es6-shim',
'@jimp/types',
'copy-props',
'vite-plugin-inspect',
'date-now',
'rc-picker',
'@unrs/resolver-binding-win32-ia32-msvc',
'tsc-alias',
'human-id',
'@types/warning',
'conventional-changelog-jshint',
'@unrs/resolver-binding-wasm32-wasi',
'@unrs/resolver-binding-linux-ppc64-gnu',
'@unrs/resolver-binding-freebsd-x64',
'@unrs/resolver-binding-linux-s390x-gnu',
'@react-native-community/cli-clean',
'each-props',
'nice-napi',
'@pm2/js-api',
'@lexical/utils',
'git-node-fs',
'@react-types/numberfield',
'pad-right',
'fast-base64-decode',
'@react-aria/breadcrumbs',
'material-colors',
'@jimp/plugin-resize',
'lerna',
'blueimp-md5',
'pm2-axon-rpc',
'babel-plugin-syntax-exponentiation-operator',
'js-git',
'culvert',
'yamux-js',
'periscopic',
'@react-aria/datepicker',
'babel-plugin-syntax-async-functions',
'@vue/babel-plugin-resolve-type',
'conventional-changelog-jquery',
'flatstr',
'@csstools/postcss-initial',
'@xhmikosr/archive-type',
'undertaker',
'fsu',
'@fastify/static',
'csv',
'dynamic-dedupe',
'rc-dialog',
'@changesets/apply-release-plan',
'lodash.reduce',
'after',
'original',
'cryptiles',
'@aws-sdk/client-kinesis',
'@stoplight/path',
'spawndamnit',
'set-immediate-shim',
'conventional-changelog-atom',
'express-joi-validations',
'react-tooltip',
'jest-playwright-preset',
'mochawesome',
'@codemirror/lang-json',
'@codemirror/lang-javascript',
'@angular/language-service',
'@nx/webpack',
'amp',
'matcher-collection',
'@react-aria/link',
'html-loader',
'jest-process-manager',
'@tanstack/match-sorter-utils',
'@ethersproject/keccak256',
'@lydell/node-pty-linux-x64',
'@formatjs/intl-listformat',
'parse-bmfont-xml',
'@changesets/cli',
'printj',
'undertaker-registry',
'@pnpm/error',
'bodec',
'@turf/boolean-point-in-polygon',
'@next/bundle-analyzer',
'mark.js',
'@lexical/clipboard',
'@react-aria/table',
'@react-native-community/cli-config',
'xml-parse-from-string',
'structured-headers',
'@cacheable/memory',
'@aws-sdk/util-middleware',
'posthog-node',
'@changesets/pre',
'mobx-react',
'@lezer/json',
'is-ip',
'parse-bmfont-binary',
'popmotion',
'@tweenjs/tween.js',
'jest-serializer-html',
'@ethereumjs/util',
'@ethersproject/bignumber',
'@changesets/read',
'@mermaid-js/parser',
'@storybook/test-runner',
'iobuffer',
'is64bit',
'npm-conf',
'micromark-extension-directive',
'system-architecture',
'postcss-html',
'babel-plugin-transform-exponentiation-operator',
'@jimp/plugin-print',
'require-uncached',
'@cucumber/gherkin-utils',
'@ethersproject/web',
'@hapi/formula',
'babel-helper-explode-assignable-expression',
'parse-bmfont-ascii',
'log-driver',
'@lexical/rich-text',
'array-from',
'@rollup/rollup-linux-ppc64-gnu',
'@apollo/server-gateway-interface',
'@contentful/rich-text-types',
'broccoli-plugin',
'typed-function',
'ps-list',
'p-wait-for',
'@csstools/postcss-light-dark-function',
'json-schema-typed',
'abstract-leveldown',
'@stoplight/better-ajv-errors',
'mailparser',
'@jimp/plugin-displace',
'launchdarkly-js-client-sdk',
'@cfworker/json-schema',
'@hapi/pinpoint',
'rst-selector-parser',
'promptly',
'function-timeout',
'diffable-html',
'perfect-scrollbar',
'gradient-string',
'cycle',
'@changesets/git',
'node-sass',
'@jimp/plugin-blur',
'postcss-less',
'@changesets/config',
'airbnb-prop-types',
'@react-native-community/cli-doctor',
'asynciterator.prototype',
'@aws-sdk/client-sesv2',
'isomorphic.js',
'last-call-webpack-plugin',
'@xhmikosr/decompress-tar',
'rc-align',
'resolve-package-path',
'@lexical/selection',
'@octokit/tsconfig',
'@sindresorhus/slugify',
'@changesets/logger',
'slate',
'@types/dockerode',
'ts-node-dev',
'tcomb-validation',
'@react-aria/grid',
'its-fine',
'@xhmikosr/decompress-targz',
'gud',
'@ethersproject/properties',
'untyped',
'dash-ast',
'fast-sha256',
'as-table',
'@mapbox/geojson-rewind',
'component-bind',
'@lexical/list',
'@next/swc-win32-ia32-msvc',
'@types/acorn',
'lodash._basecopy',
'@stoplight/spectral-ref-resolver',
'@unrs/resolver-binding-linux-riscv64-gnu',
'array.prototype.find',
'@apollo/cache-control-types',
'@lexical/table',
'@langchain/openai',
'@icons/material',
'babel-plugin-add-react-displayname',
'@aws-sdk/client-eventbridge',
'@pm2/pm2-version-check',
'@react-types/breadcrumbs',
'@stoplight/json-ref-resolver',
'@react-aria/numberfield',
'lexical',
'resolve-workspace-root',
'@rc-component/context',
'merge-deep',
'@changesets/assemble-release-plan',
'@sindresorhus/transliterate',
'teen_process',
'@jimp/plugin-color',
'@changesets/get-dependents-graph',
'lightningcss-linux-arm64-gnu',
'@apollo/server',
'knuth-shuffle-seeded',
'@hapi/validate',
'git-sha1',
'@storybook/ui',
'@ant-design/cssinjs',
'@xhmikosr/decompress',
'parse-svg-path',
'@vercel/oidc',
'@types/mapbox__point-geometry',
'nunjucks',
'jssha',
'@storybook/store',
'drange',
'babel-plugin-transform-async-to-generator',
'ag-grid-community',
'@electric-sql/pglite',
'@walletconnect/universal-provider',
'expo-web-browser',
'diagnostic-channel-publishers',
'@ethersproject/abstract-provider',
'to-array',
'echarts',
'@jimp/plugin-rotate',
'regexparam',
'@octokit/webhooks',
'stream-exhaust',
'@ethereumjs/tx',
'@jimp/plugin-mask',
'uqr',
'@types/concat-stream',
'diagnostic-channel',
'sumchecker',
'@lexical/code',
'vizion',
'lightningcss-darwin-arm64',
'@types/har-format',
'rslog',
'passport-local',
'env-cmd',
'@formatjs/intl-displaynames',
'web-worker',
'@ethersproject/base64',
'parse-imports-exports',
'@storybook/react-vite',
'@aws-sdk/middleware-eventstream',
'cpy',
'@apollo/utils.fetcher',
'@maplibre/maplibre-gl-style-spec',
'@react-stately/dnd',
'debounce-fn',
'postcss-color-gray',
'isomorphic-dompurify',
'lightningcss-linux-arm64-musl',
'@hapi/tlds',
'depcheck',
'@unrs/resolver-binding-linux-riscv64-musl',
'vue-template-es2015-compiler',
'svg-arc-to-cubic-bezier',
'@stoplight/ordered-object-literal',
'@changesets/get-version-range-type',
'remark-math',
'@lexical/markdown',
'@changesets/errors',
'array.prototype.toreversed',
'@lexical/history',
'freeport-async',
'node-ensure',
'@img/sharp-linux-arm',
'@ethersproject/rlp',
'deps-regex',
'hast-util-has-property',
'chroma-js',
'@tanstack/store',
'blake3-wasm',
'@types/react-is',
'amp-message',
'@types/ssh2-streams',
'@ethersproject/abstract-signer',
'@aws-sdk/client-bedrock-runtime',
'pm2-deploy',
'@types/morgan',
'microseconds',
'openapi-fetch',
'mqtt',
'vue-style-loader',
'mute-stdout',
'@ethersproject/signing-key',
'@changesets/parse',
'numeral',
'get-npm-tarball-url',
'@datadog/native-iast-rewriter',
'@oclif/errors',
'@types/es-aggregate-error',
'vuex',
'@xhmikosr/bin-check',
'react-native-webview',
'@types/md5',
'@types/diff-match-patch',
'printable-characters',
'html-comment-regex',
'cli-tableau',
'@types/express-session',
'@rc-component/mutate-observer',
'conf',
'openapi-typescript-helpers',
'@msgpack/msgpack',
'@jimp/plugin-contain',
'@fastify/cors',
'applicationinsights',
'@jimp/plugin-fisheye',
'assertion-error-formatter',
'@use-gesture/react',
'allure-js-commons',
'lodash.find',
'base16',
'component-inherit',
'@react-types/searchfield',
'@react-stately/searchfield',
'@teppeis/multimaps',
'@img/sharp-libvips-darwin-x64',
'@use-gesture/core',
'is-my-json-valid',
'vscode-json-languageservice',
'@img/sharp-win32-ia32',
'mailsplit',
'@apollo/utils.isnodelike',
'@img/sharp-wasm32',
'replace-in-file',
'browser-or-node',
'jest-extended',
'@lexical/link',
'heap',
'@jimp/plugin-circle',
'@fortawesome/react-fontawesome',
'async-validator',
'@lexical/plain-text',
'portscanner',
'@react-types/progress',
'react-hotkeys-hook',
'nano-time',
'@changesets/get-release-plan',
'@xhmikosr/bin-wrapper',
'zimmerframe',
'n8n-nodes-evolution-api',
'@theguild/federation-composition',
'complex.js',
'fs-tree-diff',
'@hapi/cryptiles',
'speedline-core',
'@octokit/webhooks-methods',
'@chevrotain/regexp-to-ast',
'duration',
'@lexical/offset',
'@lexical/overflow',
'is-number-like',
'metaviewport-parser',
'@storybook/react-webpack5',
'optimize-css-assets-webpack-plugin',
'@csstools/postcss-logical-overflow',
'get-assigned-identifiers',
'madge',
'@ethersproject/constants',
'postman-request',
'@koa/router',
'decache',
'ts-algebra',
'validate.io-array',
'@expo/vector-icons',
'escope',
'@ethersproject/networks',
'@zag-js/dom-query',
'@expo/schema-utils',
'@turf/bearing',
'@changesets/write',
'points-on-path',
'xmlhttprequest',
'@react-aria/separator',
'@lexical/dragon',
'@xstate/react',
'args',
'prop-types-exact',
'jest-mock-extended',
'react-player',
'esm-env',
'expo-system-ui',
'@react-pdf/fns',
'react-table',
'sql-highlight',
'p-waterfall',
'@types/js-levenshtein',
'eslint-plugin-security',
'esast-util-from-js',
'@lexical/text',
'int64-buffer',
'umzug',
'@lerna/create',
'@cucumber/gherkin-streams',
'co-body',
'gifwrap',
'@changesets/changelog-git',
'appdirsjs',
'join-component',
'@types/oracledb',
'@types/seedrandom',
'@ethereumjs/common',
'remove-trailing-slash',
'@ethersproject/hash',
'@xhmikosr/os-filter-obj',
'react-virtualized',
'@turf/centroid',
'zrender',
'@react-pdf/font',
'@hapi/iron',
'yaml-eslint-parser',
'@react-types/checkbox',
'chevrotain-allstar',
'path2d',
'@types/pbf',
'mqtt-packet',
'@xhmikosr/decompress-tarbz2',
'js-library-detector',
'@hapi/podium',
'logkitty',
'@react-pdf/png-js',
'mem-fs-editor',
'combine-source-map',
'meshoptimizer',
'@rc-component/tour',
'@types/google-protobuf',
'webpackbar',
'@lexical/mark',
'@lexical/yjs',
'@oxc-project/runtime',
'slick',
'inflation',
'ts-graphviz',
'@hapi/wreck',
'lodash.deburr',
'ag-charts-types',
'@fortawesome/fontawesome-free',
'@storybook/source-loader',
'hast-util-heading-rank',
'@img/sharp-libvips-linux-s390x',
'@lexical/react',
'@lexical/hashtag',
'@elastic/elasticsearch',
'@react-stately/data',
'@aws-sdk/util-base64-browser',
'parse-link-header',
'hachure-fill',
'estree-util-scope',
'postgres',
'async-foreach',
'cz-conventional-changelog',
'abs-svg-path',
'@ckeditor/ckeditor5-core',
'ts-deepmerge',
'swagger-parser',
'@jsep-plugin/ternary',
'remove-bom-buffer',
'ansi-fragments',
'@ant-design/fast-color',
'@googlemaps/markerclusterer',
'vite-hot-client',
'globalyzer',
'@react-pdf/pdfkit',
'vue-hot-reload-api',
'msw-storybook-addon',
'@types/lodash.debounce',
'@octokit/plugin-enterprise-rest',
'react-query',
'typed-rest-client',
'stringstream',
'seroval',
'@react-aria/select',
'@typescript/vfs',
'lodash.isfinite',
'@react-email/text',
'@vercel/build-utils',
'inline-source-map',
'coffeescript',
'response-iterator',
'@stoplight/spectral-parsers',
'@react-aria/searchfield',
'juice',
'multiformats',
'react-overlays',
'@types/color-convert',
'simple-eval',
'lodash._root',
'restructure',
'@react-stately/toggle',
'react-virtuoso',
'@stoplight/spectral-runtime',
'http-shutdown',
'intl-messageformat-parser',
'@csstools/postcss-content-alt-text',
'redux-persist',
'node-cleanup',
'expo-router',
'@types/stats.js',
'arraybuffer.slice',
'@cucumber/ci-environment',
'@rc-component/color-picker',
'@react-email/button',
'points-on-curve',
'tocbot',
'@img/sharp-libvips-linux-arm',
'@tanstack/react-store',
'@nx/jest',
'@img/sharp-linux-s390x',
'postcss-selector-matches',
'@turf/area',
'eta',
'string.prototype.trimleft',
'@react-types/meter',
'jest-fetch-mock',
'@uiw/codemirror-extensions-basic-setup',
'json-cycle',
'@wdio/reporter',
'get-source',
'make-plural',
'react-native-get-random-values',
'eval',
'@types/wait-on',
'image-q',
'libsodium-wrappers',
'hast-to-hyperscript',
'@stablelib/base64',
'eslint-plugin-turbo',
'libsodium',
'nimma',
'@react-email/tailwind',
'@stoplight/spectral-functions',
'@types/is-function',
'html-element-map',
'@asyncapi/specs',
'@aws-sdk/util-config-provider',
'start-server-and-test',
'acorn-dynamic-import',
'@react-email/html',
'@octokit/auth-unauthenticated',
'hast-util-sanitize',
'parents',
'validate.io-function',
'tiny-glob',
'dom-align',
'resolve-pkg',
'@react-email/body',
'jimp',
'prop-types-extra',
'@react-native-community/cli-debugger-ui',
'@solana/codecs-strings',
'@semantic-release/git',
'color2k',
'commist',
'crypto',
'recma-build-jsx',
'promise.series',
'knitwork',
'node-mocks-http',
'style-inject',
'json-schema-to-typescript',
'config',
'@hapi/teamwork',
'point-in-polygon',
'pretty-time',
'inquirer-autocomplete-prompt',
'@storybook/addon-themes',
'rehype-recma',
'react-tabs',
'@react-email/font',
'qr.js',
'safe-json-parse',
'@modern-js/node-bundle-require',
'react-aria',
'request-promise',
'@pkgr/utils',
'fast-png',
'@commander-js/extra-typings',
'rehype-slug',
'@react-stately/toast',
'remove-bom-stream',
'@types/filewriter',
'@types/redis',
'is-my-ip-valid',
'extendable-error',
'jsc-android',
'es5-shim',
'p-all',
'@react-stately/color',
'@motionone/easing',
'rx-lite-aggregates',
'lodash.padend',
'detab',
'md5-file',
'@apollo/utils.createhash',
'@oxc-parser/binding-linux-x64-musl',
'@types/parse-path',
'rate-limiter-flexible',
'svg.select.js',
'unctx',
'@expo/metro',
'keycode',
'recma-jsx',
'append-buffer',
'@rc-component/qrcode',
'react-bootstrap',
'@rc-component/mini-decimal',
'@tiptap/extension-image',
'@hapi/b64',
'@octokit/oauth-app',
'expo-image',
'@expo/ws-tunnel',
'@motionone/generators',
'@nestjs/microservices',
'@expo/mcp-tunnel',
'eslint-import-resolver-alias',
'@aws-sdk/client-ec2',
'json-schema-ref-parser',
'@segment/analytics-generic-utils',
'conventional-commit-types',
'exit-on-epipe',
'inquirer-checkbox-plus-prompt',
'@fastify/proxy-addr',
'edge-paths',
'a-sync-waterfall',
'lottie-react',
'@ethersproject/random',
'expo-linear-gradient',
'web-resource-inliner',
'image-ssim',
'@ethersproject/providers',
'@unrs/resolver-binding-android-arm64',
'tx2',
'country-flag-icons',
'teex',
'@unrs/resolver-binding-android-arm-eabi',
'lodash.restparam',
'promise.prototype.finally',
'path-platform',
'unhead',
'util-extend',
'@fastify/send',
'@react-stately/disclosure',
'@turf/destination',
'@react-pdf/primitives',
'@react-aria/meter',
'@stoplight/spectral-core',
'@apollo/utils.withrequired',
'postcss-color-mod-function',
'@edge-runtime/primitives',
'tree-sitter',
'remark-footnotes',
'module-deps',
'@turf/line-intersect',
'@rolldown/binding-linux-x64-musl',
'@turf/boolean-clockwise',
'@ethersproject/sha2',
'@cucumber/message-streams',
'@nestjs/terminus',
'@ai-sdk/anthropic',
'kysely',
'recma-parse',
'scrypt-js',
'@types/react-helmet',
'@nuxt/devtools-kit',
'ast-kit',
'@vue/devtools-core',
'charset',
'dotenv-defaults',
'react-stately',
'@segment/loosely-validate-event',
'valid-data-url',
'@cacheable/memoize',
'@fastify/forwarded',
'escape-latex',
'@expo/sudo-prompt',
'expo-haptics',
'block-stream',
'string.prototype.trimright',
'thread-loader',
'require-like',
'@material-ui/utils',
're-resizable',
'strip-bom-buf',
'apollo-utilities',
'estree-util-value-to-estree',
'json2csv',
'@storybook/docs-mdx',
'@ckeditor/ckeditor5-engine',
'eslint-plugin-sonarjs',
'@motionone/utils',
'livereload-js',
'qified',
'mylas',
'@xyflow/react',
'@uiw/react-codemirror',
'react-grid-layout',
'react-native-url-polyfill',
'browser-pack',
'sitemap',
'@xyflow/system',
'@types/command-line-args',
'@motionone/dom',
'react-promise-suspense',
'@aws-sdk/util-defaults-mode-browser',
'xdg-portable',
'@fal-works/esbuild-plugin-global-externals',
'slate-react',
'geckodriver',
'@aws-sdk/eventstream-handler-node',
'node-rsa',
'@react-email/img',
'path-data-parser',
'babel-dead-code-elimination',
'@ethersproject/basex',
'openapi-sampler',
'insert-module-globals',
'@edge-runtime/vm',
'@apollographql/graphql-playground-html',
'@yarnpkg/esbuild-plugin-pnp',
'@parcel/watcher-wasm',
'pm2-sysmonit',
'is-valid-path',
're2',
'json-parse-helpfulerror',
'cached-path-relative',
'@google-cloud/bigquery',
'eslint-plugin-react-native',
'@types/quill',
'@react-email/preview',
'@acemir/cssom',
'markdownlint',
'lodash.has',
'micro',
'@material-ui/types',
'compression-webpack-plugin',
'string.fromcodepoint',
'@types/filesystem',
'@react-aria/gridlist',
'@unhead/vue',
'commitizen',
'git-repo-info',
'@motionone/animation',
'esast-util-from-estree',
'@alcalzone/ansi-tokenize',
'@react-aria/dnd',
'@stoplight/spectral-formats',
'express-validator',
'graphql-scalars',
'@azure/opentelemetry-instrumentation-azure-sdk',
'@pnpm/constants',
'ramda-adjunct',
'@react-email/column',
'recma-stringify',
'rollup-plugin-postcss',
'httpreq',
'@types/form-data',
'babel-plugin-add-module-exports',
'eslint-plugin-standard',
'@types/chai-as-promised',
'validate.io-number',
'umd',
'@react-email/section',
'@octokit/app',
'@oclif/screen',
'@pnpm/crypto.base32-hash',
'@jimp/png',
'react-resize-detector',
'react-slick',
'apollo-server-env',
'@aws-sdk/middleware-sdk-ec2',
'default-compare',
'@semantic-release/changelog',
'listhen',
'reduce-function-call',
'@storybook/testing-library',
'istextorbinary',
'mssql',
'labeled-stream-splicer',
'cypress-real-events',
'regexp-to-ast',
'mdast-util-math',
'json-loader',
'@lezer/html',
'@types/micromatch',
'@react-aria/landmark',
'parse-gitignore',
'pdfkit',
'has-binary2',
'array-sort',
'@types/sax',
'redux-saga',
'@react-email/row',
'@rspack/plugin-react-refresh',
'@ethersproject/wallet',
'fetch-cookie',
'@lezer/css',
'@types/marked',
'string.prototype.padstart',
'syntax-error',
'@auth0/auth0-spa-js',
'@aws-sdk/util-defaults-mode-node',
'@sentry/cli-linux-arm64',
'passport-oauth2',
'@motionone/types',
'htmlescape',
'@tanstack/router-core',
'styleq',
'types-ramda',
'arr-map',
'@jimp/plugin-crop',
'babel-plugin-transform-class-properties',
'@vercel/node',
'normalize-selector',
'@kamilkisiela/fast-url-parser',
'@whatwg-node/server',
'node-pre-gyp',
'google-libphonenumber',
'@nx/linter',
'apollo-server-types',
'borsh',
'@microsoft/applicationinsights-web-snippet',
'@types/tunnel',
'@nrwl/jest',
'lodash.defaultsdeep',
'stream-length',
'@algolia/autocomplete-shared',
'lodash.pickby',
'element-resize-detector',
'csv-writer',
'mensch',
'@cypress/webpack-preprocessor',
'@npmcli/config',
'promise-breaker',
'@jimp/custom',
'expo-image-loader',
'seroval-plugins',
'@types/react-native',
'cypress-multi-reporters',
'lodash.some',
'zx',
'@fullcalendar/daygrid',
'stacktracey',
'@josephg/resolvable',
'@types/react-beautiful-dnd',
'autolinker',
'@ethersproject/hdnode',
'array-last',
'lazy',
'@types/chrome',
'stream-splicer',
'@ethersproject/pbkdf2',
'@lexical/devtools-core',
'@types/async-retry',
'method-override',
'octokit',
'@sentry/cli-darwin',
'@codemirror/lang-css',
'serverless',
'fix-dts-default-cjs-exports',
'@hapi/accept',
'@envelop/types',
'mini-create-react-context',
'@react-aria/tag',
'@google/generative-ai',
'jest-preset-angular',
'null-loader',
'@types/is-stream',
'eslint-plugin-perfectionist',
'tiny-lru',
'css-shorthand-properties',
'rgb2hex',
'prettyjson',
'@algolia/autocomplete-core',
'fileset',
'eciesjs',
'gsap',
'deps-sort',
'@jimp/plugin-flip',
'os-shim',
'@nuxt/schema',
'@csstools/convert-colors',
'@react-email/container',
'@material-ui/system',
'@types/sarif',
'create-react-context',
'@react-email/head',
'@types/geojson-vt',
'@react-email/link',
'http-call',
'@jimp/plugin-blit',
'langchain',
'object.reduce',
'esbuild-plugin-alias',
'@algolia/requester-common',
'@rollup/rollup-openharmony-arm64',
'@opentelemetry/instrumentation-runtime-node',
'oxc-parser',
'extrareqp2',
'arr-filter',
'@hono/node-server',
'resend',
'prism-react-renderer',
'@aw-web-design/x-default-browser',
'@ethersproject/units',
'@ethersproject/wordlists',
'esrap',
'babel-plugin-syntax-class-properties',
'react-device-detect',
'@react-aria/color',
'@vue/eslint-config-typescript',
'ember-cli-version-checker',
'read-only-stream',
'@react-pdf/image',
'deep-freeze',
'@postman/tunnel-agent',
'@types/swagger-ui-express',
'fake-indexeddb',
'@ethersproject/json-wallets',
'azure-devops-node-api',
'@types/detect-port',
'reinterval',
'http-response-object',
'@ngx-translate/core',
'@oclif/linewrap',
'vinyl-file',
'@azure/storage-common',
'@types/passport-jwt',
'mkdirp-infer-owner',
'cloudevents',
'queue-lit',
'validate.io-integer',
'blakejs',
'@algolia/cache-common',
'@react-email/heading',
'json-schema-compare',
'@react-email/hr',
'@gerrit0/mini-shiki',
'@assemblyscript/loader',
'traverse-chain',
'untun',
'@vitest/coverage-istanbul',
'lodash.clone',
'lodash._bindcallback',
'jwk-to-pem',
'@react-pdf/renderer',
'@jimp/plugin-cover',
'@vue/component-compiler-utils',
'flatpickr',
'@types/braces',
'eslint-import-resolver-webpack',
'@nx/module-federation',
'postman-url-encoder',
'retry-axios',
'deprecated-react-native-prop-types',
'@material-ui/core',
'media-chrome',
'array-initial',
'dotenv-webpack',
'ow',
'@types/leaflet',
'express-exp',
'@ndelangen/get-tarball',
'@jimp/jpeg',
'@react-stately/virtualizer',
'scss-tokenizer',
'babel-plugin-syntax-dynamic-import',
'spawn-sync',
'@storybook/nextjs',
'require-relative',
'@types/vinyl',
'@zag-js/focus-visible',
'@oclif/table',
'@jimp/bmp',
'json-stream-stringify',
'@types/adm-zip',
'@jimp/gif',
'@types/vscode',
'enquire.js',
'@react-aria/toast',
'@testing-library/cypress',
'@cloudflare/workers-types',
'@mixmark-io/domino',
'@nx/vite',
'@vercel/analytics',
'clear-module',
'@testing-library/react-native',
'esbuild-loader',
'@react-email/components',
'i18n-iso-countries',
'stdout-stream',
'@keyv/bigmap',
'langium',
'spdx-compare',
'spdx-ranges',
'next-intl',
'ts-mixer',
'use-intl',
'@react-pdf/textkit',
'postcss-syntax',
'@vitejs/plugin-vue-jsx',
'validate.io-integer-array',
'npm-run-all2',
'lightningcss-darwin-x64',
'stream-to-promise',
'rework',
'install-artifact-from-github',
'bcp-47-match',
'body-scroll-lock',
'mdast-squeeze-paragraphs',
'default-resolution',
'media-engine',
'@storybook/mdx2-csf',
'@turf/projection',
'sass-graph',
'protobufjs-cli',
'@react-pdf/types',
'@types/cls-hooked',
'undeclared-identifiers',
'@algolia/logger-console',
'@auth/core',
'@react-pdf/layout',
'@react-pdf/render',
'cspell-io',
'@algolia/cache-in-memory',
'postcss-sass',
'normalize.css',
'@postman/form-data',
'node-stdlib-browser',
'@ant-design/cssinjs-utils',
'@jimp/plugin-dither',
'@datadog/datadog-ci-base',
'rehype-katex',
'hyphen',
'cspell-glob',
'text-encoding',
'tailwind-variants',
'@mdx-js/util',
'@react-native-community/cli-platform-apple',
'notistack',
'get-proxy',
'sql-formatter',
'@algolia/transporter',
'caw',
'@types/picomatch',
'contentful-sdk-core',
'postman-collection',
'hdr-histogram-js',
'ono',
'@react-aria/tree',
'posthtml-parser',
'@storybook/semver',
'denodeify',
'path-loader',
'@redux-saga/symbols',
'apollo-server-errors',
'edgedriver',
'apexcharts',
'@ethersproject/strings',
'lighthouse',
'@cspell/dict-golang',
'cypress-file-upload',
'@codemirror/lang-html',
'graphql-subscriptions',
'apollo-link',
'@types/react-datepicker',
'metro-react-native-babel-preset',
'html-to-image',
'plimit-lit',
'@expo/devtools',
'search-insights',
'shallow-copy',
'@cspell/dict-npm',
'@types/object-hash',
'@preact/signals-core',
'sinon-chai',
'@microsoft/applicationinsights-core-js',
'rollup-plugin-dts',
'@redux-saga/deferred',
'@cspell/dict-companies',
'newrelic',
'@redux-saga/core',
'@graphql-tools/mock',
'rollup-plugin-copy',
'compute-lcm',
'@hapi/shot',
'nlcst-to-string',
'case',
'@hapi/bounce',
'@cspell/dict-bash',
'msgpack-lite',
'rc-config-loader',
'to-no-case',
'xdg-app-paths',
'apollo-datasource',
'suspend-react',
'happy-dom',
'memoize',
'@algolia/cache-browser-local-storage',
'@radix-ui/react-form',
'@jimp/plugin-normalize',
'@nrwl/eslint-plugin-nx',
'slashes',
'@cspell/dict-php',
'@ethersproject/solidity',
'parse-numeric-range',
'run-parallel-limit',
'@cspell/dict-filetypes',
'plop',
'json-schema-merge-allof',
'load-bmfont',
'd3-sankey',
'sdp',
'individual',
'inflected',
'edge-runtime',
'babel-plugin-extract-import-names',
'rework-visit',
'@mdn/browser-compat-data',
'parse-imports',
'better-ajv-errors',
'@rc-component/async-validator',
'isomorphic-timers-promises',
'js-message',
'lodash.bind',
'reserved-words',
'@types/buffer-from',
'web3-utils',
'hast-util-from-dom',
'@react-types/form',
'simple-bin-help',
'@turf/rhumb-bearing',
'@cspell/dict-django',
'@types/classnames',
'@cspell/dict-aws',
'@turf/line-segment',
'@cspell/dict-lua',
'lodash.filter',
'eslint-loader',
'@newrelic/native-metrics',
'cronstrue',
'builder-util-runtime',
'platformsh-config',
'@radix-ui/colors',
'shasum-object',
'health',
'@jimp/tiff',
'@types/selenium-webdriver',
'httpntlm',
'tldts-icann',
'bull',
'istanbul',
'@algolia/logger-common',
'@cspell/dict-elixir',
'resolve-path',
'email-validator',
'@cspell/dict-ruby',
'ansi-red',
'@cspell/dict-scala',
'array-iterate',
'@pnpm/dependency-path',
'@material-ui/styles',
'@radix-ui/react-accessible-icon',
'ssh2-streams',
'event-lite',
'rehype',
'webrtc-adapter',
'yaeti',
'@aws-sdk/client-cloudfront',
'@cspell/dict-html-symbol-entities',
'@malept/cross-spawn-promise',
'matchdep',
'@oxc-parser/binding-linux-x64-gnu',
'@stoplight/json-ref-readers',
'eslint-plugin-react-native-globals',
'@amplitude/analytics-client-common',
'eslint-plugin-jsonc',
'timm',
'react-phone-number-input',
'expo-application',
'@hapi/hapi',
'cspell-trie-lib',
'when',
'@cspell/dict-css',
'postcss-reduce-idents',
'compute-gcd',
'@date-io/date-fns',
'@tanstack/history',
'to-space-case',
'@turf/rhumb-distance',
'symbol.prototype.description',
'read-package-tree',
'@turf/polygon-to-line',
'@octokit/plugin-paginate-graphql',
'@react-pdf/stylesheet',
'@types/shell-quote',
'fetch-mock',
'@types/supports-color',
'mdast-util-directive',
'just-debounce',
'@types/command-line-usage',
'@cspell/dict-powershell',
'eslint-plugin-jest-dom',
'@oslojs/encoding',
'resq',
'@vue-macros/common',
'pretty',
'@asteasolutions/zod-to-openapi',
'@neoconfetti/react',
'@cspell/dict-haskell',
'query-selector-shadow-dom',
'remark-squeeze-paragraphs',
'postcss-url',
'slow-redact',
'expo-blur',
'watch',
'websocket',
'@cspell/dict-public-licenses',
'find-test-names',
'@cspell/dict-cpp',
'eslint-plugin-prefer-arrow',
'parse-diff',
'@azure/core-http',
'eslint-plugin-regexp',
'@edge-runtime/format',
'unescape',
'easy-stack',
'@nrwl/workspace',
'pure-color',
'@react-email/markdown',
'@react-native-community/cli-plugin-metro',
'@mantine/hooks',
'@prisma/query-plan-executor',
'@cspell/strong-weak-map',
'apollo-reporting-protobuf',
'@vercel/python',
'keytar',
'draco3d',
'jasmine-spec-reporter',
'@cspell/dict-en_us',
'@docsearch/css',
'sver-compat',
'@next/third-parties',
'@react-hook/passive-layout-effect',
'@apollographql/apollo-tools',
'@messageformat/parser',
'@jimp/plugin-threshold',
'@turf/rewind',
'@react-aria/disclosure',
'airbnb-js-shims',
'unescape-js',
'eslint-plugin-tailwindcss',
'@cspell/cspell-bundled-dicts',
'@turf/nearest-point-on-line',
'@axe-core/playwright',
'mochawesome-merge',
'@ai-sdk/google',
'vite-plugin-pwa',
'@cspell/dict-latex',
'splaytree',
'@rollup/rollup-linux-loong64-gnu',
'valtio',
'@types/eslint-visitor-keys',
'expo-manifests',
'@kubernetes/client-node',
'@types/mapbox-gl',
'unplugin-vue-router',
'collection-map',
'slick-carousel',
'ace-builds',
'log',
'cspell',
'@react-three/fiber',
'sprintf-kit',
'graphql-type-json',
'@ecies/ciphers',
'@aws-sdk/util-waiter',
'@textlint/ast-node-types',
'mime-format',
'blessed',
'vercel',
'@img/sharp-libvips-linux-ppc64',
'@types/codemirror',
'rollup-plugin-inject',
'@google-cloud/run',
'@vercel/static-build',
'cbor',
'fluent-ffmpeg',
'comlink',
'rrule',
'json-refs',
'@aws-sdk/client-api-gateway',
'is-whitespace',
'md5-hex',
'@cspell/dict-fullstack',
'lightningcss-linux-arm-gnueabihf',
'@angular/localize',
'serve-placeholder',
'@google-cloud/functions-framework',
'babel-plugin-apply-mdx-type-prop',
'spdx-satisfies',
'signature_pad',
'@algolia/autocomplete-plugin-algolia-insights',
'@sveltejs/acorn-typescript',
'@csstools/postcss-sign-functions',
'@cspell/dynamic-import',
'hsl-to-rgb-for-reals',
'vscode-textmate',
'focus-trap-react',
'@electron/asar',
'@cspell/dict-fonts',
'lodash._baseassign',
'react-google-recaptcha',
'postcss-merge-idents',
'cspell-lib',
'@types/btoa-lite',
'thirty-two',
'os-paths',
'@edge-runtime/node-utils',
'babel-preset-es2015',
'mem-fs',
'rtlcss',
'nconf',
'jspdf-autotable',
'base32.js',
'@redux-saga/types',
'@cspell/dict-lorem-ipsum',
'@opencensus/core',
'yeoman-generator',
'simple-lru-cache',
'@cspell/dict-en-common-misspellings',
'unist-util-modify-children',
'metro-inspector-proxy',
'@launchdarkly/js-sdk-common',
'@vercel/redwood',
'@material/feature-targeting',
'@fortawesome/free-regular-svg-icons',
'typed-styles',
'@vercel/gatsby-plugin-vercel-builder',
'@turf/point-to-line-distance',
'@gitbeaker/requester-utils',
'@jimp/plugins',
'@jimp/plugin-gaussian',
'parse-git-config',
'uni-global',
'@oclif/plugin-autocomplete',
'@redux-saga/is',
'jayson',
'event-pubsub',
'typescript-tuple',
'apache-arrow',
'@gitbeaker/core',
'@tiptap/extension-text-align',
'dir-compare',
'@types/mustache',
'@react-aria/button',
'typedoc-plugin-markdown',
'mysql',
'@react-stately/checkbox',
'expect-webdriverio',
'node-sarif-builder',
'@cspell/cspell-service-bus',
'@types/mkdirp',
'@turf/circle',
'@types/liftoff',
'sync-rpc',
'@cspell/dict-data-science',
'@cspell/dict-dotnet',
'https',
'babel-plugin-react-docgen',
'@lit-labs/react',
'@cspell/dict-cryptocurrencies',
'@google-cloud/secret-manager',
'@redux-saga/delay-p',
'@amplitude/analytics-remote-config',
'@algolia/client-account',
'postcss-zindex',
'speakingurl',
'lodash._basetostring',
'css-value',
'mammoth',
'number-allocator',
'@docsearch/react',
'expo-image-picker',
'option',
'@nestjs/cache-manager',
'vinyl-sourcemaps-apply',
'rlp',
'winston-daily-rotate-file',
'@ianvs/prettier-plugin-sort-imports',
'draft-js',
'@cspell/dict-ada',
'@react-email/code-block',
'lookup-closest-locale',
'typescript-compare',
'@cspell/dict-docker',
'rollup-plugin-typescript2',
'@vscode/l10n',
'bezier-easing',
'arity-n',
'@upstash/redis',
'@fullcalendar/interaction',
'@types/zen-observable',
'promise-map-series',
'@tediousjs/connection-string',
'ndjson',
'imask',
'koa-send',
'ng-packagr',
'serialize-to-js',
'@types/fined',
'mixpanel-browser',
'@types/formidable',
'gensequence',
'unist-util-find-all-after',
'lightningcss-freebsd-x64',
'showdown',
'@types/lodash.mergewith',
'unorm',
'expo-json-utils',
'@react-stately/combobox',
'find',
'parse-latin',
'@vercel/functions',
'compose-function',
'@cspell/dict-html',
'@cspell/dict-typescript',
'@cspell/dict-rust',
'@vercel/remix-builder',
'safaridriver',
'@amplitude/analytics-browser',
'unist-util-visit-children',
'lcov-parse',
'reflect.ownkeys',
'@mantine/core',
'ensure-posix-path',
'@tailwindcss/oxide-win32-x64-msvc',
'@types/duplexify',
'aws-lambda',
'@cspell/dict-csharp',
'postcss-cli',
'@turf/along',
'@aws-sdk/eventstream-serde-universal',
'@langchain/textsplitters',
'highlight-words-core',
'react-responsive',
'@reactflow/core',
'@figspec/components',
'file-stream-rotator',
'use-deep-compare-effect',
'fs2',
'@hello-pangea/dnd',
'web-tree-sitter',
'nitropack',
'@datadog/datadog-api-client',
'postcss-discard-unused',
'@turf/length',
'junit-report-builder',
'algoliasearch-helper',
'@jimp/plugin-invert',
'@react-native-community/netinfo',
'shx',
'@img/sharp-win32-arm64',
'@stoplight/spectral-rulesets',
'@vercel/ruby',
'@hapi/ammo',
'flux',
'redux-logger',
'case-anything',
'@types/react-table',
'@types/mapbox__vector-tile',
'flmngr',
'@changesets/should-skip-package',
'git-config-path',
'promise-queue',
'vm2',
'@aws-sdk/eventstream-serde-browser',
'@material/rtl',
'syncpack',
'@types/react-modal',
'input-format',
'@ionic/utils-process',
'rettime',
'@reactflow/node-toolbar',
'css-unit-converter',
'install',
'@electron/universal',
'ssh-remote-port-forward',
'@serverless/utils',
'@reactflow/minimap',
'@oclif/plugin-not-found',
'@turf/boolean-point-on-line',
'@react-types/calendar',
'ag-grid-react',
'@hapi/subtext',
'promise-limit',
'fuzzysort',
'sort-desc',
'swagger-jsdoc',
'@hapi/vise',
'cropperjs',
'apollo-server-core',
'uid-promise',
'yeoman-environment',
'condense-newlines',
'nuxt',
'@tailwindcss/oxide-linux-arm64-gnu',
'rpc-websockets',
'@hapi/pez',
'rrweb-snapshot',
'@types/amqplib',
'@react-stately/slider',
'x-is-string',
'vite-plugin-static-copy',
'@vue/reactivity-transform',
'@solana/options',
'universal-analytics',
'jpeg-exif',
'@datadog/datadog-ci-plugin-synthetics',
'@datadog/datadog-ci-plugin-gate',
'@datadog/datadog-ci-plugin-sbom',
'@rails/actioncable',
'estree-to-babel',
'@amplitude/plugin-page-view-tracking-browser',
'vscode-oniguruma',
'@chakra-ui/utils',
'ssh2-sftp-client',
'@aws-sdk/util-utf8',
'is-any-array',
'@aws-sdk/middleware-sdk-api-gateway',
'@reactflow/background',
'react-qr-code',
'@types/turndown',
'@datadog/flagging-core',
'koa-static',
'@figspec/react',
'@postman/tough-cookie',
'expo-updates-interface',
'@sentry/cli-linux-arm',
'@cspell/cspell-types',
'@sentry/profiling-node',
'@sentry/cli-win32-x64',
'expo-dev-menu',
'@react-native/normalize-color',
'@reactflow/node-resizer',
'@launchdarkly/node-server-sdk',
'sort-object',
'@tailwindcss/oxide-linux-arm64-musl',
'@microsoft/fetch-event-source',
'@vanilla-extract/css',
'@types/he',
'embla-carousel-autoplay',
'tweetnacl-util',
'@turf/intersect',
'@sentry/cli-linux-i686',
'email-addresses',
'nuqs',
'@ckeditor/ckeditor5-utils',
'merge-anything',
'connect-redis',
'elkjs',
'@types/html-to-text',
'lan-network',
'schema-dts',
'walk',
'@reactflow/controls',
'steno',
'@aws-sdk/eventstream-codec',
'@react-email/code-inline',
'cspell-gitignore',
'@vueuse/integrations',
'@tiptap/suggestion',
'hdr-histogram-percentiles-obj',
'@algolia/autocomplete-preset-algolia',
'istanbul-api',
'is-window',
'@types/pdfkit',
'@nuxt/telemetry',
'@edge-runtime/ponyfill',
'@paulirish/trace_engine',
'unwasm',
'browser-request',
'@dagrejs/graphlib',
'@jimp/plugin-scale',
'@actions/exec',
'circular-dependency-plugin',
'@types/node-cron',
'@tabler/icons',
'batch-processor',
'event-source-polyfill',
'@react-google-maps/api',
'md-to-react-email',
'ansi-cyan',
'@tanstack/router-generator',
'apollo-server-plugin-base',
'consolidated-events',
'weak-map',
'@types/yup',
'cidr-regex',
'prettier-plugin-packagejson',
'redoc',
'@ionic/utils-subprocess',
'js-sha512',
'@aws-sdk/client-ecr',
'retext',
'canvas-confetti',
'@nx/nx-darwin-arm64',
'tap-parser',
'@vercel/error-utils',
'has-glob',
'@csstools/postcss-random-function',
'compatx',
'@hapi/statehood',
'mux-embed',
'@types/googlepay',
'hsl-to-hex',
'@aws-sdk/client-cloudwatch',
'@types/pngjs',
'@types/expect',
'rehype-external-links',
'@aws-sdk/eventstream-serde-node',
'@types/big.js',
'@msgpackr-extract/msgpackr-extract-linux-arm64',
'foreachasync',
'xhr2',
'@ionic/utils-stream',
'lightningcss-win32-arm64-msvc',
'@turf/center',
'mjml-validator',
'@react-types/tabs',
'@vanilla-extract/integration',
'allure-commandline',
'lodash.assignin',
'thenby',
'@vercel/next',
'@cspell/dict-software-terms',
'maplibre-gl',
'imagemin',
'ts-proto',
'@turf/buffer',
'@vanilla-extract/private',
'readline2',
'@hapi/catbox',
'pdfmake',
'@material/typography',
'image-meta',
'ssr-window',
'magic-string-ast',
'output-file-sync',
'obj-case',
'@react-google-maps/infobox',
'@vercel/blob',
'@types/stream-buffers',
'@react-aria/checkbox',
'@react-native-community/datetimepicker',
'@reach/utils',
'httpxy',
'lodash.flow',
'cspell-config-lib',
'lowdb',
'@otplib/plugin-crypto',
'retext-latin',
'contentful',
'lodash.chunk',
'@langchain/langgraph-sdk',
'expo-location',
'radix-ui',
'micro-ftch',
'@material/ripple',
'@turf/bbox-polygon',
'@types/jscodeshift',
'ua-is-frozen',
'@electron/notarize',
'sqlite3',
'@turf/clean-coords',
'@datadog/datadog-ci-plugin-sarif',
'@datadog/datadog-ci-plugin-dora',
'@datadog/datadog-ci-plugin-deployment',
'copy-to',
'events-intercept',
'@cspell/dict-python',
'postcss-simple-vars',
'@sveltejs/vite-plugin-svelte',
'pg-cursor',
'@vue/tsconfig',
'http-reasons',
'vite-compatible-readable-stream',
'stream-composer',
'@vercel/fun',
'@otplib/preset-default',
'@hapi/content',
'find-index',
'@aws-sdk/client-personalize-events',
'cli-progress-footer',
'remarkable',
'mjml-accordion',
'@babel/helper-builder-react-jsx',
'centra',
'utif2',
'@tyriar/fibonacci-heap',
'uuid-browser',
'@ckeditor/ckeditor5-upload',
'@edsdk/flmngr-ckeditor5',
'@storybook/channel-websocket',
'react-email',
'@fastify/deepmerge',
'enzyme-adapter-utils',
'@turf/union',
'@react-stately/calendar',
'@netlify/serverless-functions-api',
'hast-util-from-html-isomorphic',
'node-uuid',
'request-light',
'solid-js',
'@nuxt/vite-builder',
'@react-google-maps/marker-clusterer',
'@babel/node',
'mjml-table',
'levenary',
'scoped-regex',
'debounce-promise',
'typescript-logic',
'@capacitor/core',
'unix-crypt-td-js',
'mjml-section',
'vinyl-contents',
'@foliojs-fork/linebreak',
'@tabler/icons-react',
'@mui/x-license',
'cdk-assets',
'decko',
'@hapi/nigel',
'@sentry/cli-win32-i686',
'@petamoriken/float16',
'matchmediaquery',
'@tanstack/router-plugin',
'react-map-gl',
'ncjsm',
'rifm',
'@turf/difference',
'@types/tern',
'@koa/cors',
'then-request',
'cspell-dictionary',
'@turf/boolean-disjoint',
'@cspell/dict-fsharp',
'shortid',
'tiny-lr',
'array-tree-filter',
'turbo-linux-arm64',
'isemail',
'@swc/wasm',
'@lerna/child-process',
'font-awesome',
'@launchdarkly/js-server-sdk-common',
'mjml-core',
'multicodec',
'@gulpjs/to-absolute-glob',
'webextension-polyfill',
'jest-when',
'@material/elevation',
'@types/prompts',
'is-standalone-pwa',
'@turf/rhumb-destination',
'@prisma/prisma-fmt-wasm',
'lop',
'nssocket',
'@opentelemetry/sdk-trace-web',
'dagre',
'@react-stately/tooltip',
'@ckeditor/ckeditor5-enter',
'source-map-explorer',
'react-aria-components',
'is-dom',
'@storybook/preview-web',
'@promptbook/utils',
'find-requires',
'expo-dev-launcher',
'i18next-fs-backend',
'@vercel/static-config',
'http-basic',
'trim-off-newlines',
'@cspell/cspell-json-reporter',
'@microsoft/dynamicproto-js',
'@hapi/catbox-memory',
'@types/better-sqlite3',
'asn1.js-rfc5280',
'stream',
'prettier-eslint',
'mjml-head-title',
'rspack-resolver',
'snakecase-keys',
'@fullcalendar/core',
'@hapi/call',
'lodash._objecttypes',
'@ethersproject/contracts',
'commonmark',
'@appium/types',
'@hapi/somever',
'@vercel/gatsby-plugin-vercel-analytics',
'launchdarkly-react-client-sdk',
'@react-spring/three',
'@visx/group',
'@types/nlcst',
'@rspack/dev-server',
'is-cidr',
'vuedraggable',
'@types/redux-mock-store',
'@fullcalendar/timegrid',
'@opentelemetry/instrumentation-oracledb',
'mjml-head-breakpoint',
'@mui/x-data-grid-pro',
'rehype-sanitize',
'mjml-body',
'log-node',
'uglifyjs-webpack-plugin',
'react-to-print',
'otplib',
'striptags',
'broccoli-merge-trees',
'asn1.js-rfc2560',
'react-calendar',
'@otplib/core',
'grunt-cli',
'fast-printf',
'jay-peg',
'@codemirror/legacy-modes',
'@floating-ui/vue',
'liquid-json',
'@hapi/mimos',
'maath',
'@cspell/cspell-resolver',
'@parcel/utils',
'cli-sprintf-format',
'@hapi/heavy',
'@cspell/dict-dart',
'@opentelemetry/propagator-aws-xray',
'remark-smartypants',
'ast-walker-scope',
'date-time',
'@formatjs/ts-transformer',
'@hapi/file',
'@opentelemetry/instrumentation-fetch',
'amazon-cognito-identity-js',
'csvtojson',
'@astrojs/compiler',
'coveralls',
'@types/invariant',
'remeda',
'react-leaflet',
'stream-parser',
'@yr/monotone-cubic-spline',
'@types/yoga-layout',
'mongodb-memory-server',
'proxyquire',
'@turf/nearest-point-to-line',
'@otplib/preset-v11',
'@sveltejs/vite-plugin-svelte-inspector',
'yoga-wasm-web',
'credit-card-type',
'@cspell/dict-node',
'@turf/boolean-contains',
'@turf/kinks',
'@types/react-color',
'@jimp/plugin-shadow',
'pusher-js',
'mongodb-memory-server-core',
'mjml-head-font',
'@rollup/wasm-node',
'mjml-head-preview',
'stylis-rule-sheet',
'mjml-group',
'mjml-wrapper',
'mjml-button',
'eslint-plugin-html',
'three-mesh-bvh',
'xcase',
'd3-geo-projection',
'@visx/scale',
'@xmldom/is-dom-node',
'mjml-head',
'@tanstack/router-utils',
'react-quill',
'yauzl-promise',
'@segment/facade',
'vue-resize',
'rollup-plugin-node-polyfills',
'@img/sharp-linux-ppc64',
'falafel',
'@react-aria/slider',
'mjml-parser-xml',
'vite-plugin-node-polyfills',
'locate-app',
'jest-axe',
'sort-any',
'better-assert',
'multihashes',
'modern-ahocorasick',
'@react-aria/collections',
'@storybook/addon-designs',
'emoji-mart',
'dingbat-to-unicode',
'mjml-navbar',
'get-user-locale',
'mjml-hero',
'mjml-carousel',
'mjml-spacer',
'mjml-head-style',
'db0',
'@turf/transform-translate',
'faye',
'array-map',
'@smithy/middleware-compression',
'@turf/truncate',
'@react-aria/virtualizer',
'wildcard-match',
'@cspell/dict-java',
'srcset',
'@dotenvx/dotenvx',
'stickyfill',
'gulp-util',
'@tiptap/extensions',
'@cspell/dict-julia',
'third-party-capital',
'@types/koa__router',
'short-unique-id',
'posthtml',
'@hypnosphi/create-react-context',
'mjml-head-html-attributes',
'@graphql-codegen/introspection',
'await-to-js',
'@bugsnag/cuid',
'stream-slice',
'@tailwindcss/oxide-darwin-arm64',
'is-scoped',
'@expo/bunyan',
'cheap-ruler',
'@openapitools/openapi-generator-cli',
'@stencil/core',
'@nx/nx-win32-x64-msvc',
'snowflake-sdk',
'@material/shape',
'string.prototype.codepointat',
'computeds',
'@react-aria/calendar',
'firebase-tools',
'sync-request',
'@otplib/plugin-thirty-two',
'@ngx-translate/http-loader',
'@opensearch-project/opensearch',
'@foliojs-fork/pdfkit',
'avsc',
'uglify-es',
'liquidjs',
'@react-native/metro-config',
'@cspell/dict-monkeyc',
'shasum',
'stats.js',
'yauzl-clone',
'yoga-layout-prebuilt',
'css-parse',
'is-hex-prefixed',
'@stylelint/postcss-css-in-js',
'@cspell/dict-git',
'bytewise-core',
'react-sizeme',
'@codemirror/lang-sql',
'@turf/boolean-within',
'@aws-sdk/middleware-endpoint',
'Base64',
'vscode-html-languageservice',
'@types/gtag.js',
'@metamask/safe-event-emitter',
'@turf/transform-scale',
'retext-stringify',
'@electron/osx-sign',
'p-memoize',
'@percy/sdk-utils',
'@cspell/dict-swift',
'deferred',
'media-query-parser',
'expo-dev-client',
'@cspell/dict-vue',
'enzyme-adapter-react-16',
'@ckeditor/ckeditor5-typing',
'atob-lite',
'@tiptap/extension-table',
'@tiptap/extension-highlight',
'mock-fs',
'mjml',
'@netlify/functions',
'github-username',
'mjml-preset-core',
'jest-styled-components',
'eslint-config-turbo',
'@videojs/vhs-utils',
'mjml-text',
'mjml-head-attributes',
'mjml-social',
'@nuxt/devalue',
'mjml-column',
'mjml-raw',
'babel-plugin-syntax-decorators',
'@microsoft/signalr',
'array-reduce',
'saslprep',
'@turf/convex',
'babel-preset-env',
'jschardet',
'@turf/combine',
'@humanwhocodes/gitignore-to-minimatch',
'csprng',
'read-installed',
'rrweb',
'humps',
'@atlaskit/tokens',
'@turf/line-split',
'promisepipe',
'ember-cli-babel',
'shell-exec',
'@aws-sdk/client-firehose',
'@sentry/vue',
'expo-dev-menu-interface',
'react-idle-timer',
'binary-search',
'@tiptap/extension-color',
'@ionic/utils-fs',
'react-loading-skeleton',
'@vercel/hydrogen',
'unconfig',
'@turf/clusters-kmeans',
'@tsconfig/node20',
'@nrwl/cypress',
'stringify-package',
'cockatiel',
'@algolia/events',
'purgecss',
'@wojtekmaj/date-utils',
'cjson',
'@azure/keyvault-secrets',
'@cspell/dict-r',
'@aws-amplify/notifications',
'@react-aria/tooltip',
'react-merge-refs',
'sort-asc',
'@microsoft/microsoft-graph-client',
'@types/secp256k1',
'webpack-chain',
'@segment/isodate',
'@turf/simplify',
'duck',
'hogan.js',
'@oclif/command',
'grunt',
'text-encoding-utf-8',
'@parcel/logger',
'@chakra-ui/styled-system',
'@types/tar',
'@types/busboy',
'@parcel/codeframe',
'vscode-css-languageservice',
'@foliojs-fork/restructure',
'@noble/secp256k1',
'@turf/center-of-mass',
'nofilter',
'react-native-worklets',
'chartjs-plugin-datalabels',
'@oclif/plugin-plugins',
'neverthrow',
'apache-md5',
'@segment/analytics-node',
'mocha-multi-reporters',
'basic-auth-connect',
'@capacitor/cli',
'@vue/eslint-config-prettier',
'@nestjs/websockets',
'babel-plugin-transform-export-extensions',
'zxcvbn',
'@effect/schema',
'@wdio/cli',
'@types/pbkdf2',
'firebase-functions',
'loader-fs-cache',
'@astrojs/internal-helpers',
'@opentelemetry/otlp-proto-exporter-base',
'@turf/line-chunk',
'@types/webpack-bundle-analyzer',
'apollo-server-express',
'getobject',
'typewise-core',
'@remix-run/server-runtime',
'vscode-languageclient',
'is-mobile',
'@turf/nearest-point',
'@mdx-js/loader',
'@types/passport-local',
'@turf/boolean-overlap',
'@segment/isodate-traverse',
'lodash.values',
'react-compiler-runtime',
'@parcel/types',
'worker-loader',
'vite-dev-rpc',
'grouped-queue',
'module-not-found-error',
'@parcel/workers',
'@bugsnag/core',
'new-date',
'sqs-consumer',
'mjml-image',
'react-popper-tooltip',
'@cspell/url',
'@nx/cypress',
'rollup-plugin-babel',
'@material/touch-target',
'coffee-script',
'@turf/explode',
'nanospinner',
'@turf/mask',
'@cspell/dict-gaming-terms',
'concaveman',
'@slack/webhook',
'update-notifier-cjs',
'deep-equal-in-any-order',
'uid-number',
'@aws-sdk/md5-js',
'@types/pixelmatch',
'@types/draco3d',
'@turf/square',
'@cspell/dict-svelte',
'@nuxt/devtools-wizard',
'has-gulplog',
'@babel/runtime-corejs2',
'ts-poet',
'@vercel/go',
'npm-user-validate',
'@amplitude/analytics-connector',
'broccoli-persistent-filter',
'kill-port',
'@shikijs/transformers',
'@material/list',
'@types/enzyme',
'eslint-json-compat-utils',
'json-ptr',
'react-highlight-words',
'systemjs',
'ml-matrix',
'eslint-plugin-ft-flow',
'@solana/spl-token',
'troika-three-utils',
'mjml-cli',
'@turf/line-overlap',
'lodash.unescape',
'mjml-divider',
'electron',
'userhome',
'@apm-js-collab/code-transformer',
'@turf/line-to-polygon',
'is-lite',
'babel-extract-comments',
'recompose',
'lodash.padstart',
'@nx/nx-linux-arm64-musl',
'@aws-sdk/eventstream-serde-config-resolver',
'@foliojs-fork/fontkit',
'@types/canvas-confetti',
'@tiptap/extension-list',
'@turf/unkink-polygon',
'essentials',
'@emotion/styled-base',
'@react-native-community/cli-config-apple',
'eslint-config-flat-gitignore',
'@tsconfig/node18',
'@react-navigation/stack',
'@turf/flatten',
'@rrweb/types',
'rndm',
'@turf/point-grid',
'stylelint-prettier',
'@walletconnect/keyvaluestorage',
'@cspell/dict-k8s',
'@astrojs/markdown-remark',
'babel-plugin-transform-async-generator-functions',
'json-colorizer',
'troika-worker-utils',
'react-infinite-scroll-component',
'@turf/tag',
'@vercel/stega',
'redux-devtools-extension',
'heimdalljs',
'@types/react-select',
'@segment/analytics-next',
'svix',
'node-watch',
'eslint-plugin-tsdoc',
'cli-columns',
'grunt-legacy-util',
'remark-directive',
'detect-europe-js',
'@expo/rudder-sdk-node',
'@tanstack/virtual-file-routes',
'@turf/line-arc',
'async-each-series',
'@turf/line-slice-along',
'probe-image-size',
'mdast-util-compact',
'spacetrim',
'@techteamer/ocsp',
'convict',
'@turf/bbox-clip',
'@turf/midpoint',
'process-utils',
'@turf/flip',
'@oclif/plugin-warn-if-update-available',
'@langchain/langgraph',
'mjml-migrate',
'path-match',
'grunt-legacy-log-utils',
'@nestjs/throttler',
'sequin',
'@visx/curve',
'fill-keys',
'chromium-pickle-js',
'@wdio/globals',
'@serverless/dashboard-plugin',
'@types/chai-subset',
'@tanstack/vue-virtual',
'babel-preset-stage-3',
'@visx/shape',
'@turf/points-within-polygon',
'@turf/envelope',
'workerd',
'@metamask/rpc-errors',
'vue-devtools-stub',
'mamacro',
'fengari',
'troika-three-text',
'in-publish',
'2-thenable',
'three-stdlib',
'object-component',
'bytewise',
'@react-leaflet/core',
'@casl/ability',
'stream-promise',
'ts-error',
'remark-breaks',
'@turf/line-slice',
'@azure/ms-rest-js',
'@tiptap/extension-table-header',
'diacritics',
'http-status',
'@turf/point-on-feature',
'detect-gpu',
'@chakra-ui/theme-tools',
'compare-version',
'util-promisify',
'eth-lib',
'cli',
'@types/shelljs',
'webgl-constants',
'@turf/turf',
'@turf/polygon-tangents',
'@bugsnag/node',
'@sanity/client',
'nwmatcher',
'caniuse-db',
'@nuxt/devtools',
'secure-keys',
'tape',
'@material/icon-button',
'@material/button',
'@restart/ui',
'@newrelic/security-agent',
'vite-plugin-full-reload',
'@appium/support',
'superstatic',
'primeicons',
'@material/menu',
'csrf',
'posthtml-render',
'strip-hex-prefix',
'is-png',
'@material/menu-surface',
'react-spring',
'@turf/line-offset',
'@turf/bezier-spline',
'mixme',
'@chakra-ui/anatomy',
'drizzle-zod',
'@gorhom/portal',
'@turf/clusters-dbscan',
'ringbufferjs',
'eslint-plugin-react-compiler',
'useragent',
'@lezer/python',
'fastestsmallesttextencoderdecoder',
'@angular-eslint/schematics',
'@turf/great-circle',
'@graphql-codegen/typescript-react-apollo',
'as-array',
'@turf/collect',
'@playwright/mcp',
'react-portal',
'jade',
'glsl-noise',
'@turf/isolines',
'@parcel/plugin',
'@oxc-transform/binding-linux-x64-musl',
'@babel/standalone',
'hooker',
'nestjs-pino',
'@gorhom/bottom-sheet',
'@ckeditor/ckeditor5-ui',
'binascii',
'@tiptap/extension-mention',
'@material/select',
'tightrope',
'@endemolshinegroup/cosmiconfig-typescript-loader',
'@mui/styles',
'lodash.reject',
'@swagger-api/apidom-core',
'errx',
'python-struct',
'@msgpackr-extract/msgpackr-extract-win32-x64',
'set-getter',
'static-module',
'graphql-depth-limit',
'@turf/concave',
'babel-preset-stage-2',
'onnxruntime-common',
'@material/textfield',
'@salesforce/kit',
'iserror',
'@eslint-community/eslint-plugin-eslint-comments',
'@aws-sdk/client-rds',
'p-some',
'@turf/hex-grid',
'@turf/transform-rotate',
'@turf/clusters',
'bin-wrapper',
'@tippyjs/react',
'babel-plugin-transform-decorators',
'@material/snackbar',
'@bazel/runfiles',
'@turf/ellipse',
'videojs-font',
'fast-loops',
'@simplewebauthn/browser',
'unraw',
'@turf/interpolate',
'@material/form-field',
'@google-cloud/cloud-sql-connector',
'is-relative-path',
'@vue/babel-sugar-composition-api-inject-h',
'i',
'@tiptap/extension-table-cell',
'antlr4',
'@antfu/ni',
'babel-plugin-syntax-flow',
'@bugsnag/js',
'@react-hook/latest',
'on-change',
'@nx/nx-linux-arm64-gnu',
'@turf/boolean-crosses',
'gherkin',
'continuable-cache',
'@types/pug',
'contentful-resolve-response',
'grunt-legacy-log',
'yocto-spinner',
'camera-controls',
'exegesis',
'react-json-view',
'@turf/boolean-equal',
'@jsii/check-node',
'tree-changes',
'@turf/triangle-grid',
'time-zone',
'ioredis-mock',
'postinstall-postinstall',
'format-util',
'@turf/tesselate',
'@material/dialog',
'jsonrepair',
'@turf/isobands',
'@turf/planepoint',
'topo',
'@nestjs/graphql',
'@dimforge/rapier3d-compat',
'@ngrx/store',
'@ckeditor/ckeditor5-widget',
'@temporalio/proto',
'@amplitude/plugin-autocapture-browser',
'y-protocols',
'meshline',
'level-supports',
'@types/lodash.merge',
'@segment/analytics.js-video-plugins',
'new-find-package-json',
'flattie',
'@bugsnag/browser',
'chrome-remote-interface',
'@turf/shortest-path',
'p-any',
'@types/anymatch',
'@types/reach__router',
'@turf/boolean-parallel',
'@monogrid/gainmap-js',
'@turf/voronoi',
'file-url',
'@ts-graphviz/ast',
'@ts-graphviz/core',
'@nuxt/cli',
'json-diff',
'laravel-vite-plugin',
'@rollup/plugin-image',
'eslint-plugin-yml',
'@panva/asn1.js',
'@ts-graphviz/common',
'retext-smartypants',
'@ts-graphviz/adapter',
'@solana/buffer-layout',
'@material/linear-progress',
'builder-util',
'typewise',
'@mole-inc/bin-wrapper',
'@tiptap/extension-list-keymap',
'extract-stack',
'@ngrx/effects',
'@vercel/hono',
'@nestjs/bull-shared',
'@material/data-table',
'rtl-detect',
'@types/underscore',
'cssauron',
'topojson-server',
'electron-publish',
'auth0',
'@aws-sdk/util-retry',
'@material/tab-scroller',
'@ucast/mongo2js',
'@neondatabase/serverless',
'temp-write',
'@ardatan/aggregate-error',
'wrangler',
'path2d-polyfill',
'@react-native-community/cli-hermes',
'@material/tab-bar',
'@aws-sdk/middleware-sdk-rds',
'js-file-download',
'jest-expo',
'skmeans',
'@turf/tin',
'@cspell/cspell-pipe',
'@material/slider',
'get-them-args',
'@material/chips',
'@googleapis/sqladmin',
'@serverless/platform-client',
'dreamopt',
'sliced',
'@material/drawer',
'route-recognizer',
'sweetalert2',
'find-parent-dir',
'@cspell/dict-makefile',
'@ckeditor/ckeditor5-select-all',
'highcharts-react-official',
'@deca-ui/react',
'vite-plugin-vue-inspector',
'@turf/random',
'@cspell/dict-kotlin',
'grunt-known-options',
'@storybook/addon-vitest',
'@material/card',
'babel-helper-bindify-decorators',
'babel-plugin-transform-remove-console',
'@fontsource/roboto',
'pg-minify',
'@simplewebauthn/server',
'json-bignum',
'karma-coverage-istanbul-reporter',
'@visx/point',
'@material/top-app-bar',
'ansi',
'@swagger-api/apidom-error',
'@ionic/utils-array',
'array-find',
'aws4fetch',
'react-cookie',
'@pulumi/pulumi',
'injection-js',
'@types/numeral',
'@temporalio/common',
'npm-registry-utilities',
'react-easy-crop',
'@streamparser/json',
'eslint-plugin-deprecation',
'options',
'os',
'@cspell/dict-terraform',
'levelup',
'@supabase/ssr',
'ast-metadata-inferer',
'lefthook',
'node-object-hash',
'konva',
'@parcel/events',
'react-image-crop',
'lodash._basecreate',
'koa-bodyparser',
'deferred-leveldown',
'@langchain/community',
'zod-to-ts',
'@types/source-map-support',
'webpack-filter-warnings-plugin',
'eventemitter-asyncresource',
'gulp-rename',
'vue-bundle-renderer',
'fast-stable-stringify',
'broccoli-funnel',
'jsqr',
'@turf/polygonize',
'ts-proto-descriptors',
'glur',
'libnpmsearch',
'cypress-wait-until',
'@cspell/dict-google',
'@appium/schema',
'@expo/server',
'gulp-sourcemaps',
'@material/image-list',
'@types/chance',
'expo-secure-store',
'fast-npm-meta',
'@serverless/event-mocks',
'@loaders.gl/loader-utils',
'eslint-plugin-compat',
'@react-native-firebase/app',
'@turf/center-mean',
'npm-profile',
'@turf/center-median',
'speed-measure-webpack-plugin',
'clean-git-ref',
'@aws-sdk/middleware-sdk-route53',
'emoticon',
'body',
'@vue/babel-helper-vue-jsx-merge-props',
'use-context-selector',
'babel-plugin-syntax-async-generators',
'clap',
'dashify',
'fn-name',
'@material/banner',
'browser-sync-ui',
'@types/jasminewd2',
'toml-eslint-parser',
'@bugsnag/safe-json-stringify',
'sequelize-cli',
'react-native-edge-to-edge',
'dev-ip',
'@vue/babel-sugar-v-on',
'@material/segmented-button',
'@vercel/express',
'dependency-cruiser',
'cspell-grammar',
'@react-stately/autocomplete',
'@salesforce/core',
'jsonata',
'prompt',
'libnpmteam',
'emitter-component',
'@parcel/diagnostic',
'structured-source',
'@redocly/cli',
'vee-validate',
'@fastify/formbody',
'@slack/socket-mode',
'resp-modifier',
'videojs-vtt.js',
'conventional-changelog-config-spec',
'revalidator',
'simple-websocket',
'bs-recipes',
'create-emotion',
'loglevel-colored-level-prefix',
'npm-which',
'ag-charts-community',
'ts-checker-rspack-plugin',
'expo-crypto',
'@netlify/blobs',
'@gitbeaker/rest',
'@elastic/transport',
'@types/async',
'@zkochan/cmd-shim',
'unifont',
'@material-ui/icons',
'@parcel/fs',
'uuidv7',
'@turf/sector',
'has-color',
'@parcel/markdown-ansi',
'ag-grid-enterprise',
'@tiptap/extension-table-row',
'tiktoken',
'is-alphanumeric',
'eslint-flat-config-utils',
'postman-runtime',
'graphology',
'@hexagon/base64',
'@welldone-software/why-did-you-render',
'symlink-or-copy',
'@auth0/auth0-react',
'@pm2/blessed',
'hast-util-select',
'@temporalio/client',
'@pnpm/read-project-manifest',
'slate-history',
'@turf/square-grid',
'eslint-plugin-json',
'glob2base',
'@braintree/browser-detection',
'cli-ux',
'@visx/text',
'unist-util-filter',
'@react-native/eslint-plugin',
'@tsconfig/node22',
'@turf/dissolve',
'ml-array-max',
'ml-array-min',
'thriftrw',
'ckeditor5',
'eslint-config-standard-jsx',
'@httptoolkit/websocket-stream',
'@astrojs/telemetry',
'browserstack',
'@esbuild-plugins/node-modules-polyfill',
'jest-image-snapshot',
'ml-array-rescale',
'@cspell/dict-flutter',
'rrdom',
'@types/lodash.isequal',
'@turf/sample',
'@csstools/postcss-color-mix-variadic-function-arguments',
'@aws-sdk/client-route-53',
'emotion',
'@vue/babel-preset-jsx',
'@material/theme',
'@tanstack/react-router-devtools',
'@lezer/markdown',
'unplugin-vue-components',
'@slack/oauth',
'@vanilla-extract/babel-plugin-debug-ids',
'jaeger-client',
'@oxc-minify/binding-linux-x64-musl',
'@protobuf-ts/runtime',
'@aws-sdk/middleware-websocket',
'@react-aria/autocomplete',
'@ckeditor/ckeditor5-paragraph',
'stylelint-config-prettier',
'browser-sync',
'expr-eval',
'@react-types/autocomplete',
'@walletconnect/window-getters',
'aws-amplify',
'mux.js',
'@reach/observe-rect',
'@turf/standard-deviational-ellipse',
'vfile-reporter',
'@types/react-virtualized',
'add-dom-event-listener',
'@vue/babel-sugar-functional-vue',
'@graphql-yoga/subscription',
'vuetify',
'@gilbarbara/deep-equal',
'string-format',
'prebuildify',
'@microsoft/applicationinsights-dependencies-js',
'htm',
'dom7',
'wait-for-expect',
'style-dictionary',
'danger',
'@react-native/eslint-config',
'@date-io/moment',
'use-subscription',
'@vue/babel-sugar-v-model',
'babel-plugin-named-exports-order',
'libnpmorg',
'@sentry/react-native',
'ssim.js',
'@microsoft/rush',
'immutability-helper',
'babel-helper-explode-class',
'tarjan-graph',
'url-value-parser',
'@tanstack/router-devtools-core',
'@ucast/core',
'@storybook/manager-webpack4',
'@azure/arm-resources',
'jest-transform-stub',
'launchdarkly-node-server-sdk',
'@babel/helper-regex',
'uniqid',
'@ionic/cli-framework-output',
'app-builder-lib',
'pinpoint',
'graphql-tools',
'@ckeditor/ckeditor5-editor-multi-root',
'vfile-statistics',
'lodash.lowercase',
'napi-macros',
'tree-sitter-json',
'@types/docker-modem',
'native-url',
'remark-emoji',
'@types/puppeteer',
'svelte-check',
'broccoli-babel-transpiler',
'promise-worker-transferable',
'redlock',
'@parcel/package-manager',
'tiny-relative-date',
'browser-sync-client',
'standard-engine',
'npm-audit-report',
'lodash.transform',
'ts-custom-error',
'@dagrejs/dagre',
'@vue/babel-sugar-inject-h',
'easy-extender',
'@hey-api/openapi-ts',
'node-ipc',
'@turbo/gen',
'typed-emitter',
'@mjackson/node-fetch-server',
'@vue/babel-plugin-transform-vue-jsx',
'ansi-color',
'babel-plugin-transform-flow-strip-types',
'@storybook/builder-webpack4',
'@nivo/core',
'eslint-plugin-lodash',
'@mui/x-tree-view',
'@amplitude/ua-parser-js',
'dotgitignore',
'@salesforce/ts-types',
'@zag-js/core',
'chartjs-color',
'babelify',
'axe-html-reporter',
'domino',
'tinymce',
'@ckeditor/ckeditor5-horizontal-line',
'launch-editor-middleware',
'@notionhq/client',
'@types/chroma-js',
'm3u8-parser',
'glob-slasher',
'@ckeditor/ckeditor5-clipboard',
'fengari-interop',
'stream-throttle',
'@remix-run/node',
'toxic',
'@types/faker',
'openurl',
'doc-path',
'optional-require',
'pegjs',
'eazy-logger',
'protractor',
'bin-build',
'events-to-array',
'@aws-sdk/client-bedrock-agent-runtime',
'react-async-script',
'new-github-release-url',
'styled-system',
'@vercel/speed-insights',
'@turbo/workspaces',
'@stylelint/postcss-markdown',
'acorn-jsx-walk',
'webgl-sdf-generator',
'@types/jest-axe',
'@msgpackr-extract/msgpackr-extract-darwin-arm64',
'events-listener',
'@types/eslint__js',
'@prisma/generator-helper',
'tosource',
'version-range',
'@cspell/dict-markdown',
'abort-controller-x',
'@trpc/server',
'graphology-types',
'@vue/babel-sugar-composition-api-render-instance',
'typescript-language-server',
'mkdirp-promise',
'hls.js',
'whet.extend',
'@cspell/dict-al',
'enzyme-to-json',
'hexer',
'@ckeditor/ckeditor5-undo',
'@turf/boolean-intersects',
'umask',
'json-2-csv',
'@nestjs/platform-socket.io',
'node-api-version',
'rollup-plugin-node-resolve',
'hermes-profile-transformer',
'@ckeditor/ckeditor5-word-count',
'player.style',
'@prisma/driver-adapter-utils',
'@oclif/parser',
'@coinbase/wallet-sdk',
'@ckeditor/ckeditor5-html-embed',
'backbone',
'expo-device',
'cookies-next',
'expo-server',
'@loaders.gl/worker-utils',
'chai-string',
'parse-github-repo-url',
'@nx/nx-darwin-x64',
'@levischuck/tiny-cbor',
'speakeasy',
'@ngrx/store-devtools',
'libnpmhook',
'@ckeditor/ckeditor5-html-support',
'stats-gl',
'number-to-bn',
'postman-sandbox',
'@opentelemetry/instrumentation-xml-http-request',
'@tanstack/query-persist-client-core',
'@slack/bolt',
'video.js',
'uvm',
'react-native-svg-transformer',
'ltgt',
'@types/resize-observer-browser',
'@ckeditor/ckeditor5-table',
'change-emitter',
'@types/tar-stream',
'lodash.omitby',
'vfile-sort',
'svg.filter.js',
'@azure/arm-appservice',
'bip39',
'lodash._basevalues',
'@wdio/local-runner',
'esbuild-linux-arm64',
'broccoli-source',
'@wdio/runner',
'typescript-plugin-css-modules',
'@metamask/json-rpc-engine',
'broccoli-node-info',
'application-config-path',
'webdriver-manager',
'@develar/schema-utils',
'lottie-react-native',
'@walletconnect/safe-json',
'recyclerlistview',
'hotkeys-js',
'@backstage/backend-app-api',
'@ucast/js',
'@aws-sdk/util-base64',
'@radix-ui/react-one-time-password-field',
'globalize',
'@ckeditor/ckeditor5-code-block',
'lodash.uniqwith',
'@lezer/xml',
'@zag-js/anatomy',
'@ckeditor/ckeditor5-highlight',
'transliteration',
'@ckeditor/ckeditor5-font',
'only-allow',
'jshint',
'@fastify/swagger',
'join-path',
'path2',
'@chakra-ui/theme',
'newman',
'quote-stream',
'react-zoom-pan-pinch',
'base64-stream',
'xorshift',
'@pnpm/write-project-manifest',
'webfontloader',
'html-tokenize',
'@nivo/tooltip',
'intl',
'@codemirror/lang-xml',
'@graphql-codegen/typescript-resolvers',
'license-checker',
'postman-collection-transformer',
'fast-unique-numbers',
'get-it',
'react-immutable-proptypes',
'app-builder-bin',
'pg-query-stream',
'imports-loader',
'@tailwindcss/oxide-darwin-x64',
'@clickhouse/client',
'babel-plugin-transform-react-display-name',
'expo-eas-client',
'@svgr/plugin-prettier',
'utif',
'write-yaml-file',
'metro-react-native-babel-transformer',
'lazy-val',
'node-fetch-npm',
'nice-grpc-common',
'react-csv',
'@unocss/core',
'glob-slash',
'color-rgba',
'@cspell/dict-shell',
'svg.js',
'@textlint/module-interop',
'@sveltejs/kit',
'express-unless',
'lefthook-linux-x64',
'react-native-pager-view',
'chromedriver',
'svg.easing.js',
'@esbuild-plugins/node-globals-polyfill',
'@videojs/http-streaming',
'@ckeditor/ckeditor5-minimap',
'react-content-loader',
'babel-helper-builder-react-jsx',
'browserslist-to-esbuild',
'node.extend',
'custom-media-element',
'apollo-link-http-common',
'@styled-system/core',
'@codemirror/lang-markdown',
'angular-eslint',
'exegesis-express',
'@parcel/cache',
'@firebase/vertexai-preview',
'serialised-error',
'properties',
'@types/mailparser',
'@textlint/types',
'@aws-amplify/data-schema',
'@ionic/utils-terminal',
'bit-twiddle',
'deterministic-object-hash',
'chartjs-color-string',
'protoduck',
'otpauth',
'@astrojs/prism',
'deeks',
'heimdalljs-logger',
'ndarray',
'redux-immutable',
'@graphql-eslint/eslint-plugin',
'junit-report-merger',
'@logdna/tail-file',
'tunnel-rat',
'mdast-util-newline-to-break',
'dmg-builder',
'eslint-config-standard-with-typescript',
'@walletconnect/jsonrpc-types',
'posthog-js',
'bufrw',
'node-oauth1',
'beeper',
'@visx/axis',
'lodash.pad',
'@radix-ui/react-password-toggle-field',
'@aws-amplify/core',
'react-hot-loader',
'@walletconnect/window-metadata',
'@total-typescript/ts-reset',
'@types/format-util',
'is-integer',
'@material/base',
'martinez-polygon-clipping',
'@nivo/legends',
'js-queue',
'i18next-resources-to-backend',
'canonicalize',
'@opentelemetry/exporter-jaeger',
'@types/react-slick',
'@nx/react',
'@swagger-api/apidom-ns-openapi-3-1',
'babel-plugin-transform-react-jsx',
'lodash.maxby',
'expo-build-properties',
'@cypress/code-coverage',
'@material/dom',
'@capacitor/android',
'@graphql-yoga/typed-event-target',
'esbuild-darwin-arm64',
'errlop',
'randomstring',
'expo-notifications',
'json-schema-resolver',
'nomnom',
'meant',
'is-jpg',
'jest-watch-select-projects',
'lodash.toarray',
'memory-cache',
'electron-builder',
'@types/axios',
'blob-to-buffer',
'@swagger-api/apidom-json-pointer',
'@octokit/openapi-webhooks-types',
'@clickhouse/client-common',
'fs-exists-cached',
'is-es2016-keyword',
'turbo-windows-64',
'@nx/angular',
'memfs-or-file-map-to-github-branch',
'apollo-upload-client',
'@vue/cli-shared-utils',
'aes-decrypter',
'sha1',
'nanostores',
'esbuild-windows-64',
'@nrwl/react',
'@types/jest-when',
'tsc-watch',
'@web3-storage/multipart-parser',
'svg.draggable.js',
'@glimmer/util',
'@types/sinon-chai',
'web3-eth-abi',
'octokit-pagination-methods',
'@types/config',
'feed',
'@fortawesome/free-brands-svg-icons',
'passport-google-oauth20',
'nanoassert',
'@styled-system/css',
'run-con',
'lodash._reescape',
'vue-docgen-api',
'mousetrap',
'scrollparent',
'babel-helper-evaluate-path',
'@swagger-api/apidom-ns-openapi-3-0',
'backoff',
'@aws-sdk/credential-provider-login',
'multipasta',
'@vercel/ncc',
'@ai-sdk/openai-compatible',
'cache-loader',
'nice-grpc',
'@types/applepayjs',
'@mischnic/json-sourcemap',
'postcss-mixins',
'@cucumber/pretty-formatter',
'@types/slice-ansi',
'murmurhash',
'babel-plugin-lodash',
'npm-path',
'@zag-js/interact-outside',
'@ckeditor/ckeditor5-editor-decoupled',
'keypress',
'@acuminous/bitsyntax',
'mixpanel',
'release-it',
'@eslint-react/ast',
'@unhead/schema',
'trouter',
'fs-capacitor',
'read-chunk',
'@javascript-obfuscator/estraverse',
'@eslint-react/core',
'@eslint-react/var',
'@eslint-react/shared',
'@zag-js/dismissable',
'@msgpackr-extract/msgpackr-extract-darwin-x64',
'zstddec',
'@microsoft/applicationinsights-common',
'double-ended-queue',
'impound',
'javascript-obfuscator',
'watchify',
'turbo-darwin-arm64',
'point-in-polygon-hao',
'@vscode/vsce',
'reserved-identifiers',
'@types/is-hotkey',
'ink-spinner',
'@ast-grep/napi',
'@atlaskit/platform-feature-flags',
'teleport-javascript',
'@nivo/colors',
'turbo-darwin-64',
'lsofi',
'keycloak-js',
'@vercel/h3',
'@styled-system/position',
'emotion-theming',
'babel-helper-remove-or-void',
'content-type-parser',
'aws-xray-sdk-core',
'@swagger-api/apidom-ns-json-schema-draft-7',
'wif',
'simplebar-react',
'@nx/plugin',
'contentful-management',
'path-posix',
'@cspotcode/source-map-consumer',
'lodash._createassigner',
'line-column',
'@swagger-api/apidom-ast',
'text-decoding',
'svg.pathmorphing.js',
'webdriver-js-extender',
'@styled-system/space',
'precond',
'@ucast/mongo',
'@loaders.gl/schema',
'jsdom-global',
'iota-array',
'stringz',
'@cspell/dict-sql',
'web3-providers-http',
'@tailwindcss/oxide-wasm32-wasi',
'eslint-processor-vue-blocks',
'@swagger-api/apidom-ns-json-schema-draft-4',
'lodash._reevaluate',
'level-js',
'select2',
'hast-util-is-body-ok-link',
'web3-eth-iban',
'can-use-dom',
'@styled-system/grid',
'@ckeditor/ckeditor5-editor-inline',
'taffydb',
'@codemirror/lang-python',
'micro-memoize',
'markdownlint-cli',
'@fingerprintjs/fingerprintjs',
'web3-providers-ipc',
'hast-util-embedded',
'babel-plugin-syntax-export-extensions',
'svg.resize.js',
'@ckeditor/ckeditor5-cloud-services',
'@styled-system/variant',
'@capsizecss/unpack',
'to-camel-case',
'@styled-system/border',
'@swagger-api/apidom-parser-adapter-json',
'@bufbuild/protoplugin',
'@types/babel-types',
'@styled-system/flexbox',
'grammex',
'reduce-reducers',
'@temporalio/worker',
'devtools',
'@swagger-api/apidom-parser-adapter-openapi-json-3-0',
'is-supported-regexp-flag',
'@types/google-libphonenumber',
'@swagger-api/apidom-parser-adapter-openapi-yaml-3-1',
'@styled-system/typography',
'webpack-assets-manifest',
'@walletconnect/jsonrpc-ws-connection',
'saucelabs',
'react-apexcharts',
'@nx/nx-win32-arm64-msvc',
'microdiff',
'@testcontainers/postgresql',
'@swagger-api/apidom-ns-json-schema-draft-6',
'jasminewd2',
'@tailwindcss/oxide-win32-arm64-msvc',
'openpgp',
'outpipe',
'@types/clean-css',
'legacy-javascript',
'@types/postcss-modules-scope',
'http-terminator',
'@javascript-obfuscator/escodegen',
'@types/react-google-recaptcha',
'highlight-es',
'@aws-amplify/auth',
'@types/nprogress',
'@soda/friendly-errors-webpack-plugin',
'typescript-json-schema',
'@aws-amplify/data-schema-types',
'@material/animation',
'@swagger-api/apidom-reference',
'@tailwindcss/oxide-android-arm64',
'@svgdotjs/svg.js',
'datatables.net',
'brfs',
'@tailwindcss/oxide-freebsd-x64',
'@lezer/rust',
'@tailwindcss/oxide-linux-arm-gnueabihf',
'ansi-sequence-parser',
'addressparser',
'@swagger-api/apidom-ns-asyncapi-2',
'node-fetch-commonjs',
'@swagger-api/apidom-parser-adapter-openapi-json-3-1',
'@swagger-api/apidom-parser-adapter-openapi-yaml-3-0',
'@expo/eas-build-job',
'rehype-autolink-headings',
'swagger-client',
'@types/pino',
'temp-file',
'smoothscroll-polyfill',
'blocking-proxy',
'@textlint/linter-formatter',
'isomorphic-git',
'card-validator',
'validate.js',
'webpack-notifier',
'@ckeditor/ckeditor5-essentials',
'nest-winston',
'autosize',
'mpd-parser',
'pg-promise',
'@react-router/node',
'@swagger-api/apidom-parser-adapter-api-design-systems-json',
'@swagger-api/apidom-parser-adapter-api-design-systems-yaml',
'@swagger-api/apidom-parser-adapter-asyncapi-json-2',
'@pinia/testing',
'@swagger-api/apidom-parser-adapter-asyncapi-yaml-2',
'node-jose',
'@turf/moran-index',
'libnpmpack',
'@lerna/validation-error',
'bcp-47',
'@verdaccio/file-locking',
'@styled-system/layout',
'@hono/zod-validator',
'well-known-symbols',
'@stoplight/spectral-ruleset-migrator',
'@temporalio/activity',
'@golevelup/nestjs-discovery',
'@walletconnect/relay-auth',
'ethereum-bloom-filters',
'@nevware21/ts-utils',
'libnpmexec',
'browserstack-local',
'@swagger-api/apidom-ns-api-design-systems',
'urlgrey',
'run-node',
'fzf',
'@protobuf-ts/runtime-rpc',
'@nx/nx-freebsd-x64',
'thunkify',
'pe-library',
'@types/lodash.throttle',
'babel-plugin-syntax-class-constructor-call',
'viem',
'react-ace',
'@redocly/respect-core',
'@react-native-picker/picker',
'@msgpackr-extract/msgpackr-extract-linux-arm',
'override-require',
'sf-symbols-typescript',
'polka',
'dexie',
'ev-emitter',
'@types/swagger-jsdoc',
'mktemp',
'jquery-ui',
'xml-parser-xo',
'karma-junit-reporter',
'babel-preset-react',
'prettier-plugin-svelte',
'@zag-js/pagination',
'@react-native-community/cli-config-android',
'broccoli-output-wrapper',
'glsl-tokenizer',
'gulp-sort',
'react-swipeable',
'standard',
'quick-temp',
'graphql-http',
'@appium/base-driver',
'@zag-js/remove-scroll',
'@ckeditor/ckeditor5-editor-classic',
'geojson-rbush',
'ts-object-utils',
'@zag-js/element-size',
'esbuild-freebsd-64',
'@types/pdf-parse',
'express-http-proxy',
'reactflow',
'@visx/vendor',
'libnpmversion',
'@date-io/dayjs',
'@lerna/package',
'@cspell/dict-en-gb',
'@aws-lambda-powertools/commons',
'console-log-level',
'@walletconnect/jsonrpc-provider',
'webcrypto-shim',
'wasm-feature-detect',
'rc-animate',
'@lezer/yaml',
'obug',
'@capacitor/ios',
'babel-preset-stage-1',
'@netlify/zip-it-and-ship-it',
'@vercel/detect-agent',
'@zag-js/file-utils',
'badgin',
'babel-helper-mark-eval-scopes',
'esbuild-windows-32',
'ethjs-unit',
'esbuild-android-arm64',
'esbuild-linux-mips64le',
'jsforce',
'@vimeo/player',
'esbuild-sunos-64',
'@azure/msal-react',
'@turf/angle',
'@cypress/grep',
'@visx/event',
'@microsoft/applicationinsights-shims',
'toastify-react-native',
'@zag-js/tabs',
'diff3',
'@ffmpeg-installer/ffmpeg',
'jest-sonar-reporter',
'@types/reactcss',
'bole',
'@openzeppelin/contracts',
'micro-api-client',
'@swagger-api/apidom-ns-openapi-2',
'@types/color',
'@zag-js/switch',
'@chakra-ui/hooks',
'@electron/rebuild',
'@emoji-mart/data',
'@walletconnect/jsonrpc-utils',
'@keyv/redis',
'allure-playwright',
'esbuild-freebsd-arm64',
'@zag-js/accordion',
'p-iteration',
'boundary',
'esbuild-netbsd-64',
'@styled-system/color',
'@zag-js/popover',
'@zag-js/rating-group',
'xml-encryption',
'dprint-node',
'eslint-merge-processors',
'native-run',
'@zag-js/combobox',
'@walletconnect/ethereum-provider',
'@zag-js/i18n-utils',
'yaml-loader',
'@zag-js/avatar',
'nanotar',
'@types/verror',
'libnpmfund',
'@vscode/sudo-prompt',
'eslint-plugin-expo',
'express-prom-bundle',
'eslint-plugin-only-warn',
'@okta/okta-auth-js',
'@zag-js/tags-input',
'vite-plugin-vue-tracer',
'@braintree/asset-loader',
'unionfs',
'@zag-js/live-region',
'eslint-plugin-babel',
'iron-session',
'p-transform',
'react-scroll',
'meriyah',
'eslint-config-expo',
'@turf/distance-weight',
'youtube-player',
'@material-ui/lab',
'@ckeditor/ckeditor5-list',
'vali-date',
'is-generator',
'watskeburt',
'@types/oauth',
'test-value',
'@reown/appkit-utils',
'ts-mocha',
'@parcel/runtime-js',
'@zag-js/date-picker',
'dot',
'@sidvind/better-ajv-errors',
'@storybook/mdx1-csf',
'chrono-node',
'hex-rgb',
'babel-plugin-transform-class-constructor-call',
'@nestjs/mongoose',
'expo-updates',
'@types/less',
'@styled-system/background',
'resedit',
'react-native-vector-icons',
'ts-map',
'@types/follow-redirects',
'@zag-js/file-upload',
'@lingui/core',
'@types/plist',
'@stitches/core',
'liftup',
'@swagger-api/apidom-parser-adapter-yaml-1-2',
'@zag-js/rect-utils',
'@ckeditor/ckeditor5-ckfinder',
'clamp',
'media-tracks',
'@reown/appkit',
'@emotion/server',
'@graphql-codegen/fragment-matcher',
'@videojs/xhr',
'@zag-js/date-utils',
'@reach/router',
'@openfeature/core',
'eth-rpc-errors',
'eslint-plugin-vitest',
'@stoplight/spectral-ruleset-bundler',
'@walletconnect/heartbeat',
'@ide/backoff',
'object-deep-merge',
'@zag-js/number-input',
'noop-logger',
'react-inlinesvg',
'xml-formatter',
'@mux/playback-core',
'@malept/flatpak-bundler',
'concordance',
'@cucumber/query',
'babel-plugin-minify-dead-code-elimination',
'@oclif/help',
'@amplitude/experiment-core',
'@zag-js/store',
'string-ts',
'@nx/node',
'samsam',
'@react-native-community/slider',
'@prisma/generator',
'vue-chartjs',
'replacestream',
'@zag-js/carousel',
'rollup-plugin-commonjs',
'@types/mixpanel-browser',
'@cspell/filetypes',
'react-sortable-hoc',
'codecov',
'@formatjs/intl-getcanonicallocales',
'castable-video',
'copy-file',
'@types/lodash.clonedeep',
'mock-socket',
'@zag-js/collapsible',
'jsts',
'@ckeditor/ckeditor5-ckbox',
'@zag-js/color-picker',
'@prisma/dmmf',
'atomic-batcher',
'@testim/chrome-version',
'asyncbox',
'@ckeditor/ckeditor5-heading',
'p-reflect',
'gh-pages',
'@rsbuild/core',
'@docusaurus/react-loadable',
'object-sizeof',
'ripple-address-codec',
'google-artifactregistry-auth',
'next-router-mock',
'@opentelemetry/api-metrics',
'@zag-js/tree-view',
'babel-plugin-minify-guarded-expressions',
'@storybook/addon-mdx-gfm',
'esbuild-windows-arm64',
'@shopify/flash-list',
'@rjsf/utils',
'@primeuix/styled',
'@textlint/resolver',
'esbuild-linux-32',
'minim',
'@react-router/dev',
'@fastify/middie',
'@hotwired/stimulus',
'@ckeditor/ckeditor5-easy-image',
'@schummar/icu-type-parser',
'@turf/rectangle-grid',
'walk-back',
'@swagger-api/apidom-parser-adapter-openapi-yaml-2',
'react-input-mask',
'chain-function',
'@wdio/spec-reporter',
'@remix-run/web-stream',
'@types/mime-db',
'@remix-run/web-blob',
'@secretlint/core',
'@apollo/subgraph',
'@nx/nx-linux-arm-gnueabihf',
'eslint-plugin-jest-formatting',
'date-arithmetic',
'@types/eventsource',
'@remix-run/web-form-data',
'@remix-run/web-fetch',
'cypress-axe',
'@pnpm/graceful-fs',
'@turf/polygon-smooth',
'@types/zxcvbn',
'@tanstack/form-core',
'@contentful/content-source-maps',
'@remix-run/web-file',
'esprima-fb',
'libnpmdiff',
'@quansync/fs',
'broccoli-node-api',
'@codemirror/lang-yaml',
'react-native-device-info',
'express-basic-auth',
'@fastify/cookie',
'@react-native/typescript-config',
'blurhash',
'esbuild-linux-ppc64le',
'localtunnel',
'sdp-transform',
'semaphore',
'sort-css-media-queries',
'@aws-sdk/chunked-blob-reader',
'@types/unzipper',
'@nrwl/cli',
'@walletconnect/time',
'tabtab',
'esbuild-darwin-64',
'@zag-js/focus-trap',
'@swagger-api/apidom-parser-adapter-openapi-json-2',
'temp-fs',
'level-errors',
'exec-buffer',
'to-vfile',
'detective-less',
'@reach/auto-id',
'oxc-transform',
'@babel/helper-call-delegate',
'just-curry-it',
'@statsig/js-client',
'@tailwindcss/aspect-ratio',
'@zag-js/clipboard',
'postcss-filter-plugins',
'@storybook/addon-knobs',
'web3',
'@aws-sdk/hash-stream-node',
'eslint-formatter-pretty',
'@lerna/collect-updates',
'gatsby-core-utils',
'postcss-message-helpers',
'npm-check-updates',
'@ckeditor/ckeditor5-indent',
'svelte-eslint-parser',
'@tailwindcss/container-queries',
'@angular/platform-server',
'@nx/playwright',
'@zag-js/signature-pad',
'@zag-js/qr-code',
'@lmdb/lmdb-win32-x64',
'expo-structured-headers',
'cloudflare',
'@mux/mux-player',
'@bull-board/ui',
'@temporalio/workflow',
'@types/postcss-modules-local-by-default',
'spex',
'proxy-middleware',
'react-konva',
'intl-tel-input',
'is-running',
'ag-charts-locale',
'esbuild-openbsd-64',
'@uppy/utils',
'minimisted',
'@secretlint/types',
'@lerna/package-graph',
'weakmap-polyfill',
'@types/ioredis-mock',
'@snyk/github-codeowners',
'sister',
'guid-typescript',
'@atlaskit/ds-lib',
'primeng',
'@mui/x-date-pickers-pro',
'@applitools/logger',
'@mux/mux-video',
'@walletconnect/environment',
'react-router-config',
'babel-plugin-transform-member-expression-literals',
'@parcel/node-resolver-core',
'ts-retry-promise',
'codelyzer',
'@lerna/project',
'@types/symlink-or-copy',
'@reown/appkit-common',
'lodash.without',
'@pnpm/util.lex-comparator',
'ava',
'@react-oauth/google',
'web3-core',
'@walletconnect/relay-api',
'minisearch',
'@statsig/client-core',
'envify',
'babel-plugin-minify-builtins',
'tap',
'fixturify',
'cwise-compiler',
'esbuild-linux-arm',
'level-iterator-stream',
'@reown/appkit-ui',
'vite-plugin-istanbul',
'magic-regexp',
'express-jwt',
'vite-plugin-vue-devtools',
'bigint-buffer',
'@primeuix/utils',
'headers-utils',
'@reown/appkit-wallet',
'standard-version',
'@types/common-tags',
'fs-merger',
'expo-clipboard',
'react-big-calendar',
'@react-pdf/reconciler',
'@reown/appkit-polyfills',
'@ckeditor/ckeditor5-paste-from-office',
'@vue/babel-preset-app',
'exifr',
'@applitools/utils',
'turbo-windows-arm64',
'supabase',
'bip32',
'@pinojs/redact',
'mocked-exports',
'@walletconnect/core',
'@nrwl/node',
'brcast',
'@vercel/backends',
'@mux/mux-player-react',
'@lezer/cpp',
'temporal-polyfill',
'@visx/bounds',
'babel-preset-flow',
'@parcel/source-map',
'@zag-js/steps',
'@reown/appkit-scaffold-ui',
'@ffmpeg-installer/linux-x64',
'matchit',
'web3-providers-ws',
'lodash._createset',
'@ts-common/iterator',
'solc',
'dev-null',
'@nivo/axes',
'@supercharge/promise-pool',
'@apollo/federation-internals',
'@hubspot/api-client',
'@types/fontkit',
'@contentful/rich-text-react-renderer',
'@types/d3-sankey',
'promise-coalesce',
'@types/event-source-polyfill',
'@ng-bootstrap/ng-bootstrap',
'is-empty',
'babel-plugin-minify-replace',
'react-native-mmkv',
'lerc',
'@types/websocket',
'expose-loader',
'@walletconnect/logger',
'read-binary-file-arch',
'axios-ntlm',
'@langchain/langgraph-checkpoint',
'eslint-plugin-react-hooks-extra',
'babel-helper-is-void-0',
'pkcs7',
'babel-plugin-minify-flip-comparisons',
'@reown/appkit-controllers',
'gifsicle',
'@ngrx/operators',
'accept-language-parser',
'react-youtube',
'keyvaluestorage-interface',
'@pandacss/is-valid-prop',
'@nx/rollup',
'@fullcalendar/react',
'config-file-ts',
'is-odd',
'@middy/core',
'jsrsasign',
'drizzle-orm',
'aws-crt',
'@pnpm/logger',
'@vue/cli-service',
'@eslint/markdown',
'@parcel/graph',
'radash',
'@types/bson',
'vitest-mock-extended',
'babel-cli',
'vite-plugin-eslint',
'@tanstack/react-query-persist-client',
'@esbuild-kit/esm-loader',
'react-native-linear-gradient',
'@secretlint/config-creator',
'@loadable/component',
'@ckeditor/ckeditor5-basic-styles',
'@secretlint/secretlint-rule-preset-recommend',
'@zag-js/highlight-word',
'@lerna/prerelease-id-from-version',
'@types/web',
'espurify',
'zlibjs',
'@nx/esbuild',
'@aws-sdk/hash-blob-browser',
'react-json-tree',
'@pulumi/aws',
'react-gtm-module',
'assert-options',
'esm-resolve',
'zhead',
'imagemin-svgo',
'@graphql-yoga/logger',
'native-request',
'geist',
'@lerna/describe-ref',
'component-indexof',
'@ai-sdk/ui-utils',
'@vue/cli-overlay',
'@lerna/npm-run-script',
'react-spinners',
'react-signature-canvas',
'cids',
'@types/glob-to-regexp',
'@vercel/cervel',
'hast-util-phrasing',
'@lerna/get-npm-exec-opts',
'fs-access',
'@nestjs/apollo',
'babel-plugin-transform-property-literals',
'babel-plugin-transform-simplify-comparison-operators',
'@parcel/transformer-js',
'howler',
'@esbuild-kit/core-utils',
'x-default-browser',
'maxmin',
'escape-carriage',
'http-auth',
'@aws-amplify/api',
'ts-md5',
'color-space',
'@trpc/client',
'@babel/helper-builder-react-jsx-experimental',
'@visx/tooltip',
'@ark-ui/react',
'genfun',
'parse-semver',
'redis-info',
'@uiw/codemirror-themes',
'@types/dom-speech-recognition',
'tiny-typed-emitter',
'react-moment-proptypes',
'eslint-plugin-svelte',
'@types/escape-html',
'babel-plugin-syntax-function-bind',
'babel-plugin-minify-mangle-names',
'babel-plugin-transform-do-expressions',
'babel-plugin-transform-react-jsx-self',
'rhea',
'dropzone',
'expo-camera',
'teamcity-service-messages',
'@parcel/packager-js',
'@nevware21/ts-async',
'chartjs-plugin-annotation',
'externality',
'web3-core-promievent',
'@cucumber/junit-xml-formatter',
'@svgdotjs/svg.draggable.js',
'@date-io/luxon',
'onnxruntime-web',
'semver-dsl',
'soap',
'temporal-spec',
'karma-webpack',
'multiparty',
'p-settle',
'imagemin-optipng',
'is-gif',
'parse-author',
'@bull-board/api',
'@storybook/addon-webpack5-compiler-babel',
'is-immutable-type',
'@aws-cdk/cx-api',
'babel-plugin-minify-numeric-literals',
'@aws-amplify/api-rest',
'@types/swagger-schema-official',
'jsftp',
'@walletconnect/events',
'@orval/core',
'@intlify/bundle-utils',
'@codemirror/lang-php',
'@netlify/binary-info',
'babel-plugin-syntax-do-expressions',
'deasync',
'ktx-parse',
'babel-plugin-transform-remove-undefined',
'@parcel/resolver-default',
'@zag-js/scroll-snap',
'bootstrap-icons',
'@aws-amplify/api-graphql',
'@zag-js/tour',
'@aws-amplify/storage',
'typeforce',
'apollo-link-http',
'postcss-sort-media-queries',
'@microsoft/applicationinsights-channel-js',
'geojson',
'@angular/material-moment-adapter',
'markdown-it-emoji',
'imagemin-gifsicle',
'@aws-sdk/client-textract',
'@google-cloud/opentelemetry-resource-util',
'@styled-system/shadow',
'@vercel/otel',
'@material/density',
'cssnano-preset-advanced',
'buffer-shims',
'@lerna/filter-options',
'@uidotdev/usehooks',
'oxlint',
'react-json-view-lite',
'@types/bootstrap',
'@connectrpc/connect',
'debug-fabulous',
'argv',
'@aws-amplify/analytics',
'dotenv-flow',
'babel-plugin-transform-inline-consecutive-adds',
'gettext-parser',
'focus-visible',
'json11',
'ecstatic',
'remark-mdx-frontmatter',
'@antv/util',
'@preact/signals',
'swagger-schema-official',
'@types/googlemaps',
'md5-o-matic',
'react-paginate',
'reserved',
'@lerna/prompt',
'@evocateur/npm-registry-fetch',
'gm',
'@ioredis/as-callback',
'@ai-sdk/react',
'@types/react-copy-to-clipboard',
'babel-plugin-transform-regexp-constructors',
'ethjs-util',
'until-async',
'optipng-bin',
'worker-timers',
'apg-lite',
'nice-grpc-client-middleware-retry',
'@lerna/changed',
'@t3-oss/env-core',
'@lerna/init',
'@lerna/import',
'@lerna/link',
'http-cookie-agent',
'snyk',
'@metamask/providers',
'@lerna/run-lifecycle',
'@appium/docutils',
'cypress-terminal-report',
'@lerna/write-log-file',
'@formatjs/intl-locale',
'@eslint-react/eff',
'@lerna/symlink-dependencies',
'@lerna/symlink-binary',
'@lerna/npm-install',
'@microsoft/applicationinsights-properties-js',
'@types/mongodb',
'@parcel/namer-default',
'smtp-address-parser',
'pop-iterate',
'@lerna/npm-dist-tag',
'make-error-cause',
'overlayscrollbars',
'@leafygreen-ui/polymorphic',
'react-native-permissions',
'@lerna/check-working-tree',
'@lerna/output',
'amqp-connection-manager',
'@lerna/global-options',
'babel-plugin-minify-type-constructors',
'summary',
'@codemirror/lang-cpp',
'jasmine-reporters',
'@lerna/listable',
'path-equal',
'@backstage/backend-plugin-api',
'@material/notched-outline',
'babel-plugin-minify-constant-folding',
'postcss-prefix-selector',
'@aws-sdk/s3-presigned-post',
'child_process',
'isomorphic-rslog',
'babel-plugin-minify-infinity',
'react-native-tab-view',
'@microsoft/applicationinsights-analytics-js',
'babel-plugin-transform-merge-sibling-variables',
'worker-timers-broker',
'uuidv4',
'apache-crypt',
'level-codec',
'ansi-escape-sequences',
'@storybook/addon-webpack5-compiler-swc',
'@contrast/fn-inspect',
'@parcel/core',
'vue-component-meta',
'buffer-json',
'@tanstack/react-form',
'babel-plugin-transform-function-bind',
'async-disk-cache',
'@react-hook/resize-observer',
'canvaskit-wasm',
'mout',
'@microsoft/applicationinsights-web',
'@aws-amplify/datastore',
'@material/floating-label',
'better-auth',
'npm-lifecycle',
'storybook-addon-pseudo-states',
'level-concat-iterator',
'tailwind-scrollbar',
'@lerna/run-topologically',
'@lerna/command',
'@types/dotenv',
'safe-execa',
'd3-interpolate-path',
'jsbarcode',
'@hookform/error-message',
'@types/base16',
'@ckeditor/ckeditor5-autoformat',
'puppeteer-extra-plugin',
'@electron/fuses',
'babel-plugin-transform-undefined-to-void',
'hast-util-minify-whitespace',
'colormin',
'difflib',
'@formatjs/cli',
'react-simple-animate',
'url-polyfill',
'@firebase/vertexai',
'emoji-picker-react',
'@phosphor-icons/react',
'component-classes',
'babel-helper-flip-expressions',
'@lerna/exec',
'discord-api-types',
'babel-plugin-transform-remove-debugger',
'eslint-plugin-local-rules',
'@babel/plugin-transform-object-assign',
'@rjsf/core',
'find-cypress-specs',
'@csstools/postcss-alpha-function',
'jsonp',
'load-plugin',
'@wdio/mocha-framework',
'eslint-restricted-globals',
'@ckeditor/ckeditor5-block-quote',
'@rushstack/package-deps-hash',
'esprima-next',
'@nestjs/platform-fastify',
'web3-eth-accounts',
'web3-net',
'@angular/service-worker',
'@testing-library/vue',
'@lerna/github-client',
'array-parallel',
'@stablelib/wipe',
'@rollup/plugin-yaml',
'@vue/cli-plugin-vuex',
'@hotwired/turbo',
'@reach/portal',
'is-html',
'broccoli-kitchen-sink-helpers',
'@stdlib/number-float64-base-normalize',
'@vue/cli-plugin-router',
'@jimp/js-jpeg',
'@parcel/transformer-json',
'@parcel/bundler-default',
'json-rpc-engine',
'web3-eth-personal',
'web3-eth',
'@material/tokens',
'@amplitude/plugin-network-capture-browser',
'react-outside-click-handler',
'lodash._basefor',
'@react-native-masked-view/masked-view',
'json-source-map',
'react-imask',
'galactus',
'@achrinza/node-ipc',
'fixturify-project',
'react-debounce-input',
'proj4',
'@lerna/filter-packages',
'rate-limit-redis',
'@nivo/scales',
'react-dates',
'@vue/cli-plugin-babel',
'babel-helper-is-nodes-equiv',
'callsite-record',
'@oxlint/linux-x64-gnu',
'cosmiconfig-toml-loader',
'flow-bin',
'babel-preset-stage-0',
'@material/radio',
'@netlify/dev-utils',
'o11y_schema',
'react-easy-swipe',
'react-with-direction',
'ripple-binary-codec',
'@types/dagre',
'@types/babylon',
'@svgr/cli',
'@types/react-grid-layout',
'@types/ip',
'@lerna/timer',
'culori',
'response-time',
'@walletconnect/jsonrpc-http-connection',
'serverless-offline',
'structured-clone-es',
'@parcel/reporter-dev-server',
'@netlify/open-api',
'@parcel/compressor-raw',
'web3-core-requestmanager',
'vue-inbrowser-compiler-independent-utils',
'notepack.io',
'css-animation',
'babel-plugin-transform-minify-booleans',
'@sanity/mutate',
'web3-eth-ens',
'web3-core-method',
'@parcel/packager-raw',
'@hapi/h2o2',
'openapi-path-templating',
'@types/gapi',
'@types/core-js',
'@mui/x-charts',
'@svgdotjs/svg.select.js',
'koa-is-json',
'ci-parallel-vars',
'@vis.gl/react-google-maps',
'@types/flat',
'@stoplight/spectral-cli',
'lokijs',
'react-native-iphone-x-helper',
'ink-text-input',
'@solana/addresses',
'@stablelib/binary',
'@pinia/nuxt',
'@zag-js/toggle',
'worker-timers-worker',
'@chakra-ui/color-mode',
'lock',
'esbuild-linux-riscv64',
'@types/babel__code-frame',
'colornames',
'@fullcalendar/list',
'@neon-rs/load',
'react-responsive-carousel',
'orval',
'@ast-grep/napi-linux-x64-gnu',
'@material/focus-ring',
'@lerna/conventional-commits',
'@zag-js/listbox',
'react-devtools-inline',
'@chakra-ui/icon',
'little-state-machine',
'eslint-plugin-markdown',
'@codemirror/lang-java',
'global-tunnel-ng',
'@intercom/messenger-js-sdk',
'@react-types/color',
'@material/progress-indicator',
'parse-listing',
'@datadog/openfeature-node-server',
'lodash.intersection',
'array-series',
'@lerna/rimraf-dir',
'@material/line-ripple',
'@solana/buffer-layout-utils',
'@lerna/npm-publish',
'@lerna/resolve-symlink',
'openapi-server-url-templating',
'velocityjs',
'@lerna/has-npm-version',
'keycharm',
'@lingui/message-utils',
'@types/grecaptcha',
'@lezer/java',
'@lerna/query-graph',
'@svgdotjs/svg.resize.js',
'findit2',
'@docusaurus/plugin-google-analytics',
'qrcode-generator',
'@lerna/log-packed',
'@protobuf-ts/protoc',
'tiny-secp256k1',
'@types/aws4',
'react-motion',
'kew',
'@types/d3-voronoi',
'daisyui',
'argon2',
'ce-la-react',
'@docusaurus/plugin-debug',
'@yarnpkg/shell',
'@nivo/annotations',
'fishery',
'html2pdf.js',
'reactstrap',
'simplebar',
'@temporalio/core-bridge',
'@types/punycode',
'bent',
'autosuggest-highlight',
'@unocss/config',
'@unhead/shared',
'@visx/grid',
'browser-tabs-lock',
'semver-intersect',
'geotiff',
'@svgdotjs/svg.filter.js',
'@gulp-sourcemaps/map-sources',
'unist-util-inspect',
'@vitejs/plugin-legacy',
'@appium/logger',
'karma-mocha',
'@zag-js/angle-slider',
'url-search-params-polyfill',
'hyperid',
'webpack-stats-plugin',
'@browserbasehq/sdk',
'@ledgerhq/errors',
'hash-stream-validation',
'size-sensor',
'@stablelib/random',
'normalizr',
'github-url-from-git',
'@redux-devtools/extension',
'@mapbox/geojson-types',
'metro-minify-uglify',
'@zxing/library',
'@lerna/pack-directory',
'@zag-js/floating-panel',
'@prisma/dev',
'rollup-plugin-esbuild',
'recoil',
'@fontsource/inter',
'@lerna/get-packed',
'@swagger-api/apidom-ns-json-schema-2020-12',
'@types/react-virtualized-auto-sizer',
'@swagger-api/apidom-ns-json-schema-2019-09',
'@stardazed/streams-text-encoding',
'esbuild-linux-s390x',
'@parcel/fs-search',
'@aws-sdk/util-stream-node',
'@types/ssh2-sftp-client',
'eth-ens-namehash',
'@types/react-resizable',
'@vue/web-component-wrapper',
'@jsdevtools/coverage-istanbul-loader',
'thrift',
'@arr/every',
'@azu/style-format',
'eslint-plugin-filenames',
'console-stream',
'is-localhost-ip',
'@lerna/collect-uncommitted',
'@istanbuljs/nyc-config-typescript',
'@formatjs/intl-pluralrules',
'babel-helper-to-multiple-sequence-expressions',
'karma-firefox-launcher',
'@cspell/dict-en-gb-mit',
'react-native-maps',
'bufferstreams',
'@nrwl/web',
'@chakra-ui/react-utils',
'@fullstory/browser',
'@unhead/dom',
'@formatjs/intl-numberformat',
'is-relative-url',
'@discordjs/collection',
'@nx/rspack',
'@prettier/plugin-xml',
'semver-utils',
'dom-event-types',
'ngx-toastr',
'@ckeditor/ckeditor5-link',
'lpad-align',
'lodash.orderby',
'@lerna/version',
'logalot',
'@azure/functions',
'@netlify/runtime-utils',
'@lerna/bootstrap',
'@orval/query',
'@orval/axios',
'@orval/angular',
'cloudinary',
'@orval/swr',
'graphology-utils',
'@lerna/cli',
'simple-html-tokenizer',
'@lerna/list',
'@types/tsscmp',
'dotignore',
'@jimp/plugin-quantize',
'@google-cloud/opentelemetry-cloud-trace-exporter',
'appium-adb',
'web3-core-helpers',
'@ckeditor/ckeditor5-media-embed',
'swrv',
'@pulumi/docker',
'copy-text-to-clipboard',
'@biomejs/cli-linux-arm64',
'@solana/web3.js',
'@orval/zod',
'@node-ipc/js-queue',
'code-red',
'expo-symbols',
'@turf/geojson-rbush',
'@lezer/php',
'@types/cypress',
'csurf',
'@react-native-clipboard/clipboard',
'@codesandbox/sandpack-client',
'apollo-cache',
'@lerna/otplease',
'puppeteer-extra-plugin-user-preferences',
'author-regex',
'@ibm-cloud/openapi-ruleset',
'react-loadable-ssr-addon-v5-slorber',
'vasync',
'pg-gateway',
'@types/lodash.memoize',
'@intlify/unplugin-vue-i18n',
'unified-engine',
'bippy',
'eslint-plugin-i18next',
'snappyjs',
'web3-shh',
'cucumber-expressions',
'utf7',
'@googlemaps/google-maps-services-js',
'@cosmjs/encoding',
'htmlfy',
'better-call',
'zenscroll',
'esbuild-android-64',
'@types/react-highlight-words',
'@nx/storybook',
'angular',
'@stdlib/assert-has-tostringtag-support',
'oidc-client-ts',
'birecord',
'@nestjs/serve-static',
'glob-escape',
'@xml-tools/parser',
'serialize-query-params',
'@appium/tsconfig',
'propagating-hammerjs',
'cypress-iframe',
'@xterm/xterm',
'rehype-minify-whitespace',
'floating-vue',
'@graphql-codegen/near-operation-file-preset',
'es-cookie',
'get-size',
'countup.js',
'react-native-animatable',
'hash-wasm',
'react-innertext',
'@ledgerhq/hw-transport',
'@types/moment-timezone',
'@elastic/ecs-helpers',
'@lottiefiles/dotlottie-web',
'@types/wicg-file-system-access',
'@electric-sql/pglite-tools',
'graphql-language-service',
'@zag-js/password-input',
'netlify',
'@azu/format-text',
'scriptjs',
'web3-bzz',
'@types/fluent-ffmpeg',
'@lhci/utils',
'rolldown-plugin-dts',
'chai-http',
'@vanilla-extract/dynamic',
'ipx',
'finity',
'@appium/base-plugin',
'@effect/platform',
'react-window-infinite-loader',
'@lerna/pulse-till-done',
'@codemirror/lang-sass',
'@react-hook/intersection-observer',
'ftp-response-parser',
'simple-xml-to-json',
'uri-templates',
'oboe',
'vite-svg-loader',
'@types/bytes',
'react-native-blob-util',
'rollup-plugin-sourcemaps',
'@vercel/fastify',
'@types/styled-system',
'@glimmer/interfaces',
'@solana/spl-token-metadata',
'@aws-sdk/ec2-metadata-service',
'@nestjs/event-emitter',
'@lhci/cli',
'@mantine/dates',
'@phc/format',
'ripple-keypairs',
'move-file',
'@ckeditor/ckeditor5-image',
'@stdlib/assert-has-symbol-support',
'dommatrix',
'@napi-rs/nice-linux-arm64-gnu',
'framebus',
'puppeteer-extra-plugin-user-data-dir',
'@material/checkbox',
'@stdlib/utils-define-property',
'dag-map',
'@rollup/plugin-virtual',
'rou3',
'pg-hstore',
'smartwrap',
'react-floater',
'@lmdb/lmdb-linux-arm64',
'benchmark',
'@emmetio/abbreviation',
'infima',
'@stylistic/eslint-plugin-ts',
'@remix-run/react',
'@fastify/swagger-ui',
'@jimp/file-ops',
'@vscode/test-electron',
'varuint-bitcoin',
'js-md5',
'bytesish',
'njwt',
'encode-registry',
'axe-playwright',
'is-type-of',
'normalize-wheel',
'intl-format-cache',
'@npmcli/ci-detect',
'@nrwl/linter',
'@prisma/schema-files-loader',
'ember-cli-htmlbars',
'@parcel/hash',
'@napi-rs/nice-win32-x64-msvc',
'@ckeditor/ckeditor5-watchdog',
'jest-fail-on-console',
'@unocss/rule-utils',
'spec-change',
'secretlint',
'expo-localization',
'@tree-sitter-grammars/tree-sitter-yaml',
'babel-preset-minify',
'@types/draft-js',
'@orval/mock',
'cuid',
'@types/k6',
'browser-image-compression',
'bitcoinjs-lib',
'reading-time',
'require-and-forget',
'squeak',
'@hookform/devtools',
'@oxc-transform/binding-linux-x64-gnu',
'es6-templates',
'@storybook/addon-storysource',
'@oclif/color',
'@ionic/utils-object',
'web3-core-subscriptions',
'@ledgerhq/devices',
'turndown-plugin-gfm',
'@types/chart.js',
'find-my-way-ts',
'eslint-config-xo',
'yosay',
'electron-updater',
'@swagger-api/apidom-ns-arazzo-1',
'@changesets/get-github-info',
'commitlint',
'puppeteer-extra-plugin-stealth',
'babel-import-util',
'@fluentui/react-context-selector',
'@glimmer/syntax',
'pofile',
'@vscode/vsce-sign',
'@codemirror/lang-rust',
'@messageformat/runtime',
'@types/hapi__joi',
'@stdlib/math-base-napi-binary',
'@percy/logger',
'html-to-react',
'turf-jsts',
'@stdlib/regexp-function-name',
'idna-uts46-hx',
'onnxruntime-node',
'@opentelemetry/winston-transport',
'eslint-config-google',
'require-at',
'ng-mocks',
'@unocss/preset-mini',
'derive-valtio',
'@swagger-api/apidom-parser-adapter-arazzo-yaml-1',
'@swagger-api/apidom-parser-adapter-arazzo-json-1',
'@stdlib/assert-tools-array-function',
'@capacitor/app',
'@rive-app/canvas',
'@orval/hono',
'@chakra-ui/system',
'axios-proxy-builder',
'emmet',
'@microsoft/applicationinsights-cfgsync-js',
'null-check',
'@stdlib/string-replace',
'@swaggerexpert/cookie',
'@stdlib/string-base-format-tokenize',
'breakword',
'yorkie',
'lambda-local',
'shadcn',
'@electron-forge/shared-types',
'@react-native/debugger-shell',
'@applitools/screenshoter',
'expo-av',
'linkify-react',
'combine-promises',
'@headlessui/tailwindcss',
'@graphql-inspector/core',
'deprecated-decorator',
'@rjsf/validator-ajv8',
'@stdlib/assert-is-array',
'@stdlib/assert-is-buffer',
'@stdlib/process-cwd',
'base64-url',
'@react-router/express',
'@noble/ed25519',
'@stdlib/utils-constructor-name',
'react-instantsearch-core',
'oauth-1.0a',
'ember-cli-typescript',
'apollo-server-caching',
'@jimp/js-tiff',
'@emmetio/scanner',
'@stdlib/utils-define-nonenumerable-read-only-property',
'json-rpc-random-id',
'tslint-config-prettier',
'@sentry/cli-win32-arm64',
'sweepline-intersections',
'@react-spring/native',
'ts-json-schema-generator',
'hermes-compiler',
'@stdlib/fs-resolve-parent-path',
'loglevelnext',
'@fullstory/snippet',
'@stdlib/utils-get-prototype-of',
'@types/testing-library__dom',
'@changesets/changelog-github',
'is-error',
'@orval/fetch',
'@docusaurus/plugin-google-tag-manager',
'ibm-cloud-sdk-core',
'@storybook/addon-styling-webpack',
'reka-ui',
'tty-table',
'gradle-to-js',
'rehype-prism-plus',
'next-i18next',
'@storybook/jest',
'fs-jetpack',
'sver',
'partial-json',
'oxc-minify',
'url-toolkit',
'datadog-lambda-js',
'@emmetio/css-abbreviation',
'@stdlib/utils-library-manifest',
'web3-eth-contract',
'react-composer',
'@material/tab',
'@messageformat/date-skeleton',
'@aws-sdk/client-rekognition',
'@secretlint/profiler',
'@braintree/wrap-promise',
'@applitools/spec-driver-webdriver',
'bind-event-listener',
'@volar/language-service',
'rss-parser',
'@fastify/multipart',
'@stdlib/assert-has-own-property',
'mersenne-twister',
'safevalues',
'animate.css',
'eslint-rule-docs',
'bmp-ts',
'@percy/client',
'@googlemaps/url-signature',
'@stdlib/array-float64',
'@applitools/nml-client',
'document.contains',
'@types/promise.allsettled',
'@unocss/extractor-arbitrary-variants',
'del-cli',
'@ngneat/falso',
'react-diff-viewer-continued',
'@lerna/info',
'@ewoudenberg/difflib',
'@google-cloud/logging-winston',
'react-native-swipe-gestures',
'@types/json2csv',
'@huggingface/jinja',
'@applitools/req',
'@stdlib/math-base-assert-is-nan',
'@tailwindcss/cli',
'size-limit',
'@graphiql/toolkit',
'react-phone-input-2',
'hi-base32',
'@vscode/emmet-helper',
'svg-pan-zoom',
'@opencensus/propagation-b3',
'react-simple-code-editor',
'console-polyfill',
'css-tokenize',
'@uppy/companion-client',
'brotli-wasm',
'@transloadit/prettier-bytes',
'babel-plugin-debug-macros',
'apollo-graphql',
'binary-search-bounds',
'@types/debounce',
'@types/sharp',
'@amplitude/plugin-web-vitals-browser',
'@stdlib/assert-is-uint32array',
'@jimp/plugin-hash',
'@napi-rs/nice-linux-arm64-musl',
'@stdlib/utils-escape-regexp-string',
'flexsearch',
'generate-password',
'@ibm-cloud/openapi-ruleset-utilities',
'jetifier',
'@metamask/object-multiplex',
'parse-css-color',
'@jimp/js-png',
'@leafygreen-ui/typography',
'@applitools/core-base',
'@types/mjml',
'sass-embedded-linux-arm64',
'slate-dom',
'@stdlib/array-uint16',
'emojibase',
'@stdlib/assert-has-uint16array-support',
'rewire',
'xml-utils',
'@percy/core',
'@material/layout-grid',
'sort-on',
'@stablelib/int',
'@stdlib/assert-is-float32array',
'@compodoc/compodoc',
'@stdlib/assert-is-number',
'modern-screenshot',
'add',
'@gulpjs/messages',
'victory-core',
'braintree-web',
'cli-spinner',
'to-px',
'react-with-styles-interface-css',
'is-json',
'iframe-resizer',
'@messageformat/number-skeleton',
'vite-plugin-html',
'@stdlib/fs-exists',
'@langchain/weaviate',
'final-form',
'@aws-cdk/asset-kubectl-v20',
'srvx',
'pad-component',
'@stdlib/utils-global',
'@angular/elements',
'@react-spring/zdog',
'appium-chromedriver',
'@types/is-empty',
'@browserbasehq/stagehand',
'@golevelup/ts-jest',
'@stdlib/assert-is-regexp',
'dpop',
'@stdlib/assert-is-boolean',
'@rushstack/rush-sdk',
'@rushstack/problem-matcher',
'@peculiar/asn1-cms',
'@formatjs/intl-relativetimeformat',
'vega-expression',
'natives',
'eslint-plugin-check-file',
'@types/rbush',
'aws-jwt-verify',
'@aws-lambda-powertools/logger',
'@peculiar/asn1-csr',
'content-security-policy-builder',
'@applitools/ufg-client',
'@biomejs/cli-linux-arm64-musl',
'fontace',
'digest-fetch',
'@stdlib/assert-is-object',
'chokidar-cli',
'@stdlib/constants-uint16-max',
'standardwebhooks',
'json-logic-js',
'lodash.create',
'@percy/cli',
'@stdlib/assert-is-function',
'react-virtual',
'@react-native-firebase/messaging',
'@stdlib/utils-convert-path',
'awesome-phonenumber',
'scroll',
'@probe.gl/stats',
'@asyncapi/parser',
'@percy/cli-exec',
'polygon-clipping',
'uzip',
'lodash._shimkeys',
'satori',
'parenthesis',
'@percy/cli-build',
'@stdlib/utils-native-class',
'eslint-plugin-react-dom',
'moment-duration-format',
'cucumber-messages',
'@types/moment',
'ink-gradient',
'staged-git-files',
'@hey-api/json-schema-ref-parser',
'graphql-yoga',
'@rspack/cli',
'@stdlib/assert-is-plain-object',
'leveldown',
'@percy/config',
'@stdlib/math-base-napi-unary',
'flowbite',
'@lit/react',
'@scalar/openapi-types',
'desm',
'@jspm/core',
'slug',
'@messageformat/core',
'@lerna/clean',
'@lerna/add',
'@stdlib/assert-is-float64array',
'@tiptap/extension-character-count',
'short-uuid',
'@hotwired/turbo-rails',
'eslint-plugin-no-relative-import-paths',
'@oclif/plugin-update',
'@probe.gl/env',
'@material/switch',
'merge-class-names',
'@t3-oss/env-nextjs',
'react-native-keyboard-controller',
'@stdlib/assert-has-float32array-support',
'@types/pegjs',
'@headlessui/vue',
'@stdlib/constants-float64-ninf',
'xml-but-prettier',
'@lerna/create-symlink',
'express-fileupload',
'@stdlib/regexp-extended-length-path',
'ismobilejs',
'@material/tab-indicator',
'@date-fns/utc',
'@lezer/go',
'wgs84',
'@material/fab',
'@stdlib/number-float64-base-to-float32',
'ts-debounce',
'postcss-styled-syntax',
'@metamask/eth-json-rpc-provider',
'@storybook/manager-webpack5',
'@oven/bun-linux-x64-musl-baseline',
'@metamask/superstruct',
'react-uid',
'eslint-plugin-typescript-sort-keys',
'@types/express-unless',
'first-match',
'is-base64',
'@oxc-resolver/binding-linux-arm64-gnu',
'@ledgerhq/logs',
'@vueuse/components',
'@percy/dom',
'jest-date-mock',
'babel-plugin-transform-runtime',
'brotli-size',
'@stdlib/constants-uint32-max',
'@fastify/helmet',
'runed',
'eslint-plugin-react-x',
'@peculiar/asn1-pkcs9',
'@solidity-parser/parser',
'@stdlib/os-float-word-order',
'@oven/bun-linux-x64-musl',
'@ngrx/router-store',
'is-touch-device',
'@lerna/profiler',
'http-headers',
'@nx/nest',
'@stdlib/assert-is-big-endian',
'@salesforce/schemas',
'@stdlib/assert-has-uint32array-support',
'@bull-board/express',
'with-open-file',
'@sentry-internal/node-cpu-profiler',
'@soda/get-current-script',
'rust-result',
'@types/throttle-debounce',
'@sentry/nestjs',
'clean-set',
'react-immutable-pure-component',
'@stdlib/array-uint32',
'@stdlib/math-base-assert-is-infinite',
'redux-actions',
'kebab-case',
'@stdlib/assert-has-uint8array-support',
'timezone-mock',
'is-string-blank',
'ngx-cookie-service',
'primevue',
'eslint-plugin-antfu',
'@types/async-lock',
'stockfish',
'strict-event-emitter-types',
'@stdlib/os-byte-order',
'@jimp/js-bmp',
'hotscript',
'@keystonehq/bc-ur-registry',
'libnpmconfig',
'@tiptap/extension-task-item',
'@metamask/sdk-communication-layer',
'http-https',
'tablesort',
'priorityqueuejs',
'gulp-concat',
'@tailwindcss/line-clamp',
'@turf/jsts',
'@csstools/postcss-color-function-display-p3-linear',
'tesseract.js-core',
'@secretlint/config-loader',
'tsdown',
'@secretlint/source-creator',
'@percy/cli-command',
'@edge-runtime/cookies',
'@lmdb/lmdb-darwin-arm64',
'@stdlib/string-base-format-interpolate',
'@secretlint/formatter',
'@secretlint/node',
'@stdlib/string-format',
'lossless-json',
'@arcanis/slice-ansi',
'spdx-license-list',
'analytics-node',
'react-scan',
'codemirror-graphql',
'@compodoc/ngd-transformer',
'@parcel/profiler',
'@wojtekmaj/enzyme-adapter-react-17',
'next-line',
'aws-sdk-client-mock-jest',
'@aws-sdk/client-sagemaker',
'eslint-plugin-chai-friendly',
'@rrweb/utils',
'@stdlib/complex-float32',
'@aduh95/viz.js',
'map-limit',
'@stdlib/types',
'pngquant-bin',
'type-of',
'omit.js',
'instantsearch.js',
'@types/vfile-message',
'remark-html',
'graphql-query-complexity',
'graphql-compose',
'svgpath',
'@stdlib/number-ctor',
'react-joyride',
'@stdlib/array-uint8',
'@chakra-ui/react',
'@craco/craco',
'@stdlib/number-float64-base-get-high-word',
'@vercel/routing-utils',
'@compodoc/ngd-core',
'@types/hapi__mimos',
'chunkd',
'chartjs-adapter-date-fns',
'@types/mjml-core',
'unicode-emoji-utils',
'@turf/quadrat-analysis',
'@stdlib/array-float32',
'@turf/nearest-neighbor-analysis',
'@emoji-mart/react',
'humanize-string',
'@mui/x-charts-vendor',
'@lerna/diff',
'@chakra-ui/tabs',
'@uppy/core',
'@applitools/tunnel-client',
'@nestjs/bullmq',
'lodash.startswith',
'extension-port-stream',
'@stdlib/constants-float64-min-base2-exponent-subnormal',
'@ariakit/core',
'unplugin-auto-import',
'@react-native-firebase/analytics',
'stylelint-config-recess-order',
'@bufbuild/buf',
'murmurhash3js',
'sonarqube-scanner',
'@ariakit/react',
'@lerna/publish',
'nestjs-cls',
'@braintree/uuid',
'@workos-inc/node',
'@types/vfile',
'speedometer',
'@material/auto-init',
'@chakra-ui/avatar',
'@vscode/vsce-sign-linux-x64',
'json-schema-faker',
'@lerna/run',
'elementtree',
'@google/gemini-cli-core',
'@lerna/npm-conf',
'@codemirror/lang-wast',
'oxc-walker',
'@sanity/comlink',
'@ng-select/ng-select',
'numbro',
'@types/pdfmake',
'xml-escape',
'@percy/cli-upload',
'@stdlib/assert-is-string',
'@verdaccio/core',
'@material/circular-progress',
'code-error-fragment',
'svelte-hmr',
'mgrs',
'@stdlib/constants-float64-pinf',
'@size-limit/file',
'@mui/x-virtualizer',
'@react-spring/konva',
'@nrwl/webpack',
'jsii-rosetta',
'supertap',
'splaytree-ts',
'@babel/eslint-plugin',
'appium',
'@0no-co/graphqlsp',
'@devexpress/error-stack-parser',
'@stdlib/utils-type-of',
'@stdlib/number-float64-base-exponent',
'@docsearch/js',
'@wojtekmaj/enzyme-adapter-utils',
'@solana/functional',
'uint8array-tools',
'@types/treeify',
'@stdlib/assert-is-uint8array',
'@stdlib/assert-has-float64array-support',
'@nivo/voronoi',
'@stdlib/constants-uint8-max',
'@stdlib/assert-is-uint16array',
'@scalar/types',
'ahooks',
'@stdlib/utils-noop',
'unzip-stream',
'@percy/env',
'java-invoke-local',
'eth-block-tracker',
'@nrwl/angular',
'@percy/cli-snapshot',
'@stdlib/constants-float64-max-base2-exponent-subnormal',
'type-level-regexp',
'polyclip-ts',
'trivial-deferred',
'density-clustering',
'@jimp/js-gif',
'regexp-clone',
'@sanity/ui',
'expo-sharing',
'@gulp-sourcemaps/identity-map',
'@stdlib/assert-has-node-buffer-support',
'monocle-ts',
'vanilla-picker',
'@volar/language-server',
'@jimp/diff',
'path-complete-extname',
'hamt_plus',
'unicode-length',
'vega-util',
'fastify-warning',
'lodash.istypedarray',
'imap',
'nativewind',
'@stdlib/math-base-special-copysign',
'@lmdb/lmdb-darwin-x64',
'codemaker',
'restricted-input',
'geojson-equality-ts',
'@peculiar/x509',
'@ast-grep/napi-linux-x64-musl',
'@microsoft/microsoft-graph-types',
'@aws-sdk/rds-signer',
'url-set-query',
'@applitools/ec-client',
'@choojs/findup',
'cpx',
'react-infinite-scroller',
'lodash._stringtopath',
'@secretlint/resolver',
'bip66',
'@codesandbox/sandpack-react',
'@storybook/expect',
'lodash.identity',
'next-seo',
'babel-plugin-minify-simplify',
'imagemin-pngquant',
'relative',
'@applitools/driver',
'nodemailer-fetch',
'win-release',
'locutus',
'@mdi/font',
'@coral-xyz/borsh',
'react-ga4',
'@svgr/rollup',
'@manypkg/tools',
'@ckeditor/ckeditor5-adapter-ckfinder',
'tiny-hashes',
'@turf/boolean-valid',
'logrocket',
'@unocss/preset-uno',
'react-with-styles',
'typescript-auto-import-cache',
'is-valid-domain',
'@testing-library/jest-native',
'@solana/promises',
'@tiptap/extension-subscript',
'@docusaurus/bundler',
'ink-select-input',
'react-hotkeys',
'@probe.gl/log',
'@chakra-ui/shared-utils',
'@stdlib/complex-float64',
'echarts-for-react',
'@types/request-ip',
'snappy',
'@types/google.accounts',
'node-simctl',
'@docusaurus/types',
'@codesandbox/nodebox',
'mime-match',
'@sanity/eventsource',
'ag-charts-enterprise',
'@solana/rpc-spec',
'@codemirror/language-data',
'color-alpha',
'@visx/responsive',
'@ibm-cloud/watsonx-ai',
'nodemailer-shared',
'@solana/nominal-types',
'react-final-form',
'react-addons-shallow-compare',
'rootpath',
'ndarray-pack',
'@snowplow/tracker-core',
'@eslint-react/eslint-plugin',
'class-is',
'@zkochan/which',
'@rails/activestorage',
'@types/content-type',
'progress-stream',
'next-sitemap',
'@jsii/spec',
'@types/component-emitter',
'@libsql/core',
'tsyringe',
'weaviate-client',
'@types/webpack-dev-server',
'koa-router',
'videojs-contrib-quality-levels',
'requestidlecallback',
'x-xss-protection',
'@tensorflow/tfjs-core',
'@types/svgo',
'@percy/cli-app',
'jstat',
'dasherize',
'@mapbox/polyline',
'@cosmjs/utils',
'namespace-emitter',
'@ag-grid-community/core',
'@uppy/store-default',
'http_ece',
'tesseract.js',
'@stdlib/number-float64-base-to-words',
'@resvg/resvg-js',
'@flatten-js/interval-tree',
'sync-disk-cache',
'regl',
'react-native-modal',
'stylelint-config-css-modules',
'hsts',
'proxy-memoize',
'@docusaurus/utils',
'@types/graphql',
'helmet-csp',
'@stdlib/number-float64-base-from-words',
'element-plus',
'volar-service-html',
'babel-plugin-import',
'karma-spec-reporter',
'libsql',
'@ai-sdk/svelte',
'currency.js',
'@stdlib/assert-is-object-like',
'nub',
'@react-navigation/drawer',
'@mapbox/geojson-area',
'@shuding/opentype.js',
'vitest-canvas-mock',
'@aws-sdk/client-translate',
'@ai-sdk/vue',
'@stdlib/constants-float64-exponent-bias',
'@stdlib/constants-float64-max-base2-exponent',
'react-plaid-link',
'global-cache',
'@solana/keys',
'checkpoint-client',
'@stdlib/constants-float64-high-word-exponent-mask',
'editor',
'express-handlebars',
'@solana/rpc-transport-http',
'@stylistic/eslint-plugin-js',
'@semantic-release/exec',
'parse-unit',
'@docusaurus/babel',
'@rushstack/heft-config-file',
'@types/ini',
'glslify',
'@ai-sdk/solid',
'taketalk',
'sass-embedded-linux-musl-arm64',
'@langchain/google-gauth',
'@interactjs/types',
'@stdlib/assert-is-little-endian',
'@aws-sdk/client-kendra',
'@types/teen_process',
'embla-carousel-fade',
'twig',
'non-layered-tidy-tree-layout',
'apollo-client',
'@unocss/preset-wind',
'react-select-event',
'apollo-cache-inmemory',
'@stdlib/complex-reimf',
'@nestjs/bull',
'@lerna/gitlab-client',
'@percy/cli-config',
'@aws-sdk/client-scheduler',
'oo-ascii-tree',
'@solana/rpc-transformers',
'@solana/rpc-parsed-types',
'static-browser-server',
'react-countup',
'extract-text-webpack-plugin',
'ansistyles',
'bcp-47-normalize',
'react-native-localize',
'function-loop',
'@solana/rpc-api',
'@corex/deepmerge',
'appium-uiautomator2-driver',
'@stdlib/complex-reim',
'@turf/boolean-concave',
'glslify-bundle',
'react-dnd-touch-backend',
'@chakra-ui/react-use-focus-on-pointer-down',
'dot-object',
'bitsyntax',
'@types/styled-jsx',
'winreg',
'@iconify/react',
'@elastic/ecs-pino-format',
'rehype-highlight',
'is-self-closing',
'gulp-header',
'@stdlib/math-base-special-ldexp',
'@jsforce/jsforce-node',
'groq-sdk',
'array-unflat-js',
'glsl-token-string',
'@solana/transaction-confirmation',
'@solana/rpc-subscriptions-spec',
'@types/hapi__shot',
'bytes-iec',
'cypress-recurse',
'@stdlib/streams-node-stdin',
'@solana/rpc',
'axios-cookiejar-support',
'@nuxt/eslint-config',
'langfuse',
'@solana/sysvars',
'cssjanus',
'@solana/rpc-subscriptions-channel-websocket',
'react-native-fs',
'css-box-shadow',
'electron-builder-squirrel-windows',
'@turf/boolean-touches',
'@aws-sdk/util-stream-browser',
'hpkp',
'@libsql/hrana-client',
'gts',
'@emotion/jest',
'@tiptap/extension-superscript',
'@stdlib/regexp-regexp',
'http-auth-connect',
'@solana/subscribable',
'@vuepic/vue-datepicker',
'referrer-policy',
'@chakra-ui/form-control',
'@vue/cli-plugin-eslint',
'@nivo/bar',
'use-immer',
'eslint-plugin-sort-keys-fix',
'@mui/x-license-pro',
'gh-got',
'@protobuf-ts/plugin',
'@types/relateurl',
'@stdlib/math-base-special-abs',
'opossum',
'glob-all',
'mailgun.js',
'envalid',
'jsonlines',
'@docusaurus/logger',
'@wdio/allure-reporter',
'@types/isomorphic-fetch',
'@types/react-csv',
'giturl',
'@lottiefiles/dotlottie-react',
'expo-document-picker',
'@slorber/remark-comment',
'@cdktf/hcl2json',
'fastparallel',
'@bahmutov/cypress-esbuild-preprocessor',
'eslint-plugin-formatjs',
'import-modules',
'@formkit/auto-animate',
'tus-js-client',
'@types/passport-google-oauth20',
'json-to-ast',
'@types/passport-oauth2',
'rtcpeerconnection-shim',
'@livekit/protocol',
'fabric',
'@material/tooltip',
'@types/json-stringify-safe',
'@langchain/google-genai',
'node-request-interceptor',
'decode-formdata',
'pg-format',
'@google-cloud/tasks',
'@snowplow/browser-tracker-core',
'@solana/spl-token-group',
'shell-escape',
'@types/babel__helper-plugin-utils',
'react-animate-height',
'@tinymce/tinymce-react',
'@ark/util',
'@unocss/transformer-variant-group',
'diagnostics',
'@growthbook/growthbook',
'custom-event-polyfill',
'typia',
'arktype',
'@docusaurus/utils-common',
'unleash-client',
'@types/mssql',
'@nivo/line',
'@flmngr/flmngr-server-node',
'newtype-ts',
'@wagmi/connectors',
'@mantine/notifications',
'mutationobserver-shim',
'@aws-sdk/client-location',
'volar-service-typescript',
'geojson-equality',
'react-from-dom',
'antlr4ts',
'graphql-playground-html',
'@types/stream-chain',
'date-and-time',
'rolldown-vite',
'ag-charts-core',
'react-native-share',
'@oxc-resolver/binding-linux-arm64-musl',
'@types/lodash.get',
'@stdlib/regexp-eol',
'dom-scroll-into-view',
'@apollo/server-plugin-landing-page-graphql-playground',
'@react-router/serve',
'expo-auth-session',
'string-split-by',
'@aws-sdk/client-codecommit',
'lodash._baseiteratee',
'@stdlib/buffer-ctor',
'vue-observe-visibility',
'@aws-sdk/eventstream-marshaller',
'unocss',
'tsutils-etc',
'@chakra-ui/react-env',
'nats',
'@types/hapi__catbox',
'@chakra-ui/react-use-safe-layout-effect',
'@types/ncp',
'true-myth',
'@zag-js/json-tree-utils',
'@types/got',
'@verdaccio/utils',
'@codemirror/lang-vue',
'@badeball/cypress-cucumber-preprocessor',
'@types/redux-logger',
'noop-fn',
'react-event-listener',
'sodium-native',
'@stdlib/constants-float64-smallest-normal',
'@ariakit/react-core',
'@75lb/deep-merge',
'@unocss/cli',
'@yarnpkg/core',
'trim-canvas',
'koa-body',
'@stdlib/utils-next-tick',
'@trpc/react-query',
'react-text-mask',
'glsl-token-whitespace-trim',
'@math.gl/web-mercator',
'@stdlib/cli-ctor',
'swagger-ui-react',
'custom-error-instance',
'@types/configstore',
'@node-rs/xxhash',
'@aws-sdk/chunked-blob-reader-native',
'alce',
'@types/stream-json',
'@docusaurus/utils-validation',
'env-var',
'@nuxt/eslint-plugin',
'typedarray-pool',
'@pnpm/resolver-base',
'@docusaurus/mdx-loader',
'langfuse-core',
'eslint-plugin-command',
'to-data-view',
'i18next-parser',
'@unocss/reset',
'@chakra-ui/popper',
'li',
'env-variable',
'@docusaurus/core',
'@types/showdown',
'wavesurfer.js',
'seamless-immutable',
'@metamask/eth-sig-util',
'react-native-render-html',
'async-cache',
'react-native-keyboard-aware-scroll-view',
'@stdlib/string-lowercase',
'wkt-parser',
'@aws-sdk/client-polly',
'iso8601-duration',
'dtype',
'simple-statistics',
'phantomjs-prebuilt',
'@braintree/event-emitter',
'react-measure',
'@napi-rs/nice-darwin-arm64',
'react-script-hook',
'@swaggerexpert/json-pointer',
'puppeteer-extra',
'rollup-plugin-peer-deps-external',
'get-node-dimensions',
'@compodoc/live-server',
'dup',
'@amplitude/session-replay-browser',
'glsl-inject-defines',
'web-push',
'opentype.js',
'@chakra-ui/alert',
'charcodes',
'nouislider',
'optional-js',
'connect-livereload',
'@unocss/preset-typography',
'express-async-errors',
'@braintree/iframer',
'@stdlib/process-read-stdin',
'@types/cron',
'@tiptap/extension-task-list',
'marchingsquares',
'telnet-client',
'@sanity/types',
'eslint-plugin-vuejs-accessibility',
'@google/gemini-cli',
'@rails/ujs',
'postject',
'dont-sniff-mimetype',
'scope-analyzer',
'@better-auth/core',
'grunt-contrib-watch',
'eslint-plugin-react-web-api',
'pre-commit',
'i18n',
'bip174',
'@nivo/arcs',
'lodash.noop',
'flora-colossus',
'@metamask/sdk',
'@oxlint/linux-x64-musl',
'@types/is-glob',
'@google-cloud/opentelemetry-cloud-monitoring-exporter',
'@chakra-ui/event-utils',
'@types/react-native-vector-icons',
'react-list',
'@unocss/transformer-compile-class',
'simplebar-core',
'@amplitude/rrweb-packer',
'@stitches/react',
'@emotion/css-prettifier',
'after-all-results',
'@stdlib/constants-float64-high-word-abs-mask',
'@types/testing-library__react',
'@ngrx/entity',
'@cosmjs/crypto',
'eslint-plugin-header',
'glsl-token-depth',
'countries-and-timezones',
'color-diff',
'pyodide',
'read-all-stream',
'@material-ui/pickers',
'@pnpm/crypto.polyfill',
'gl-mat4',
'@azure/cosmos',
'slate-hyperscript',
'gulp-sass',
'@cypress/browserify-preprocessor',
'@prisma/studio-core-licensed',
'@chakra-ui/transition',
'stylelint-config-html',
'vite-plugin-mkcert',
'@callstack/react-theme-provider',
'@atlaskit/theme',
'uuid-parse',
'@types/lockfile',
'@types/is-ci',
'preview-email',
'xrpl',
'@reown/appkit-pay',
'@types/url-parse',
'pretty-data',
'hash-it',
'@wallet-standard/base',
'downloadjs',
'@react-stately/layout',
'@unocss/transformer-directives',
'extend-object',
'@percy/webdriver-utils',
'commoner',
'@applitools/snippets',
'react-share',
'@unocss/inspector',
'@lezer/sass',
'hashery',
'color-normalize',
'@codemirror/lang-go',
'lodash._baseuniq',
'rollbar',
'eth-query',
'geojson-polygon-self-intersections',
'encoding-down',
'eslint-plugin-no-unsanitized',
'clean-yaml-object',
'@antv/matrix-util',
'death',
'superagent-proxy',
'@amplitude/analytics-node',
'@libsql/isomorphic-fetch',
'@zkochan/rimraf',
'eslint-ast-utils',
'@unocss/vite',
'@oxc-minify/binding-linux-x64-gnu',
'appium-webdriveragent',
'portal-vue',
'passwd-user',
'use-stick-to-bottom',
'minio',
'@stdlib/utils-regexp-from-string',
'glsl-token-inject-block',
'@solana/programs',
'@electron/windows-sign',
'@pnpm/core-loggers',
'split-array-stream',
'd3-queue',
'@wagmi/core',
'zstd-codec',
'spdx-expression-validate',
'country-list',
'@chakra-ui/object-utils',
'@types/hapi__hapi',
'react-native-view-shot',
'connect-pg-simple',
'imagemin-mozjpeg',
'cmd-extension',
'parse-duration',
'appium-ios-device',
'@segment/tsub',
'lodash._isnative',
'graphiql',
'hide-powered-by',
'@stdlib/buffer-from-string',
'messageformat-parser',
'vitepress',
'@types/p-queue',
'react-native-vision-camera',
'@stdlib/fs-read-file',
'glsl-token-descope',
'eslint-plugin-react-naming-convention',
'@codemirror/lang-less',
'get-object',
'username',
'@microsoft/rush-lib',
'@libsql/linux-x64-musl',
'@sheerun/mutationobserver-shim',
'@libsql/client',
'@unocss/preset-icons',
'cucumber-html-reporter',
'iced-lock',
'moment-range',
'@lmdb/lmdb-linux-arm',
'@stdlib/assert-is-regexp-string',
'@applitools/image',
'@emmetio/stream-reader-utils',
'parse-multipart-data',
'@types/react-gtm-module',
'@types/jest-image-snapshot',
'@tiptap/extension-typography',
'has-binary',
'@ckeditor/ckeditor5-theme-lark',
'@zag-js/scroll-area',
'inject-stylesheet',
'@n1ru4l/push-pull-async-iterable-iterator',
'@aws-sdk/url-parser-native',
'@sliphua/lilconfig-ts-loader',
'find-cache-directory',
'@types/stack-trace',
'glslify-deps',
'@sanity/image-url',
'currency-symbol-map',
'url-regex',
'i18n-js',
'@linear/sdk',
'@seznam/compose-react-refs',
'content-hash',
'music-metadata',
'@nx/next',
'@safe-global/safe-apps-provider',
'@unocss/preset-web-fonts',
'volar-service-css',
'volar-service-emmet',
'@n8n_io/riot-tmpl',
'eslint-plugin-toml',
'elastic-apm-node',
'@types/deep-diff',
'@stdlib/constants-float64-high-word-sign-mask',
'@nivo/pie',
'@unocss/preset-attributify',
'victory-pie',
'mdast-util-toc',
'@unocss/astro',
'estree-is-function',
'simple-is',
'jsdoctypeparser',
'@iconify-json/simple-icons',
'@aws-sdk/client-ecs',
'@unocss/preset-tagify',
'appium-android-driver',
'yarn-deduplicate',
'css-font-size-keywords',
'ngx-mask',
'tree-sync',
'@ai-sdk/xai',
'@gbulls-org/gbulls-sdk',
'@mapbox/geojson-normalize',
'@rsdoctor/client',
'lodash.keysin',
'@embroider/shared-internals',
'sass-embedded-win32-x64',
'@chakra-ui/breakpoint-utils',
'@opentelemetry/instrumentation-document-load',
'self-closing-tags',
'@graphiql/react',
'countries-list',
'@chakra-ui/react-context',
'@aws-sdk/client-comprehend',
'node-bitmap',
'doiuse',
'combine-errors',
'retimer',
'sswr',
'@types/html-minifier',
'express-openapi-validator',
'debug-log',
'@types/speakeasy',
'@types/dom-webcodecs',
'parse-color',
'@codegenie/serverless-express',
'bitmap-sdf',
'@aws-amplify/cache',
'sequelize-typescript',
'@chakra-ui/button',
'@ark/schema',
'nest-commander',
'typeof-article',
'conventional-changelog-cli',
'@bufbuild/buf-linux-x64',
'@stablelib/constant-time',
'@coral-xyz/anchor',
'@napi-rs/nice-darwin-x64',
'graphql-upload',
'@adyen/adyen-web',
'@rushstack/rush-azure-storage-build-cache-plugin',
'apollo-link-error',
'@chakra-ui/tag',
'@unocss/postcss',
'@chakra-ui/checkbox',
'@chakra-ui/live-region',
'@rushstack/rush-amazon-s3-build-cache-plugin',
'@libsql/isomorphic-ws',
'@codemirror/lang-angular',
'set-interval-async',
'@types/hogan.js',
'@n8n/tournament',
'mozjpeg',
'@playwright/browser-chromium',
'expo-image-manipulator',
'@rspack/binding-win32-x64-msvc',
'use-query-params',
'keychain',
'@chakra-ui/descendant',
'@chakra-ui/react-use-animation-state',
'@rspack/binding-linux-arm64-gnu',
'vis',
'osx-release',
'@applitools/socket',
'@applitools/dom-snapshot',
'@mozilla/readability',
'@wolfy1339/lru-cache',
'modern-normalize',
'@graphql-codegen/typescript-graphql-request',
'schemes',
'@libsql/linux-x64-gnu',
'@remix-run/node-fetch-server',
'@types/klaw',
'gulp-uglify',
'glsl-token-defines',
'signum',
'@shopify/react-native-skia',
'@rsbuild/plugin-react',
'@unocss/transformer-attributify-jsx',
'coffeeify',
'@intlify/vue-i18n-extensions',
'@turf/point-to-polygon-distance',
'wouter',
'urllib',
'@chakra-ui/close-button',
'@chakra-ui/popover',
'@nx/docker',
'picomatch-browser',
'use-deep-compare',
'ndarray-ops',
'@aws-sdk/client-eks',
'postmark',
'level-fix-range',
'@chakra-ui/table',
'svg-url-loader',
'console-grid',
'appium-ios-simulator',
'bunyan-debug-stream',
'@sphinxxxx/color-conversion',
'react-google-recaptcha-v3',
'@types/get-port',
'@types/pino-std-serializers',
'broccoli-caching-writer',
'htmlnano',
'properties-file',
'@types/handlebars',
'feature-policy',
'@chakra-ui/select',
'@chakra-ui/number-input',
'@gql.tada/internal',
'rusha',
'@langchain/anthropic',
'tcompare',
'napi-wasm',
'yaml-language-server',
'@types/co-body',
'jks-js',
'handlebars-utils',
'jest-html-reporter',
'glsl-token-scope',
'get-own-enumerable-keys',
'cross-dirname',
'merge-trees',
'@zxcvbn-ts/core',
'single-spa',
'@mdxeditor/editor',
'find-workspaces',
'@chakra-ui/progress',
'lz-utils',
'@openai/codex',
'turbo-ignore',
'bootstrap.native',
'ts-prune',
'aws-xray-sdk-mysql',
'appium-remote-debugger',
'lucide-vue-next',
'connected-react-router',
'vanilla-colorful',
'@amplitude/rrdom',
'react-waypoint',
'@mux/mux-data-google-ima',
'measured-reporting',
'fn-args',
'@luma.gl/constants',
'unified-lint-rule',
'@flmngr/flmngr-angular',
'@linaria/core',
'express-winston',
'koa-compress',
'verdaccio-htpasswd',
'@chakra-ui/layout',
'@chakra-ui/textarea',
'jest-localstorage-mock',
'aws-xray-sdk',
'@applitools/core',
'@chakra-ui/modal',
'array-range',
'flag-icons',
'@types/date-arithmetic',
'@snowplow/browser-tracker',
'@bufbuild/protoc-gen-es',
'@types/newrelic',
'eth-json-rpc-filters',
'@types/pino-pretty',
'eslint-plugin-mdx',
'@chakra-ui/theme-utils',
'@chakra-ui/react-use-interval',
'@solana/transaction-messages',
'eslint-etc',
'npm-keyword',
'@mysten/bcs',
'@chakra-ui/accordion',
'swrev',
'@aws-sdk/cloudfront-signer',
'@oclif/plugin-version',
'@chakra-ui/breadcrumb',
'@chakra-ui/image',
'unidiff',
'@emmetio/html-matcher',
'@zag-js/async-list',
'@chakra-ui/slider',
'@cloudflare/vitest-pool-workers',
'io-ts-types',
'react-display-name',
'@middy/util',
'aws-xray-sdk-postgres',
'sudo-block',
'xhr-request',
'@types/react-router-config',
'@nrwl/nx-plugin',
'use-effect-event',
'@chakra-ui/visually-hidden',
'@chakra-ui/skeleton',
'@aws-sdk/client-acm',
'svelte-preprocess',
'@codemirror/lang-liquid',
'funpermaproxy',
'hast-util-to-mdast',
'wagmi',
'@newrelic/fn-inspect',
'redux-form',
'aws-xray-sdk-express',
'@angular-builders/custom-webpack',
'react-router-dom-v5-compat',
'fnv-plus',
'@fluentui/react',
'eight-colors',
'@capacitor/status-bar',
'@eslint-react/kit',
'@chakra-ui/menu',
'css-font-style-keywords',
'@vanilla-extract/webpack-plugin',
'lodash.forown',
'json-schema-deref-sync',
'@chakra-ui/tooltip',
'@types/plotly.js',
'@metamask/json-rpc-middleware-stream',
'ignore-loader',
'expo-doctor',
'@chakra-ui/control-box',
'pkg-config',
'grunt-contrib-copy',
'detox',
'root-check',
'downgrade-root',
'karma-mocha-reporter',
'sqlite',
'pyright',
'pinia-plugin-persistedstate',
'plotly.js',
'victory-chart',
'@heroui/shared-utils',
'@types/signature_pad',
'@types/sqlite3',
'parse-help',
'yeoman-doctor',
'@types/webfontloader',
'@apphosting/common',
'@chakra-ui/portal',
'monocart-coverage-reports',
'@pnpm/ramda',
'default-user-agent',
'math-log2',
'package-changed',
'swagger-typescript-api',
'lodash._arrayeach',
'pmx',
'mappersmith',
'dom-css',
'@portabletext/toolkit',
'@bitgo/public-types',
'@chakra-ui/toast',
'mdast-add-list-metadata',
'ally.js',
'volar-service-typescript-twoslash-queries',
'yurnalist',
'@safe-global/safe-apps-sdk',
'@secretlint/secretlint-rule-no-dotenv',
'react-fit',
'unicode-substring',
'@braintree/extended-promise',
'error-callsites',
'@applitools/eyes',
'cypress-mochawesome-reporter',
'fixpack',
'to-gfm-code-block',
'stream-meter',
'arrgv',
'@secretlint/secretlint-formatter-sarif',
'remove-markdown',
'@types/imagemin',
'xhr-request-promise',
'@types/npm-package-arg',
'npm-check',
'@graphql-tools/load-files',
'@napi-rs/nice-linux-s390x-gnu',
'@chakra-ui/input',
'@sanity/icons',
'@parcel/rust',
'stream-chopper',
'grunt-contrib-clean',
'flatten-vertex-data',
'@types/react-scroll',
'@chakra-ui/spinner',
'@rsdoctor/sdk',
'@napi-rs/nice-freebsd-x64',
'@thednp/shorty',
'math-interval-parser',
'jest-fixed-jsdom',
'polybooljs',
'@verdaccio/streams',
'@braze/web-sdk',
'amd-name-resolver',
'@astrojs/check',
'@remix-run/dev',
'@tiptap/vue-3',
'@rork-ai/toolkit-sdk',
'@parcel/transformer-raw',
'@types/recharts',
'css-url-regex',
'@parcel/runtime-browser-hmr',
'empower-core',
'create-vite',
'node-localstorage',
'is_js',
'@eslint/config-inspector',
'unplugin-swc',
'@docusaurus/plugin-svgr',
'@napi-rs/nice-win32-arm64-msvc',
'verdaccio-audit',
'@connectrpc/connect-web',
'lucide-react-native',
'@types/sortablejs',
'@newrelic/superagent',
'monitor-event-loop-delay',
'@napi-rs/nice-linux-riscv64-gnu',
'@loaders.gl/images',
'@primeuix/styles',
'buffer-to-arraybuffer',
'resumer',
'react-linkify',
'@formatjs/intl-utils',
'physical-cpu-count',
'stylelint-no-unsupported-browser-features',
'@types/base-x',
'@orval/mcp',
'@tiptap/extension-code-block-lowlight',
'tap-yaml',
'oracledb',
'object-filter-sequence',
'@volar/kit',
'@oclif/plugin-commands',
'node-xlsx',
'memdown',
'number-to-words',
'@pulumi/random',
'azurite',
'@types/react-textarea-autosize',
'vue-property-decorator',
'@math.gl/types',
'@astrojs/language-server',
'utile',
'parent-require',
'@types/paypal-checkout-components',
'unplugin-icons',
'@netlify/config',
'glsl-token-properties',
'@img/sharp-linux-riscv64',
'async-value-promise',
'@chakra-ui/focus-lock',
'verdaccio',
'@applitools/dom-capture',
'@applitools/dom-shared',
'@nrwl/vite',
'elementary-circuits-directed-graph',
'p-debounce',
'@portabletext/react',
'@remix-run/express',
'file-sync-cmp',
'css-background-parser',
'yo',
'@sapphire/async-queue',
'react-native-modal-datetime-picker',
'@aws-sdk/signature-v4-crt',
'magic-bytes.js',
'original-url',
'dom-mutator',
'@angular-builders/common',
'glsl-token-assignments',
'string-replace-loader',
'@thednp/event-listener',
'@effect/platform-node-shared',
'jsii-pacmak',
'@emmetio/stream-reader',
'@chakra-ui/switch',
'css-font-stretch-keywords',
'@resvg/resvg-js-linux-x64-gnu',
'mock-property',
'clipboard-copy',
'@verdaccio/ui-theme',
'@typeform/embed',
'mipd',
'is-blob',
'@readme/openapi-parser',
'cypress-xpath',
'@types/on-finished',
'@chakra-ui/pin-input',
'eslint-mdx',
'@vercel/elysia',
'@js-temporal/polyfill',
'html-tag',
'react-docgen-typescript-plugin',
'JSV',
'@types/segment-analytics',
'shallow-compare',
'block-stream2',
'react-native-css-interop',
'@kafkajs/confluent-schema-registry',
'fake-xml-http-request',
'@rsdoctor/core',
'node-sql-parser',
'@expo/apple-utils',
'cpy-cli',
'default-uid',
'deep-metrics',
'@types/xmldom',
'@ckeditor/ckeditor5-remove-format',
'@types/google.analytics',
'vue-class-component',
'@types/nunjucks',
'json-server',
'@typescript-eslint/rule-tester',
'glsl-resolve',
'@rushstack/stream-collator',
'@unhead/ssr',
'eslint-config-riot',
'@types/psl',
'karma-sourcemap-loader',
'@pnpm/text.comments-parser',
'@docusaurus/cssnano-preset',
'color-id',
'@mapbox/mapbox-gl-draw',
'tap-mocha-reporter',
'@chakra-ui/stat',
'@chakra-ui/provider',
'graphviz',
'@metamask/sdk-install-modal-web',
'@docusaurus/module-type-aliases',
'@tracetail/react',
'@types/mimetext',
'victory-shared-events',
'@codexteam/icons',
'@portabletext/types',
'node-version',
'react-lottie',
'@chakra-ui/media-query',
'@parcel/runtime-service-worker',
'npm-api',
'sort-json',
'h3-js',
'add-px-to-style',
'@vendia/serverless-express',
'victory-axis',
'breadth-filter',
'react-date-range',
'@types/snowflake-sdk',
'@json2csv/formatters',
'@types/react-big-calendar',
'@parcel/packager-css',
'cli-list',
'unidecode',
'prefix-style',
'@pinecone-database/pinecone',
'substyle',
'@cosmjs/math',
'eslint-plugin-eslint-plugin',
'@types/cache-manager',
'lodash.every',
'font-measure',
'@parcel/transformer-babel',
'markdown-it-container',
'optional',
'@applitools/execution-grid-tunnel',
'@parcel/transformer-html',
'@parcel/transformer-posthtml',
'leb',
'nanoevents',
'@chakra-ui/counter',
'w-json',
'@vuetify/loader-shared',
'vite-plugin-vuetify',
'@ui5/fs',
'lodash._baseclone',
'appium-uiautomator2-server',
'hash-for-dep',
'tsd',
'plaid',
'victory-area',
'@ngrx/signals',
'stylelint-config-sass-guidelines',
'markdown-it-task-lists',
'react-router-redux',
'discord.js',
'@types/jwt-decode',
'@sap/xsenv',
'@napi-rs/nice-linux-ppc64-gnu',
'react-sortablejs',
'@atlaskit/pragmatic-drag-and-drop',
'@tensorflow/tfjs-backend-cpu',
'crypto-hash',
'@eslint-react/jsx',
'@ckeditor/ckeditor5-alignment',
'victory-group',
'webpack-core',
'helmet-crossdomain',
'@types/deep-equal',
'css-global-keywords',
'rhea-promise',
'@formatjs/intl-enumerator',
'react-medium-image-zoom',
'victory-selection-container',
'@nuxt/friendly-errors-webpack-plugin',
'@swc/plugin-styled-components',
'@parcel/transformer-image',
'split-skip',
'autobind-decorator',
'memjs',
'servify',
'ethereumjs-tx',
'html-whitespace-sensitive-tag-names',
'@google-cloud/vertexai',
'@xterm/headless',
'raven',
'@chakra-ui/radio',
'@conventional-changelog/git-client',
'@types/memoizee',
'victory-zoom-container',
'jsii-reflect',
'vite-plugin-storybook-nextjs',
'yaml-lint',
'@clerk/types',
'victory-legend',
'async-value',
'moize',
'@types/object-path',
'jalaali-js',
'victory-create-container',
'victory-cursor-container',
'@sapphire/shapeshift',
'@nrwl/nx-linux-x64-gnu',
'font-atlas',
'@stablelib/hash',
'@rushstack/rush-http-build-cache-plugin',
'sql-summary',
'react-native-video',
'micromark-extension-footnote',
'memory-streams',
'@sindresorhus/base62',
'@parcel/packager-svg',
'@mui/x-telemetry',
'is-browser',
'@rsdoctor/types',
'@oxc-resolver/binding-darwin-arm64',
'simple-oauth2',
'path-name',
'tagged-tag',
'bestzip',
'@verdaccio/config',
'alpinejs',
'@aws-sdk/client-codebuild',
'lodash._baseisequal',
'zlib',
'y-prosemirror',
'@stylistic/stylelint-plugin',
'dependency-path',
'gulp-replace',
'qunit',
'escape-string-applescript',
'gulp-match',
'vite-plugin-dynamic-import',
'pretender',
'svgo-loader',
'@textlint/markdown-to-ast',
'bops',
'@microsoft/eslint-formatter-sarif',
'cosmjs-types',
'nano-json-stream-parser',
'object-identity-map',
'jest-serializer-vue',
'@testcontainers/redis',
'@anthropic-ai/claude-agent-sdk',
'tiny-worker',
'sass-embedded-darwin-arm64',
'@napi-rs/nice-win32-ia32-msvc',
'@paypal/paypal-js',
'ionicons',
'rehype-rewrite',
'strip-comments-strings',
'@napi-rs/nice-android-arm-eabi',
'@vis.gl/react-maplibre',
'@pivanov/utils',
'fullname',
'lodash.isequalwith',
'@lexical/headless',
'@clerk/shared',
'@tanstack/query-sync-storage-persister',
'@langchain/google-common',
'instantsearch-ui-components',
'@csstools/postcss-contrast-color-function',
'victory-scatter',
'graph-data-structure',
'zod-from-json-schema',
'@wallet-standard/features',
'exeunt',
'@types/braintree-web',
'react-autosuggest',
'@types/express-jwt',
'env-string',
'shallow-clone-shim',
'@aws-sdk/util-create-request',
'pnpm-workspace-yaml',
'@mui/material-nextjs',
'blueimp-canvas-to-blob',
'@parcel/optimizer-image',
'@types/sequelize',
'@apollo/federation',
'@radix-ui/themes',
'@deck.gl/layers',
'@pnpm/read-package-json',
'@angular/ssr',
'lodash._arraycopy',
'@types/gradient-string',
'exports-loader',
'tether',
'eslint-template-visitor',
'@segment/analytics-page-tools',
'react-loadable',
'@newrelic/koa',
'@effect/platform-node',
'd3-hexbin',
'@vanilla-extract/sprinkles',
'@readme/better-ajv-errors',
'@prisma/schema-engine-wasm',
'messageformat',
'bson-objectid',
'strongly-connected-components',
'@pnpm/link-bins',
'browserify-optional',
'geolib',
'@deck.gl/core',
'lodash.last',
'mapcap',
'sylvester',
'@json2csv/plainjs',
'rehype-remark',
'@ljharb/resumer',
'flags',
'@glimmer/validator',
'@open-rpc/schema-utils-js',
'victory-bar',
'@visx/gradient',
'@biomejs/cli-darwin-arm64',
'io.appium.settings',
'mouse-event-offset',
'swarm-js',
'fast-stream-to-buffer',
'filtrex',
'@parcel/packager-html',
'@google-cloud/compute',
'ts-is-present',
'@mdi/js',
'@vladfrangu/async_event_emitter',
'@json-schema-tools/dereferencer',
'react-app-rewired',
'victory-tooltip',
'openapi-typescript-codegen',
'relative-microtime',
'unicode-byte-truncate',
'@sap-devx/yeoman-ui-types',
'cucumber',
'@types/mousetrap',
'async-hook-domain',
'@replit/vite-plugin-runtime-error-modal',
'intl-pluralrules',
'esbuild-plugins-node-modules-polyfill',
'victory-stack',
'is-proto-prop',
'@types/junit-report-builder',
'@stablelib/hkdf',
'worker-factory',
'@metamask/onboarding',
'tinylogic',
'ink-testing-library',
'@aws-crypto/material-management-node',
'iterate-object',
'@inertiajs/core',
'@aws-cdk/service-spec-types',
'css-system-font-keywords',
'@pnpm/package-bins',
'@types/base64-stream',
'detect-element-overflow',
'urql',
'@parcel/optimizer-css',
'@types/stylus',
'grunt-contrib-uglify',
'bluebird-lst',
'vis-data',
'react-circular-progressbar',
'@vuelidate/validators',
'@types/lodash.camelcase',
'jss-plugin-compose',
'display-notification',
'@nuxt/eslint',
'@bundled-es-modules/deepmerge',
'multimap',
'ast-transform',
'backslash',
'@thi.ng/errors',
'stylelint-config-recommended-vue',
'livekit-client',
'@newrelic/aws-sdk',
'alter',
'sass-embedded-linux-arm',
'@parcel/transformer-css',
'number-is-integer',
'morphdom',
'@base-org/account',
'react-image-gallery',
'@napi-rs/nice-linux-arm-gnueabihf',
'react-mentions',
'@wallet-standard/wallet',
'@cosmjs/amino',
'@types/helmet',
'@types/jsonpath',
'typedi',
'grant',
're-reselect',
'title',
'vfile-matter',
'leaflet.markercluster',
'jss-preset-default',
'@pnpm/lockfile-types',
'babel-preset-gatsby',
'ts-patch',
'node-bin-setup',
'right-now',
'canvas-fit',
'@wyw-in-js/shared',
'react-use-websocket',
'@parcel/transformer-react-refresh-wrap',
'devcert',
'@percy/selenium-webdriver',
'@types/mv',
'@near-js/types',
'@nuxtjs/i18n',
'css-font',
'level',
'@reach/descendants',
'@n8n/errors',
'vue-meta',
'parsimmon',
'restify-errors',
'@opentelemetry/context-zone-peer-dep',
'volar-service-prettier',
'ng2-charts',
'@storybook/vue3',
'storybook-dark-mode',
'mouse-change',
'@hey-api/client-fetch',
'gpt-tokenizer',
'obj-props',
'@wix/wix-code-types',
'@openrouter/ai-sdk-provider',
'@aws-sdk/client-lex-runtime-service',
'pick-by-alias',
'@codemirror/merge',
'js-types',
'gl-text',
'@docusaurus/plugin-content-docs',
'@pulumi/gcp',
'draw-svg-path',
'ctype',
'apollo-link-context',
'@napi-rs/nice-android-arm64',
'lil-http-terminator',
'@tanstack/vue-table',
'victory-line',
'@lingui/react',
'@plotly/d3-sankey-circular',
'canonical-path',
'react-native-drawer-layout',
'@types/dateformat',
'fast-isnumeric',
'@amplitude/rrweb-types',
'random-int',
'store',
'caf',
'typeorm-naming-strategies',
'react-native-image-picker',
'@bundled-es-modules/memfs',
'inputmask',
'@rushstack/package-extractor',
'gel',
'@aws-sdk/client-apigatewayv2',
'@types/find-root',
'@vercel/microfrontends',
'pnpm-sync-lib',
'is-obj-prop',
'@types/undertaker-registry',
'@iflow-ai/iflow-cli',
'@grafana/faro-web-sdk',
'is-file-esm',
'@pnpm/node-fetch',
'@amplitude/rrweb-snapshot',
'world-calendars',
'@splitsoftware/splitio-commons',
'@mantine/store',
'delaunay-find',
'mdast-util-footnote',
'lodash.flatmap',
'jest-expect-message',
'react-native-paper',
'@salesforce/telemetry',
'@iconify/vue',
'dpdm',
'cohere-ai',
'@rsdoctor/graph',
'@thednp/position-observer',
'emojibase-regex',
'@vis.gl/react-mapbox',
'trace-event-lib',
'@fullhuman/postcss-purgecss',
'babel-plugin-remove-graphql-queries',
'wicked-good-xpath',
'@uppy/provider-views',
'lodash._baseflatten',
'vite-plugin-environment',
'ajv-formats-draft2019',
'vue-virtual-scroller',
'@types/gensync',
'@types/humanize-duration',
'codeowners',
'@babel/plugin-proposal-throw-expressions',
'regl-splom',
'astro',
'@types/debounce-promise',
'concat',
'webgl-context',
'@ui5/logger',
'path-unified',
'ics',
'@lingui/conf',
'@salesforce/apex-node',
'@google-cloud/resource-manager',
'is-svg-path',
'@tsconfig/strictest',
'@chakra-ui/clickable',
'regl-error2d',
'sha',
'@tanstack/vue-query',
'serverless-prune-plugin',
'@prettier/plugin-ruby',
'@types/normalize-path',
'golden-fleece',
'sorcery',
'eslint-plugin-pnpm',
'bower',
'@babel/plugin-external-helpers',
'@amplitude/rrweb',
'stylelint-config-styled-components',
'@rsdoctor/utils',
'@mantine/form',
'@astrojs/sitemap',
'array-normalize',
'@stoplight/spectral-formatters',
'ternary-stream',
'@uppy/thumbnail-generator',
'tryor',
'@chakra-ui/icons',
'formstream',
'measured-core',
'@uppy/dashboard',
'@grafana/faro-core',
'node-downloader-helper',
'@sap/cf-tools',
'@chakra-ui/react-use-controllable-state',
'call-signature',
'@vercel/edge-config',
'get-set-props',
'jest-environment-emit',
'chai-exclude',
'ngx-infinite-scroll',
'type-name',
'ethereumjs-abi',
'@segment/ajv-human-errors',
'regl-scatter2d',
'parsejson',
'@open-wc/dedupe-mixin',
'@shikijs/twoslash',
'regl-line2d',
'@docusaurus/theme-common',
'@types/dedent',
'inngest',
'@astrojs/yaml2ts',
'brace',
'has-hover',
'country-regex',
'animejs',
'multi-stage-sourcemap',
'ngx-bootstrap',
'gherkin-lint',
'eas-cli',
'@types/etag',
'cypress-plugin-tab',
'@slorber/react-helmet-async',
'@opentelemetry/context-zone',
'node-vault',
'obj-multiplex',
'@vue/preload-webpack-plugin',
'is-js-type',
'@amplitude/plugin-session-replay-browser',
'yeoman-character',
'victory-voronoi',
'@types/string-hash',
'@bazel/ibazel',
'eslint-plugin-react-debug',
'monocart-locator',
'nkeys.js',
'next-transpile-modules',
'@native-html/transient-render-engine',
'bind-obj-methods',
'@luma.gl/shadertools',
'react-string-replace',
'linkedom',
'get-canvas-context',
'@mixpanel/rrweb-snapshot',
'@native-html/css-processor',
'findup',
'@unocss/preset-wind3',
'@sanity/message-protocol',
'@docusaurus/theme-translations',
'@emurgo/cardano-serialization-lib-nodejs',
'gatsby-plugin-utils',
'victory-candlestick',
'@lobehub/chat',
'@storybook/react-native',
'sha3',
'@rspack/binding-linux-arm64-musl',
'electron-log',
'@react-hook/throttle',
'lodash.cond',
'parse-rect',
'@aws-crypto/client-node',
'@better-auth/utils',
'@types/undertaker',
'react-native-config',
'detect-kerning',
'@plotly/point-cluster',
'@langchain/aws',
'@chakra-ui/react-use-merge-refs',
'svg-path-sdf',
'@jsamr/react-native-li',
'@jsamr/counter-style',
'lodash.unionby',
'css-font-weight-keywords',
'draftjs-utils',
'@auth0/nextjs-auth0',
'vite-plugin-css-injected-by-js',
'futoin-hkdf',
'@parcel/transformer-postcss',
'babel-plugin-transform-import-meta',
'@parcel/config-default',
'@xterm/addon-fit',
'mouse-wheel',
'progress-webpack-plugin',
'@types/eslint-config-prettier',
'pixi.js',
'react-themeable',
'fast-jwt',
'right-pad',
'@chakra-ui/react-use-callback-ref',
'@chakra-ui/css-reset',
'@datastructures-js/heap',
'react-country-flag',
'@ai-sdk/azure',
'@percy/appium-app',
'@pnpm/git-utils',
'@parcel/optimizer-swc',
'typescript-memoize',
'@solana/kit',
'tar-pack',
'@types/joi',
'ollama',
'@types/topojson-specification',
'maxmind',
'@wallet-standard/app',
'@electron-forge/maker-base',
'@intlify/core',
'@docusaurus/plugin-content-pages',
'@types/d3-collection',
'@aws-crypto/material-management',
'multi-sort-stream',
'koa-range',
'apollo-cache-control',
'@expo/steps',
'not',
'electron-winstaller',
'@chakra-ui/editable',
'@docusaurus/plugin-content-blog',
'@sap-ux/ui5-config',
'becke-ch--regex--s0-0-v1--base--pl--lib',
'victory-brush-container',
'vike',
'ts-command-line-args',
'@plotly/d3-sankey',
'@primeuix/themes',
'@chakra-ui/react-types',
'gatsby-cli',
'typesafe-path',
'@multiformats/multiaddr',
'@parcel/transformer-svg',
'@storybook/preset-create-react-app',
'@bundled-es-modules/glob',
'sass-embedded-linux-musl-arm',
'@oxc-resolver/binding-darwin-x64',
'passport-http-bearer',
'@antv/path-util',
'@astrojs/react',
'@tsd/typescript',
'@rspack/binding-darwin-arm64',
'gcs-resumable-upload',
'@deck.gl/react',
'digest-header',
'@capacitor/keyboard',
'@nicolo-ribaudo/semver-v6',
'@heroui/system',
'sander',
'@tracetail/js',
'sass-embedded-darwin-x64',
'rxjs-report-usage',
'fastfall',
'@plotly/regl',
'stream-consume',
'@hocuspocus/common',
'mouse-event',
'hardhat',
'hsluv',
'html-element-attributes',
'monaco-editor-webpack-plugin',
'react-plotly.js',
'@parcel/runtime-react-refresh',
'@aws-sdk/client-appconfig',
'to-utf8',
'electrodb',
'stylis-plugin-rtl',
'@nomicfoundation/edr',
'node-status-codes',
'gatsby',
'@inversifyjs/core',
'@pnpm/lockfile.types',
'@mui/styled-engine-sc',
'remove-undefined-objects',
'@mistralai/mistralai',
'bootstrap-sass',
'tronweb',
'@docusaurus/theme-classic',
'totp-generator',
'mjolnir.js',
'@storybook/angular',
'node-html-markdown',
'@sanity/color',
'@expo/logger',
'@types/chai-string',
'json-schema-to-typescript-lite',
'is-tar',
'tss-react',
'@pnpm/patching.types',
'@sveltejs/adapter-auto',
'react-international-phone',
'@chakra-ui/react-children-utils',
'eslint-plugin-import-lite',
'volar-service-yaml',
'flairup',
'zen-push',
'@backstage/types',
'@types/string-similarity',
'natural',
'@chakra-ui/react-use-event-listener',
'@rive-app/react-canvas',
'pepper-scanner',
'@pnpm/read-modules-dir',
'@anatine/zod-openapi',
'gulp-if',
'@docusaurus/plugin-google-gtag',
'@reach/rect',
'@fig/complete-commander',
'json',
'google-map-react',
'cbor-sync',
'@electron-forge/tracer',
'@cosmjs/stargate',
'has-passive-events',
'@types/json-bigint',
'@atlaskit/feature-gate-js-client',
'clear',
'@heroui/react-utils',
'docx',
'eslint-plugin-ava',
'dedent-js',
'@ckeditor/ckeditor5-emoji',
'@antv/scale',
'streamifier',
'@vercel/edge',
'uri-path',
'@chakra-ui/react-use-outside-click',
'@expo/eas-json',
'@better-auth/telemetry',
'update-diff',
'heic2any',
'babel-plugin-ember-modules-api-polyfill',
'svg-path-bounds',
'phoenix',
'@sapphire/snowflake',
'@aws-sdk/client-rds-data',
'gatsby-legacy-polyfills',
'@inversifyjs/reflect-metadata-utils',
'stringmap',
'img-loader',
'@salesforce/plugin-info',
'clean-deep',
'rollup-plugin-node-externals',
'sass-embedded-android-arm',
'@prisma/internals',
'mobx-utils',
'@verdaccio/logger-prettify',
'pseudolocale',
'@percy/monitoring',
'@types/negotiator',
'inspect-function',
'is-iexplorer',
'@trezor/env-utils',
'@docusaurus/plugin-sitemap',
'rollup-plugin-polyfill-node',
'is-firefox',
'@types/analytics-node',
'macaddress',
'@docusaurus/theme-search-algolia',
'@verdaccio/signature',
'@docusaurus/preset-classic',
'acorn-private-class-elements',
'mock-require',
'@types/overlayscrollbars',
'groq-js',
'graphql-extensions',
'karma-cli',
'@aws-crypto/raw-keyring',
'express-graphql',
'appium-xcode',
'react-switch',
'markdown-it-sup',
'@amplitude/utils',
'vite-plugin-ruby',
'update-input-width',
'flush-promises',
'electron-store',
'@better-fetch/fetch',
'@verdaccio/url',
'@chakra-ui/react-use-update-effect',
'@cosmjs/proto-signing',
'@wdio/appium-service',
'@sap-ux/yaml',
'@types/connect-pg-simple',
'arr-rotate',
'@wordpress/i18n',
'vue-multiselect',
'cucumber-tag-expressions',
'@react-navigation/material-top-tabs',
'markdown-it-mark',
'@react-native-firebase/crashlytics',
'@react-types/accordion',
'@nuxt/test-utils',
'mathjax-full',
'@mixpanel/rrweb-utils',
'@apphosting/build',
'@node-saml/node-saml',
'@tiptap/extension-font-family',
'buffer-layout',
'@types/recursive-readdir',
'@aws-cdk/cloudformation-diff',
'@chakra-ui/dom-utils',
'@tensorflow/tfjs-converter',
'sass-embedded-win32-arm64',
'jsii',
'@upstash/ratelimit',
'@atlaskit/icon',
'@vercel/introspection',
'js2xmlparser2',
'@spruceid/siwe-parser',
'sh-syntax',
'tryit',
'@verdaccio/logger-commons',
'sass-embedded-android-arm64',
'sass-embedded-android-x64',
'stringset',
'magicli',
'@inversifyjs/common',
'gatsby-plugin-typescript',
'fizzy-ui-utils',
'@prisma/adapter-pg',
'@hono/zod-openapi',
'@plotly/d3',
'array-bounds',
'relay-compiler',
'@verdaccio/tarball',
'bunyamin',
'dom-storage',
'@amplitude/experiment-js-client',
'@types/text-table',
'react-avatar-editor',
'hjson',
'parse-data-uri',
'@docusaurus/plugin-css-cascade-layers',
'@types/continuation-local-storage',
'array-move',
'json-query',
'@types/esquery',
'@expo/multipart-body-parser',
'sass-embedded-linux-riscv64',
'sass-embedded-linux-musl-riscv64',
'degit',
'simple-fmt',
'@metamask/abi-utils',
'@arethetypeswrong/cli',
'fork-stream',
'theming',
'printf',
'snakeize',
'formatio',
'@chakra-ui/react-use-focus-effect',
'@expo/pkcs12',
'graphql-transformer-common',
'jwt-simple',
'lodash.tail',
'@chakra-ui/lazy-utils',
'@types/json-diff',
'@azure/service-bus',
'@angular-devkit/build-optimizer',
'to-iso-string',
'@griffel/style-types',
'@types/mock-fs',
'@types/lodash.chunk',
'eslint-plugin-sort-class-members',
'ml-distance-euclidean',
'gatsby-plugin-page-creator',
'json-schema-to-zod',
'is-get-set-prop',
'@fastify/rate-limit',
'to-float32',
'@google-cloud/translate',
'isolated-vm',
'material-ui-popup-state',
'@types/react-input-mask',
'espower-location-detector',
'vis-network',
'@aws-sdk/client-athena',
'lodash._createwrapper',
'@upstash/context7-mcp',
'@microsoft/eslint-plugin-sdl',
'@aws-sdk/client-redshift-data',
'@gwhitney/detect-indent',
'prettier-plugin-sh',
'@ckeditor/ckeditor5-react',
'svgicons2svgfont',
'stream-read-all',
'@bugsnag/plugin-react',
'inspect-parameters-declaration',
'chai-subset',
'gatsby-react-router-scroll',
'element-size',
'@firebase/polyfill',
'@fastify/websocket',
'eslint-plugin-graphql',
'@expo/plugin-warn-if-update-available',
'typedoc-default-themes',
'@aws-crypto/serialize',
'usb',
'@lottiefiles/react-lottie-player',
'random-js',
'@lifeomic/attempt',
'@resvg/resvg-js-linux-x64-musl',
'sass-embedded-android-riscv64',
'json-schema-migrate',
'partysocket',
'sha256-uint8array',
'expand-braces',
'@pnpm/fetching-types',
'appium-idb',
'md5hex',
'publint',
'dashjs',
'react-native-qrcode-svg',
'@chakra-ui/react-use-timeout',
'braintrust',
'@rushstack/lookup-by-path',
'strip-color',
'@electron/packager',
'victory-brush-line',
'deglob',
'@tsoa/runtime',
'@readme/openapi-schemas',
'@types/koa-bodyparser',
'collect.js',
'react-feather',
'reactotron-core-client',
'jest-dev-server',
'username-sync',
'own-or-env',
'babel-plugin-formatjs',
'loadjs',
'@chakra-ui/number-utils',
'own-or',
'jpegtran-bin',
'typechain',
'contra',
'superscript-text',
'prettier-plugin-astro',
'@types/serve-favicon',
'ag-grid-angular',
'@prisma/prisma-schema-wasm',
'@stablelib/ed25519',
'@pnpm/find-workspace-dir',
'create-gatsby',
'victory-errorbar',
'@amplitude/rrweb-plugin-console-record',
'graphology-traversal',
'@types/update-notifier',
'@types/http-proxy-middleware',
'@opentelemetry/instrumentation-openai',
'typed-error',
'@aws-crypto/kms-keyring',
'@fluentui/react-icons',
'@types/loadable__component',
'@ai-sdk/amazon-bedrock',
'acorn-class-fields',
'pusher',
'elasticsearch',
'@node-rs/xxhash-linux-x64-gnu',
'gatsby-link',
'ajv-cli',
'@vscode-logging/logger',
'highlight-words',
'react-native-uuid',
'@storybook/addon-coverage',
'@reportportal/client-javascript',
'@napi-rs/canvas-win32-x64-msvc',
'apollo-tracing',
'react-use-intercom',
'section-iterator',
'tabster',
'ol',
'dts-resolver',
'absolute-path',
'@primevue/core',
'@portabletext/block-tools',
'xterm',
'@types/method-override',
'react-currency-input-field',
'vega-typings',
'@arethetypeswrong/core',
'@verdaccio/commons-api',
'@apollo/gateway',
'react-ga',
'flow-remove-types',
'fastseries',
'timestring',
'packrup',
'@restart/context',
'@chakra-ui/react-use-disclosure',
'@okta/okta-react',
'mdast-comment-marker',
'@types/react-window-infinite-loader',
'@oslojs/crypto',
'apparatus',
'vega-event-selector',
'desandro-matches-selector',
'@stomp/stompjs',
'babel-plugin-transform-react-jsx-source',
'@miragejs/pretender-node-polyfill',
'@expo/plugin-help',
'@types/libsodium-wrappers',
'cross-var',
'@napi-rs/snappy-linux-x64-gnu',
'@expo/results',
'@mui/x-data-grid-premium',
'redux-saga-test-plan',
'@nrwl/nx-linux-x64-musl',
'rosie',
'through2-concurrent',
'get-folder-size',
'@zkochan/retry',
'@storybook/react-native-theming',
'@marsidev/react-turnstile',
'@bcherny/json-schema-ref-parser',
'xdate',
'@chakra-ui/react-use-pan-event',
'victory-histogram',
'@salesforce/source-tracking',
'@stablelib/sha512',
'lorem-ipsum',
'array-rearrange',
'@ag-grid-community/client-side-row-model',
'css-modules-loader-core',
'@langchain/google-vertexai',
'hast-util-format',
'number-flow',
'tsort',
'@lingui/babel-plugin-extract-messages',
'is-class-hotfix',
'cross-spawn-async',
'@amplitude/types',
'js-sha1',
'@storybook/nextjs-vite',
'level-packager',
'lodash-id',
'@temporalio/testing',
'html-to-draftjs',
'multiple-cucumber-html-reporter',
'@ngrx/component-store',
'replaceall',
'broker-factory',
'@embroider/macros',
'@netlify/node-cookies',
'babel-plugin-transform-async-to-promises',
'markdown-it-footnote',
'@primevue/icons',
'cfonts',
'nextjs-toploader',
'@types/w3c-web-usb',
'phone',
'babel-plugin-htmlbars-inline-precompile',
'@cosmjs/socket',
'prettier-plugin-sort-json',
'mongoose-legacy-pluralize',
'opencv-bindings',
'@types/swagger-ui-react',
'@discordjs/util',
'core-object',
'@near-js/utils',
'@zxcvbn-ts/language-common',
'@vercel/fetch',
'bloom-filters',
'@wdio/junit-reporter',
'@ckeditor/ckeditor5-source-editing',
'acorn-static-class-features',
'@vscode/test-cli',
'observable-fns',
'cls-bluebird',
'@aws-crypto/raw-aes-keyring-node',
'polylabel',
'diff2html',
'@types/jsftp',
'react-prop-types',
'node-match-path',
'gatsby-telemetry',
'cmake-js',
'request-compose',
'hygen',
'@node-rs/xxhash-linux-x64-musl',
'markdownlint-cli2',
'google-spreadsheet',
'typeid-js',
'nanocolors',
'hashids',
'remark-github',
'@clerk/backend',
'stringifier',
'@vueuse/nuxt',
'@trezor/utils',
'@babel/plugin-proposal-function-sent',
'this-file',
'pptxgenjs',
'@ai-sdk/google-vertex',
'@biomejs/cli-win32-x64',
'cliff',
'date.js',
'next-mdx-remote',
'eslint-typegen',
'@microlink/react-json-view',
'file-set',
'react-native-pdf',
'@react-hook/event',
'adal-node',
'requestretry',
'@types/fs-capacitor',
'@verdaccio/middleware',
'export-to-csv',
'@element-plus/icons-vue',
'svelte2tsx',
'@tensorflow/tfjs-backend-webgl',
'ksuid',
'react-instantsearch',
'gl-util',
'@verdaccio/logger',
'@biomejs/cli-darwin-x64',
'primeflex',
'7zip-bin',
'react-jss',
'react-style-proptype',
'xpath.js',
'mj-context-menu',
'jss-plugin-rule-value-observable',
'markdown-it-sub',
'stream-via',
'@discordjs/rest',
'tomlify-j0.4',
'@aws-sdk/crt-loader',
'rehype-format',
'child-process-promise',
'markdownlint-micromark',
'@cosmjs/stream',
'run-script-os',
'@vue/vue3-jest',
'react-native-reanimated-carousel',
'bytebuffer',
'laravel-echo',
'@aws-crypto/encrypt-node',
'emoji-toolkit',
'@chakra-ui/card',
'speech-rule-engine',
'@sanity/generate-help-url',
'@types/connect-redis',
'@types/howler',
'pad',
'bunfig',
'@fluentui/react-theme',
'reduce-configs',
'@nomicfoundation/edr-win32-x64-msvc',
'@aws-crypto/decrypt-node',
'@vscode-logging/types',
'@oxc-resolver/binding-win32-arm64-msvc',
'json-schema-walker',
'fstream-ignore',
'@tsconfig/recommended',
'@electron-forge/plugin-base',
'ascii-table',
'@fortawesome/vue-fontawesome',
'classlist-polyfill',
'@vercel/style-guide',
'@netlify/cache-utils',
'mailosaur',
'comver-to-semver',
'zod-openapi',
'grunt-contrib-concat',
'jss-plugin-extend',
'@oxc-resolver/binding-linux-arm-gnueabihf',
'@apollo/query-planner',
'replace',
'@chakra-ui/react-use-size',
'@types/imagemin-gifsicle',
'mailcomposer',
'@types/extract-files',
'is-bluebird',
'@typescript-eslint/eslint-plugin-tslint',
'quoted-printable',
'@emotion/eslint-plugin',
'vega-scale',
'@types/object-inspect',
'esbuild-sass-plugin',
'@types/ungap__structured-clone',
'expect-puppeteer',
'camelize-ts',
'postcss-css-variables',
'keyborg',
'@semantic-release/gitlab',
'vega-loader',
'reactotron-core-contract',
'@google-cloud/container',
'@portabletext/editor',
'@verdaccio/search-indexer',
'@cosmjs/json-rpc',
'@salesforce/plugin-data',
'koa-morgan',
'@aws-sdk/client-appsync',
'@currents/commit-info',
'@microsoft/teams-js',
'@types/glob-stream',
'@nuxt/image',
'vitest-fetch-mock',
'cookie-session',
'@luma.gl/engine',
'@salesforce/packaging',
'@openapi-contrib/openapi-schema-to-json-schema',
'rgb-hex',
'vega-dataflow',
'@chakra-ui/react-use-latest-ref',
'statsig-node',
'@verdaccio/auth',
'eslint-formatter-gitlab',
'cbor-x',
'keymirror',
'@builder.io/partytown',
'astro-eslint-parser',
'mockttp',
'rsa-pem-from-mod-exp',
'@lvce-editor/verror',
'unique-names-generator',
'core-assert',
'stream-wormhole',
'react-native-toast-message',
'messageformat-formatters',
'@oxc-resolver/binding-wasm32-wasi',
'serialize-error-cjs',
'@salesforce/plugin-deploy-retrieve',
'proto-props',
'css-gradient-parser',
'react-native-codegen',
'cheminfo-types',
'lodash.uniqueid',
'react-native-keychain',
'svg2ttf',
'@prettier/sync',
'paged-request',
'fractional-indexing',
'@oclif/plugin-which',
'@visx/drag',
'@salesforce/plugin-org',
'@azure/core-asynciterator-polyfill',
'@sanity/codegen',
'@docusaurus/tsconfig',
'fsm-iterator',
'@salesforce/templates',
'@expo/react-native-action-sheet',
'r-json',
'@types/smoothscroll-polyfill',
'@virtuoso.dev/react-urx',
'ngx-quill',
'@react-three/drei',
'await-lock',
'@fullcalendar/premium-common',
'@types/vimeo__player',
'regextras',
'lodash.assignwith',
'@expo/timeago.js',
'lodash-unified',
'ip3country',
'@apollo/rover',
'postcss-load-plugins',
'@types/accept-language-parser',
'@sanity/presentation-comlink',
'@effect/language-service',
'@backstage/plugin-permission-common',
'textarea-caret',
'@aws-crypto/caching-materials-manager-node',
'twoslash',
'jest-html-reporters',
'apollo-env',
'@rspack/binding-darwin-x64',
'@tsoa/cli',
'@salesforce/plugin-auth',
'@lezer/generator',
'@salesforce/plugin-apex',
'postcss-jsx',
'unleash-proxy-client',
'@vuelidate/core',
's.color',
'@tauri-apps/api',
'vega',
'@types/angular',
'@atlaskit/atlassian-context',
'@wordpress/element',
'typesense',
'@aws-crypto/cache-material',
'd3-octree',
'ipv6-normalize',
'@aws-amplify/cli',
'humanize-number',
'@chakra-ui/react-use-previous',
'react-date-picker',
'suf-log',
'babel-plugin-transform-imports',
'date-holidays',
'cross-argv',
'@verdaccio/loaders',
'@ngrx/schematics',
'reactotron-react-native',
'png-async',
'@splitsoftware/splitio',
'astronomia',
'yalc',
'ember-rfc176-data',
'gatsby-page-utils',
'@deck.gl/extensions',
'@heroui/system-rsc',
'replace-string',
'@sanity/insert-menu',
'victory-polar-axis',
'@types/xml-encryption',
'@vvo/tzdb',
'semver-store',
'@formatjs/intl-datetimeformat',
'miragejs',
'@salesforce/plugin-limits',
'vega-functions',
'@types/imagemin-svgo',
'@types/react-infinite-scroller',
'babel-plugin-transform-inline-environment-variables',
'@solana/wallet-standard-features',
'vega-lite',
'@aws-sdk/client-iot',
'@salesforce/plugin-telemetry',
'koa-logger',
'angular-sanitize',
'esrever',
'bitcoin-ops',
'get-ready',
'@number-flow/react',
'@math.gl/polygon',
'victory-voronoi-container',
'@heroui/react-rsc-utils',
'twoslash-protocol',
'utility',
'@huggingface/tasks',
'@types/imagemin-optipng',
'wtf-8',
'@sanity/asset-utils',
'vega-scenegraph',
'java-parser',
'victory-canvas',
'stream-replace-string',
'gatsby-graphiql-explorer',
'uhyphen',
'@luma.gl/webgl',
'@aws-crypto/kms-keyring-node',
'@syncfusion/ej2-base',
'@pulumi/kubernetes',
'vue-server-renderer',
'@nuxtjs/tailwindcss',
'awilix',
'@sparticuz/chromium',
'@ckeditor/ckeditor5-special-characters',
'@opentelemetry/id-generator-aws-xray',
'pad-left',
'@lingui/cli',
'jsox',
'@types/jszip',
'@activepieces/shared',
'jss-plugin-expand',
'vega-time',
'@livekit/mutex',
'@cosmjs/tendermint-rpc',
'@types/jsrsasign',
'timekeeper',
'mendoza',
'vue-jest',
'@testcontainers/localstack',
'hat',
'@types/lodash.set',
'fetch-ponyfill',
'node-hex',
'@salesforce/plugin-settings',
'draftjs-to-html',
'@okta/jwt-verifier',
'vega-crossfilter',
'restify',
'nano-pubsub',
'@virtuoso.dev/urx',
'vite-plugin-compression',
'markdownlint-cli2-formatter-default',
'@types/bull',
'@uppy/informer',
'laravel-mix',
'react-rnd',
'@vercel/webpack-asset-relocator-loader',
'@atlaskit/primitives',
'bits-ui',
'cleave.js',
'@types/sass',
'string-to-stream',
'commandpost',
'buildmail',
'gridstack',
'@types/proper-lockfile',
'char-spinner',
'@nestjs-modules/mailer',
'@aws-sdk/client-lex-runtime-v2',
'@types/systemjs',
'@appium/strongbox',
'@types/moo',
'gulp-babel',
'markdown-escape',
'@rocket.chat/icons',
'@sanity/preview-url-secret',
'@astrojs/mdx',
'vega-transforms',
'@salesforce/cli',
'redux-observable',
'@aws-crypto/hkdf-node',
'json-diff-ts',
'node-api-headers',
'power-assert-util-string-width',
'ohm-js',
'passthrough-counter',
'@azure/monitor-opentelemetry-exporter',
'@sentry/angular',
'@sanity/util',
'get-package-info',
'govuk-frontend',
'@chakra-ui/stepper',
'@aws-amplify/pubsub',
'vue-flow-layout',
'prepin',
'express-urlrewrite',
'vega-encode',
'sass-formatter',
'@types/title',
'vega-force',
'@pnpm/merge-lockfile-changes',
'currency-codes',
'@vanilla-extract/vite-plugin',
'reconnecting-websocket',
'tailwind-scrollbar-hide',
'react-refractor',
'@visx/voronoi',
'embla-carousel-wheel-gestures',
'@solana/accounts',
'tailwind-config-viewer',
'vega-view',
'html5-qrcode',
'@salesforce/plugin-schema',
'@salesforce/plugin-trust',
'@sap-ux/project-input-validator',
'vite-plugin-top-level-await',
'buf-compare',
'@types/query-string',
'pluralize-esm',
'angular-html-parser',
'posthtml-svg-mode',
'victory-box-plot',
'typescript-transform-paths',
'domready',
'@emotion/babel-utils',
'google-auto-auth',
'vega-selections',
'@antv/g-math',
'openapi-merge',
'postcss-markdown',
'@types/markdown-escape',
'sqs-producer',
'@ledgerhq/hw-transport-webhid',
'@sanity/migrate',
'airtable',
'powerbi-client',
'onchange',
'sleep-promise',
'jss-plugin-template',
'mhchemparser',
'@netflix/nerror',
'hex2dec',
'get-pixels',
'@mantine/utils',
'@azure/openai',
'@wdio/cucumber-framework',
'@salesforce/plugin-user',
'streamdown',
'@next/swc-linux-arm-gnueabihf',
'@aws-crypto/raw-rsa-keyring-node',
'@antfu/eslint-config',
'@salesforce/o11y-reporter',
'afinn-165',
'remark-message-control',
'pdf2json',
'@blueprintjs/core',
'to-snake-case',
'@effect/vitest',
'@httptoolkit/subscriptions-transport-ws',
'image-to-base64',
'react-transition-state',
'vite-plugin-commonjs',
'@oxc-resolver/binding-win32-x64-msvc',
'durations',
'@tsconfig/svelte',
'o11y',
'blob-polyfill',
'esbuild-plugin-copy',
'suffix',
'git-last-commit',
'lodash.xorby',
'@types/culori',
'@sap-ux/feature-toggle',
'shapefile',
'victory',
'deprecated',
'cross-zip',
'@types/type-is',
'@antv/g-canvas',
'@salesforce/plugin-packaging',
'num-sort',
'@parcel/feature-flags',
'@optimizely/optimizely-sdk',
'@stellar/stellar-sdk',
'ol-mapbox-style',
'lodash._slice',
'string-strip-html',
'@types/koa__cors',
'@types/xlsx',
'@fastify/jwt',
'react-lazyload',
'int53',
'ansi-green',
'i18next-chained-backend',
'tiptap-markdown',
'remark-toc',
'buble',
'@wdio/browserstack-service',
'vega-regression',
'@graphql-tools/batch-delegate',
'connect-flash',
'vega-canvas',
'aws-sdk-mock',
'@csstools/postcss-global-data',
'parcel',
'@adiwajshing/keyed-db',
'react-native-calendars',
'@napi-rs/cli',
'easy-bem',
'@types/basic-auth',
'amplitude-js',
'@sanity/visual-editing-types',
'@simplewebauthn/types',
'date-bengali-revised',
'atlassian-openapi',
'rxjs-compat',
'@types/koa-router',
'deep-strict-equal',
'common-sequence',
'date-chinese',
'autocannon',
'@progress/kendo-react-common',
'@ckeditor/ckeditor5-bookmark',
'rcedit',
'imagemin-jpegtran',
'xo',
'@intlify/h3',
'@progress/kendo-licensing',
'node-ssh',
'@salesforce/agents',
'@eslint/json',
'@applitools/functional-commons',
'folder-hash',
'unconfig-core',
'@syncfusion/ej2-buttons',
'datauri',
'@stacks/common',
'vega-parser',
'expo-server-sdk',
'shlex',
'vega-projection',
'lodash.support',
'json-dup-key-validator',
'html_codesniffer',
'keyboard-key',
'@ckeditor/ckeditor5-mention',
'rehype-ignore',
'@types/gulp',
'@types/estraverse',
'@remix-run/serve',
'@types/autosuggest-highlight',
'@opentelemetry/instrumentation-user-interaction',
'react-datetime',
'codem-isoboxer',
'@types/auth0',
'@googleapis/drive',
'@metaplex-foundation/mpl-token-metadata',
'sjcl',
'ttf2woff2',
'express-http-context',
'vega-wordcloud',
'indefinite',
'ldjson-stream',
'@types/clone',
'promise-timeout',
'@types/speakingurl',
'@types/cordova',
'@griffel/react',
'@schematics/update',
'@react-native-google-signin/google-signin',
'git-rev-sync',
'dragula',
'@storybook/addon-ondevice-controls',
'jsencrypt',
'curve25519-js',
'@atlaskit/analytics-next',
'eslint-plugin-boundaries',
'@sanity/diff-patch',
'vega-geo',
'semantic-ui-react',
'ngx-markdown',
'@opentelemetry/host-metrics',
'@ionic/core',
'@types/topojson-client',
'prettify-xml',
'rehype-attr',
'eslint-plugin-rxjs',
'@breejs/later',
'@aws-sdk/client-pinpoint',
'@cypress/listr-verbose-renderer',
'@typeform/embed-react',
'@sap/cds',
'esbuild-jest',
'ml-array-sum',
'@solid-primitives/utils',
'photoswipe',
'react-codemirror2',
'@googleapis/sheets',
'base62',
'@uppy/status-bar',
'make-synchronized',
'@oxc-resolver/binding-linux-riscv64-gnu',
'yarn-install',
'vega-hierarchy',
'gql.tada',
'@oxc-resolver/binding-linux-s390x-gnu',
'steed',
'@miyaneee/rollup-plugin-json5',
'@visx/react-spring',
'@wdio/dot-reporter',
'pikaday',
'@griffel/core',
'onecolor',
'koa-session',
'detect-passive-events',
'@safe-global/safe-gateway-typescript-sdk',
'react-draft-wysiwyg',
'@aws-amplify/ui',
'eslint-plugin-no-use-extend-native',
'@esbuild-kit/cjs-loader',
'@pnpm/pick-fetcher',
'react-server-dom-webpack',
'date-easter',
'@toruslabs/eccrypto',
'@storybook/vue3-vite',
'ibantools',
'mocha-suppress-logs',
'@salesforce/plugin-agent',
'@amplitude/rrweb-utils',
'@rnx-kit/chromium-edge-launcher',
'simple-git-hooks',
'pa11y',
'@motionone/vue',
'level-sublevel',
'oas',
'@progress/kendo-svg-icons',
'@vercel/edge-config-fs',
'react-cropper',
'serverless-http',
'node-polyglot',
'env-schema',
'@luma.gl/core',
'relative-time-format',
'destroyable-server',
'@solana/wallet-standard-util',
'dinero.js',
'yaml-js',
'@module-federation/utilities',
'@types/request-promise-native',
'combine-lists',
'dom-to-image',
'@applitools/eg-frpc',
'viewport-mercator-project',
'@types/vinyl-fs',
'@andrewbranch/untar.js',
'@salesforce/plugin-templates',
'escape-regexp-component',
'get-random-values',
'@types/earcut',
'assets-webpack-plugin',
'accounting',
'js-binary-schema-parser',
'@aws-sdk/client-codepipeline',
'npm-logical-tree',
'ms-rest-azure',
'@types/apollo-upload-client',
'hdb',
'@nomicfoundation/solidity-analyzer-linux-x64-gnu',
'io-ts-reporters',
'@pulumi/docker-build',
'ably',
'@solana/wallet-standard-chains',
'@sap/cds-compiler',
'caldate',
'@nestjs/cqrs',
'@fluentui/react-shared-contexts',
'cldrjs',
'ml-array-mean',
'lodash._setbinddata',
'@mastra/core',
'imsc',
'vega-statistics',
'@types/sprintf-js',
'date-utils',
'@connectrpc/connect-node',
'bcp47',
'vega-format',
'typechecker',
'pagefind',
'@resvg/resvg-wasm',
'git-diff',
'@leafygreen-ui/lib',
'@types/webextension-polyfill',
'@google-cloud/kms',
'vega-tooltip',
'@oclif/multi-stage-output',
'@aws-amplify/interactions',
'manage-path',
'@canvas/image-data',
'@types/intercom-web',
'read-tls-client-hello',
'@azure/msal-angular',
'gatsby-sharp',
'deep-freeze-strict',
'@openfeature/server-sdk',
'@salesforce/types',
'@types/winston',
'react-html-parser',
'@netlify/edge-bundler',
'mimer',
'markdown-it-deflist',
'parse-domain',
'expo-apple-authentication',
'angularx-qrcode',
'@nomicfoundation/solidity-analyzer',
'vega-voronoi',
'capnp-ts',
'@pnpm/lockfile-file',
'@vanilla-extract/css-utils',
'moment-locales-webpack-plugin',
'cbor-js',
'@heroui/aria-utils',
'download-stats',
'ip-range-check',
'angular-oauth2-oidc',
'jsx-ast-utils-x',
'@types/highlight.js',
'@types/json-pointer',
'@toruslabs/http-helpers',
'@types/asn1',
'@oclif/plugin-search',
'@zxing/browser',
'graphology-indices',
'jsoneditor',
'cubic2quad',
'@sveltejs/adapter-node',
'lodash._basebind',
'require-dir',
'cypress-split',
'@strapi/utils',
'@solana/errors',
'extract-from-css',
'@types/stoppable',
'@visx/legend',
'@types/promise-retry',
'net',
'gatsby-source-filesystem',
'react-slider',
'@parcel/types-internal',
'@base-ui-components/react',
'@react-hook/debounce',
'stylelint-webpack-plugin',
'@gitbeaker/node',
'window-post-message-proxy',
'hbs',
'@types/decompress',
'@types/redux',
'vitest-environment-nuxt',
'crossvent',
'@fullcalendar/scrollgrid',
'smtp-server',
'proxy-chain',
'adaptivecards',
'trix',
'@discordjs/ws',
'date-holidays-parser',
'gulp-postcss',
'graphemesplit',
'@visx/glyph',
'audit-ci',
'eslint-plugin-you-dont-need-lodash-underscore',
'line-height',
'@types/react-signature-canvas',
'samlify',
'@parcel/optimizer-htmlnano',
'humanize',
'@intlify/utils',
'friendly-errors-webpack-plugin',
'npm-registry-client',
'ts-mockito',
'@contentful/rich-text-html-renderer',
'@fluentui/react-popover',
'@plotly/mapbox-gl',
'lodash._basecreatewrapper',
'libsodium-sumo',
'@iconify/collections',
'msal',
'@sindresorhus/df',
'@httptoolkit/httpolyglot',
'@types/shallow-equals',
'event-target-polyfill',
'@ckeditor/ckeditor5-page-break',
'release-please',
'@auth/prisma-adapter',
'imagesloaded',
'@rsdoctor/rspack-plugin',
'@backstage/config',
'@aws-amplify/predictions',
'@gql.tada/cli-utils',
'react-native-haptic-feedback',
'vue-functional-data-merge',
'css-rule-stream',
'@atlaskit/pragmatic-drag-and-drop-hitbox',
'@react-native-community/eslint-plugin',
'react-tracked',
'ngx-build-plus',
'timeago.js',
'eslint-plugin-sort-destructure-keys',
'@salesforce/plugin-sobject',
'remix-utils',
'@solana/wallet-standard-wallet-adapter-base',
'@fluentui/tokens',
'@rspack/binding-win32-arm64-msvc',
'velocity-animate',
'@cacheable/node-cache',
'@reach/visually-hidden',
'@sap/hdi',
'@antv/g2',
'http-post-message',
'powerbi-router',
'@pulumi/awsx',
'ml-distance',
'transformation-matrix',
'expo-media-library',
'success-symbol',
'react-native-markdown-display',
'log-ok',
'@parcel/reporter-cli',
'asar',
'posthtml-rename-id',
'@ag-grid-community/csv-export',
'deep-copy',
'ms-rest',
'@testing-library/svelte',
'testcafe-hammerhead',
'jasmine-marbles',
'@apollo/composition',
'express-promise-router',
'try-resolve',
'graphql-sock',
'cors-gate',
'@backstage/catalog-model',
'react-swipeable-views-core',
'babel-helper-vue-jsx-merge-props',
'insert-css',
'detect-it',
'svg-baker',
'@parcel/optimizer-terser',
'esotope-hammerhead',
'xterm-addon-fit',
'material-symbols',
'@replit/vite-plugin-cartographer',
'react-rx',
'typeson',
'outlayer',
'@biomejs/cli-win32-arm64',
'@ag-grid-community/styles',
'@mediapipe/tasks-vision',
'@trpc/next',
'@qdrant/js-client-rest',
'@wordpress/components',
'@netlify/redirect-parser',
'wheel-gestures',
'@types/ps-tree',
'@ckeditor/ckeditor5-editor-balloon',
'node',
'vega-label',
'http',
'@nuxtjs/eslint-config',
'@rspack/binding-win32-ia32-msvc',
'react-loader-spinner',
'call-matcher',
'@microsoft/applicationinsights-react-js',
'cm6-theme-basic-light',
'ttf2woff',
'collection-utils',
'freshlinks',
'@next-auth/prisma-adapter',
'webpack-remove-empty-scripts',
'compromise',
'@ckeditor/ckeditor5-restricted-editing',
'@ag-grid-enterprise/core',
'blueimp-load-image',
'@npmcli/disparity-colors',
'cdktf',
'inquirer-autocomplete-standalone',
'postcss-preset-mantine',
'@currents/playwright',
'@sanity/export',
'@ckeditor/ckeditor5-style',
'i18next-http-middleware',
'@loaders.gl/core',
'browserslist-load-config',
'@pact-foundation/pact',
'@heroui/framer-utils',
'unified-message-control',
'@anthropic-ai/mcpb',
'@mikro-orm/core',
'bmpimagejs',
'@clerk/clerk-react',
'ci-env',
'dts-bundle-generator',
'@types/enzyme-adapter-react-16',
'@ungap/url-search-params',
'@inngest/ai',
'@glimmer/wire-format',
'@tiptap/extension-collaboration',
'lodash.indexof',
'text-mask-addons',
'tsoa',
'react-keyed-flatten-children',
'@portabletext/to-html',
'bezier-js',
'@eth-optimism/core-utils',
'is-valid-app',
'@types/gitconfiglocal',
'@lexical/extension',
'accept-language',
'sequencify',
'@heroui/use-aria-button',
'@node-saml/passport-saml',
'pg-copy-streams',
'@types/interpret',
'@ckeditor/ckeditor5-find-and-replace',
'koa-etag',
'd3-cloud',
'jest-silent-reporter',
'crosspath',
'url-slug',
'@cfcs/core',
'microbuffer',
'normalize-wheel-es',
'wordnet-db',
'@wallet-standard/core',
'json-lexer',
'babel-merge',
'@types/jwk-to-pem',
'material-react-table',
'@types/gapi.auth2',
'nuxi',
'object-filter',
'@chakra-ui/skip-nav',
'@stacksjs/eslint-config',
'async-promise-queue',
'graphql-parse-resolve-info',
'@braintrust/core',
'@vanilla-extract/recipes',
'@types/backbone',
'@apollo/query-graphs',
'@anatine/zod-mock',
'react-oidc-context',
'connect-timeout',
'@reach/dialog',
'@electron-forge/template-base',
'request-oauth',
'@splidejs/splide',
'@progress/kendo-drawing',
'cargo-cp-artifact',
'@types/hyper-function-component',
'@ant-design/web3-common',
'@ant-design/web3-icons',
'grunt-contrib-jshint',
'babel',
'tsdx',
'rollup-plugin-uglify',
'karma-phantomjs-launcher',
'element-ui',
'rollup-plugin-vue',
'eslint-config-standard-react',
'gulp-mocha',
'np',
'babel-plugin-external-helpers',
'@size-limit/preset-small-lib',
'rollup-plugin-replace',
'react-addons-test-utils',
'rollup-plugin-json',
'@alifd/next',
'@angular/http',
'gulp-eslint',
'expect.js',
'download-git-repo',
'gulp-autoprefixer',
'babel-plugin-transform-decorators-legacy',
'awesome-typescript-loader',
'microbundle',
'gulp-typescript',
'tap-spec',
'@react-native-community/eslint-config',
'run-sequence',
'babel-plugin-transform-vue-jsx',
'eslint-friendly-formatter',
'gulp-plumber',
'@types/cookie-session',
'css-split-webpack-plugin',
'jshint-stylish',
'fast-sass-loader',
'@alifd/babel-preset-next',
'less-plugin-sass2less',
'@release-it/conventional-changelog',
'acertea',
'microbundle-crl',
'anywhere-dream',
'anything-kitchen-pack-tears',
'anywhere-leon',
'anywhere-dream-term',
'anywhere-leon-eth',
'anywhere-dream-demo',
'anywhere-leonterms',
'anywhere-leon-ethers',
'anywhere-leon-demo',
'anywhere-leon-web3',
'anywhere-leon-test',
'actually-web3-win',
'avoid-web3-plenty',
'alphabet-minute',
'ask-dropped-each',
'art-near-room-catch',
'anakjalanan',
'aid-guard1',
'gulp-jshint',
'load-grunt-tasks',
'karma-chai',
'@vue/cli-plugin-typescript',
'mocha-lcov-reporter',
'vinyl-source-stream',
'attempt-till-declared',
'action-winter-carried',
'according-he-proper',
'actually-plastic-driven',
'aid-human-declared',
'grunt-contrib-nodeunit',
'airplane-thus-web3-breathing',
'karma-sinon-chai',
'anyone-rule-certain',
'ember-cli',
'ember-cli-inject-live-reload',
'gulp-less',
'@vue/eslint-config-standard',
'broccoli-asset-rev',
'ember-cli-dependency-checker',
'babel-preset-latest',
'@storybook/addon-info',
'node-nats-streaming',
'ember-export-application-global',
'gulp-load-plugins',
'parcel-bundler',
'gulp-clean',
'gulp-clean-css',
'grunt-mocha-test',
'rollup-plugin-buble',
'tslint-config-standard',
'react-native-builder-bob',
'@vue/cli-plugin-unit-jest',
'ember-cli-uglify',
'ember-disable-prototype-extensions',
'rollup-plugin-url',
'pod-install',
'@types/chalk',
'gulp-istanbul',
'jsdoc-to-markdown',
'ember-cli-sri',
'rollup-plugin-filesize',
'ember-cli-qunit',
'along-disease5',
'atmosphere-repeat-web3-together',
'act-mark-sent6',
'ember-resolver',
'loader.js',
'ember-cli-htmlbars-inline-precompile',
'vuepress',
'ember-load-initializers',
'gulp-watch',
'yeoman-assert',
'anybody-office-web3-happened',
'available-percent-pride0',
'arrange-protection-round4',
'ancient-sun',
'attempt-band-club',
'istanbul-instrumenter-loader',
'eventsource-polyfill',
'phantomjs',
'rollup-plugin-scss',
'vinyl-buffer',
'yeoman-test',
'jscs',
'ember-try',
'progress-bar-webpack-plugin',
'rollup-plugin-typescript',
'tslint-react',
'ant-design-vue',
'babel-plugin-transform-object-assign',
'typings',
'documentation',
'babel-plugin-component',
'mockjs',
'toformat',
'nodeunit',
'tslint-eslint-rules',
'rollup-plugin-serve',
'tap-min',
'ember-source',
'vue-html-loader',
'isparta',
'power-assert',
'rollup-plugin-livereload',
'ember-data',
'grunt-contrib-connect',
'dumi',
'@rollup/plugin-url',
'chalk-animation',
'gulp-minify-css',
'@nomiclabs/hardhat-ethers',
'ember-cli-app-version',
'rollup-plugin-delete',
'rollup-plugin-eslint',
'karma-browserify',
'rollup-plugin-node-builtins',
'unbuild',
'@webcomponents/webcomponentsjs',
'gulp-cssmin',
'nsp',
'tslint-loader',
'travis-deploy-once',
'@vitest/coverage-c8',
'ember-ajax',
'babel-plugin-transform-jsbi-to-bigint',
'jasmine-node',
'@oclif/dev-cli',
'rollup-watch',
'ethereum-waffle',
'webpack-stream',
'babel-preset-react-native',
'bumpp',
'@oclif/test',
'tslint-config-airbnb',
'ttypescript',
'ember-cli-release',
'babel-preset-es2015-rollup',
'@babel/plugin-proposal-function-bind',
'karma-safari-launcher',
'postcss-cssnext',
'uppercamelcase',
'tsickle',
'ghooks',
'rollup-plugin-css-only',
'validate-commit-msg',
'@babel/plugin-proposal-pipeline-operator',
'ember-cli-eslint',
'eslint-config-egg',
'time-grunt',
'snazzy',
'@stdlib/bench',
'gulp-bump',
'nightwatch',
'svg-sprite-loader',
'@storybook/storybook-deployer',
'grunt-contrib-coffee',
'nwb',
'grunt-karma',
'@babel/plugin-proposal-do-expressions',
'@open-wc/testing',
'gulp-notify',
'gulp-shell',
'grunt-browserify',
'@typechain/ethers-v5',
'arts-dao',
'tslint-plugin-prettier',
'karma-sauce-launcher',
'eslint-plugin-ember',
'grunt-contrib-cssmin',
'prettier-eslint-cli',
'chai-spies',
'eslint-config-oclif',
'rollup-plugin-svelte',
'selenium-server',
'rollup-plugin-cleanup',
'grunt-eslint',
'eslint-config-custom',
'user',
'api-chatfb',
'api-chatfb-test',
'api-chat-fanpage-facebook',
'auto-changelog',
'@commitlint/config-angular',
'father',
'karma-ie-launcher',
'esdoc',
'@types/chalk-animation',
'rollup-plugin-node-globals',
'gulp-filter',
'rollup-plugin-sass',
'react-docgen-typescript-loader',
'father-build',
'inject-loader',
'grunt-release',
'autod',
'grunt-bump',
'ember-cli-shims',
'vows',
'sw-precache-webpack-plugin',
'ember-source-channel-url',
'egg-bin',
'gulp-connect',
'tsc',
'@web/test-runner',
'@types/figlet',
'eslint-plugin-svelte3',
'grunt-shell',
'@ckeditor/ckeditor5-dev-utils',
'@storybook/addon-postcss',
'@uniswap/v2-core',
'hapi',
'@angular-devkit/build-ng-packagr',
'gulp-imagemin',
'gulp-tslint',
'ember-maybe-import-regenerator',
'@umijs/test',
'babel-plugin-react-transform',
'codeclimate-test-reporter',
'dtslint',
'@web/dev-server',
'eslint-watch',
'babel-preset-es2017',
'lab',
'@nomiclabs/hardhat-waffle',
'solidity-coverage',
'cp-cli',
'@stencil/sass',
'json-templater',
'@types/commander',
'@sveltejs/package',
'@alib/build-scripts',
'gulp-size',
'esno',
'egg',
'prettier-plugin-solidity',
'@storybook/preset-scss',
'@polymer/polymer',
'remark-cli',
'karma-sinon',
'eslint-config-xo-space',
'faucet',
'egg-ci',
'codecov.io',
'0x0lobersyko',
'@ckeditor/ckeditor5-dev-webpack-plugin',
'flow-copy-source',
'react-styleguidist',
'gulp-debug',
'code',
'qunit-dom',
'semistandard',
'karma-babel-preprocessor',
'gulp-coveralls',
'@vue/eslint-config-airbnb',
'image-webpack-loader',
'karma-typescript',
'pinst',
'ember-cli-content-security-policy',
'all-contributors-cli',
'eslint-config-oclif-typescript',
'ember-cli-ic-ajax',
'downlevel-dts',
'@rollup/plugin-buble',
'precss',
'@types/mongoose',
'egg-mock',
'metalsmith',
'open-cli',
'vant',
'rollup-plugin-alias',
'doctoc',
'@ember/optional-features',
'test',
'react-testing-library',
'@storybook/addon-options',
'jest-enzyme',
'flow-typed',
'auto',
'live-server',
'datafire',
'gulp-coffee',
'bili',
'tslint-microsoft-contrib',
'aryacil',
'anakayam',
'@nomiclabs/hardhat-etherscan',
'@umijs/fabric',
'mockery',
'@types/tape',
'autoprefixer-loader',
'babel-preset-es2016',
'ember-qunit',
'typescript-eslint-parser',
'rollup-plugin-license',
'isparta-loader',
'blanket',
'eslint-plugin-typescript',
'script-loader',
'docdash',
'file-save',
'gulp-nsp',
'gulp-exclude-gitignore',
'material-ui',
'clean-package',
'jest-environment-jsdom-fourteen',
'dirty-chai',
'phosphor-react',
'angular-mocks',
'ali-oss',
'@evilmartians/lefthook',
'gulp-git',
'@ionic/prettier-config',
'api-facebooknew',
'gulp-changed',
'grunt-jscs',
'lite-server',
'solhint',
'prettier-plugin-java',
'ember-disable-proxy-controllers',
'gulp-install',
'gulp-livereload',
'@storybook/addon-notes',
'babel-preset-airbnb',
'hardhat-gas-reporter',
'pkg',
'@parcel/transformer-typescript-types',
'gulp-htmlmin',
'svg-inline-loader',
'are-objects',
'rollup-plugin-analyzer',
'are-arrays',
'rollup-plugin-auto-external',
'gulp-insert',
'babel-preset-react-hmre',
'bundlesize',
'grunt-contrib-less',
'grunt-babel',
'swiftlint',
'@ava/typescript',
'@polymer/iron-demo-helpers',
'@parcel/packager-ts',
'@ionic/swiftlint-config',
'gulp-jscs',
'@stdlib/random-base-randu',
'@vue/cli-plugin-unit-mocha',
'angular2-template-loader',
'analsorhost-simple-bs',
'markdown-it-chain',
'gulp-cssnano',
'autod-egg',
'@types/storybook__react',
'github-markdown-css',
'vue-markdown-loader',
'npm-watch',
'eslint-config-elemefe',
'bulma',
'postcss-pxtorem',
'truffle',
'@storybook/addon-storyshots',
'jest-dom',
'serialport',
'@typechain/hardhat',
'ts-helpers',
'babel-preset-es2015-loose',
'@storybook/vue',
'uglifyjs',
'to-string-loader',
'cz-customizable',
'remap-istanbul',
'build-plugin-fusion',
'karma-phantomjs-shim',
'babel-regenerator-runtime',
'homebridge',
'react-transform-hmr',
'@vue/composition-api',
'ink-docstrap',
'browserify-shim',
'@ionic/eslint-config',
'esdoc-standard-plugin',
'uglifyify',
'@ajhgwdjnpm/quia-harum-molestias-eos',
'@asdfgertyjhnpm/nesciunt-molestias-reprehenderit-occaecati',
'lodash-webpack-plugin',
'electron-css-injector',
'babel-istanbul',
'grunt-jsdoc',
'oclif',
'bs-platform',
'eslint-import-resolver-babel-module',
'trash-cli',
'@capacitor/docgen',
'@babel/preset-stage-0',
'rollup-plugin-ts',
'@aws-cdk/core',
'rollup-plugin-styles',
'babel-plugin-dev-expression',
'babel-plugin-transform-es3-property-literals',
'ember-auto-import',
'babel-plugin-transform-es3-member-expression-literals',
'minami',
'grunt-simple-mocha',
'qunitjs',
'node-static',
'chai-enzyme',
'budo',
'rollup-plugin-clear',
'react-scripts-ts',
'prettier-standard',
'rollup-plugin-babel-minify',
'tsify',
'@types/socket.io-client',
'docz',
'grunt-contrib-qunit',
'build-plugin-component',
'airdropfind',
'react-addons-css-transition-group',
'fibers',
'sirv-cli',
'ember-cli-jshint',
'ganache-cli',
'@open-wc/eslint-config',
'opn-cli',
'grunt-exec',
'dependency-check',
'happypack',
'@types/socket.io',
'@zerollup/ts-transform-paths',
'gulp-sequence',
'ember-cli-test-loader',
'gulp-browserify',
'@glimmer/component',
'grpc',
'zuul',
'@types/nock',
'clui',
'clean-css-cli',
'rollup-plugin-progress',
'themeprovider-storybook',
'emoji-100',
'jsx-loader',
'karma-requirejs',
'gulp-jasmine',
'gulp-zip',
'dts-bundle',
'babel-plugin-transform-react-constant-elements',
'web-animations-js',
'wrench',
'select-version-cli',
'@nuxt/module-builder',
'script-ext-html-webpack-plugin',
'@types/request-promise',
'stylelint-config-rational-order',
'grunt-contrib-compress',
'@microsoft/api-documenter',
'sass-resources-loader',
'gulp-line-ending-corrector',
'rollup-plugin-svg',
'unzip',
'grunt-contrib-jasmine',
'jest-puppeteer',
'rollup-plugin-uglify-es',
'rollup-plugin-import-css',
'unique-random-array',
'@kadira/storybook',
'umi',
'@react-native-community/bob',
'@glimmer/tracking',
'ember-template-lint',
'babel-preset-vue',
'coffeelint',
'markdown-loader',
'projen',
'babel-minify',
'rollup-plugin-size-snapshot',
'wct-browser-legacy',
'@rollup/plugin-eslint',
'eslint-plugin-functional',
'eslint-plugin-jasmine',
'hardhat-deploy',
'grunt-sass',
'gulp-ignore',
'ember-cli-template-lint',
'eslint-config-semistandard',
'@types/proxyquire',
'ignore-styles',
'@types/es6-promise',
'@custom-elements-manifest/analyzer',
'miniprogram-api-typings',
'@jupyterlab/application',
'vuetify-loader',
'@vue/cli-plugin-pwa',
'@nuxtjs/eslint-config-typescript',
'redbox-react',
'hubot',
'co-mocha',
'vue-cli-plugin-vuetify',
'@storybook/addon-styling',
'github',
'grunt-concurrent',
'fs-promise',
'codacy-coverage',
'@emotion/babel-preset-css-prop',
'string',
'conventional-github-releaser',
'@alifd/build-plugin-lowcode',
'grunt-webpack',
'karma-browserstack-launcher',
'@rollup/plugin-multi-entry',
'co-prompt',
'babel-tape-runner',
'git-cz',
'react-tap-event-plugin',
'pull-stream',
'eslint-define-config',
'ember-welcome-page',
'grunt-contrib-sass',
'gulp-rollup',
'ancient-cause-bright-foot',
'solhint-plugin-prettier',
'register-service-worker',
'karma-rollup-preprocessor',
'@arkweid/lefthook',
'@tarojs/taro',
'browserify-istanbul',
'prompt-sync',
'@hot-loader/react-dom',
'aside-doctor-origin-lot',
'average-different',
'article-steep',
'coffee-loader',
'webstorm-disable-index',
'author-wool-make',
'gulp-stylus',
'ability-aloud',
'again-week',
'automobile-might',
'afraid-pig-as',
'active-party-blew',
'almost-shut',
'stylelint-processor-styled-components',
'aloud-produce-world',
'again-email',
'gatsby-plugin-react-helmet',
'@storybook/html',
'again-week-web3',
'mocha-phantomjs',
'karma-coveralls',
'again-github',
'again-ethers',
'grunt-coffeelint',
'again-week-leon',
'nodegit',
'tslint-immutable',
'again-week-demo',
'again-eth',
'again-week-bill',
'again-week-test',
'@aws-cdk/assert',
'webpack-dashboard',
'style-resources-loader',
'@polymer/iron-component-page',
'tns-core-modules',
'cpr',
'grunt-jsbeautifier',
'gulp-template',
'@project-serum/anchor',
'testdouble',
'jsonlint',
'@rollup/plugin-strip',
'build-plugin-moment-locales',
'bootstrap-vue',
'fastclick',
'babel-preset-gatsby-package',
'@stdlib/math-base-special-pow',
'swig',
'@vue/cli-plugin-e2e-cypress',
'markdown',
'remark-lint',
'jsii-diff',
'@ant-design/icons-vue',
'gulp-gh-pages',
'grunt-ts',
'react-apollo',
'theme-ui',
'coz',
'react-tools',
'@angular/flex-layout',
'copy',
'nedb',
'gulp-flatten',
'gulp-nodemon',
'git-clone',
'@ajhgwdjnpm/quas-mollitia-aspernatur-reprehenderit',
'grunt-mocha-cli',
'antd-mobile',
'ts-generator',
'nib',
'@beisen/build',
'gulp-useref',
'grunt-mocha-istanbul',
'markdown-toc',
'babel-preset-power-assert',
'@web/test-runner-playwright',
'gatsby-plugin-sharp',
'fetch-jsonp',
'miniprogram-simulate',
'apollo-server',
'es-dev-server',
'@backstage/cli',
'@types/elliptic',
'@beisen/babel',
'browser-env',
'karma-remap-istanbul',
'@beisen/ts',
'vue-resource',
'@pancakeswap-libs/eslint-config-pancake',
'@stdlib/assert-is-browser',
'eslint-config-ckeditor5',
'@beisen/storybook',
'@beisen/storybook-react',
'gulp-streamify',
'asjrkslfs_01',
'asjrkslfs_03',
'exorcist',
'@beisen/webpack',
'@storybook/addon-console',
'gulp-minify',
'@types/execa',
'gulp-rimraf',
'karma-chai-spies',
'@types/assert',
'sass-lint',
'@types/ora',
'testem',
'grunt-newer',
'babel-plugin-rewire',
'@alicloud/tea-typescript',
'gulp-cached',
'@sindresorhus/tsconfig',
'stylelint-declaration-block-no-ignored-properties',
'eslint-config-ali',
'install-peers-cli',
'docco',
'ember-cli-sass',
'gulp-format-md',
'koa-mount',
'f2elint',
'copy-dir',
'aware-bigger-five',
'gulp-jsdoc3',
'karma-edge-launcher',
'@types/benchmark',
'anywhere-strength-disappear-plural',
'@alicloud/tea-util',
'semantic-ui-css',
'atomic-paper-web3-paint',
'reqwest',
'afraid-cowboy-web3-loose',
'hard-source-webpack-plugin',
'vue-clipboard2',
'ancient-hundred-equal-related',
'mocha-jsdom',
'ability-realize-bad9',
'@vitejs/plugin-react-refresh',
'alphabet-ability-student-pleasant',
'actually-cause-our5',
'babel-minify-webpack-plugin',
'tns-platform-declarations',
'coffee-coverage',
'rollup-plugin-cleaner',
'gulp-webpack',
'@ember/test-helpers',
'@beisen/italent-thunder',
'eslint-doc-generator',
'redux-devtools',
'@open-wc/testing-karma',
'ember-cli-terser',
'babel-plugin-inline-react-svg',
'less-plugin-npm-import',
'gulp-inline-ng2-template',
'@types/bs58',
'karma-remap-coverage',
'pug-loader',
'@react-microdata/item-factory',
'pouchdb',
'gulp-uglify-es',
'@polkadot/api',
'jsdoc-babel',
'babel-preset-babili',
'precommit-hook',
'@pika/pack',
'vconsole',
'gulp-ng-annotate',
'qiniu',
'after-though-raise',
'avoid-frame-managed',
'ethereumjs-wallet',
'eth-sig-util',
'storybook-readme',
'rollup-plugin-multi-input',
'material-design-icons',
'@uiw/react-md-editor',
'intelli-espower-loader',
'mocha-webpack',
'iview',
'agree-this-engine',
'ability-sky-web3-forth',
'apartment-identity-web3-valuable',
'ask-fox2',
'reactify',
'react-navigation',
'rollup-plugin-less',
'babelrc-rollup',
'gatsby-transformer-sharp',
'@babel/preset-es2015',
'rollup-plugin-includepaths',
'node-cmd',
'@11ty/eleventy',
'ape-tmpl',
'karma-html2js-preprocessor',
'remark-preset-lint-recommended',
'advice-who2',
'open-browser-webpack-plugin',
'safe-publish-latest',
'@pipedream/platform',
'rollup-plugin-multi-entry',
'react-custom-scrollbars',
'@openzeppelin/contracts-upgradeable',
'@asdfgertyjhnpm/a-unde-explicabo-eaque',
'npminstall',
'activity-tape',
'@jupyterlab/apputils',
'@asdfgertyjhnpm/accusantium-nostrum-fugiat-veniam',
'babel-plugin-transform-react-inline-elements',
'@ajhgwdjnpm/aut-at-nulla-perferendis',
'arrow-mice-plates0',
'@tarojs/components',
'react-transform-catch-errors',
'phantomjs-polyfill',
'node-red',
'angle-pupil',
'require-all',
'typescript-formatter',
'@types/gapi.client',
'eslint-config-alloy',
'rollup-plugin-string',
'load-grunt-config',
'parallelshell',
'eslint-config-xo-react',
'injectmock',
'ape-tasking',
'account-grabbed-answer',
'babel-plugin-tester',
'rc-tools',
'gulp-terser',
'unexpected',
'xe-utils',
'jison',
'uglify-save-license',
'grunt-conventional-changelog',
'ape-releasing',
'@girs/gobject-2.0',
'ape-updating',
'accurate-where-chicken',
'aegir',
'@types/eslint-plugin-prettier',
'@iobroker/adapter-core',
'umi-request',
'@types/shortid',
'gulp-webserver',
'@types/chokidar',
'jsii-docgen',
'view-design',
'affect-is-so-upper',
'rollup-plugin-bundle-size',
'grunt-autoprefixer',
'generate-changelog',
'eslint-config-react',
'write-file-webpack-plugin',
'karma-detect-browsers',
'@storybook/preset-typescript',
'gulp-csso',
'vinyl-paths',
'along-factory-root5',
'better-docs',
'changelogen',
'@polymer/test-fixture',
'adult-table-size-protection',
'extract-loader',
'truffle-hdwallet-provider',
'grunt-notify',
'@pika/plugin-build-node',
'ability-officer-web3-whale',
'blue-tape',
'esbuild-node-externals',
'google-closure-compiler',
'tape-run',
'gulp-rev',
'recursive-copy',
'@girs/glib-2.0',
'mocha-typescript',
'apollo-boost',
'@stencil/react-output-target',
'pug-plain-loader',
'gulp-inject',
'deep-assign',
'less-plugin-clean-css',
'gulp-typedoc',
'babel-plugin-transform-builtin-extend',
'compressing',
'babel-watch',
'gulp-tap',
'art-template',
'animal-daughter-pocket',
'grunt-env',
'ytdl-core',
'@stdlib/constants-float64-eps',
'@commitlint/prompt-cli',
'eslint-config-vue',
'@babel/preset-stage-2',
'arm-understanding-flag',
'sinon-as-promised',
'bulmaswatch',
'@antv/data-set',
'@types/url-join',
'vue-lazyload',
'chai-things',
'@types/es6-shim',
'grunt-banner',
'@types/html-webpack-plugin',
'rollup-plugin-istanbul',
'xhr-mock',
'hyperquest',
'enzyme-adapter-react-15',
'eslint-config-defaults',
'able-power-hardly0',
'nps',
'ionic-angular',
'eslint-plugin-qunit',
'feather-icons',
'@types/progress',
'atom-range-hour5',
'amount-studied-hunter-pan',
'gitbook-cli',
'jscoverage',
'vite-plugin-vue2',
'@types/listr',
'automobile-probably',
'eslint-find-rules',
'karma-qunit',
'tscpaths',
'@truffle/hdwallet-provider',
'against-you-answer',
'storybook-addon-designs',
'testcafe',
'@alifd/theme-2',
'jest-in-case',
'node-sass-tilde-importer',
'@wessberg/rollup-plugin-ts',
'xml2json',
'microtime',
'gatsby-image',
'typescript-tslint-plugin',
'@pancakeswap-libs/pancake-swap-core',
'aloud-organization-double-table',
'webpack-serve',
'adjective-chamber-web3-window',
'angular-in-memory-web-api',
'karma-opera-launcher',
'preact-compat',
'@types/through2',
'better-scroll',
'rollup-plugin-local-resolve',
'add-asset-html-webpack-plugin',
'@types/karma',
'@types/power-assert',
'@types/reflect-metadata',
'grunt-replace',
'@stdlib/error-tools-fmtprodmsg',
'adventure-dig-five-hearing',
'fork-ts-checker-webpack-plugin-alt',
'again-car-web3-enjoy',
'@umijs/lint',
'bcrypt-nodejs',
'agree-go-spite',
'after-met-ready',
'@storybook/addon-centered',
'@iobroker/testing',
'@embroider/test-setup',
'eslint-plugin-no-null',
'scss-loader',
'expo-module-scripts',
'gulp-copy',
'@commitlint/travis-cli',
'bizcharts',
'@oclif/tslint',
'ability-somewhere-accept-mud',
'accident-vessels',
'electron-prebuilt',
'less-plugin-autoprefix',
'another-beginning-send5',
'@aws-cdk/aws-iam',
'jest-css-modules',
'afternoon-walk-gray-motion',
'ipfs-http-client',
'almost-mainly-climate',
'pkg-install',
'publish-please',
'gulp-run',
'able-sink-power-sitting',
'@types/colors',
'type-coverage',
'randomcolor',
'ts-standard',
'action-cage',
'electron-packager',
'anyone-sets-practice',
'vue-axios',
'@alcalzone/release-script',
'customize-cra',
'@aws-cdk/aws-lambda',
'jit-grunt',
'forever',
'@types/loader-utils',
'adult-ground',
'eslint-plugin-import-helpers',
'anywhere-handle-web3-worry',
'@types/mini-css-extract-plugin',
'rollup-plugin-external-globals',
'@metamask/eslint-config',
'wangeditor',
'jasmine-ts',
'@tensorflow/tfjs',
'minify',
'article-ahead-means-entirely',
'vue-quill-editor',
'ability-star-writing1',
'enquire-js',
'@ava/babel',
'answer-ahead-mother-yes',
'wct-mocha',
'gulp-angular-templatecache',
'@nomicfoundation/hardhat-toolbox',
'appearance-vapor-getting0',
'polymer-cli',
'svelte-loader',
'anywhere-forward5',
'@ionic-native/core',
'activity-becoming-round-fell',
'gulp-file',
'ape-reporting',
'actual-sail-field',
'websocket-stream',
'semantic-release-cli',
'jsonml.js',
'@types/storybook__addon-info',
'@hapi/lab',
'airplane-what-ship',
'away-bowl-web3-pool',
'@rushstack/eslint-config',
'nightmare',
'testling',
'postcss-px-to-viewport',
'ganache-core',
'rax',
'@ice/screenshot',
'@phosphor/widgets',
'appearance-oldest-aware-fellow',
'announced-myself-running1',
'estraverse-fb',
'applied-fifty-part',
'radium',
'ngrok',
'aloud-check-fastened-opinion',
'vue-cli-plugin-element',
'prettier-plugin-jsdoc',
'@uniswap/token-lists',
'react-emotion',
'arrive-felt-web3-second',
'browser-sync-webpack-plugin',
'adventure-can-effect-opportunity',
'broccoli-ember-hbs-template-compiler',
'after-heavy-web3-son',
'esdoc-ecmascript-proposal-plugin',
'although-improve',
'available-cowboy-web3-vessels',
'react-document-title',
'less-vars-to-js',
'activity-principal-web3-who',
'prettier-package-json',
'all-fresh-fellow-easier',
'animal-dirty-further',
'@stdlib/math-base-special-floor',
'karma-script-launcher',
'aid-cloud-doctor',
'@nomicfoundation/hardhat-chai-matchers',
'cli-table2',
'react-live',
'gulp-karma',
'hardhat-contract-sizer',
'tinyify',
'travis-cov',
'snowpack',
'grunt-contrib-requirejs',
'aboard-leave-web3-lesson',
'apart-off',
'react-svg-loader',
'ate-floor-web3-learn',
'postcss-salad',
'gluegun',
'gulp-pug',
'vxe-table',
'babel-plugin-array-includes',
'chai-datetime',
'activity-strike-share1',
'gulp-newer',
'arm-road-mine-planet',
'highland',
'typedoc-plugin-external-module-name',
'@types/tap',
'gulp-open',
'@hapi/code',
'attention-union9',
'babel-plugin-root-import',
'fetch',
'@aws-sdk/client-documentation-generator',
'@commitlint/prompt',
'rome',
'accident-potatoes-but-basis',
'wd',
'webpack-visualizer-plugin',
'ate-thou-cannot',
'ants-union-himself-believed',
'arrow-but-vowel0',
'among-report-see-reader',
'among-honor-nation-arrow',
'must',
'act-naturally-rose-darkness',
'age-alphabet',
'hiredis',
'tslint-consistent-codestyle',
'announced-deal-web3-cast',
'actually-low8',
'army-factory',
'postcss-color-function',
'@pika/plugin-build-web',
'@types/mockjs',
'tsm',
'against-large-web3-went',
'aside-vowel-oldest',
'typedoc-plugin-missing-exports',
'@webpack-cli/generators',
'grunt-coveralls',
'@esm-bundle/chai',
'bundle-loader',
'dva',
'are-in',
'gulp-gzip',
'@types/qunit',
'accurate-scale-dark-weight',
'@stdlib/math-base-special-round',
'atomic-material1',
'docz-theme-default',
'karma-coffee-preprocessor',
'monaco-jsx-highlighter',
'afternoon-quickly-current-return',
'babel-plugin-react-require',
'action-leave3',
'babel-plugin-css-modules-transform',
'prepend-file',
'anybody-moment-paragraph-soft',
'clang-format',
'ability-short-mind',
'@girs/gio-2.0',
'livereload',
'atom-diagram-wonderful',
'allow-horn-about',
'atmosphere-balloon-web3-longer',
'attempt-escape',
'gulp-jade',
'vorpal',
'eslint-plugin-fp',
'against-closer',
'@angular/upgrade',
'@types/web3',
'node-loader',
'grunt-mocha',
'gzip-size-cli',
'docsify-cli',
'directory-tree',
'library.min.js',
'@metamask/auto-changelog',
'connect-mongo',
'attached-shut-lose',
'mocha-loader',
'vue-codemirror',
'colorful',
'alphabet-forth-needle',
'@iceworks/spec',
'eslint-plugin-lit',
'appearance-wealth-wing8',
'terminal-kit',
'@jupyterlab/builder',
'@web/dev-server-storybook',
'@types/typescript',
'grunt-open',
'prettier-stylelint',
'activity-settle-rabbit0',
'gulp-tag-version',
'viewerjs',
'@tinymce/tinymce-vue',
'aloud-knowledge-web3-prepare',
'node-persist',
'account-clock-smoke',
'quasar',
'bpmn-js',
'supervisor',
'systemjs-builder',
'anybody-appearance-clearly-go',
'dts-generator',
'about-hope-fighting8',
'action-salt-command',
'handlebars-loader',
'uglifycss',
'air-palace-shine',
'@storybook/addon-jest',
'eslint-config-xo-typescript',
'babel-plugin-transform-rename-import',
'rc-tween-one',
'any-grown-shall',
'css-mqpacker',
'author-wife-web3-pilot',
'g',
'karma-html-reporter',
'vue-cropper',
'area-pig-pour',
'atomic-bright-within-dish',
'@sap-cloud-sdk/odata-common',
'glamor',
'appearance-breathe-invented6',
'aloud-giant-draw',
'n8n-workflow',
'@types/node-sass',
'advice-modern-claws',
'arrangement-balance-weak',
'atom-number-eye',
'anyway-nearest-hide6',
'@types/yaml',
'announced-roof-brave4',
'apartment-brick',
'@nuxt/types',
'dox',
'angular-animate',
'vue-awesome-swiper',
'again-generally-grew',
'docsearch.js',
'around-separate-path-require',
'istanbul-harmony',
'answer-dozen-thing9',
'hdkey',
'@webcomponents/custom-elements',
'again-perhaps-plain3',
'n8n-core',
'@zeit/ncc',
'atom-wise-web3-paid',
'babel-plugin-annotate-pure-calls',
'webpack-md5-hash',
'mocha-istanbul',
'availnode',
'rollup-plugin-typescript-paths',
'single-line-log',
'additional-learn-character-wood',
'area-zero-tightly-top',
'appearance-nodded-wave-memory',
'node-red-node-test-helper',
'wiredep',
'babel-plugin-react-intl',
'@sveltejs/adapter-static',
'react-github-button',
'ape-testing',
'better-npm-run',
'inert',
'addition-government-rule',
'@rushstack/heft',
'arrow-brick',
'@uniswap/sdk-core',
'art-introduced-poet0',
'bigi',
'rucksack-css',
'announced-frame-office0',
'prettier-check',
'@types/source-map',
'above-slightly-web3-example',
'poi',
'able-above-left-care',
'@open-wc/building-rollup',
'again-basis-indeed-minerals',
'another-while-when3',
'attempt-flew-badly-nobody',
'ape-covering',
'anything-great-web3-swept',
'@stryker-mutator/core',
'@sap-cloud-sdk/core',
'urlencode',
'babel-plugin-transform-remove-strict-mode',
'alive-sell-roof-stairs',
'gulp-minify-html',
'gulp-wrap',
'prebuild',
'semantic-release-monorepo',
'save',
'rc-queue-anim',
'copy-paste',
'aside-thing-web3-mean',
'babel-preset-es2015-node4',
'@antv/g6',
'scss',
'@react-native-community/async-storage',
'gulp-cache',
'allow-being-driving',
'pem',
'@vue/cli',
'offline-plugin',
'gatsby-plugin-manifest',
'@openzeppelin/test-helpers',
'eslint-plugin-vue-libs',
'express-ws',
'@polkadot/util',
'@stencil/utils',
'connect-multiparty',
'node-sass-chokidar',
'bundle-collapser',
'duplicate-package-checker-webpack-plugin',
'react-sticky',
'sleep',
'restler',
'virtual-dom',
'phantom',
'sprintf',
'eslint-plugin-sort-imports-es6-autofix',
'nps-utils',
'broccoli',
'@types/rollup-plugin-peer-deps-external',
'derequire',
'autoprefixer-core',
'passport-oauth',
'cli-welcome',
'mocha-sinon',
'grunt-contrib-htmlmin',
'tracer',
'rax-view',
'bisheng',
'babel-env',
'string-replace-webpack-plugin',
'jspm',
'answer-front-tin',
'@jswork/gulp-pkg-header',
'eslint-plugin-nuxt',
'answer-again',
'arm-stick-web3-donkey',
'@metamask/eslint-config-nodejs',
'@angularclass/hmr',
'eslint-plugin-optimize-regex',
'eslint-plugin-prefer-object-spread',
'babel-plugin-typecheck',
'@tsconfig/react-native',
'grunt-saucelabs',
'attached-bear-water',
'active-whole-follow3',
'air-left-river',
'@stdlib/process-exec-path',
'add-local-binaries-path',
'angular-ui-router',
'grunt-text-replace',
'@iconify/json',
'@walletconnect/web3-provider',
'actual-pocket-wrote5',
'adjective-crop9',
'hardhat-typechain',
'vite-plugin-solid',
'@ice/spec',
'bitcore-lib',
'@types/mz',
'@storybook/web-components',
'ants-desk-factory',
'karma-env-preprocessor',
'@types/nanoid',
'@nomicfoundation/hardhat-network-helpers',
'affect-win-experiment',
'gulp-coffeelint',
'react-addons-pure-render-mixin',
'attached-someone-web3-medicine',
'web3-provider-engine',
'grpc-tools',
'@types/app-root-path',
'also-personal-reach0',
'azure-storage',
'@vuepress/plugin-back-to-top',
'stylelint-config-ckeditor5',
'at-married-tobacco9',
'@types/yeoman-generator',
'rax-text',
'@types/clear',
'argx',
'among-break3',
'runjs',
'rollup-plugin-gzip',
'at-pack-buffalo',
'storybook-addon-jsx',
'yaml-front-matter',
'openzeppelin-solidity',
'@types/webpack-merge',
'hardhat-abi-exporter',
'random-access-memory',
'attached-pink-alone-leader',
'@types/jest-environment-puppeteer',
'ability-hit-before',
'jest-coverage-badges',
'sails',
'eslint-config-taro',
'assemblyscript',
'@pika/plugin-standard-pkg',
'babel-plugin-transform-es5-property-mutators',
'chai-fs',
'almost-single-myself4',
'answer-source-have',
'are-happen-powerful-equipment',
'@alicloud/openapi-client',
'@tailwindcss/postcss7-compat',
'avoid-clearly-sun-color',
'able-about-lying-herself',
'wolfy87-eventemitter',
'bisheng-plugin-react',
'am-roll-dull',
'@stdlib/utils-try-require',
'filemanager-webpack-plugin',
'all-express',
'age-fur-rapidly',
'jasmine-ajax',
'pre-git',
'angle-wooden-better0',
'unirest',
'avip-string-length',
'@lumino/widgets',
'react-fontawesome',
'flow',
'along-nation-fireplace',
'gulp-concat-css',
'@types/validate-npm-package-name',
'babili-webpack-plugin',
'-',
'ember-cli-github-pages',
'@umijs/preset-react',
'karma-chai-sinon',
'@jupyterlab/coreutils',
'gulp-conflict',
'simulant',
'gatsby-plugin-mdx',
'gulp-help',
'avoid-breath',
'@rbxts/types',
'jsonld',
'eslint-plugin-es5',
'@metamask/eslint-config-jest',
'passport-facebook',
'mobile-detect',
'vite-plugin-svg-icons',
'above-eaten-apartment',
'tslint-sonarts',
'@web3-react/types',
'babel-plugin-react-css-modules',
'remark-preset-wooorm',
'publish',
'rollup-plugin-flow',
'@alcalzone/release-script-plugin-license',
'ember-truth-helpers',
'alone-plastic',
'@types/aws-sdk',
'gulpclass',
'automobile-influence-water2',
'pre-push',
'@types/echarts',
'rollup-plugin-summary',
'adventure-television-dark2',
'unminified-webpack-plugin',
'about-since-giant',
'aphrodite',
'babel-plugin-transform-proto-to-assign',
'acres-obtain-sent',
'@types/should',
'hubot-test-helper',
'angular2',
'avoid-per',
'lazypipe',
'@jswork/next',
'@metamask/eslint-config-typescript',
'around-essential-world-garden',
'es-check',
'roboto-fontface',
'@polymer/iron-icon',
'jest-environment-jsdom-sixteen',
'unplugin-vue-define-options',
'vscode',
'@babel/plugin-transform-react-inline-elements',
'grunt-gh-pages',
'core-decorators',
'666-tea',
'aid-throughout-golden',
'grunt-postcss',
'selenium-standalone',
'@openzeppelin/hardhat-upgrades',
'@react-native-community/masked-view',
'@alcalzone/release-script-plugin-iobroker',
'expresso',
'gatsby-transformer-remark',
'@types/koa-static',
'koa-views',
'anything-main-hunt-die',
'air-one-accurate-wolf',
'activity-automobile-word',
'loopback',
'libxmljs',
'react-native-elements',
'able-low-web3-memory',
'npx',
'according-stretch-here',
'babel-standalone',
'bisheng-plugin-description',
'webpack-shell-plugin',
'japa',
'arrangement-because-coat5',
'vue-svg-loader',
'seneca',
'lodash.range',
'vite-plugin-md',
'jslint',
'gulp-stylelint',
'grunt-jsonlint',
'st',
'surge',
'deepcopy',
'babel-plugin-espower'
]
| wooorm/npm-high-impact | 100 | The high-impact (popular) packages of npm | JavaScript | wooorm | Titus | |
script/build-top-dependent.js | JavaScript | /* eslint-disable no-await-in-loop */
/**
* @import {ResultDependentPackagesCount} from './crawl-packages.js'
*/
import fs from 'node:fs/promises'
/** @type {Array<ResultDependentPackagesCount>} */
const data = []
let chunk = 0
while (true) {
const basename = 'dependent-packages-count-' + chunk + '.json'
const file = new URL('../data/' + basename, import.meta.url)
try {
const chunkData = /** @type {Array<ResultDependentPackagesCount>} */ (
JSON.parse(String(await fs.readFile(file, 'utf8')))
)
data.push(...chunkData)
console.log('loaded chunk %s, total %s', chunk, data.length)
chunk++
} catch (error) {
if (
error &&
typeof error === 'object' &&
'code' in error &&
error.code === 'ENOENT'
) {
console.log('no more chunks, exiting at %s', chunk)
break
}
throw error
}
}
// The data is already sorted on most-depended-on first.
const result = data.map((d) => d.name)
await fs.writeFile(
new URL('../lib/top-dependent.js', import.meta.url),
'export const topDependent = ' + JSON.stringify(result, undefined, 2) + '\n'
)
| wooorm/npm-high-impact | 100 | The high-impact (popular) packages of npm | JavaScript | wooorm | Titus | |
script/build-top-download.js | JavaScript | /* eslint-disable no-await-in-loop */
/**
* @import {ResultDownloads} from './crawl-packages.js'
*/
import fs from 'node:fs/promises'
/** @type {Array<ResultDownloads>} */
const data = []
let chunk = 0
while (true) {
const basename = 'downloads-' + chunk + '.json'
const file = new URL('../data/' + basename, import.meta.url)
try {
const chunkData = /** @type {Array<ResultDownloads>} */ (
JSON.parse(String(await fs.readFile(file, 'utf8')))
)
data.push(...chunkData)
console.log('loaded chunk %s, total %s', chunk, data.length)
chunk++
} catch (error) {
if (
error &&
typeof error === 'object' &&
'code' in error &&
error.code === 'ENOENT'
) {
console.log('no more chunks, exiting at %s', chunk)
break
}
throw error
}
}
// The data is already sorted on most-downloaded first.
const result = data.map((d) => d.name)
await fs.writeFile(
new URL('../lib/top-download.js', import.meta.url),
'export const topDownload = ' + JSON.stringify(result, undefined, 2) + '\n'
)
| wooorm/npm-high-impact | 100 | The high-impact (popular) packages of npm | JavaScript | wooorm | Titus | |
script/build-top.js | JavaScript | import fs from 'node:fs/promises'
import {topDependent} from '../lib/top-dependent.js'
import {topDownload} from '../lib/top-download.js'
const result = [...new Set([...topDownload, ...topDependent])]
await fs.writeFile(
new URL('../lib/top.js', import.meta.url),
'export const top = ' + JSON.stringify(result, null, 2) + '\n'
)
| wooorm/npm-high-impact | 100 | The high-impact (popular) packages of npm | JavaScript | wooorm | Titus | |
script/crawl-packages.js | JavaScript | /* eslint-disable max-depth */
/* eslint-disable camelcase */
/* eslint-disable no-await-in-loop */
/**
* @typedef Package
* @property {number} dependent_packages_count
* @property {number} downloads
* @property {string} name
*
* @typedef ResultDependentPackagesCount
* @property {number} dependent_packages_count
* @property {string} name
*
* @typedef ResultDownloads
* @property {number} downloads
* @property {string} name
*
* @typedef {ResultDependentPackagesCount | ResultDownloads} Result
*
* @typedef Search
* @property {Exclude<keyof Package, 'name'>} field
* @property {number} min
*/
import assert from 'node:assert/strict'
import fs from 'node:fs/promises'
/** @type {ReadonlyArray<Search>} */
const searches = [
{field: 'downloads', min: 1_000_000},
{field: 'dependent_packages_count', min: 500}
]
for (const {field, min} of searches) {
console.log('search for packages w/ `%s` more than `%s`', field, min)
const stem = field.replaceAll('_', '-')
/** @type {string | undefined} */
let next =
'https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages?' +
new URLSearchParams({
mailto: 'tituswormer@gmail.com',
order: 'desc',
page: '1',
per_page: '400',
sort: field
})
/** @type {Array<Result>} */
const results = []
let total = 0
let chunks = 0
while (next) {
let rateLimitRemaining = Infinity
/** @type {ReadonlyArray<Package> | undefined} */
let maybeResult
try {
console.log('going to: %s', next)
const response = await fetch(next)
maybeResult = /** @type {ReadonlyArray<Package>} */ (
await response.json()
)
const page = response.headers.get('current-page')
assert.ok(page)
const link = response.headers.get('link')
next = link?.match(/<([^>]+)>;\s*rel="next"/)?.[1]
/** @type {number | undefined} */
let lastValue
for (const pkg of maybeResult) {
const value = pkg[field]
if (typeof value !== 'number' || Number.isNaN(value) || value === 0) {
console.log(
' package `%s`: invalid value for field `%s` (`%s`), ignoring',
pkg.name,
field,
value
)
continue
}
if (value < min) {
console.log(
' package `%s`: value for field `%s` (`%s`) below minimum (`%s`), stopping',
pkg.name,
field,
value,
min
)
next = undefined
break
}
lastValue = value
results.push(
field === 'dependent_packages_count'
? {dependent_packages_count: value, name: pkg.name}
: {downloads: value, name: pkg.name}
)
}
console.log(
'%s page: %s; total: %s; last value: %s',
field,
page,
results.length,
lastValue
)
rateLimitRemaining = Number(
response.headers.get('x-ratelimit-remaining') || '0'
)
} catch (error) {
console.log('error %s, waiting 10m', error, maybeResult)
await sleep(10 * 60 * 1000)
}
if (rateLimitRemaining < 1) {
console.log('rate limit reached, waiting 10m')
await sleep(10 * 60 * 1000)
}
// Avoid data loss and save memory.
if (results.length > 10_000) {
const basename = stem + '-' + chunks + '.json'
await fs.writeFile(
new URL('../data/' + basename, import.meta.url),
JSON.stringify(results, undefined, 2) + '\n'
)
total += results.length
console.log('saved %s (total %s)', basename, total)
chunks++
results.length = 0
}
}
const basename = stem + '-' + chunks + '.json'
await fs.writeFile(
new URL('../data/' + basename, import.meta.url),
JSON.stringify(results, undefined, 2) + '\n'
)
total += results.length
console.log('saved %s (total %s)', basename, total)
chunks++
console.log('done! %s', total)
}
/**
* @param {number} ms
*/
async function sleep(ms) {
await new Promise(function (resolve) {
setTimeout(resolve, ms)
})
}
| wooorm/npm-high-impact | 100 | The high-impact (popular) packages of npm | JavaScript | wooorm | Titus | |
test.js | JavaScript | import assert from 'node:assert/strict'
import test from 'node:test'
import {npmHighImpact, npmTopDependents, npmTopDownloads} from 'npm-high-impact'
test('npmHighImpact', function () {
assert.ok(Array.isArray(npmHighImpact), 'should be a list')
assert.ok(
npmHighImpact.includes('supports-color'),
'should include pop packages'
)
})
test('npmTopDependents', function () {
assert.ok(Array.isArray(npmTopDependents), 'should be a list')
assert.ok(
npmTopDependents.includes('typescript'),
'should include pop packages'
)
})
test('npmTopDownloads', function () {
assert.ok(Array.isArray(npmTopDownloads), 'should be a list')
assert.ok(
npmTopDownloads.includes('supports-color'),
'should include pop packages'
)
})
| wooorm/npm-high-impact | 100 | The high-impact (popular) packages of npm | JavaScript | wooorm | Titus | |
babel.config.cjs | JavaScript | module.exports = {
presets: [['@babel/preset-react', {runtime: 'automatic'}]]
}
| wooorm/server-components-mdx-demo | 123 | React server components + MDX | JavaScript | wooorm | Titus | |
index.css | CSS | :root {
--ff-sans: system-ui;
--ff-mono: 'San Francisco Mono', 'Monaco', 'Consolas', 'Lucida Console',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
--gray-0: #fafbfc;
--gray-2: #e1e4e8;
--gray-4: #959da5;
--gray-6: #586069;
--gray-8: #2f363d;
--gray-10: #1b1f23;
--blue-4: #2188ff;
--blue-5: #0366d6;
--hl: var(--blue-5);
}
* {
line-height: calc(1em + 1ex);
box-sizing: border-box;
}
html {
color-scheme: light dark;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
word-wrap: break-word;
font-kerning: normal;
font-family: var(--ff-sans);
font-feature-settings: 'kern', 'liga', 'clig', 'calt';
}
button,
input {
font-family: inherit;
font-size: inherit;
}
kbd,
pre,
code {
font-family: var(--ff-mono);
font-feature-settings: normal;
font-size: smaller;
}
body {
background-color: var(--gray-0);
margin: 0;
}
main {
width: 100%;
max-width: calc(36 * (1em + 1ex));
margin: calc(2em + 2ex) auto;
padding: 0 calc(1em + 1ex);
}
h1,
h2,
h3,
h4,
h5,
h6,
strong,
th {
font-weight: 600;
letter-spacing: 0.0125em;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
hr,
pre,
table,
blockquote {
margin: calc(1em + 1ex) 0;
}
summary {
cursor: pointer;
}
h1 {
font-size: 2.5em;
margin-top: calc(0.4em + 0.7ex);
margin-bottom: calc(0.4em + 0.7ex);
padding-bottom: calc(0.2em + 0.2ex);
}
h2 {
font-size: 2em;
margin-top: calc(0.5 * (1em + 1.25ex));
margin-bottom: calc(0.5 * (1em + 1.25ex));
padding-bottom: calc(0.25 * (1em + 1ex));
}
h1,
h2 {
border-bottom: 1px solid var(--gray-2);
}
h3 {
font-size: 1.5em;
margin-top: calc(0.6667 * (1em + 1.16667ex));
margin-bottom: calc(0.6667 * (1em + 1.16667ex));
}
h4 {
font-size: 1.25em;
margin-top: calc(0.8 * (1em + 1.1ex));
margin-bottom: calc(0.8 * (1em + 1.1ex));
}
h6 {
color: var(--gray-4);
}
img,
svg {
max-width: 100%;
background-color: transparent;
}
img[align='right'] {
padding-left: calc(1em + 1ex);
}
img[align='left'] {
padding-right: calc(1em + 1ex);
}
kbd {
background-color: var(--gray-0);
border: 1px solid var(--gray-2);
border-radius: 3px;
box-shadow: inset 0 -1px 0 var(--gray-4);
color: var(--gray-8);
padding: 0.2em 0.4em;
vertical-align: middle;
}
pre {
word-wrap: normal;
background-color: rgba(0, 0, 0, 0.04);
overflow: auto;
padding: calc(1em + 1ex);
margin-left: calc(-1 * (1em + 1ex));
margin-right: calc(-1 * (1em + 1ex));
font-size: inherit;
}
blockquote pre,
li pre {
border-radius: 3px;
margin-left: 0;
margin-right: 0;
}
code {
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
padding: 0.2em 0.4em;
}
pre code {
background-color: transparent;
padding: 0;
white-space: pre;
word-break: normal;
overflow: visible;
word-wrap: normal;
}
hr {
background-color: rgba(0, 0, 0, 0.04);
border: 0;
border-radius: 3px;
height: calc(0.25 * (1em + 1ex));
}
table {
border-collapse: collapse;
border-spacing: 0;
display: block;
overflow: auto;
width: 100%;
font-variant-numeric: lining-nums;
}
tr {
background-color: var(--gray-0);
border-top: 1px solid var(--gray-4);
}
tr:nth-child(2n) {
background-color: var(--gray-2);
}
td,
th {
border: 1px solid var(--gray-4);
padding: 0.4em 0.8em;
}
blockquote {
color: var(--gray-8);
padding-left: calc(1 * (1em + 1ex));
position: relative;
}
blockquote::before {
content: '';
display: block;
width: calc(0.25 * (1em + 1ex));
height: 100%;
background-color: var(--gray-2);
border-radius: 3px;
position: absolute;
left: 0;
}
ol,
ul {
padding-left: 0;
}
ul ul,
ol ul,
ul ol,
ol ol {
margin-top: 0;
margin-bottom: 0;
}
ul {
list-style-type: circle;
}
ol {
list-style-type: decimal;
}
ul ul {
list-style-type: disc;
}
ul ul ul {
list-style-type: square;
}
ol ol {
list-style-type: lower-roman;
}
ol ol ol {
list-style-type: lower-alpha;
}
li {
word-wrap: break-all;
margin-top: calc(0.25 * (1em + 1ex));
margin-bottom: calc(0.25 * (1em + 1ex));
margin-left: calc(1 * (1em + 1ex));
}
.task-list-item {
list-style-type: none;
margin-left: 0;
}
.task-list-item input {
margin: 0;
margin-right: calc(0.25 * (1em + 1ex));
}
dt {
font-style: italic;
margin-bottom: 0;
}
dt + dt {
margin-top: 0;
}
dd {
margin-top: 0;
padding: 0 calc(1em + 1ex);
}
a {
color: var(--hl);
transition: 200ms;
transition-property: color;
}
a:hover,
a:focus {
color: inherit;
}
button {
outline: 0;
padding: calc(0.25 * (1em + 1ex)) calc(0.5 * (1em + 1ex));
border-radius: 3px;
border: 1px solid var(--gray-2);
color: var(--gray-10);
transition: 200ms;
transition-property: color, background-color, border-color, box-shadow;
font-weight: 400;
background-color: var(--gray-0);
}
button:hover,
button:focus,
button:active {
border-color: var(--hl);
}
button:active {
background-color: var(--hl);
color: var(--gray-0);
}
button:active,
button:focus {
box-shadow: 0 0 0 0.2em rgba(3, 102, 214, 0.3); /* --blue-5 */
}
/* Fix that confetti. */
canvas {
position: fixed !important;
inset: 0 !important;
}
#payload {
margin: calc(1em + 1em) auto;
}
@media (prefers-color-scheme: dark) {
:root {
--hl: var(--blue-4);
}
body {
background-color: var(--gray-10);
color: var(--gray-2);
}
h1,
h2 {
border-bottom-color: var(--gray-6);
}
kbd {
background-color: rgba(0, 0, 0, 0.2);
border-color: var(--gray-8);
box-shadow: inset 0 -1px 0 black;
color: var(--gray-2);
}
pre {
background-color: rgba(0, 0, 0, 0.2);
}
code {
background-color: rgba(0, 0, 0, 0.2);
}
hr {
background-color: rgba(0, 0, 0, 0.2);
}
tr {
background-color: var(--gray-10);
border-top-color: var(--gray-6);
}
tr:nth-child(2n) {
background-color: var(--gray-8);
}
td,
th {
border-color: var(--gray-6);
}
blockquote {
color: var(--gray-4);
}
blockquote::before {
background-color: rgba(0, 0, 0, 0.2);
}
button {
color: var(--gray-0);
border-color: currentcolor;
background-color: transparent;
}
button:hover,
button:focus,
button:active {
border-color: var(--hl);
}
button:active {
background-color: var(--hl);
color: var(--gray-0);
}
}
@media (min-width: 40em) {
html {
font-size: 1.125em;
}
}
@media (min-width: 64em) {
blockquote,
ol,
ul {
margin-left: calc(-1 * (1em + 1ex));
}
ol blockquote,
ul blockquote,
blockquote blockquote,
ol ol,
ul ol,
blockquote ol,
ol ul,
ul ul,
blockquote ul {
margin-left: 0;
}
}
| wooorm/server-components-mdx-demo | 123 | React server components + MDX | JavaScript | wooorm | Titus | |
node-loader-wo-react.config.js | JavaScript | import * as xdm from 'xdm/esm-loader.js'
import * as babel from '@node-loader/babel'
const loader = {loaders: [xdm, babel]}
export default loader
| wooorm/server-components-mdx-demo | 123 | React server components + MDX | JavaScript | wooorm | Titus | |
node-loader.config.js | JavaScript | import * as xdm from 'xdm/esm-loader.js'
import * as babel from '@node-loader/babel'
import * as serverDomWebpack from 'react-server-dom-webpack/node-loader'
const loader = {loaders: [serverDomWebpack, xdm, babel]}
export default loader
| wooorm/server-components-mdx-demo | 123 | React server components + MDX | JavaScript | wooorm | Titus | |
script/bundle.js | JavaScript | #!/usr/bin/env node
import fs from 'node:fs'
import url from 'node:url'
import path from 'node:path'
import process from 'node:process'
import webpack from 'webpack'
import ReactServerWebpackPlugin from 'react-server-dom-webpack/plugin'
const production = process.env.NODE_ENV === 'production'
fs.mkdirSync('build', {recursive: true})
fs.copyFileSync('index.css', 'build/index.css')
fs.copyFileSync('og.png', 'build/og.png')
webpack(
{
mode: production ? 'production' : 'development',
devtool: production ? 'source-map' : 'cheap-module-source-map',
entry: [
path.resolve(
url.fileURLToPath(import.meta.url),
'../../src/index.client.js'
)
],
output: {
path: path.resolve(url.fileURLToPath(import.meta.url), '../../build'),
filename: 'index.js'
},
module: {
rules: [
{test: /\.mdx$/, use: 'xdm/webpack.cjs'},
{test: /\.js$/, use: 'babel-loader', exclude: /node_modules/}
]
},
plugins: [new ReactServerWebpackPlugin({isServer: false})]
},
onbundle
)
function onbundle(error, stats) {
const info = stats && stats.toJson()
if (error) throw error
if (stats.hasErrors()) {
for (error of info.errors) console.error(error)
throw new Error('Finished running webpack with errors')
}
console.log('Bundled w/ webpack')
}
| wooorm/server-components-mdx-demo | 123 | React server components + MDX | JavaScript | wooorm | Titus | |
script/generate.server.js | JavaScript | #!/usr/bin/env node
import fs from 'node:fs'
import process from 'node:process'
import React from 'react'
import {pipeToNodeWritable} from 'react-server-dom-webpack/writer'
import Content from '../src/content.server.mdx'
const manifest = fs.readFileSync('build/react-client-manifest.json')
pipeToNodeWritable(
React.createElement(Content),
fs.createWriteStream('build/content.nljson'),
JSON.parse(manifest)
)
process.on('exit', () => console.log('Generated content'))
| wooorm/server-components-mdx-demo | 123 | React server components + MDX | JavaScript | wooorm | Titus | |
script/prerender.js | JavaScript | #!/usr/bin/env node
import {Buffer} from 'node:buffer'
import {promises as fs} from 'node:fs'
import path from 'node:path'
import url from 'node:url'
import React from 'react'
import {renderToString} from 'react-dom/server.js'
import {createFromReadableStream} from 'react-server-dom-webpack'
import {bin2png} from 'bin2png'
import {Root} from '../src/root.client.js'
main()
async function main() {
const buf = await fs.readFile('build/content.nljson')
const data = JSON.parse(await fs.readFile('build/react-client-manifest.json'))
const b64 = Buffer.from(await bin2png(buf)).toString('base64')
const ignore = new Set(['index.client.js', 'root.client.js'])
// We have to fake webpack for SSR.
// Luckily only a few parts of its API need to be faked.
const cache = {}
global.__webpack_require__ = (id) => cache[id]
global.__webpack_chunk_load__ = () => Promise.resolve()
// Populate the cache with all client modules.
await Promise.all(
Object.keys(data)
.filter((d) => !ignore.has(path.basename(d)))
.map(async (d) => {
// eslint-disable-next-line node/no-unsupported-features/es-syntax
cache[data[d]['*'].id] = await import(url.fileURLToPath(d))
})
)
// Create a browser stream that RSC needs for getting it’s content.
const response = createFromReadableStream({
getReader() {
const enc = new TextEncoder()
let done
return {
read() {
if (done) return Promise.resolve({done})
done = true
return Promise.resolve({value: enc.encode(String(buf))})
}
}
}
})
// Finally, actually perform the SSR, retrying if there is anything suspended.
let result
/* eslint-disable no-constant-condition, no-await-in-loop */
while (true) {
result = renderToString(React.createElement(Root, {response}))
if (!result.includes('<!--$!-->')) break
await sleep(64)
}
/* eslint-enable no-constant-condition, no-await-in-loop */
await fs.writeFile(
'build/index.html',
`<!doctypehtml>
<html lang=en>
<meta charset=utf8>
<meta content=width=device-width,initial-scale=1 name=viewport>
<link href=index.css rel=stylesheet>
<title>React server components + MDX | wooorm.com</title>
<link href=https://wooorm.com/server-components-mdx-demo/ rel=canonical>
<meta content="small demo showing that RSC + MDX work together" name=description>
<meta content=mdx,md,jsx,xdm,facebook,react,server,client,component,rsc name=keywords>
<meta content="Titus Wormer" name=author>
<meta content="© 2021 Titus Wormer" name=copyright>
<meta content=#0366d6 name=theme-color>
<meta content=article property=og:type>
<meta content=wooorm.com property=og:site_name>
<meta content=https://wooorm.com/server-components-mdx-demo/ property=og:url>
<meta content="React server components + MDX" property=og:title>
<meta content="small demo showing that RSC + MDX work together" property=og:description>
<meta content=https://wooorm.com/server-components-mdx-demo/og.png property=og:image>
<meta content=2021-03-01T00:00:00.000Z property=article:published_time>
<meta content=2021-03-01T00:00:00.000Z property=article:modified_time>
<meta content=mdx property=article:tag>
<meta content=rsc property=article:tag>
<meta content=react property=article:tag>
<meta content=summary_large_image name=twitter:card>
<meta content=https://wooorm.com/server-components-mdx-demo/og.png name=twitter:image>
<meta content=@wooorm name=twitter:site>
<meta content=@wooorm name=twitter:creator>
<link href=data:image/x-icon;, rel="icon shortcut" type=image/x-icon>
<div id=root>${result}</div>
<script src=index.js></script>
<img style=display:none id=payload decoding=async loading=eager alt src="data:image/png;base64,${b64}">`
)
console.log('Prerendered content')
}
function sleep(ms) {
return new Promise(executor)
function executor(resolve) {
setTimeout(resolve, ms)
}
}
| wooorm/server-components-mdx-demo | 123 | React server components + MDX | JavaScript | wooorm | Titus | |
src/counter.client.js | JavaScript | import React from 'react'
import Confetti from 'react-confetti'
const {useState} = React
export function Counter() {
const [coords, setCoords] = useState(undefined)
const [pieces, setPieces] = useState(0)
const [count, setCount] = useState(0)
return (
<>
You{' '}
<button type="button" onClick={onClick}>
clicked me
</button>{' '}
exactly {count} times
{pieces ? (
<Confetti
colors={['#0366d6']}
numberOfPieces={pieces}
confettiSource={coords}
recycle={false}
onConfettiComplete={onComplete}
/>
) : null}
</>
)
function onClick(ev) {
setCount(count + 1)
setPieces(pieces + 24)
setCoords({x: ev.clientX, y: ev.clientY})
}
function onComplete() {
setPieces(0)
}
}
| wooorm/server-components-mdx-demo | 123 | React server components + MDX | JavaScript | wooorm | Titus | |
src/index.client.js | JavaScript | import {hydrateRoot} from 'react-dom'
import {createFromFetch} from 'react-server-dom-webpack'
import {png2bin} from 'png2bin'
import {Root} from './root.client.js'
window.addEventListener('DOMContentLoaded', main)
async function main() {
const $root = document.querySelector('#root')
const $payload = document.querySelector('#payload')
const url = URL.createObjectURL(new Blob([await png2bin($payload)]))
hydrateRoot($root, <Root response={createFromFetch(fetch(url))} />)
// Show that image.
$payload.style = 'display:block'
}
| wooorm/server-components-mdx-demo | 123 | React server components + MDX | JavaScript | wooorm | Titus | |
src/phyllotaxis.server.js | JavaScript | const theta = Math.PI * (3 - Math.sqrt(6))
export function Phyllotaxis(props) {
const {size, step, length, radius} = props
return (
<svg
width={size}
height={size}
viewBox={[0, 0, size, size].join(' ')}
style={{
color: 'var(--hl)',
display: 'block',
margin: '0 auto',
height: 'auto'
}}
>
{Array.from({length}).map((_, index) => {
const r = step * Math.sqrt((index += 0.5))
const a = theta * index
return (
<circle
// eslint-disable-next-line react/no-array-index-key
key={index}
fill="currentcolor"
cx={size / 2 + r * Math.cos(a)}
cy={size / 2 + r * Math.sin(a)}
r={radius}
/>
)
})}
</svg>
)
}
| wooorm/server-components-mdx-demo | 123 | React server components + MDX | JavaScript | wooorm | Titus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.