🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@github/markdown-toolbar-element

Package Overview
Dependencies
Maintainers
16
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/markdown-toolbar-element - npm Package Compare versions

Comparing version
1.4.0
to
1.5.0
+1
-0
dist/index.d.ts

@@ -56,2 +56,3 @@ declare global {

constructor();
connectedCallback(): void;
}

@@ -58,0 +59,0 @@ declare class MarkdownLinkButtonElement extends MarkdownButtonElement {

@@ -120,2 +120,6 @@ const buttonSelectors = [

}
connectedCallback() {
super.connectedCallback();
this.setAttribute('hotkey', 'E');
}
}

@@ -305,3 +309,4 @@ if (!window.customElements.get('md-code')) {

if ((event.metaKey && modifierKey === 'Meta') || (event.ctrlKey && modifierKey === 'Control')) {
const button = findHotkey(toolbar, event.key);
const key = event.shiftKey ? event.key.toUpperCase() : event.key;
const button = findHotkey(toolbar, key);
if (button) {

@@ -308,0 +313,0 @@ button.click();

+1
-1
{
"name": "@github/markdown-toolbar-element",
"version": "1.4.0",
"version": "1.5.0",
"description": "Markdown formatting buttons for text inputs.",

@@ -5,0 +5,0 @@ "repository": "github/markdown-toolbar-element",