javiereguiluz / easybook

Book publishing as easy as it should be (built with Symfony components)
https://easycorp.io/EasyBook
Other
754 stars 81 forks source link

styling on new markup github lacks colors? #115

Closed cordoval closed 11 years ago

cordoval commented 11 years ago

the styling in pdf of:

test

is showing basically as the same, it keeps the block together now but the looks and colors are gone and the ticks are appearing?

javiereguiluz commented 11 years ago

I can't reproduce this error because I see the code highlighting for all code block types and for all kind of editions, including PDF.

Maybe your print edition configuration is not correct? You should have something like this in your config.yml file:

easybook:
    parameters:
        parser.options:
            code_block_type: github

book:
    title: easybook documentation
    # ...
    contents:
        - { element: cover }
        - { element: toc   }
        - { element: chapter,  number: 1, content: chapter1.md }
        # ...

    editions:
        # ...

        print:
            format:          pdf
            highlight_cache: true
            highlight_code:  true
            # ...
cordoval commented 11 years ago

oh i was able to fix it and reproduce, the problem is the indentation if the ticks with the label are indented too then it is recognized as a block which could make sense. closing this

cordoval commented 11 years ago

thanks for your response @javiereguiluz