Skip to content

Commit

Permalink
fix: preserve paragraph breaks in YAML metadata by using block scalar…
Browse files Browse the repository at this point in the history
… style
  • Loading branch information
Oreoxmt committed Nov 22, 2024
1 parent 70265da commit ee49304
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ The `tidocs merge` command provides a web interface for combining multiple relea

## Changelog

### v1.0.4

- Enhance the rendering of abstracts containing multiple paragraphs.

### v1.0.3

- Remove "Abstract" heading from the generated Word document.
Expand Down
2 changes: 1 addition & 1 deletion src/tidocs/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def launch_marimo_app(appname: str, host: str, port: int) -> None:


@click.command(no_args_is_help=True)
@click.version_option(version='1.0.3')
@click.version_option(version='1.0.4')
@click.argument(
"appname",
type=click.Choice(list(APPS.keys())),
Expand Down
2 changes: 1 addition & 1 deletion src/tidocs/markdown_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def generate_pandoc_metadata(
# Handle toc_title
if toc_title:
metadata["toc-title"] = toc_title
yaml_str = yaml.dump(metadata, sort_keys=False, allow_unicode=True, width=float("inf"), default_style=None)
yaml_str = yaml.dump(metadata, sort_keys=False, allow_unicode=True, width=float("inf"), default_style="|")
result = "---\n" + yaml_str + "---"
return result

Expand Down

0 comments on commit ee49304

Please sign in to comment.