marcoarment / secondcrack

A static-file Markdown blogging engine.

Home Page:http://www.marco.org/secondcrack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

other extension than .txt?

maplesteve opened this issue · comments

Marco,

is there any special reason that you hardcoded the '.txt' extension for the input files?
Since they are markdown files, I would like sc to handle .md files.
If there's nothing against it, I would make the extension configurable in config.php and change the hardcoded '.txt'.

Best regards,
Stephan.

It's a good idea to make this a config option.

The main reason I selected .txt was for the broadest application support, especially among iOS Dropbox text editors, and the seeming lack of a widely agreed upon extension for Markdown. (I've seen .md, .markdown, .mdown...)

Plus, Second Crack's nonstandard title/header structure at the top of each post file might make it technically NOT a pure "Markdown" file. Maybe it needs to be its own "Markdown post" format.

So I just went with .txt to dodge these semantic issues.

Thanks! Only thing I changed was adding a default value of '.txt' so it works when unspecified in config.php.