GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Victor-Quqi/TeXShift: A OneNote COM add-in for seamless, bi-directional conversion between rich text and plain text formats like Markdown, LaTeX, and Mermaid.

BranchesTags
Open more actions menu

Latest commit

 

History

159 Commits
159 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
setup
setup
 
 
src
src
 
 
tests
tests
 
 
tools/readme-demo
tools/readme-demo
 
 
.gitignore
.gitignore
 
 
Directory.Build.props
Directory.Build.props
 
 
Directory.Build.targets
Directory.Build.targets
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.zh-CN.md
README.zh-CN.md
 
 
THIRD-PARTY-NOTICES.md
THIRD-PARTY-NOTICES.md
 
 
TeXShift.sln
TeXShift.sln
 
 
build.ps1
build.ps1
 
 
global.json
global.json
 
 
setup-mathjax.ps1
setup-mathjax.ps1
 
 

Repository files navigation

TeXShift: Bridging OneNote and Plain Text

English | 简体中文

TeXShift is a COM Add-in for Microsoft OneNote designed to address the core pain points that engineers, researchers, and students face when taking technical notes in OneNote: building a bridge between a powerful rich text editor and efficient plain text markup languages like Markdown and LaTeX.

Converting Markdown to OneNote rich text and back


Demo

LaTeX and Mermaid

Converting LaTeX and Mermaid to native equations and diagrams

Selection Mode

Converting only the paragraphs touched by a selection

Features

  • Markdown Conversion - Convert Markdown syntax to OneNote rich text

    • Headings (H1-H6)
    • Ordered/unordered lists
    • Task lists (checkboxes)
    • Block quotes (nested support)
    • Tables (header bold, column alignment)
    • Links
    • Embedded images
    • Horizontal rules (image or character style)
  • LaTeX Formulas - Convert LaTeX math expressions to native editable OneNote equations

    • Built-in MathJax resources for fully offline operation
    • Inline ($...$) and display ($$...$$) math support
    • Three mutually exclusive display-equation modes: native expanded, native compact (centerable), and high-fidelity image output
    • Configurable display equation size
  • Mermaid Diagrams - Render Mermaid diagrams as embedded PNG images

    • Flowcharts, sequence diagrams, class diagrams, and more
    • Configurable theme and resolution
  • Syntax Highlighting - TextMateSharp-based code highlighting

    • Wide language support with accurate tokenization
    • Customizable background color, text color, font, and spacing
  • Intelligent Selection - Two operation modes

    • Cursor Mode: Operates on the entire text box
    • Selection Mode: Operates on complete paragraphs containing highlighted text
  • Custom Styles - Full control over appearance via settings UI

    • Quote block background color
    • Heading font sizes (H1-H6)
    • Code block styling (colors, font, size, line spacing)
    • Inline code styling
    • Mermaid theme (with live preview) and max resolution
    • Horizontal rule style (image/character)
  • Reverse Conversion - Convert OneNote rich text back to Markdown

    • Dual-channel strategy: embedded metadata (lossless) + XML parsing (fallback)
    • Headings, paragraphs, lists (ordered/unordered/task), tables
    • Code blocks with syntax highlighting stripped
    • Math formulas (restore original LaTeX via metadata)
    • Mermaid diagrams (restore original source via metadata)
    • Inline styles (bold, italic, strikethrough, highlight, underline, superscript, subscript, code, links)
  • Paste and Convert - Enable the button under Settings → General (off by default) to insert converted Markdown from the clipboard. Add it to the Quick Access Toolbar for Alt + number access.

  • Localization - UI available in English and Simplified Chinese

  • Fully Offline - All core features work locally without network connection

In Development

  • Live preview pane

Tech Stack

  • Language: C# (.NET Framework 4.8)
  • Framework: OneNote COM Add-in
  • UI: WPF with Material Design
  • Dependencies:
    • Markdig - Markdown parsing
    • TextMateSharp - Syntax highlighting
    • MathJax - LaTeX rendering
    • Mermaid.js - Diagram rendering

System Requirements

  • Windows 10/11
  • Microsoft OneNote Desktop (x64)
  • .NET Framework 4.8
  • WebView2 Runtime (for LaTeX and Mermaid rendering)

Installation

Download the latest x64 Setup .exe from Releases.

When upgrading from TeXShift 0.2.x or earlier, uninstall the old version first.

The uninstaller installed by the Setup .exe can optionally remove the installing user's TeXShift settings, caches, runtime log, and default-location debug output. Debug output written to a custom folder is left untouched.

Third-party license notices are included in THIRD-PARTY-NOTICES.md in the installed application directory.

Building from Source

For developers who want to build TeXShift from source:

  1. Clone the repository

    git clone https://github.com/Victor-Quqi/TeXShift.git
    cd TeXShift
  2. Build and test

    .\build.ps1 -Target Build -Configuration Debug
    .\build.ps1 -Target Test -Configuration Debug

    The build script restores the pinned MathJax package and NuGet dependencies. Visual Studio is optional.

  3. Register the Debug add-in once

    Build normally, close OneNote, then run the following command from an elevated PowerShell:

    .\setup\Register-TeXShiftDev.ps1 -Action Register

    Later builds keep the same output path. Restart OneNote to load the newly built DLL. Use -Action Status without elevation to inspect the registration, or -Action Unregister from an elevated PowerShell to remove the development ribbon.

License

This project is licensed under GPLv3.

About

A OneNote COM add-in for seamless, bi-directional conversion between rich text and plain text formats like Markdown, LaTeX, and Mermaid.

Resources

Readme
GPL-3.0 license
Activity

Stars

25 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.