GESIS-Methods-Hub / andrew

Content Aggregation System for tutorials and vignette of reproducible computational methods.
https://gesis-methods-hub.github.io/andrew/
MIT License
2 stars 0 forks source link

header-includes from Jupyter Notebook breaks Quarto render #95

Closed rgaiacs closed 1 year ago

rgaiacs commented 1 year ago
header-includes:
- |
  <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg==" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script>
  <script type="application/javascript">define('jquery', [],function() {return window.jQuery;})</script>

in YAML header breaks Quarto render with the following error

ERROR: Validation of YAML front matter failed.
(line 15, column 3) Array entry 1 is empty but it must instead be a string.
14: header-includes:
15: - |
     ~
16:   <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg==" crossorigin="anonymous"></script>
ERROR: Render failed due to invalid YAML.
rgaiacs commented 1 year ago

Reported upstream at https://github.com/quarto-dev/quarto-cli/issues/6237

rgaiacs commented 1 year ago

Fixed upstream.