Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

canvas-native

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-native - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

2

dist/lib/types/code.js

@@ -49,3 +49,3 @@ 'use strict';

if (!prev || prev.type !== this.type) {
result = '```\n' + result;
result = '```' + (this.language || '') + '\n' + result;
}

@@ -52,0 +52,0 @@

@@ -31,3 +31,3 @@ import Type from './type';

if (!prev || prev.type !== this.type) {
result = `\`\`\`\n${result}`;
result = `\`\`\`${this.language || ''}\n${result}`;
}

@@ -34,0 +34,0 @@

{
"name": "canvas-native",
"description": "Utilities for working with the native Canvas format",
"version": "2.4.0",
"version": "2.4.1",
"author": "Jonathan Clem <jonathan@usecanvas.com>",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/usecanvas/canvas-native/issues",

@@ -55,2 +55,8 @@ import Code from '../../../lib/types/code';

it('prepends a fence with lang at the beginning of a code block', () => {
line = Code.match(wrap('code-ruby') + 'alert("ok");');
expect(line.toMarkdown(Paragraph.match('Foo'), line))
.to.eql('```ruby\nalert("ok");');
});
it('prepends a fence at the beginning of a document', () => {

@@ -57,0 +63,0 @@ expect(line.toMarkdown(null, line))

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