gruntjs / grunt-contrib-connect

Start a static web server.
http://gruntjs.com/
MIT License
716 stars 147 forks source link

How to preview a Markdown file? #253

Open cryptoeraser opened 5 years ago

cryptoeraser commented 5 years ago

Hi,

I would like to have one of my server configs to be able to preview and live-reload a Markdown file. How can I achieve this result?

readme: {
                options: {
                    hostname: 'localhost',
                    port: 3002,
                    base: {
                        path: '.',
                        options: {
                            index: 'README.md'
                        },
                    },
                    livereload: true
                }
            },

I tried this, but it obviously is not working. This is the end result I am trying to achieve. https://youtu.be/fc45xgh45dM