Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a file which needs many tables in html. I have the tables in separate files.

I run in a file.markdown unsuccessfully

source ./table.html

How can you source in a file of .markdown -format?

share|improve this question
up vote 1 down vote accepted

According to the markdown syntax, there isn't a tool within markdown to do what you want.

Usually if you want to do this, you can create a small script to put the tables into the markdown where you want with a replacement of a token in the markdown text. You can do this in for example bash script by this:


cat testfile | (
  while read i; do
    if [ "$i" == "##TABLESAREHERE##" ]; then
       cat table_file
       echo $i

when you run your script, it will then generate the final markdown which will be used.

share|improve this answer
Your script seems to put the table inside the file in .markdown -format. – Masi Jul 24 '09 at 19:10
.markdown accepts inline HTML. What is the problem? – jamuraa Jul 24 '09 at 19:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .