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

reference for the syntax? [More doc in the README] #20

Open
baudren opened this issue Jun 30, 2015 · 5 comments
Open

reference for the syntax? [More doc in the README] #20

baudren opened this issue Jun 30, 2015 · 5 comments

Comments

@baudren
Copy link

baudren commented Jun 30, 2015

Hi,

thank you for the nice project. I am trying to write a filter for transforming markdown to a bootstrap blog-like webpage, and would therefore wrap headers into div.

I am struggling to find references for the proper syntax to use for returning a Div. This is not particularly enlighting, at least to me, and I would rather have some API or doc instead of manually exploring the possibilities.

Did I miss an obvious place for the docs?

Thanks in advance!

@jgm
Copy link
Owner

jgm commented Jun 30, 2015

You can use

Div(attributes({id: "foo"}, blocks)

where blocks are the block elements that go into the div.
I can see that the README doesn't document all these
functions. I'll fix.

+++ Benjamin Audren [Jun 30 15 05:05 ]:

Hi,

thank you for the nice project. I am trying to write a filter for
transforming markdown to a bootstrap blog-like webpage, and would
therefore wrap headers into div.

I am struggling to find references for the proper syntax to use for
returning a Div. [1]This is not particularly enlighting, at least to
me, and I would rather have some API or doc instead of manually
exploring the possibilities.

Did I miss an obvious place for the docs?

Thanks in advance!


Reply to this email directly or [2]view it on GitHub.

References

  1. http://hackage.haskell.org/package/pandoc-types-1.12.4.4/docs/Text-Pandoc-Definition.html#t:Block
  2. reference for the syntax? [More doc in the README] #20

@jgm
Copy link
Owner

jgm commented Jun 30, 2015

Actually I don't have much time to do this now. Maybe someone else can take it on, consulting the code and inspecting the JSON.

@baudren
Copy link
Author

baudren commented Jul 2, 2015

Hi @jgm
thanks for the tip. I ended up finding what I was after trial and error. Would love, indeed, more precision in the readme whenever possible. Thanks, and keep up the awesome work with pandoc!

@baudren baudren closed this as completed Jul 2, 2015
@jgm
Copy link
Owner

jgm commented Jul 2, 2015 via email

@baudren
Copy link
Author

baudren commented Jul 3, 2015

All right.

@baudren baudren reopened this Jul 3, 2015
@baudren baudren changed the title reference for the syntax? reference for the syntax? [More doc in the README] Jul 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants