mobiledoc-text-renderer
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -102,2 +102,7 @@ define('mobiledoc-text-renderer/cards/image', ['exports'], function (exports) { | ||
var MARKUP_SECTION_TYPE = 1; | ||
var IMAGE_SECTION_TYPE = 2; | ||
var LIST_SECTION_TYPE = 3; | ||
var CARD_SECTION_TYPE = 10; | ||
function validateVersion(version) { | ||
@@ -167,13 +172,9 @@ if (version !== '0.2.0') { | ||
switch (type) { | ||
case 1: | ||
// markup section | ||
case MARKUP_SECTION_TYPE: | ||
return this.renderMarkupSection(section); | ||
case 2: | ||
// image section | ||
case IMAGE_SECTION_TYPE: | ||
return this.renderImageSection(section); | ||
case 3: | ||
// list section | ||
case LIST_SECTION_TYPE: | ||
return this.renderListSection(section); | ||
case 10: | ||
// card section | ||
case CARD_SECTION_TYPE: | ||
return this.renderCardSection(section); | ||
@@ -180,0 +181,0 @@ default: |
@@ -21,2 +21,7 @@ /** | ||
var MARKUP_SECTION_TYPE = 1; | ||
var IMAGE_SECTION_TYPE = 2; | ||
var LIST_SECTION_TYPE = 3; | ||
var CARD_SECTION_TYPE = 10; | ||
function validateVersion(version) { | ||
@@ -86,13 +91,9 @@ if (version !== '0.2.0') { | ||
switch (type) { | ||
case 1: | ||
// markup section | ||
case MARKUP_SECTION_TYPE: | ||
return this.renderMarkupSection(section); | ||
case 2: | ||
// image section | ||
case IMAGE_SECTION_TYPE: | ||
return this.renderImageSection(section); | ||
case 3: | ||
// list section | ||
case LIST_SECTION_TYPE: | ||
return this.renderListSection(section); | ||
case 10: | ||
// card section | ||
case CARD_SECTION_TYPE: | ||
return this.renderCardSection(section); | ||
@@ -99,0 +100,0 @@ default: |
@@ -292,2 +292,7 @@ ;(function() { | ||
var MARKUP_SECTION_TYPE = 1; | ||
var IMAGE_SECTION_TYPE = 2; | ||
var LIST_SECTION_TYPE = 3; | ||
var CARD_SECTION_TYPE = 10; | ||
function validateVersion(version) { | ||
@@ -357,13 +362,9 @@ if (version !== '0.2.0') { | ||
switch (type) { | ||
case 1: | ||
// markup section | ||
case MARKUP_SECTION_TYPE: | ||
return this.renderMarkupSection(section); | ||
case 2: | ||
// image section | ||
case IMAGE_SECTION_TYPE: | ||
return this.renderImageSection(section); | ||
case 3: | ||
// list section | ||
case LIST_SECTION_TYPE: | ||
return this.renderListSection(section); | ||
case 10: | ||
// card section | ||
case CARD_SECTION_TYPE: | ||
return this.renderCardSection(section); | ||
@@ -370,0 +371,0 @@ default: |
{ | ||
"name": "mobiledoc-text-renderer", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Renders mobiledoc input to text (string) output", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/mobiledoc-text-renderer/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
205055