Skip to content

Commit bbc98ec

Browse files
committed
docs(demo): remove tables playground, opting instead to enable tables on the main page
1 parent aca011f commit bbc98ec

File tree

4 files changed

+9
-24
lines changed

4 files changed

+9
-24
lines changed

site/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ domReady(() => {
149149
const place = document.querySelector<HTMLElement>("#example-1");
150150
const place2 = document.querySelector<HTMLElement>("#example-2");
151151
const content = document.querySelector<HTMLTextAreaElement>("#content");
152-
const enableTables = place.classList.contains("js-tables-enabled");
153152
const enableImages = !place.classList.contains("js-images-disabled");
154153
const enableSamplePlugin = place.classList.contains("js-plugins-enabled");
155154

@@ -184,7 +183,7 @@ domReady(() => {
184183
editorHelpLink: "#TODO",
185184
commonmarkOptions: {},
186185
parserFeatures: {
187-
tables: enableTables,
186+
tables: true,
188187
tagLinks: {
189188
allowNonAscii: false,
190189
allowMetaTags: true,

site/layout.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@
8484
No image upload
8585
</a>
8686
</li>
87-
<li class="s-sidebarwidget--item">
88-
<a href="./tables.html" class="s-link">
89-
Tables playground
90-
</a>
91-
</li>
9287
<li class="s-sidebarwidget--item">
9388
<a href="./dualeditor.html" class="s-link">
9489
Dual editor playground

site/views/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@
104104
and spoilers:
105105

106106
>! IT'S A SECRET TO EVERYBODY.
107+
108+
Don't forget tables:
109+
110+
| Reason | Coolness factor | Approved |
111+
| ----------------------- |----------------:|:--------:|
112+
| They've got **columns** | 500 | ✅ |
113+
| And *rows* | 9000 | ✅ |
114+
| and different alignment | 9001 | 🔥 |
107115
</textarea>
108116
<h1>Stacks Editor</h1>
109117
<h3>Showcasing our new editing experience for Stack Overflow</h3>

site/views/tables.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)