-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor code style, add links to js versions
- Loading branch information
Showing
69 changed files
with
894 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
name: main | ||
on: | ||
- pull_request | ||
- push | ||
jobs: | ||
main: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
- run: cargo fmt --check && cargo clippy --examples --tests --benches --all-features | ||
- run: cargo test --all-features | ||
- run: cargo clippy -p mdast_util_to_markdown | ||
- run: cargo test -p mdast_util_to_markdown | ||
coverage: | ||
- run: cargo install cargo-tarpaulin | ||
- run: cargo tarpaulin --features json --out xml | ||
- uses: codecov/codecov-action@v4 | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@v1 | ||
with: | ||
components: clippy, rustfmt | ||
toolchain: stable | ||
- run: cargo install cargo-tarpaulin && cargo tarpaulin --features json --out xml | ||
- uses: codecov/codecov-action@v4 | ||
- run: cargo fmt --check && cargo clippy --all-features --all-targets --workspace | ||
- run: cargo test --all-features --workspace | ||
name: main | ||
on: | ||
- pull_request | ||
- push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
*.log | ||
*.lock | ||
coverage/ | ||
target | ||
target/ | ||
commonmark-data.txt | ||
unicode-data.txt | ||
fuzz/target | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
[package] | ||
name = "markdown" | ||
version = "1.0.0-alpha.21" | ||
authors = ["Titus Wormer <[email protected]>"] | ||
edition = "2018" | ||
rust-version = "1.56" | ||
description = "CommonMark compliant markdown parser in Rust with ASTs and extensions" | ||
homepage = "https://github.com/wooorm/markdown-rs" | ||
repository = "https://github.com/wooorm/markdown-rs" | ||
license = "MIT" | ||
keywords = ["commonmark", "markdown", "parse", "render", "tokenize"] | ||
categories = ["compilers", "encoding", "parser-implementations", "parsing", "text-processing"] | ||
include = ["src/", "license"] | ||
|
||
[workspace] | ||
members = ["generate", "mdast_util_to_markdown"] | ||
|
||
[workspace.dependencies] | ||
pretty_assertions = "1" | ||
|
||
[[bench]] | ||
harness = false | ||
name = "bench" | ||
path = "benches/bench.rs" | ||
harness = false | ||
|
||
[features] | ||
default = [] | ||
json = ["serde"] | ||
serde = ["dep:serde"] | ||
log = ["dep:log"] | ||
|
||
[dependencies] | ||
log = { version = "0.4", optional = true } | ||
unicode-id = { version = "0.3", features = ["no_std"] } | ||
serde = { version = "1", features = ["derive"], optional = true } | ||
log = { optional = true, version = "0.4" } | ||
serde = { features = ["derive"], optional = true, version = "1" } | ||
unicode-id = { features = ["no_std"], version = "0.3" } | ||
|
||
[dev-dependencies] | ||
env_logger = "0.11" | ||
criterion = "0.5" | ||
env_logger = "0.11" | ||
pretty_assertions = { workspace = true } | ||
serde_json = { version = "1" } | ||
swc_core = { version = "0.100", features = [ | ||
"common", | ||
"ecma_ast", | ||
"ecma_visit", | ||
"ecma_parser", | ||
"common", | ||
"ecma_visit", | ||
] } | ||
|
||
[features] | ||
default = [] | ||
json = ["serde"] | ||
log = ["dep:log"] | ||
serde = ["dep:serde"] | ||
|
||
[package] | ||
authors = ["Titus Wormer <[email protected]>"] | ||
categories = ["compilers", "encoding", "parser-implementations", "parsing", "text-processing"] | ||
description = "CommonMark compliant markdown parser in Rust with ASTs and extensions" | ||
edition = "2018" | ||
homepage = "https://github.com/wooorm/markdown-rs" | ||
include = ["src/", "license"] | ||
keywords = ["commonmark", "markdown", "parse", "render", "tokenize"] | ||
license = "MIT" | ||
name = "markdown" | ||
repository = "https://github.com/wooorm/markdown-rs" | ||
rust-version = "1.56" | ||
version = "1.0.0-alpha.21" | ||
|
||
[workspace] | ||
members = ["generate", "mdast_util_to_markdown"] | ||
|
||
[workspace.dependencies] | ||
pretty_assertions = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[dependencies] | ||
regex = "1" | ||
reqwest = "0.12" | ||
tokio = { features = ["full"], version = "1" } | ||
|
||
[package] | ||
name = "markdown-generate" | ||
version = "0.0.0" | ||
authors = ["Titus Wormer <[email protected]>"] | ||
edition = "2018" | ||
name = "markdown-generate" | ||
publish = false | ||
|
||
[dependencies] | ||
regex = "1" | ||
reqwest = "0.12" | ||
tokio = { version = "1", features = ["full"] } | ||
version = "0.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[package] | ||
name = "mdast_util_to_markdown" | ||
version = "0.0.0" | ||
edition = "2018" | ||
license = "MIT" | ||
|
||
[dependencies] | ||
markdown = { path = "../" } | ||
regex = { version = "1" } | ||
|
||
[dev-dependencies] | ||
pretty_assertions = { workspace = true } | ||
|
||
[package] | ||
edition = "2018" | ||
license = "MIT" | ||
name = "mdast_util_to_markdown" | ||
version = "0.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.