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

feat: add language dropdown to code_block nodes #104

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion src/rich-text/node-views/code-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class CodeBlockView implements NodeView {

this.dom.innerHTML = escapeHTML`
<pre class="s-code-block"><code class="content-dom"></code></pre>
<select class="ps-absolute bg-transparent h:bg-unset c-pointer t2 r4 fs-fine us-none js-lang-select"></select>
<div class="s-select s-select__sm ps-absolute t6 r6"><select class="js-lang-select"></select></div>
b-kelly marked this conversation as resolved.
Show resolved Hide resolved
`;

this.contentDOM = this.dom.querySelector(".content-dom");
Expand Down