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

allow for markdown / HTML (or mdjs) authoring for blog posts #133

Closed
thescientist13 opened this issue Apr 7, 2020 · 1 comment · Fixed by #137
Closed

allow for markdown / HTML (or mdjs) authoring for blog posts #133

thescientist13 opened this issue Apr 7, 2020 · 1 comment · Fixed by #137
Assignees
Labels
2.3.0 chore build stuff, deploy stuff, etc etc

Comments

@thescientist13
Copy link
Member

thescientist13 commented Apr 7, 2020

Something in Greenwood should allow it so blog posts can be authored in true markdown, not a HTML file wrapped in ``` render blocks, ex.

---
template: 'blog'
---
  
```render
<app-blog-post 
  title='Git Explorer' 
  date='04.07.2020' 
  image="/assets/blog-post-images/git.png">
        
  <div>

    <p>Made this a little while ago but felt it would be fun to share, called <a href="https://github.com/thescientist13/git-explorer" target="_blank" rel="noopener" @onclick="captureOutboundLink('https://github.com/thescientist13/git-explorer'); return false;"><b>Git Explorer</b></a>.  It is a NodeJS package you can install from NPM that will provide a nice browser based comparison tool for any <code>git</code> repo on your local machine.</p>

    <img src="https://raw.githubusercontent.com/thescientist13/git-explorer/master/git-explorer.png" alt="Project Screemnshot">
    
    <p>Checkout the <i>README.md</i> for more info and feel free to submit an issue if you see a bug or would like to request a feature. 👋</p>
          
  </div>
</app-blog-post>
```
@thescientist13 thescientist13 added the chore build stuff, deploy stuff, etc etc label Apr 18, 2020
@thescientist13 thescientist13 self-assigned this Apr 18, 2020
@thescientist13
Copy link
Member Author

thescientist13 commented Jul 2, 2020

In latest Greenwood now we don't need ```

but it still requires certain formatting around the line breaks, ex. 2

---
template: 'blog'
title: 'Teaching An Old Dog New Tricks!'
---

<app-blog-post
  title='Teaching An Old Dog New Tricks!' 
  date='03.30.2017' 
  image="/assets/blog-post-images/angular-shield.jpg">

  <div>
    <p>Since not all existing AngularJS (1.x) projects can jump into using Angular (2+) and <i>ng-upgrade</i> may not be a feasible option for some, I created <a href="https://github.com/thegreenhouseio/angularjs-webpack-seed" target="_blank" rel="noopener" onclick="getOutboundLink('https://github.com/thegreenhouseio/angularjs-webpack-seed');">a seed repo in GitHub to demonstrate AngularJS working with webpack and ES2015+ syntax.</a></p>
    <p>To me, ES2015+ syntax, in particular the introduction of modules (<i>import / export</i>) has ushered in a new era of writing JavaScript applications, including our good friend AngularJS.</p>       
    <p>By adopting ES2015+ syntax and following meaningful styleguide conventions like John Papa&apos;s, these effort can really go a long way to improving the readability and organization of an existing AngularJS app.  Plus, if you can slowly migrate through the releases of AngularJS &gt; 1.5, you can set yourself up for a migration path to Angular now.</p>
    <p>This seed is not meant to be comprehensive, but just as a way to show that any existing AngularJS app can benefit from an ES2015+ upgrade, backed by webpack.</p>
    <p>Hope to hear your thoughts and feedback!</p>
  </div>
  
</app-blog-post>

Or else the content breaks and the IDE also stops showing code formatting
Screen Shot 2020-06-30 at 10 03 41 PM

@thescientist13 thescientist13 changed the title allow for true markdown (or mdjs) authoring for blog posts allow for markdown / HTML (or mdjs) authoring for blog posts Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.3.0 chore build stuff, deploy stuff, etc etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant