Open Stefany93 opened 6 years ago
@Stefany93 thanks for your question.
could you please clarify: are you asking if you can use the ampl
node module
with the Grunt.js task runner / build tool? https://gruntjs.com ?
^^ Hi nelsonic, thank you for replaying, and yes that's what I need - I have a stream of markdown I am converting into HTML but I need it to convert to AMP!
@Stefany93 if you can share some of your Grunt code (even temporarily) we can help you implement. thanks.
^^ Sure thing, here it is https://gist.github.com/Stefany93/ecd334fae0ddd866bf9a77898f0fd833
@Stefany93 thanks for sharing link to Gist. could you please add a comment to it, something to the effect of:
// transform Markdown to AMP-compliant HTML here!
So that it's easier for both to understand where the transformation needs to occur? at present there is no mention of "amp":
Hi, I am currently converting the markdown to html in a handlebars template, if that helps:
{{#markdown}}{{content.body}}{{/markdown}}
@Stefany93 The workflow for using ampl
is quite basic:
So instead of using helper-markdown
you would use ampl
.
I would recommend reading: https://gruntjs.com/creating-plugins
^^ Thank you nelsonic, I will try that.
@Stefany93 keep us posted with how you get on. (if you need any "help", just give us as much info as you can...)
Is there a way to implement this to Grunt? Thanks so much.