Comments (2)
Just to add to this question in case someone else finds it useful, I created a module that returns the escaped partial command into its readable version:
// Fix escaped partial syntax:
.use(function (files, metalsmith, next) {
var content,
k,
regex;
regex = new RegExp('{{>', 'g');
for (k in files) {
content = files[k].contents.toString();
files[k].contents = new Buffer(content.replace(regex, '{{>'));
}
next();
})
from in-place.
Seems this was another issue of incorrect order of modules. Simply inserting markdown
after inplace
corrected the issue.
ms.use(inplace({
engine: 'handlebars',
partials: 'src/partials/'
}));
ms.use(markdown());
from in-place.
Related Issues (20)
- Match files directly with multimatch
- Add missing git version tags
- Enable greenkeeper and greenkeeper-lockfile
- Update remote references to npm package and github repo
- See if babel can be removed
- Dependency/Ordering mayhem HOT 8
- Make errors more descriptive
- Add debug logging
- Update readme and package info
- Improve documentation HOT 28
- Enable greenkeeper HOT 1
- Bug with pug filename HOT 3
- Add support for async jstransformers
- Transforming NJK and MD with filename of index.md.njk markdown not processing HOT 7
- Passing Options to marked HOT 1
- error message missing current file name
- Infinite loop when a jstransformer for html is available HOT 3
- update to latest [email protected] due to security issue with pug@<3.0.1
- Change wiki link in readme HOT 1
- Common use case enhancements HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from in-place.