diff options
| author | John MacFarlane <[email protected]> | 2026-01-20 09:50:42 +0100 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2026-01-20 09:50:42 +0100 |
| commit | 595156db33677f574488f2982a9ff71e9bf6a757 (patch) | |
| tree | 19bd3c2ac40e0c230fd59566d3a0bdcd1b899051 | |
| parent | 59e300cfd2ccd315042eb1e2f111a7761829ebe5 (diff) | |
Wasm: support tab-stop and preserve-tabs.
| -rw-r--r-- | wasm/index.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/wasm/index.html b/wasm/index.html index 4f6d647e5..23ecb10ac 100644 --- a/wasm/index.html +++ b/wasm/index.html @@ -810,6 +810,25 @@ <option value="2">+2</option> </select> </div> + <div class="form-group"> + <label for="opt-tab-stop">Tab stop</label> + <select id="opt-tab-stop" v-model="opts.tabStop"> + <option value="1">1</option> + <option value="2">2</option> + <option value="3">3</option> + <option value="4">4</option> + <option value="5">5</option> + <option value="6">6</option> + <option value="7">7</option> + <option value="8">8</option> + </select> + </div> + </div> + <div class="options-grid" style="margin-top: 0.75rem;"> + <div class="checkbox-group"> + <input type="checkbox" id="opt-preserve-tabs" v-model="opts.preserveTabs" /> + <label for="opt-preserve-tabs">Preserve tabs</label> + </div> </div> </div> @@ -1412,6 +1431,8 @@ extractMedia: false, tocDepth: '3', shiftHeading: '0', + preserveTabs: false, + tabStop: '4', trackChanges: '', citationMethod: '', mathMethod: '', @@ -2209,6 +2230,9 @@ if (this.opts.fileScope) opts['file-scope'] = true; const shiftHeading = parseInt(this.opts.shiftHeading); if (shiftHeading !== 0) opts['shift-heading-level-by'] = shiftHeading; + if (this.opts.preserveTabs) opts['preserve-tabs'] = true; + const tabStop = parseInt(this.opts.tabStop); + if (tabStop !== 4) opts['tab-stop'] = tabStop; // Track changes if (this.opts.trackChanges) opts['track-changes'] = this.opts.trackChanges; |
