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

Add example of options #63

Open
crystalfp opened this issue Dec 31, 2015 · 2 comments
Open

Add example of options #63

crystalfp opened this issue Dec 31, 2015 · 2 comments

Comments

@crystalfp
Copy link

A very small request. On the API page (http://neocotic.com/html.md/#api) add an example of md called with options. Eg. md(myHTML, {inline: 1}) (BTW, I presume this is correct. At least it works in my code).
Thanks for the good work!
mario

@neocotic
Copy link
Owner

neocotic commented Jan 2, 2016

Good idea. I'll try to do this and update the README as well. What you have should work, although I'd recommend sticking to correct data types (boolean true vs truthy values).

@crystalfp
Copy link
Author

Thanks Alasdair!

On 02-Jan-16 15:32, Alasdair Mercer wrote:

Good idea. I'll try to do this and update the README as well. What you
have should work, although I'd recommend sticking to correct data types
(boolean |true| vs truthy values).

This was exactly my problem. A quick look at the code convinced me that
I have to use a numerical 1 and not 'true' (in retrospect is obvious I
have to use the boolean value).

Thanks again for your wonderful piece of code!
mario


Reply to this email directly or view it on GitHub
#63 (comment).

Ing. Mario Valle
Swiss National Supercomputing Centre (CSCS)
v. Trevano 131, 6900 Lugano, Switzerland
Tel: +41 (91) 610.82.60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants