sourcegraph/internal/htmlutil/BUILD.bazel
Camden Cheek a4a1111c56
Render Jupyter notebooks (#62583)
Adds basic Jupyter notebook rendering to the file view. It does not include math rendering, only basic block rendering.
2024-05-10 12:21:10 -04:00

29 lines
756 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//dev:go_defs.bzl", "go_test")
go_library(
name = "htmlutil",
srcs = [
"policy.go",
"syntax.go",
],
importpath = "github.com/sourcegraph/sourcegraph/internal/htmlutil",
visibility = ["//:__subpackages__"],
deps = [
"@com_github_alecthomas_chroma_v2//:chroma",
"@com_github_alecthomas_chroma_v2//formatters/html",
"@com_github_microcosm_cc_bluemonday//:bluemonday",
],
)
go_test(
name = "htmlutil_test",
srcs = ["htmlutil_test.go"],
deps = [
":htmlutil",
"@com_github_alecthomas_chroma_v2//:chroma",
"@com_github_google_go_cmp//cmp",
"@com_github_stretchr_testify//require",
],
)