pandoc doesn’t text-wrap code blocks when converting to pdf

If you have a recent installation of LaTeX that includes the fvextra package, then there is a simple solution, recently suggested by jannick0. Modify your YAML header options to include \usepackage{fvextra} \begin{Highlighting}[breaklines,numbers=left] and compile with xelatex. For instance, — header-includes: – \usepackage{fvextra} – \DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,commandchars=\\\{\}} — ~~~~~{.java} this is a very long long long long long … Read more

Slides with Columns in Pandoc

Current versions of pandoc (i.e., pandoc 2.0 and later) supports fenced divs. Specially named divs are transformed into columns when targeting a slides format: # This slide has columns ::: columns :::: column left :::: :::: column right :::: ::: Pandoc translates this into the following LaTeX beamer code: \begin{frame}{This slide has columns} \protect\hypertarget{this-slide-has-columns}{} \begin{columns}[T] … Read more

What can I control with YAML header options in pandoc?

Almost everything set in the YAML metadata has only an effect through the pandoc template in use. Pandoc templates may contain variables. For example in your HTML template, you could write: <title>$title$</title> These template variables can be set with the –variable KEY[=VAL] option. However, they are also set from the document metadata, which in turn … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)