~stormdragon2976/bashtml

a626279d9014ba69421a1477cb26efb08550401e — Michael Taboada 1 year, 6 months ago 842ef7c
Fix removal of punctuation in article title.
1 files changed, 1 insertions(+), 1 deletions(-)

M bashtml.sh
M bashtml.sh => bashtml.sh +1 -1
@@ 498,7 498,7 @@ new_post() {
  # Get the final file name to pass to plugins.
  fileName="${pageName}.${settings[pageExtension]}"
  # make sure the first line (title) is a heading level 2.
  sed -i -e "1s/\(.*\)/## [\1]($fileName)/" -e '1s/^#\+/##/' "$mdFile"
  sed -i -e "1s/\([^a-zA-Z0-9]*\)\(.*\)/## [\2]($fileName)/" -e '1s/^#\+/##/' "$mdFile"
  # Add the header:
  add_header "$htmlFile"
  markdown "$mdFile" >> "$htmlFile"