Skip to content

Commit

Permalink
fix html entities in md docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Kunka committed Dec 8, 2016
1 parent 107b5c1 commit 2d6155d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions dist/mixitup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**!
* MixItUp v3.0.0-beta
* A high-performance, dependency-free library for animated filtering, sorting and more
* Build 4ef6a092-d6e1-4a60-a92d-f630f6bd52dc
* Build 919492af-fbe1-4c34-a2e3-7005f6af88ab
*
* @copyright Copyright 2014-2016 KunkaLabs Limited.
* @author KunkaLabs Limited.
Expand Down Expand Up @@ -8437,7 +8437,7 @@
*
* // Create a new element via reference
*
* var newElementHtml = '<div class="mix">&lt/div>';
* var newElementHtml = '<div class="mix"></div>';
*
* // Create and insert the new element at index 1
*
Expand Down Expand Up @@ -8474,7 +8474,7 @@
*
* console.log(mixer.getState().totalShow); // 4
*
* var $newElement = $('<div class="mix">&lt/div>');
* var $newElement = $('<div class="mix"></div>');
*
* // Insert the new elements starting at index 3
*
Expand Down
14 changes: 7 additions & 7 deletions docs/mixitup.Config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1686,9 +1686,9 @@ The function receives the relevant dataset item as its first parameter.
var mixer = mixitup(containerEl, {
render: {
target: function(item) {
return '<div class="mix">' +
'<h2>' + item.title + '</h2>' +
'</div>';
return '<div class="mix">' +
'<h2>' + item.title + '</h2>' +
'</div>';
}
}
});
Expand All @@ -1700,9 +1700,9 @@ var mixer = mixitup(containerEl, {
var mixer = mixitup(containerEl, {
render: {
target: function(item) {
return `&lt;div class="mix"&gt;
&lt;h2&gt;${item.title}&lt;/h2&gt;
&lt;/div&gt;`;
return `<div class="mix">
<h2>${item.title}</h2>
</div>`;
}
}
});
Expand All @@ -1711,7 +1711,7 @@ var mixer = mixitup(containerEl, {

```js

var targetTemplate = Handlebars.compile('&lt;div class="mix"&gt;&lt;h2&gt;{{title}}&lt;/h2&gt;&lt;/div&gt;');
var targetTemplate = Handlebars.compile('<div class="mix"><h2>{{title}}</h2></div>');

var mixer = mixitup(containerEl, {
render: {
Expand Down
4 changes: 2 additions & 2 deletions docs/mixitup.Mixer.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ console.log(mixer.getState().totalShow); // 1

// Create a new element via reference

var newElementHtml = '&lt;div class="mix"&gt;&lt/div&gt;';
var newElementHtml = '<div class="mix"></div>';

// Create and insert the new element at index 1

Expand Down Expand Up @@ -563,7 +563,7 @@ mixer.insert(newElementsCollection, 1)

console.log(mixer.getState().totalShow); // 4

var $newElement = $('&lt;div class="mix"&gt;&lt/div&gt;');
var $newElement = $('<div class="mix"></div>');

// Insert the new elements starting at index 3

Expand Down
4 changes: 2 additions & 2 deletions src/mixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3611,7 +3611,7 @@ h.extend(mixitup.Mixer.prototype,
*
* // Create a new element via reference
*
* var newElementHtml = '&lt;div class="mix"&gt;&lt/div&gt;';
* var newElementHtml = '&lt;div class="mix"&gt;&lt;/div&gt;';
*
* // Create and insert the new element at index 1
*
Expand Down Expand Up @@ -3648,7 +3648,7 @@ h.extend(mixitup.Mixer.prototype,
*
* console.log(mixer.getState().totalShow); // 4
*
* var $newElement = $('&lt;div class="mix"&gt;&lt/div&gt;');
* var $newElement = $('&lt;div class="mix"&gt;&lt;/div&gt;');
*
* // Insert the new elements starting at index 3
*
Expand Down

0 comments on commit 2d6155d

Please sign in to comment.