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.

How to import markdown files

See original GitHub issue

What is the best way to import a markdown file? I have markdown files in the app/pages/ directory and want to import them.

I’d like to use these markdown files for frontend texts with using Python-Markdown.

I tried this but didn’t work:

readme_file = open("./pages/about.md", "r")
md_template_string = markdown.markdown(
        readme_file.read()
    )

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shinokadacommented, Dec 10, 2020

@ycd Thank it worked.

1reaction
ycdcommented, Dec 10, 2020

@shinokada well this is jıst a FileNotFoundError.

Change the path to app/pages/about.md I’m not sure though but you need to change the path.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import Markdown files - Nuclino Help Center
To import Markdown files ... Alternatively, click on the red plus symbol, select Import..., click on Upload files(s), select the exported document, and...
Read more >
Markdown and including multiple files - Stack Overflow
The short answer is no. The long answer is yes. :-) Markdown was designed to allow people to write simple, readable text that...
Read more >
Importing Markdown Files - MadCap Flare's Online Help
How to Import Markdown Documents · Select Project > Import > Markdown Documents. · In the wizard, choose either Import into a new...
Read more >
Getting Started | Markdown Guide
If you decide you don't like the Markdown application you're currently using, you can import your Markdown files into another Markdown application.
Read more >
Import markdown files - Notejoy
Import markdown files · Select Import Notes from the user menu in the bottom-left corner of Notejoy · Select the target notebook for...
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