rhysd / Shiba

Rich markdown live preview app with linter
772 stars 57 forks source link

Gantt chart rendering error #47

Open 00sapo opened 5 years ago

00sapo commented 5 years ago

On my system (Linux) with Shiba downloaded from the release, I get a wrong mermaid rendering: image

This is my config.yml (I tried various values of drawer.responive and default configuration)

drawer:
    responsive: false
markdown:
    css_path: '/opt/Shiba-linux-x64/tufte.css'
path_watcher.default_path: '/home/sapo/MEGAsync/SHARED/Notes/General.md'
rhysd commented 5 years ago

Could you provide the mermaid source you used? I want to understand the problem derives from Shiba's mermaid usage or mermaid itself (in the case, I can try to update mermaid version). And to avoid misunderstanding, please describe your expectation.

00sapo commented 5 years ago
gantt
        dateFormat  YYYY-MM-DD
        title Adding GANTT diagram functionality to mermaid
        section A section
        Completed task            :done,    des1, 2014-01-06,2014-01-08
        Active task               :active,  des2, 2014-01-09, 3d
        Future task               :         des3, after des2, 5d
        Future task2               :         des4, after des3, 5d
        section Critical tasks
        Completed task in the critical line :crit, done, 2014-01-06,24h
        Implement parser and jison          :crit, done, after des1, 2d
        Create tests for parser             :crit, active, 3d
        Future task in critical line        :crit, 5d
        Create tests for renderer           :2d
        Add to mermaid                      :1d

It's on the homepage of mermaid...

00sapo commented 5 years ago

The rendering should take the full width available at startup or at rendering time...