We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello
What I did:
Inky.prototype.makeColumn
inky.js
col
column
this.components = extend({ col: 'col', column: 'column' }, options.components || {});
componentFactory.js
// <col> case this.components.col: var classes = ['col']; return format('<div %s class="%s"><table width="100%"><tr><td class="cell">%s</td></tr></table></div>', attrs, classes.join(' '), inner); // <column> case this.components.column: var classes = ['column']; if (element.attr('class')) { classes = classes.concat(element.attr('class').split(' ')); } return format('<div %s class="%s"><table width="100%"><tr><td class="cell">%s</td></tr></table></div>', attrs, classes.join(' '), inner);
input.html
<col> <p>Hello, world!</p> </col> <column> <p>Hello, world!</p> </column>
output.html
<!-- Shitty element --> <div class="col"> <table width="100%"> <tbody><tr> <td class="cell"></td> </tr> </tbody></table> </div> <p>Hello, world!</p> <!-- Sexy element --> <div class="column"> <table width="100%"> <tbody><tr> <td class="cell"> <p>Hello, world!</p> </td> </tr> </tbody></table> </div>
How can I fix this problem?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello
What I did:
Inky.prototype.makeColumn
frominky.js
col
andcolumn
elements ininky.js
componentFactory.js
input.html
output.html
How can I fix this problem?
The text was updated successfully, but these errors were encountered: