javiereguiluz / easybook

Book publishing as easy as it should be (built with Symfony components)

Home Page:https://easycorp.io/EasyBook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

styling on new markup github lacks colors?

cordoval opened this issue · comments

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?

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
            # ...

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

thanks for your response @javiereguiluz