Giter VIP home page Giter VIP logo

ember-cli-markdown-resolver's People

Contributors

alexdiliberto avatar ember-tomster avatar robbiethewagner avatar willviles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ember-cli-markdown-resolver's Issues

Needs Updating

I've recently updated to 4.7 and am running Babel v6.6.0, which is causing issues because this package uses 6.18.0.

Would this fix be to simply update the Babel version in this package?

Getting the below upon 'ember s':

The following outdated versions are found in your project:

* [email protected], currently used by:
  * [email protected]
    * Depends on ember-cli-babel@^6.6.0

Template Compiler Error (broccoli-persistent-filter:TemplateCompiler) in ember-cli-markdown-resolver/templates/components/markdown-menu-item.hbs

The `link-to` keyword was used incorrectly. It was used as a call expression, but its valid usages are:

- As an append statement, as in: {{link-to}}

- As a block statement, as in: {{#link-to}}{{/link-to}}

Error caused by:

|
|  {{link-to item.attributes.title linkTo itemPath click=(action "onClick")}}
|

(error occurred in 'ember-cli-markdown-resolver/templates/components/markdown-menu-item.hbs' @ line 2 : column 2)

engines app breaking on build

ember-engines.com (topic-md-resolver|โ—6) $ yarn start
yarn run v1.13.0
$ ember serve
Cannot read property 'project' of undefined
  1. clone and yarn install https://github.com/efx/ember-engines.com/commit/3fdf67a4e3118928551f2408592182bd5a872dee
  2. yarn start

It comes from both of these lines I think:
https://github.com/willviles/ember-cli-markdown-resolver/blob/master/index.js#L56
https://github.com/willviles/ember-cli-markdown-resolver/blob/master/index.js#L52

adding this.app && caused it to work. I can PR that if welcome.

Feature Request: Allow child anchor hash id references links when constructing `markdown-menu`

Basically, looking for a way to have the markdown-menu component optionally contain child references to a list of local anchor link within a file

So, given the following /app/guides/test.md

[services](#services) | [contact us](#contact_form)

... some text

### <a id="services"></a>Our Services

... some text

### <a id="contact_form"></a>Contact Form

This could build a markdown-menu with the following structure

Test
	Our Services
	Contact Form

Now on the /test route, the user can click "Our Services" and be taken to /test#services or click the "Contact Form" link and be taken to /test#contact_form

Currently looking into what would be required to make this possible

Bug when including multiple !`inTree` files without a specified `order` front-matter prop

To reproduce the bug create more than 1 markdown file with the inTree properly set to false and without an order property assigned. In this scenario this line files = A(files).sortBy('attributes.order'); https://github.com/willviles/ember-cli-markdown-resolver/blob/v0.1.3/addon/services/markdown-resolver.js#L75 orders the files using a JS sort as follows

files = [
  { attributes: { inTree: false }, path: "app/guides/not-in-tree-1" },
  { attributes: { inTree: false }, path: "app/guides/not-in-tree-2" },
  { attributes: { order: 0 }, path: "app/guides/in-tree-1" },
  { attributes: { order: 1 }, path: "app/guides/in-tree-2" },
]

Then the synchronous forEach pulls out the items but still advances the index of the forEach loop so files get skipped in the loop.

Demo link

The demo link just links to the repo. Where is the demo?

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.