Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
19 changes: 19 additions & 0 deletions dist/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6459,6 +6459,10 @@ var styles_default5 = {
heading: "styles_heading",
code: "styles_code",
blockquote: "styles_blockquote",
"ch-codeblock": "styles_ch-codeblock",
"ch-code-wrapper": "styles_ch-code-wrapper",
"ch-code": "styles_ch-code",
"ch-code-scroll-parent": "styles_ch-code-scroll-parent",
blockquoteInfo: "styles_blockquoteInfo",
blockquoteDanger: "styles_blockquoteDanger",
blockquoteWarning: "styles_blockquoteWarning",
Expand Down Expand Up @@ -7861,7 +7865,8 @@ var SidebarElements = ({ slugPrefix, items, subItemLevel }) => {
const handleClick = (e, pathSuffix, slug) => {
e.preventDefault();
const hasEndpointQuery = router.query.endpoint;
router.push(getHref(slugPrefix || "", pathSuffix, slug)).then(() => {
const href = getHref(slugPrefix || "", pathSuffix, slug);
router.push(href, href, { locale }).then(() => {
if (hasEndpointQuery)
router.reload();
});
Expand Down Expand Up @@ -7940,7 +7945,7 @@ var SidebarElements = ({ slugPrefix, items, subItemLevel }) => {
},
href: getHref(slugPrefix || "", pathSuffix, localizedSlug),
target: isEditorPreview === true ? "_blank" : "_self",
locale: false,
locale,
children: [
method && /* @__PURE__ */ jsx17(
method_category_default,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions src/lib/markdown-renderer/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ table .code {
grid-template-columns: 20px 1fr;
grid-template-rows: 1fr;
word-break: break-word;
overflow: hidden;
}

.blockquote a {
Expand All @@ -51,6 +52,27 @@ table .code {
margin: 0px;
grid-column: 2 / -1;
grid-row: 1 / 1;
max-width: 100%;
overflow: hidden;
}

.blockquote pre,
.blockquote code {
max-width: 100%;
overflow-x: auto;
}

.blockquote .ch-codeblock,
.blockquote .ch-code-wrapper,
.blockquote .ch-code {
max-width: 100% !important;
width: 100% !important;
overflow-x: auto !important;
}

.blockquote .ch-code-scroll-parent {
max-width: 100% !important;
width: auto !important;
}

.blockquote a {
Expand Down