Comments (1)
+1
I wound up doing the following:
var github = { // the github object was taken from flavor.github in showdown.js
omitExtraWLInCodeBlocks: true,
prefixHeaderId: 'user-content-',
simplifiedAutoLink: true,
literalMidWordUnderscores: true,
strikethrough: true,
tables: true,
tablesHeaderId: true,
ghCodeBlocks: true,
tasklists: true
};
for (var key in github) {
$showdown.setOption(key, github[key]);
}
Any suggestions on a simpler way?
from ng-showdown.
Related Issues (19)
- Angular Support HOT 7
- Documentation HOT 1
- Tests are failing in Travis CI HOT 4
- Directive seems to be broken HOT 8
- Directive broken when using jQuery (instead of jqLite) HOT 4
- Browserify cannot find module 'showdown'
- Publish release 1.1.0 to NPM HOT 5
- [$injector:modulerr] when including ng-showdown as module dependency HOT 2
- unclear on using extensions with ng-showdown HOT 4
- How to compile an extension's result? HOT 6
- unable to add ng-showdown in Electron app HOT 6
- Angular 2 future? HOT 2
- Sanitize option not in docs HOT 3
- Live Preview with iframe
- Strikethrough does not work in code blocks HOT 1
- Some options not setting correctly HOT 1
- Add `angular-sanitize` as a bower dependecy HOT 1
- Populate dist/ files or point package.json main at src/ HOT 4
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 ng-showdown.