diff --git a/astro-lyx.md b/astro-lyx.md
index 3b32e99373cea4c7cda15c5830cf4fb4fe0e13ad..43c688398675be3c4be7b25898013be2e4ad1c6b 100644
--- a/astro-lyx.md
+++ b/astro-lyx.md
@@ -1,4 +1,4 @@
-How to write astrophysics papers with LyX  {#how-to-write-astrophysics-papers-with-lyx .unnumbered}
+How to write astrophysics papers with LyX  
 ==========================================
 
 You have to install some files into your personal LyX directory. On *UNIX* this is in `$HOME/.lyx` but on your system it may be elsewhere.
@@ -19,7 +19,7 @@ You have to install some files into your personal LyX directory. On *UNIX* this
 
 7.  Restart LyX
 
-Monthly Notices {#monthly-notices .unnumbered}
+Monthly Notices 
 ---------------
 
 1.  Install the MNRAS LaTeX style files on your system (e.g. in `$HOME/.latex/`)\
@@ -32,12 +32,12 @@ Monthly Notices {#monthly-notices .unnumbered}
 
 4.  Change the text to include your writing
 
-Astronomy and Astrophysics {#astronomy-and-astrophysics .unnumbered}
+Astronomy and Astrophysics 
 --------------------------
 
 To follow
 
-Galaxies {#galaxies .unnumbered}
+Galaxies 
 --------
 
 To follow
diff --git a/make_markdown.sh b/make_markdown.sh
index f76a0ba8e1c5bb767005dc46f95d2c462aa7301b..1add36b848477963702a851c1e99e3f2a3ac23bd 100755
--- a/make_markdown.sh
+++ b/make_markdown.sh
@@ -1,3 +1,3 @@
 #!/bin/bash
 lyx --export latex astro-lyx.lyx
-pandoc --wrap=none -f latex -t markdown astro-lyx.tex  > astro-lyx.md
+pandoc  --wrap=none -f latex -t markdown astro-lyx.tex  | perl -pe "s/\{.*? \.unnumbered\}//g" > astro-lyx.md