🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@jill64/exmarkdown-code-utility

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@jill64/exmarkdown-code-utility

Code utility plugin for svelte-exmarkdown

latest
Source
npmnpm
Version
0.1.34
Version published
Maintainers
1
Created
Source

exmarkdown-code-utility

Code utility plugin for svelte-exmarkdown

Demo

This plugin adds the following utility to code section in svelte-exmarkdown

  • Code Copy Button
  • Show Filename

Install

npm i @jill64/exmarkdown-code-utility

Example

<script>
  import { codeUtility } from '@jill64/exmarkdown-code-utility'
  import { Markdown } from 'svelte-exmarkdown'

  // ...
</script>

<Markdown
  md={/*...*/}
  plugins={[
    // ...
    codeUtility({
      // Configuration (optional)
    })
  ]}
/>

<style>
  .exmarkdown-code-filename {
    /* Style of Filename section (<p/>) */
  }
  .exmarkdown-code-copy {
    /* Style of Copy Button (<button/>) */
  }
  .exmarkdown-code-copy[data-md-filename] {
    /* Styling when visible filename */
  }
</style>

Plugin Config Types

Keywords

svelte

FAQs

Package last updated on 10 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts