Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is some content not parsed? #804

Closed
georgeedwards opened this issue Sep 4, 2016 · 3 comments
Closed

Why is some content not parsed? #804

georgeedwards opened this issue Sep 4, 2016 · 3 comments

Comments

@georgeedwards
Copy link

I have a markdown file which when parsed, on the most part works, but here is an excerpt showing one are which has not worked...

Original.md:

## Table of contents

- [1.1: Install NativeScript and configure your environment](#11-install-nativescript-and-configure-your-environment)
- [1.2: Start your app](#12-start-your-app)
- [1.3: Add target development platforms](#13-add-target-development-platforms)
- [1.4: Running your app](#14-running-your-app)
- [1.5: Development workflow](#15-development-workflow)

## 1.1: Install NativeScript and configure your environment

The NativeScript CLI has a few system requirements you must have in place before building NativeScript apps. Before we get started building, make sure you’ve completed the NativeScript installation instructions using the link below.

* [Complete the NativeScript installation guide](/angular/start/quick-setup)

Output.html:

## Table of contents

- <a href="#11-install-nativescript-and-configure-your-environment">1.1: Install NativeScript and configure your environment</a>
- <a href="#12-start-your-app">1.2: Start your app</a>
- <a href="#13-add-target-development-platforms">1.3: Add target development platforms</a>
- <a href="#14-running-your-app">1.4: Running your app</a>
- <a href="#15-development-workflow">1.5: Development workflow</a>

## 1.1: Install NativeScript and configure your environment

The NativeScript CLI has a few system requirements you must have in place before building NativeScript apps. Before we get started building, make sure you’ve completed the NativeScript installation instructions using the link below.

* <a href="/angular/start/quick-setup">Complete the NativeScript installation guide</a>

In my mind, the ## should parse to <h2> and the - should parse to <li> why isn't this happening, where elsewhere in the file, ## What is NativeScript? has been parsed as <h2 id="what-is-nativescript-">What is NativeScript?</h2>?

@Feder1co5oave
Copy link
Contributor

How are you parsing the markdown source? It looks like you're not lexing it.

@tobinbradley
Copy link

I had a similar problem when converting a folder of markdown files and noticed it only happened on files encoded as utf-8. Reencoding them as ASCII fixed the problem. Used a simple:

for i in *.md
do
    if [[ $(enca -L none "$i") != *ASCII* ]]; then
        iconv -c -f  UTF-8 -t ISO-8859-1 "$i" -o "$i.utf8"
        mv "$i.utf8" "$i"
    fi
done

Not sure what was wrong or why this worked, but it did.

@joshbruce
Copy link
Member

Closing as stale and most likely covered by spec compliance. See #1106 and #1216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants