@docsector/docsector-reader 0.10.1 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/docsector.js CHANGED
@@ -23,7 +23,7 @@ const packageRoot = resolve(__dirname, '..')
23
23
  const args = process.argv.slice(2)
24
24
  const command = args[0]
25
25
 
26
- const VERSION = '0.10.1'
26
+ const VERSION = '0.10.3'
27
27
 
28
28
  const HELP = `
29
29
  Docsector Reader v${VERSION}
@@ -1,4 +1,4 @@
1
- import pkg from './package.json'
1
+ import pkg from './package.json' with { type: 'json' }
2
2
 
3
3
  /**
4
4
  * Docsector Reader Configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsector/docsector-reader",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "description": "A documentation rendering engine built with Vue 3, Quasar v2 and Vite. Transform Markdown into beautiful, navigable documentation sites.",
5
5
  "productName": "Docsector Reader",
6
6
  "author": "Rodrigo de Araujo Vieira",
@@ -364,10 +364,12 @@ const tokenized = computed(() => {
364
364
  v-html="token.content"
365
365
  ></ol>
366
366
 
367
- <table
367
+ <div
368
368
  v-else-if="token.tag === 'table'"
369
- v-html="token.content"
370
- ></table>
369
+ class="d-table-wrapper"
370
+ >
371
+ <table v-html="token.content"></table>
372
+ </div>
371
373
 
372
374
  <p
373
375
  v-else-if="token.tag === 'p'"
package/src/css/app.sass CHANGED
@@ -182,8 +182,9 @@ body.body--dark
182
182
  padding: 3px 5px
183
183
  margin: 0 2px
184
184
  border-radius: 2px
185
- white-space: pre-wrap
186
- display: inline-block
185
+ white-space: normal
186
+ word-break: break-word
187
+ display: inline
187
188
  line-height: 0.85em
188
189
 
189
190
  a
@@ -283,6 +284,10 @@ body.body--dark
283
284
  vertical-align: middle
284
285
  width: 280px
285
286
  margin-left: 20px
287
+ .d-table-wrapper
288
+ overflow-x: auto
289
+ -webkit-overflow-scrolling: touch
290
+ max-width: 100%
286
291
  table
287
292
  max-width: 100%
288
293
  border: 1px solid #eee