Compare commits
2 Commits
3f3c0d72f8
...
5032672341
Author | SHA1 | Date | |
---|---|---|---|
5032672341 | |||
eec2d36526 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@ yarn-debug.log*
|
|||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
pnpm-debug.log*
|
pnpm-debug.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
public/opensearch.xml
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
|
@ -79,15 +79,8 @@ def main():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error reading file {selected_file}: {e}")
|
print(f"Error reading file {selected_file}: {e}")
|
||||||
|
|
||||||
markdown_text = '\n'.join(markdown_lines)
|
|
||||||
|
|
||||||
# Write markdown to file
|
|
||||||
output_file = 'output.md'
|
|
||||||
with open(output_file, 'w', encoding='utf-8') as f:
|
|
||||||
f.write(markdown_text)
|
|
||||||
print(f"\nMarkdown file '{output_file}' has been generated.")
|
|
||||||
|
|
||||||
# Copy markdown content to clipboard
|
# Copy markdown content to clipboard
|
||||||
|
markdown_text = '\n'.join(markdown_lines)
|
||||||
pyperclip.copy(markdown_text)
|
pyperclip.copy(markdown_text)
|
||||||
print("Markdown content has been copied to the clipboard.")
|
print("Markdown content has been copied to the clipboard.")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user