question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`superfences` and `terraform` example generates duplicate output

See original GitHub issue

Contribution guidelines

I’ve found a bug and checked that …

  • … the problem doesn’t occur with the mkdocs or readthedocs themes
  • … the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • … the documentation does not mention anything about my problem
  • … there are no open or closed issues that are related to my problem

Description

When creating an example with << in to, the contents after is include twice ie:

```teraform
<<a
x
```

Expected behaviour

Output should be:

<<a
x

Actual behaviour

renders as

<<a
x
x

Steps to reproduce

  1. Create new blank project
python3 -m venv .venv
source .venv/bin/activate
pip install mkdocs-material
mkdocs new .
  1. Update mkdocs.yml to be
site_name: Example
theme:
  name: material
markdown_extensions:
  - pymdownx.superfences
  1. update index.md to be
```teraform
<<a
x
```
  1. run mkdocs serve

Output will be

<<a
x
x

Or

  1. git clone https://github.com/michaelbrewer/mkdocs-github-issue.git
  2. make dev serve

Package versions

  • Python: python --version:
    Python 3.9.13
  • MkDocs: mkdocs --version mkdocs, version 1.3.1 from /Users/michaelbrewer/projects/python/mkdocs-eof/.venv/lib/python3.9/site-packages/mkdocs (Python 3.9)
  • Material: pip show mkdocs-material | grep -E ^Version Version: 8.3.9

Configuration

site_name: Example
theme:
  name: material
markdown_extensions:
  - pymdownx.superfences

System information

  • Operating system: …
  • Browser: …

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
facelessusercommented, Aug 13, 2022

Awesome! Glad we were able to narrow it down.

1reaction
squidfunkcommented, Aug 12, 2022

Thanks for your time researching, @facelessuser and @michaelbrewer. Closing as upstream issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Terraform - Duplicate Output Definition, but there is no ...
I have figured out the issue. The editor I was using was Visual Studio Code. And this just doesn't always reflect the changes...
Read more >
SuperFences - PyMdown Extensions Documentation
SuperFences allows defining custom fences for special purposes. For instance, we could create special fences for diagrams that we could later ...
Read more >
Terraform HCL Intro 8: For In and Removing Duplication
This post provides more examples, shows local assignment, and covers how to set default attribute values. Remember, for is useful for data ...
Read more >
alinex-book.pdf
This is a book explaining all the major parts and development background around the Alinex named coding projects. But it is only.
Read more >
Terraform Tutorial - creating multiple instances (count, list type ...
We can specify the number of identical resources to create. ... We can get the same outcome using element() function and list type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found