Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDX adapted CSS loading supported #5

Merged
merged 7 commits into from
Dec 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add go github flow action, run ut automatically
  • Loading branch information
ChaosNyaruko committed Dec 3, 2023
commit baacec2e6df28ccf994fbbfb3131f83c9998622a
8 changes: 4 additions & 4 deletions mdx_test.go
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ func Test_GetWords(t *testing.T) {
dfs(c, level+1, n)
}
}
fd, err := os.Open("./tmp/ldoce5.html")
fd, err := os.Open("./testdata/ldoce5.html")
if err != nil {
log.Fatal(err)
}
@@ -41,8 +41,8 @@ func Test_GetWords(t *testing.T) {
}

func Test_MDXParser(t *testing.T) {
// fd, err := os.Open("./tmp/test.html")
fd, err := os.Open("./tmp/doctor_mdx.html")
// fd, err := os.Open("./testdata/test.html")
fd, err := os.Open("./testdata/doctor_mdx.html")
if err != nil {
log.Fatal(err)
}
@@ -52,5 +52,5 @@ func Test_MDXParser(t *testing.T) {
log.Fatal(err)
}
// log.Printf("result: %v", readText(doc))
t.Logf("res: %v", format([]string{f(doc, 0, nil)}))
t.Logf("res: %v", format([]string{f(doc, 0, nil, "md")}))
}
Loading