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

code not rendering correctly - adds additional lines #923

Closed
connor11528 opened this issue Aug 10, 2017 · 3 comments
Closed

code not rendering correctly - adds additional lines #923

connor11528 opened this issue Aug 10, 2017 · 3 comments
Labels
help wanted L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue

Comments

@connor11528
Copy link

I have a Hexo blog I am using with Bulma that is built on Flexbox. I render the post content like this:

<div class='container top-offset-30'>
    <div class='columns is-mobile'>
        <div class='column is-8 is-offset-2'>
            <%- post.content %>
        </div>
    </div>
</div>

Here is the markdown file:

In my previous post on meteor we did not use controllers, now we do. The controller looks like this:

` ``` 
TodosController = RouteController.extend({
  subscriptions: function () {
    this.subscribe('todoDetail', this.params._id);
  },

  // set data context for controller
  data: function () {
    return Todos.findOne({_id: this.params._id});
  },

  detail: function(){
    this.render('TodosDetail', {});
  },

  edit: function(){
    // reactive state variable saying we're in edit mode
    this.state.set('isEditing', true);
    
    this.render('TodosDetail');
  }
});
` ```

(There are only three backticks in my markdown file but wanted it render right in github issue)

The issue is that when it displays in the browser the code block hangs past the end like so:

screen shot 2017-08-10 at 9 58 29 am

Are there any ideas on how to fix this? Thank you

@joshbruce
Copy link
Member

See also #931

@joshbruce joshbruce added help wanted L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue labels Dec 1, 2017
@joshbruce
Copy link
Member

#983

@Feder1co5oave
Copy link
Contributor

Nothing strange here:

$ bin/marked 
``` 
TodosController = RouteController.extend({
  subscriptions: function () {
    this.subscribe('todoDetail', this.params._id);
  },

  // set data context for controller
  data: function () {
    return Todos.findOne({_id: this.params._id});
  },

  detail: function(){
    this.render('TodosDetail', {});
  },

  edit: function(){
    // reactive state variable saying we're in edit mode
    this.state.set('isEditing', true);
    
    this.render('TodosDetail');
  }
});
```
<pre><code>TodosController = RouteController.extend({
  subscriptions: function () {
    this.subscribe(&#39;todoDetail&#39;, this.params._id);
  },

  // set data context for controller
  data: function () {
    return Todos.findOne({_id: this.params._id});
  },

  detail: function(){
    this.render(&#39;TodosDetail&#39;, {});
  },

  edit: function(){
    // reactive state variable saying we&#39;re in edit mode
    this.state.set(&#39;isEditing&#39;, true);

    this.render(&#39;TodosDetail&#39;);
  }
});
</code></pre>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue
Projects
None yet
Development

No branches or pull requests

3 participants