mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 09:42:00 +08:00
correct spec
This commit is contained in:
@ -3,7 +3,7 @@ export function setup(helper) {
|
|||||||
helper.registerPlugin(md => {
|
helper.registerPlugin(md => {
|
||||||
|
|
||||||
md.renderer.rules.table_open = function(){
|
md.renderer.rules.table_open = function(){
|
||||||
return '<div class="md-table">\n<table>';
|
return '<div class="md-table">\n<table>\n';
|
||||||
};
|
};
|
||||||
|
|
||||||
md.renderer.rules.table_close = function(){
|
md.renderer.rules.table_close = function(){
|
||||||
|
@ -812,7 +812,8 @@ QUnit.test("enable/disable features", assert => {
|
|||||||
|
|
||||||
assert.cookedOptions('|a|\n--\n|a|', { features: {table: false} }, '');
|
assert.cookedOptions('|a|\n--\n|a|', { features: {table: false} }, '');
|
||||||
assert.cooked('|a|\n--\n|a|',
|
assert.cooked('|a|\n--\n|a|',
|
||||||
`<table>
|
`<div class="md-table">
|
||||||
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>a</th>
|
<th>a</th>
|
||||||
@ -823,7 +824,8 @@ QUnit.test("enable/disable features", assert => {
|
|||||||
<td>a</td>
|
<td>a</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>`);
|
</table>
|
||||||
|
</div>`);
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test("emoji", assert => {
|
QUnit.test("emoji", assert => {
|
||||||
|
Reference in New Issue
Block a user