Giter Site home page Giter Site logo

Won't render Markdown about remark HOT 4 CLOSED

gnab avatar gnab commented on September 18, 2024
Won't render Markdown

from remark.

Comments (4)

gnab avatar gnab commented on September 18, 2024

This happens due to the indentation level of the Markdown inside the <textarea> tag. Indenting the text 4 spaces or more will, according to the Markdown specification, turn it into a code block, which is what you've ended up with in your slideshow - the grey area containing your Markdown code.

Extract from your code, highlighting the indentation error:

        <textarea id="source">            
            # Title

            ---

            # Agenda

            1. Introduction
            2. Deep-dive
            3. ...

            ---

            # Introduction
        </textarea>

If you take a closer look at the boilerplate code, you'll see the Markdown actually isn't indented. If you simply copied the boilerplate code, it may have been an overly helpful text editor or IDE that corrected the indentation for you.

Extract from your code, with corrected indentation:

        <textarea id="source">            
# Title

---

# Agenda

1. Introduction
2. Deep-dive
3. ...

---

# Introduction
        </textarea>

It looks a bit weird, and in the future it may get handled for you automatically. But as of now, you'll have to simply zero out the indentation of the Markdown.

Thanks for checking out remark! :)

from remark.

jkelleher avatar jkelleher commented on September 18, 2024

Great answer, viva la Open Source! And loving 'remark'. No more Powerpoint.

from remark.

jkelleher avatar jkelleher commented on September 18, 2024

gnab,
maybe I'm being lazy/cheeky but would it be possible to get a copy of the css that you use on your demo pages - I'm visually and time challenged so could use some starting off point on the styling.
Might interest you to know that Remark plays well with Kirby CMS - it uses 4 '-' to separate fields but thankfully doesn't class with your slide properties etc.
Rgds,
J

from remark.

gnab avatar gnab commented on September 18, 2024

It's all in the HTML of the demo slideshow, but here it is, extracted just the CSS as well: http://pastebin.com/NyjSsz9b

from remark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.