haamarkets.blogg.se

Bbedit format json
Bbedit format json













bbedit format json bbedit format json

The one issue I noticed was with block quotes that contained newlines. I spent a little time going through a random selection of the generated Markdown files to ensure things were converted properly, and nearly everything was. What I thought was going to be an issue at the time, but which ultimately turned out to be a good thing given all the work I was going to have to do to get everything how I wanted, was that this utility was created to move your Ghost installation into individual Markdown files for use in a static-site generator (e.g., Jekyll, Hugo, Gatsby etc.).įortunately for me, I still had a working Jekyll installation on one of my machines ( I used Jekyll to power this site for many years). (I ended up making a few slight modifications to template.md and index.js for particular things I wanted included in the output, but otherwise just left it alone.)

bbedit format json

I didn’t have to massage the JSON or fart around with the code at all, which was surprising. 🧐 Converting the posts to MarkdownĪfter a bit of searching I came across Ghost-to-MD, and to my great surprise, it worked flawlessly out of the box, which never happens with these sorts of things. Most of my 3000+ posts were in HTML, which the exporter also includes in the export, in addition to “plaintext” versions. This was the easiest part as there’s only one option: use Ghost’s export dingus, which spits out a single JSON file, with post content in the Mobiledoc format (something I didn’t realize until much further into this whole ordeal). Hopefully this will save some folks some time if they have plans to do something similar (and me too should I have occasion to do anything like this again). The following outlines (a small percentage of) the steps I went through and how I ended up with Markdown in the end…well, Mobiledoc Markdown cards. In any event, this process has at least proved to me that getting my data out of Ghost and into Markdown shouldn’t be too difficult if and when the time comes. Of course all this yak-shaving has the masochist geek in me kind of itching to play around with a new platform ( Hugo maybe?), but for now I'm sticking with Ghost. It took many, many hours and a lot of headache before I was finally able to make that happen, mainly because of Ghost’s implementation of Mobiledoc and their Mobiledoc editor, which is something I just wasn’t expecting.

bbedit format json

I went into this wanting to have everything present as Markdown inside the Ghost editor. My goal in all of this was to get some consistency in and between my older posts (which have been imported → exported → imported god knows how many times and through how many platforms) and newer posts created directly within Ghost. First of all, this was kind of a shit-show, certainly much more so than it needed to be.















Bbedit format json