Extended the Markdown support info
This commit is contained in:
parent
2559651d6e
commit
9f07bdbc3d
2 changed files with 14 additions and 12 deletions
19
README.md
19
README.md
|
@ -34,6 +34,10 @@ Features
|
||||||
--------
|
--------
|
||||||
|
|
||||||
- Simple creation and edition of the posts with your favorite text editor
|
- Simple creation and edition of the posts with your favorite text editor
|
||||||
|
- **NEW** Markdown support via a third-party library (e.g.
|
||||||
|
[Markdown.pl](http://daringfireball.net/projects/markdown/)). Use
|
||||||
|
it via `./bb.sh post -m`. The third party library must support an invokation
|
||||||
|
like `markdown_bin in.html > out.md` as the code calls it that way.
|
||||||
- Post preview
|
- Post preview
|
||||||
- Save posts as drafts and resume later
|
- Save posts as drafts and resume later
|
||||||
- Transformation of every post to its own html page, using the title as the URL
|
- Transformation of every post to its own html page, using the title as the URL
|
||||||
|
@ -41,11 +45,11 @@ Features
|
||||||
- Generation of an RSS file! Blog's magic is the RSS file, isn't it...?
|
- Generation of an RSS file! Blog's magic is the RSS file, isn't it...?
|
||||||
- Generation of a page with all posts, to solve the index.html pagination problem
|
- Generation of a page with all posts, to solve the index.html pagination problem
|
||||||
- Rebuilding the index files without the need to create a new entry
|
- Rebuilding the index files without the need to create a new entry
|
||||||
- Optional comments, using the Disqus platform
|
- By default, comments are delegated to Twitter. Can be configured for Disqus
|
||||||
- Google Analytics support
|
- Google Analytics support
|
||||||
- Feedburner support
|
- Feedburner support
|
||||||
- Auto-generated CSS support
|
- Auto-generated CSS support
|
||||||
- Headers, footers, and in general everything that a well-structured html file has
|
- Headers, footers, and in general everything that a well-structured html file needs
|
||||||
- xhtml validation, CSS validation, RSS validation by the w3c
|
- xhtml validation, CSS validation, RSS validation by the w3c
|
||||||
- Backup of the site every time you post
|
- Backup of the site every time you post
|
||||||
- Everything contained in a single 700-line bash script!
|
- Everything contained in a single 700-line bash script!
|
||||||
|
@ -56,11 +60,6 @@ Read the CHANGELOG section of the script header for more updates
|
||||||
Future ideas
|
Future ideas
|
||||||
------------
|
------------
|
||||||
|
|
||||||
This software is still maintained, however, it can be considered finished. It has been used by many people
|
This software is still maintained, however, it can be considered more or less finished.
|
||||||
and no bugs have been found.
|
It has been used by many people and no bugs have been found, but if you happen to find one,
|
||||||
|
please report it.
|
||||||
In the issues tab you can find some improvements; the main one is the addition of Markdown support for posts.
|
|
||||||
This requires a Markdown parser, which would add more dependencies and/or increase the code length.
|
|
||||||
|
|
||||||
If you happen to find a concise, elegant Markdown to HTML parser which runs in Bash and is portable, please
|
|
||||||
comment on issue #14
|
|
||||||
|
|
7
bb.sh
7
bb.sh
|
@ -17,6 +17,7 @@
|
||||||
# and then rebuilds the index.html and feed.rss.
|
# and then rebuilds the index.html and feed.rss.
|
||||||
#
|
#
|
||||||
# Comments are supported via external service (Disqus).
|
# Comments are supported via external service (Disqus).
|
||||||
|
# Markdown syntax is supported via third party library (e.g. Gruber's Markdown.pl)
|
||||||
#
|
#
|
||||||
# This script is standalone, it doesn't require any other file to run
|
# This script is standalone, it doesn't require any other file to run
|
||||||
#
|
#
|
||||||
|
@ -33,6 +34,8 @@
|
||||||
# There are many loops which iterate on '*.html' so make sure that the only html files
|
# There are many loops which iterate on '*.html' so make sure that the only html files
|
||||||
# on this folder are the blog entries and index.html and all_posts.html. Drafts must go
|
# on this folder are the blog entries and index.html and all_posts.html. Drafts must go
|
||||||
# into drafts/ and any other *.html file should be moved out of the way
|
# into drafts/ and any other *.html file should be moved out of the way
|
||||||
|
#
|
||||||
|
# Read more: https://github.com/cfenollosa/bashblog
|
||||||
|
|
||||||
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
|
@ -167,8 +170,8 @@ global_variables() {
|
||||||
date_format="%B %d, %Y"
|
date_format="%B %d, %Y"
|
||||||
date_locale="C"
|
date_locale="C"
|
||||||
|
|
||||||
# Markdown location. Trying to autodetect by default, but change this
|
# Markdown location. Trying to autodetect by default.
|
||||||
# to the script location
|
# The invocation must support the signature 'markdown_bin in.html > out.md'
|
||||||
markdown_bin="$(which Markdown.pl)"
|
markdown_bin="$(which Markdown.pl)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue