mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
072730f7eb
Adds a table of contents in the markdown preview, with a button in the header to toggle whether to show the TOC. When a user clicks one of the TOC elements, the preview will scroll to the corresponding heading. I've also cleaned up some MD preview styling that was inconsistent and causing the preview to overflow unnecessarily. This also fixes some terminology in the preview code. <img width="574" alt="image" src="https://github.com/user-attachments/assets/abb18ba9-21d3-4315-bdc3-e4bdcca39a4c">
18 lines
304 B
Plaintext
18 lines
304 B
Plaintext
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
.help-view {
|
|
width: 100%;
|
|
padding: 0 5px;
|
|
|
|
.title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
code {
|
|
font: var(--fixed-font);
|
|
background-color: var(--highlight-bg-color);
|
|
padding: 0 5px;
|
|
}
|
|
}
|