seemore 1.12.23 → 1.12.24

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  <a href="https://www.npmjs.com/package/seemore">
8
8
  <img src="https://img.shields.io/npm/v/seemore"/>
9
9
  </a>
10
- <a href="https://arifszn.github.io/seemore/download">
10
+ <a href="https://arifszn.github.io/seemore/desktop-app">
11
11
  <img src="https://img.shields.io/badge/Desktop-macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-111111"/>
12
12
  </a>
13
13
  <a href="https://open-vsx.org/extension/arifszn/seemore-vscode">
@@ -49,7 +49,7 @@ You can use seemore in two ways.
49
49
 
50
50
  ### Desktop app
51
51
 
52
- Download the app for macOS, Windows or Linux from the [download page](https://arifszn.github.io/seemore/download). Open a folder or a `.md` file, and it opens as a site.
52
+ Download the app for macOS, Windows or Linux from the [download page](https://arifszn.github.io/seemore/desktop-app). Open a folder or a `.md` file, and it opens as a site.
53
53
 
54
54
  ### Command line
55
55
 
@@ -136,7 +136,7 @@ Inline editing works only for local previews.
136
136
 
137
137
  ## Open with the desktop app
138
138
 
139
- Download the app from the [download page](https://arifszn.github.io/seemore/download). It opens a folder or a `.md` file as a site in its own window, with an integrated terminal.
139
+ Download the app from the [download page](https://arifszn.github.io/seemore/desktop-app). It opens a folder or a `.md` file as a site in its own window, with an integrated terminal.
140
140
 
141
141
  <p align="center">
142
142
  <img src="https://raw.githubusercontent.com/arifszn/seemore/main/packages/site/assets/desktop-app.png" alt="The seemore desktop app in the black theme, showing a folder of research notes as a site: a paragraph's Markdown source open in the inline editor above a flowchart, and the integrated terminal listing the folder's Markdown files" width="640"/>
package/dist/cli/index.js CHANGED
@@ -2888,7 +2888,7 @@ function withExportToc(html) {
2888
2888
  (match) => ({
2889
2889
  depth: Number(match[1]),
2890
2890
  id: match[2] ?? "",
2891
- text: decodeEntities((match[3] ?? "").replace(/<[^>]+>/g, ""))
2891
+ text: decodeEntities((match[3] ?? "").replace(/<button\b[\s\S]*?<\/button>/gi, "").replace(/<[^>]+>/g, "")).trim()
2892
2892
  })
2893
2893
  );
2894
2894
  if (headings.length === 0) return html;