Mandaris Moore


A stone statue of a woman standing by herself.
A stone statue of a woman standing by herself.

One thing that has been bothering me for a while is the fact that most of the websites that I was going to and the system that I was using to generate my blog were wrapping stand alone images into <p> tags.

For example:

![Alt message](url/to/image)

would turn into:

<p><img alt="Alt message" src="url/to/image" /></p>

To me, this doesn't make sense that you would have an image in an unnessary container.

Sure, it wouldn't been seen by most people, but don't think it parses to well for screen readers and is probably a hastle for webdesigners who have to account for this with generated content.

What's the solution?

Well, pelican does offer a wide array of plugins, but I've already worked with plugins before and I didn't want whatever solution that I came accross to be specific to pelican.

Luckily, I didn't have to come up with something all by myself because @jdittrich created an extension that you can add to python-markdown.

This make the markdown:

![Alt message](url/to/image)

into the following:

<figure><img alt="Alt message" src="url/to/image"><figcaption>Alt message</figcaption>
</figure>

Adding the extension to pelican

The instructions on adding markdown extensions was a little difficult for me to follow during my first read. Which actually turned into a learning experience as I had to read over the code.

Ultimately, I had to add the following to pelicanconfig.py to get it working.

# Markdown Plugins
MARKDOWN = {
    'extension_configs': {
        'markdown.extensions.codehilite': {'css_class': 'highlight'},
        'markdown.extensions.extra': {},
        'markdown.extensions.meta': {},
        'figureAltCaption':{},
    },
    'output_format': 'html5',
}

One last thing

When I was experimenting with this extension, I noticed that it didn't allow for the information found in references to be placed in the <figcaption> tag.

I made a little change and am waiting for my pull request to be merged.


Setting rules in Hazel
Setting rules in Hazel

I've been working towards getting the generation of this blog to be automated and I've decided to do that using a rule in Hazel to always detect if a file has been changed and then running the pelican command to create new pages.

I've decided to make the actual publication1 a seperate step for now because I might be moving hosting in the coming weeks.


  1. Currently, the site is hosted on github and I need to make a git commit to make it availble on the inter-webs. 


I love working on my laptop!

I got it in 2009 and it has been good to me all of these years. Apple no longer supports it for OS updates but that doesn't mean that I can't get on it and still do everything that I was doing before with it.

In fact, I think I'm enjoying not getting the latest OS updates.

At first, I felt I was missing out because of the new features, but I'm having some trouble thinking about what features I've been missing out of other than siri.

And to be honest, I don't know how great siri is on a mac.


I’ve been torn on what to do next with my website. I like a new theme and I want to use it but it would require either a rewrite of my posts or a change of the theme that the original writer has put together.

I feel like I’m going to just rewrite the theme to meet my needs, but I’m hesitant to start a new project where the scope may run away from me.

I think I’ll start off with just small goals of changing things little by little. First, I’ll start by automating the generation of the sight and then making small changes to the them.


Well, I’m sitting here at my in-laws place and all I can think about is trying to take a nap.


I was really happy that changing the template for my writing wasn’t a hard task to do and I got it done fairly quickly. I’ve run into a number 1 of problems in the last couple of months and I enjoyed the ego boost.

All in all, a pretty good day and I got some serious things checked off I my life.

Such as:

  • Dropping off and picking up the children
  • Going to Costco
  • Get a pair of glasses
  • Taking the family to an outing
  • And finishing the new markdown template

Probably on of the better days that I’ve had this month.


  1. When I was at Intel, I would say that I ran into a number of issues and they would ask what the number was. I don’t remember where I picked up the expression, but it really hasn’t worked for me. 


Tomorrow, I want to focus on getting my cell phone writing work flow to be a little smoother. Currently, I use a template that I created in editorial to get the header for pelican and then I start writing until I feel that I've gotten the idea finished.

I also had to take my car to the shop where I found out that I'm looking at a big repair bill. The wife and I are going to try and fix it ourselves. But it's going to be hard because I don't know how complicated it's going to be and where I'm going to get the parts.


My wife came to her first dungeons and dragons game. She seemed to get along with the other players and even cracked a couple jokes. I always thought that she didn’t think this kind of stuff was interesting.

So, I’m was surprised when she said yes when they invited her to the next game.

Who knows this could mean a new avenue for our relationship as we try different things. Maybe she’s doing it to fill the void as we slowly drift apart from each other.

It doesn’t hurt to try something new.


It was a busy day today! Every one in the family had an activity to go to. Ultimately, I ended up staying at home for part of it. It felt good to just stay at home and do a little cleaning.

I did spend sometime working on a script to move these small posts that I’m making into my normal storage for my writing. I’m actually pretty proud of it setting my mind to doing something and following through.

What’s my next step?

Getting a work flow for images. t felt good to just stay at home and do a little cleaning.

I did spend sometime working on a script to move these small posts that I’m making into my normal storage for my writing. I’m actually pretty proud of it setting my mind to doing something and following through.

What’s my next step?

Getting a work flow for images.


I want to master my emotions. In a lot ways, I just want to master who I am as a person.

This week hasn’t been the best week of my life but I’ve made it all the way here.

Sitting on the toilet. Wondering if I should make banana bread tonight or wait until tomorrow.

Life is fun that way for some people.

Anyway, I’ve been think about how to make the most of my writing time and how I can do it at a more regular time instead of sneaking away to the bathroom.

I’ll come up with something this weekend.