ByWord Publishing Test
Update
You might not see if but it did what I expected and converted Markdown to HTML when it published it to my WordPress site – bummer. Maybe they fix it later but that renders it unusable for me. There is also no way to update a page because after the publishing the link is lost and there is no way to retrieve a post from the blog.
I would expect that there is a flag that allows me to post in Markdown and a way to list all my posts so that I can update their content because I post in Markdown. Right now I am better off using MarsEdit on the Mac and Post on iOS. I don’t mind spending $5 on a good add-on but this is just half-done with link bloggers in mind.
For now I give two thumbs down for the Byword Premium even though I enjoy the App and I am willing to spend money on good updates. That said the Publishing is not well done or designed.
Original
This is my first test to see how the Blogging Support from ByWord Premium works and if it is usable for my purposes. I am mostly concerned if they do send the plain Markdown text over or if they convert it to HTML which would make it completely unusable for me.
Let’see – Andy
Markdown with Poster
Update May 13th:
Having tried Blogsy I am not really a fan of their Markdown Support. Blogsy gives a blank editor and I later converts everything into HTML which is what I don’t want because I upload and store my blog entries as plain Markdown text. This way I can keep editing it on any Markdown editor I want on any system (iPhone, iPad and Mac). As far as I can tell there is no support for images, files etc.
In my quest to use Markdown with my WordPress Blog I am now using Poster on the iPad to write a post. As with MarsEdit images are again the big thing. So I uploaded this Image but Poster is adding this a plain HTML. I could remove the HTML and place it into a Markdown format but I would have expected that when it does support Markdown that uploading an image would add the image in Markdown.
Let’s see if I Blogsy does a better job.
Markdown, Syntax-Colored Source Code
In this post I want to see if I can use Markdown and Blog Text in order to have syntax colored source code.
Source Code
This is an inner Java Class:
private static class LogLevelConfig { private LogLevel mLogLevel; private Pattern mModelIdGlobPattern; private Pattern mModelTitleGlobPattern; public LogLevelConfig( String pModelIdGlob, String pModelTitleGlob, String pLogLevel ) { if( pLogLevel == null || pLogLevel.trim().length() == 0 ) { mLogLevel = LogLevel.debug; } else { try { mLogLevel = LogLevel.valueOf( pLogLevel ); LOG.info( "activate(), given log level found: {}", mLogLevel ); } catch( Exception e ) { throw new IllegalArgumentException( "no log level found for: '" + pLogLevel + "'" ); } } if( pModelIdGlob != null && pModelIdGlob.trim().length() > 0 ) { mModelIdGlobPattern = Pattern.compile( pModelIdGlob ); } if( pModelTitleGlob != null && pModelTitleGlob.trim().length() > 0 ) { mModelTitleGlobPattern = Pattern.compile( pModelTitleGlob ); } } public LogLevel getLogLevel() { return mLogLevel; } public boolean matchWorkflowModel( WorkflowModel pWorkflowModel ) { boolean lReturn = true; if( mModelIdGlobPattern != null ) { lReturn = mModelIdGlobPattern.matcher( pWorkflowModel.getId() ).matches(); } if( mModelTitleGlobPattern != null ) { lReturn &= mModelTitleGlobPattern.matcher( pWorkflowModel.getTitle() ).matches(); } return lReturn; } }
This is now the same code in Markdown:
private static class LogLevelConfig {
private LogLevel mLogLevel;
private Pattern mModelIdGlobPattern;
private Pattern mModelTitleGlobPattern;
public LogLevelConfig( String pModelIdGlob, String pModelTitleGlob, String pLogLevel ) {
if( pLogLevel == null || pLogLevel.trim().length() == 0 ) {
mLogLevel = LogLevel.debug;
} else {
try {
mLogLevel = LogLevel.valueOf( pLogLevel );
LOG.info( "activate(), given log level found: {}", mLogLevel );
} catch( Exception e ) {
throw new IllegalArgumentException( "no log level found for: '" + pLogLevel + "'" );
}
}
if( pModelIdGlob != null && pModelIdGlob.trim().length() > 0 ) {
mModelIdGlobPattern = Pattern.compile( pModelIdGlob );
}
if( pModelTitleGlob != null && pModelTitleGlob.trim().length() > 0 ) {
mModelTitleGlobPattern = Pattern.compile( pModelTitleGlob );
}
}
public LogLevel getLogLevel() {
return mLogLevel;
}
public boolean matchWorkflowModel( WorkflowModel pWorkflowModel ) {
boolean lReturn = true;
if( mModelIdGlobPattern != null ) {
lReturn = mModelIdGlobPattern.matcher( pWorkflowModel.getId() ).matches();
}
if( mModelTitleGlobPattern != null ) {
lReturn &= mModelTitleGlobPattern.matcher( pWorkflowModel.getTitle() ).matches();
}
return lReturn;
}
}
How I did it
First I must make sure that Markdown is ignoring my Blog Text Code snippet by enclosing the entire Code into a <div> block and then use the Blog Text syntax to define the code block which is are 3 cutely brackets together with the attribute lang defining the source code language for the Syntax Coloring. When I wanted to display the Markdown version of the Source Code I had to use the Blog Text No-Parse tags (two curly brackets followed by two exclamation marks). But if I use Blog Text then I will use only Blog Text for source code and not both.
The only downside of that all is that Markdown preview displays just a blob of text. Still the code is not infused with HTML making it impossible to read and without the additional work to convert the code every time to HTML.
— Andy
Markdown, Quotes and Source
Another little thing that I did not know about Markdown is to write quotes and source code.
In all IT there is always someone smarter than the smartest one you know
and always someone dumber than the dumbest one.Me
Here is some Java code:
public class Test {
public statif voir main( String[] pArguments ) {
// doing nothing as usual
}
}
Have fun – Andy
Markdown and Images
As mentioned before I am still figuring out how to make Markdown work with MarsEdit and my WordPress blog. The last big issue is how to deal with images. Images in Markdown are simple by just adding an exclamation mark in front of the Image URL.
There is an which is got last week.
So far the workflow was:
-
Open MarsEdit
-
Open Media Manager of MarsEdit (not really necessary but helpful)
-
Open Upload Utility
-
Drag an Image from the Media Manager onto the Upload Utility
-
Adjust the properties and upload the file
-
Go to WordPress, Media Library and obtain the URL to the image
-
Add it the post
It would be nice tough if MarsEdit could do everything from within the Media Manager. On the Media Manager below the Image properties should be a button to upload the image and on then on the Published Image there should be a right-click context menu entry that would provide the URL for it. That would make it a two step process.
Cheers – Andy
First Step with Markdown
Update: after making the decision to go with Markdown and installing Markdown on Save Improved Plugin for Workdpress it was pretty easy. The only thing to remember is to add two spaces at the end of a paragraph to end that paragraph and not to forget to add the reference links at the end of the document. I could also preview the page as formatted Page in the MarsEdit Preview Page when selection the Markdown Filter at the bottom.
After buying and reading MacSparky’s Field Guide to MarkDown I wanted to see how difficult it is to use Markdown together with MarsEdit to write my posts and WordPress on Madplanet.com. There are few things that I am not sure if it works:
1) Using Markdown on future Posts but using Blogtext on my older Posts
2) Using Links within a Post
3) Displaying Source Code
4) Integrating Images
So far I am pretty happy if I just can use Markdown for simple posts now and later us it more advanced posts or tutorials.
Cheers – Andy