Skip to content

DAVEEmbeddedSystems/loop-to-markdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Loop to Markdown

Tampermonkey userscripts that convert Microsoft Loop pages to Markdown or MediaWiki with one click.

Features

  • Tables, code blocks, headings, lists (ordered, unordered, checkboxes)
  • @mentions, hyperlinks, inline code
  • Bold text detection
  • Code language auto-detection (Python, JavaScript, SQL, YAML, JSON, Mermaid, etc.)
  • Loop page title detection and export as the document title
  • Heading level offset in Markdown exports to preserve a single top-level # heading
  • Quip link capture
  • Clipboard fallbacks for environments where GM_setClipboard is unavailable

Available Scripts

  • loop-to-markdown.user.js: exports Loop pages as Markdown
  • loop-to-mediawiki.user.js: exports Loop pages as MediaWiki wikitext

Installation

  1. Install Tampermonkey browser extension
  2. Install the exporter you want:

Usage

  1. Open any Microsoft Loop page
  2. Click the exporter button in the bottom-left corner:
    • 📋 Copy as Markdown
    • 📋 Copy as MediaWiki
  3. Paste the copied output into your target editor or wiki

Notes

  • Markdown exports add the detected Loop page title as # Title when available.
  • Loop headings are shifted down by one level in Markdown so the exported title remains the only H1.
  • Both scripts try GM_setClipboard, then the browser Clipboard API, then a document.execCommand('copy') fallback.

Contributors

  • Talha Oz - Original author
  • Yuta TJ (yutatj@) - Table cell fallback extraction
  • Shrinivas Acharya - Bold detection, code language detection, ordered lists
  • Andrea Scian - Clipboard fallbacks, Loop title detection, heading offset, MediaWiki exporter

Contributing

Found a bug or have an improvement? PRs are welcome! This script was built with contributions from multiple people - yours could be next.

License

GPL-3.0

About

Convert Microsoft Loop pages to Markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%