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

{{#markdown}}{{embeb}} not working. #63

Open
StevenTew opened this issue Aug 21, 2018 · 1 comment
Open

{{#markdown}}{{embeb}} not working. #63

StevenTew opened this issue Aug 21, 2018 · 1 comment

Comments

@StevenTew
Copy link

StevenTew commented Aug 21, 2018

Hi,

Markdown is not outputting my embedded code correctly. This is what I see in my page:
image

This is what I have in my demo-figure.hbs page:

{{#markdown}}{{embed 'app/templates/partials/_base/figure/figure.hbs'}}{{/markdown}}

It worked in assemble 0.4.42, but doesn't work grunt-assemble 0.6.3:

assemble: { // task
      options: {
        flatten: true,
        assets: '<%= config.dist %>/theme/',        // distribution location of css,js,images & fonts, etc
        layoutext: '.hbs',
        layoutdir: '<%= config.src %>/templates/layouts',
        layout: 'default-layout',
        data: '<%= config.src %>/**/*.{json,yml}',
        partials: '<%= config.src %>/templates/partials/**/*.hbs'  // this is where assemble.io looks for partials
      },
      pages: {
        // override task-level layout: build all hbs files found in 'templates/pages' folder
        files: {'<%= config.dist %>/': ['<%= config.src %>/templates/pages/**/*.hbs']}
      },
      partials: {
        // override task-level layout: build .hbs files that start with 'demo-' and are found in a 'templates/partials/**/demo folder'
        options: {layout: 'demo-layout'},
        files: {'<%= config.dist %>/partials/': '<%= config.src %>/templates/partials/**/demo/demo-*.hbs'}
      }
    },

my package.json:

"devDependencies": {
    "autoprefixer": "^7.1.2",
    "grunt": "^1.0.1",
    "grunt-cli": "^1.2.0",
    "grunt-accessibility": "^5.0.0",
    "grunt-assemble": "^0.6.3",
    "grunt-contrib-clean": "^1.1.0",
    "grunt-contrib-connect": "^1.0.2",
    "grunt-contrib-copy": "^1.0.0",
    "grunt-contrib-htmlmin": "^2.4.0",
    "grunt-contrib-imagemin": "^2.0.1",
    "grunt-contrib-jshint": "^1.1.0",
    "grunt-contrib-watch": "^1.0.0",
    "grunt-htmlhint": "^0.9.13",
    "grunt-postcss": "^0.8.0",
    "grunt-sass": "^2.0.0",
    "grunt-sass-lint": "^0.2.2",
    "jshint-stylish": "^2.2.1",
    "time-grunt": "^1.4.0"
  },

Any help would be really appreciated.

@assemblebot
Copy link

@StevenTew Thanks for the issue! If you're reporting a bug, please be sure to include:

  • The version of assemble you are using.
  • Your assemblefile.js (This can be in a gist)
  • The commandline output. (Screenshot or gist is fine)
  • What you expected to happen instead.

@StevenTew StevenTew changed the title {{#markdown}}{{embeb [file]}}{{/markdown}} not working. {{#markdown}}{{embeb}} not working. Aug 21, 2018
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

2 participants