Skip to content

leotulipan/wp2md

Repository files navigation

WordPress to Markdown Exporter (Typescript version)

Based on the idea of wp2md Adding relevant info to a frontmatter section

Current state: early ALPHA

I am still playing around with the code and copying the working features from wp2md.py

Next Steps

Setup

Configure git ssh on Windows

  1. Add openssh Key to git https://github.com/settings/keys
  2. SSH to Server via GUI to get around "Store key in cache?" error
Using username "git".
Authenticating with public key "passphrase: XYZ SSH" from agent
Server refused to allocate pty
Hi USERNAME! You've successfully authenticated, but GitHub does not provide shell access.
  1. Set the env Var GIT_SSH:

    export GIT_SSH="C:\Program Files\PuTTY\plink.exe" Powershell: [Environment]::SetEnvironmentVariable("GIT_SSH", "C:\Program Files\PuTTY\plink.exe", "User")

    to have this permanent: Right-click on My Computer or This PC in Windows/File Explorer, and select Properties. From there, click Advanced system settings in the sidebar to the left. On the Advanced tab, press the Environment Variables... button at the bottom. Finally, click New... on the user variables pane (top), and add a new variable named GIT_SSH with the value

test with:

ssh -T [email protected]
(Note: even though putty above works this still throws an erros)
  1. Set upstream:

    git branch -u github/master

We created the repo locally and created one remotely

  1. Force Push Online/Upstream:

    git push --set-upstream github master --force

Installation

Prerequisites:

npm install
(npm install -g typescript)
(npm install -g ts-node) only for https://stackoverflow.com/questions/33535879/how-to-run-typescript-files-from-command-line for ts-node option
( tsc --init ) if no tsconfig.json is present

Compile (and watch) Typescript (in a git bash)

tsc

Run:

node dist/wp2md    

About

Wordpress XML to Markdown done in typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published