I'm currently making a blog, and the blog will use markdown for posts. Adding a title with markdown could be confusing for some, so I'd like to have a button that says, for instance, Add Title, but I'm wondering how I should allow the title to be entered, for example, should a modal popup saying Enter your title here! or should I just add the beginning character for the title, and hope people think to type after it?

  • Are they editing a text file in markdown, or are they using a web ui or gui to do the editing?
    – ElBel
    Oct 23, 2014 at 21:15
  • @ElBel, web ui, it's like a textbox that you can type in, there is a preview box on the side, as shown in this picture (the text is an inside joke with a few friends :P)
    – tinfoilboy
    Oct 23, 2014 at 21:17
  • <input type=text id=title><textarea id=post/>
    – Crissov
    Oct 24, 2014 at 9:17
  • @Crissov, I meant like a header tag, to section off things, poor wording, sorry.
    – tinfoilboy
    Oct 24, 2014 at 15:56

1 Answer 1


Well, if your users need to know markdown anyway, and there's a live / dynamic preview, you might be able to get away with having the default text for a new post include the markdown for the title. So, for example, someone clicks the "new post" button and the file they get has this:

# Type your post's title here (but keep the #!)

Just start typing your post. 

Hit return twice to start a new paragraph. [Here's a link.][http://foo.com]

 - create
 - bullet
 - points

The user will have good feedback from the live preview. As they change the text they'll see the title updating on the right. You might try using javascript to preselect the range of text that they'll replace in the title, so they don't mess up the "# " syntax.

At the end of the day, if you choose to have them input a title with a modal, you should insert it into the markdown document with the proper syntax. This will help them learn how to do it by hand.

If you want to enforce more rigorous markup (i.e. only one h1 in the document, for example), a straight-up form field is probably the best. It's simple for people to understand — this is a field and it's where they type their post's title.

  • 1
    Ooh, I never thought of doing that, I'm going to just do that, people will better understand that because they will just see hey a link looks like that, i'm going to type that, thanks!
    – tinfoilboy
    Oct 23, 2014 at 21:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.