Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown plugin not working #1247

Open
ventsyv opened this issue Apr 13, 2023 · 4 comments
Open

Markdown plugin not working #1247

ventsyv opened this issue Apr 13, 2023 · 4 comments

Comments

@ventsyv
Copy link

ventsyv commented Apr 13, 2023

I get Error opening file /<path>/index.html: No such file or directory
where <path> is the path to the directory that contains the markdown file I'm trying to load.

If I open the plugin preferences and change the template to "template.html" I get a different error:

[general] template=/home/ventsyvelev/.config/geany/plugins/markdown/markdown.conf [view] position=0 font_name=Serif code_font_name=Mono font_point_size=12 code_font_point_size=12 bg_color=#ffffff fg_color=#000000

Geany 1.38
Ubuntu 22

@elextr
Copy link
Member

elextr commented Apr 13, 2023

If I open the plugin preferences and change the template to "template.html" I get a different error:

What error?

[general] template=/home/ventsyvelev/.config/geany/plugins/markdown/markdown.conf

That setting should indeed point to a HTML template, so probably why the index.html was not created.

@ventsyv
Copy link
Author

ventsyv commented Aug 7, 2023

What error?

[general] template=/home/ventsyvelev/.config/geany/plugins/markdown/markdown.conf [view] position=0 font_name=Serif code_font_name=Mono font_point_size=12 code_font_point_size=12 bg_color=#ffffff fg_color=#000000

What am I missing? What is this index.html file and why does the plugin expect to find one in the directory of the markdown file?

@elextr
Copy link
Member

elextr commented Aug 7, 2023

index.html is the file written by converting the markdown to html for display in the viewer, it is created by the plugin, but it needs a template file to know how to create that. But your template file does not point to an html template, see https://plugins.geany.org/markdown.html for more information.

@ventsyv
Copy link
Author

ventsyv commented Aug 7, 2023

OK, that makes sense. In my case the template file was not set in the preferences.
Now that I set it to ~/.config/geany/plungins/markdown/template.html, the markdown files are rendered when I open them, but if I right click in the markdown window and click "Reload" I'm still getting Error opening file /<path>/index.html: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants