New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@warren-bank/cartamd-plugin-newline-break

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@warren-bank/cartamd-plugin-newline-break

Collection of plugins for the 'BearToCode/carta' markdown editor.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source
Carta Plugin: Newline Break

This plugin adds support for hard breaks without needing spaces or escapes (turns carriage returns into <br>s).

Markdown already has two ways to include hard breaks, namely trailing spaces and escapes (note that represents a normal space):

lorem␠␠
ipsum

lorem\
ipsum

Both will turn into <br>s. If you control who authors content or can document how markdown works, it's recommended to use escapes instead.

Install
  npm install --save @warren-bank/cartamd-plugin-newline-break
Usage with Svelte
  <script lang="ts">
    import {Carta, MarkdownEditor} from 'carta-md'
    import {newline_break} from '@warren-bank/cartamd-plugin-newline-break'

    import 'carta-md/default.css'

    const carta = new Carta({
      extensions: [
        newline_break()
      ]
    })

    let value
  </script>

  <MarkdownEditor bind:value {carta} />

Keywords

FAQs

Package last updated on 18 Jun 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc