jpfleury / gedit-markdown Goto Github PK
View Code? Open in Web Editor NEWSupport for Markdown language in gedit
License: GNU General Public License v3.0
Support for Markdown language in gedit
License: GNU General Public License v3.0
The plugin doesn't work under gedit 3.14
Traceback (most recent call last):
File "/home/nasser/.local/share/gedit/plugins/markdown-preview/__init__.py", line 113, in do_activate
self.addMarkdownPreviewTab()
File "/home/nasser/.local/share/gedit/plugins/markdown-preview/__init__.py", line 139, in addMarkdownPreviewTab
panel.add_item(self.scrolledWindow, "MarkdownPreview", _("Markdown Preview"), image)
AttributeError: 'Stack' object has no attribute 'add_item'
Traceback (most recent call last):
File "/home/nasser/.local/share/gedit/plugins/markdown-preview/__init__.py", line 128, in do_update_state
self.actionGroup1.set_sensitive(self.window.get_active_document() != None)
AttributeError: 'MarkdownPreviewPlugin' object has no attribute 'actionGroup1'
Traceback (most recent call last):
File "/home/nasser/.local/share/gedit/plugins/markdown-preview/__init__.py", line 128, in do_update_state
self.actionGroup1.set_sensitive(self.window.get_active_document() != None)
AttributeError: 'MarkdownPreviewPlugin' object has no attribute 'actionGroup1'
Traceback (most recent call last):
File "/home/nasser/.local/share/gedit/plugins/markdown-preview/__init__.py", line 128, in do_update_state
self.actionGroup1.set_sensitive(self.window.get_active_document() != None)
AttributeError: 'MarkdownPreviewPlugin' object has no attribute 'actionGroup1'
Traceback (most recent call last):
File "/home/nasser/.local/share/gedit/plugins/markdown-preview/__init__.py", line 128, in do_update_state
self.actionGroup1.set_sensitive(self.window.get_active_document() != None)
AttributeError: 'MarkdownPreviewPlugin' object has no attribute 'actionGroup1'
Hi! As mentioned before, fantastic plugin! Would it be possible to implement indent and outdent of the entire line with a keyboard shortcut, eg Tab and Ctrl-Tab or Shift-Tab and Shift-Ctrl-Tab? This would be very useful for creating bulleted lists.
Thanks!
Hi! Fantastic plugin - very useful. Might it be possible to implement keyboard shortcuts for formatting, for instance Ctrl-I for italics and Ctrl-B for bold?
Thanks!
the latest version doesn't like me...
Gedit version 2.30.5+qiana
downloaded: https://github.com/jpfleury/gedit-markdown/archive/master.zip
After installing this extension according to the README.md manual, as soon as I'm trying to enable it through Gedit's GUI (e.g.: edit > preferences > "Markdown Preview") it throws me an error to console:
(gedit:17417): libpeas-WARNING **: Error importing plugin 'markdown-preview':
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 890, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 665, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/user/.local/share/gedit/plugins/markdown-preview/__init__.py", line 21, in <module>
from gi.repository import Gdk, Gtk, Gedit, GObject, WebKit
File "/usr/lib/python3/dist-packages/gi/importer.py", line 127, in find_module
'introspection typelib not found' % namespace)
ImportError: cannot import name WebKit, introspection typelib not found
(gedit:17417): libpeas-WARNING **: Error loading plugin 'markdown-preview'
sys:1: Warning: invalid cast from 'GeditPreferencesDialog' to 'GeditWindow'
System specs:
user@ubuntu:~$ **uname -a** Linux ubuntu 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
user@ubuntu:~$ **lsb_release -a**
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Gedit: v.3.18.3
I'm using Ubuntu 14.10 / gedit 3.10.4 and gedit-markdown v2.
When enabling the plugin, gedit shows a warning sign. The tooltip says failed to load.
I'm sure the only defect here is user error, but I can't find any way to move the preview to the side. Help?
Just after installing this extension with ./gedit-markdown.sh install, I opened gedit and the highlighting was working, but when activating the plugin in the preferences, I got a red icon "forbidden sign" with the following error in console :
Traceback (most recent call last):
File "/home/stephane/.local/share/gedit/plugins/markdown-preview/__init__.py", line 25, in <module>
import markdown
ImportError: No module named 'markdown'
(gedit:5668): libpeas-WARNING **: Error loading plugin 'markdown-preview'
It seems that I'm trying to activiate a non-existing plugin :-(
Ubuntu 14.04, with gedit 3.10.4
ps : je suis francophone, donc on peut continuer en français.... ;-)
Run installation script in Linux Mint 17.3 and nothing has changed. Tried to manually move plugins folder from ~/.local/share/gedit to ~/.gnome2/gedit and this doesn't helps.
I have installed the python3-markdown
and the gir1.2-webkit-3.0
, and I even wrote an example to make sure that. But the previewer still can't be loaded. Is it because I have both python2 and python3 on my computer? But the loader has been set to python3
in .plugin. Could anybody figure out the reason?
-Ubuntu 16.04LTS
-Gedit 3.18.3
Noticed that there is a 'Export to HTML', but not a 'Export to PDF'.
Would be awesome to have. Working on an implementation as we speak.
Fresh install, gedit 3.18.3. Getting the following warnings and errors during the startup:
/home/vladius/.local/share/gedit/plugins/markdown-preview/__init__.py:21: PyGIWarning: WebKit was imported without specifying a version first. Use gi.require_version('WebKit', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gdk, Gtk, Gedit, GObject, WebKit
Traceback (most recent call last):
File "/home/vladius/.local/share/gedit/plugins/markdown-preview/__init__.py", line 113, in do_activate
self.addMarkdownPreviewTab()
File "/home/vladius/.local/share/gedit/plugins/markdown-preview/__init__.py", line 139, in addMarkdownPreviewTab
panel.add_item(self.scrolledWindow, "MarkdownPreview", _("Markdown Preview"), image)
AttributeError: 'Stack' object has no attribute 'add_item'
Traceback (most recent call last):
File "/home/vladius/.local/share/gedit/plugins/markdown-preview/__init__.py", line 128, in do_update_state
self.actionGroup1.set_sensitive(self.window.get_active_document() != None)
AttributeError: 'MarkdownPreviewPlugin' object has no attribute 'actionGroup1'
Traceback (most recent call last):
File "/home/vladius/.local/share/gedit/plugins/markdown-preview/__init__.py", line 128, in do_update_state
self.actionGroup1.set_sensitive(self.window.get_active_document() != None)
AttributeError: 'MarkdownPreviewPlugin' object has no attribute 'actionGroup1'
Traceback (most recent call last):
File "/home/vladius/.local/share/gedit/plugins/markdown-preview/__init__.py", line 128, in do_update_state
self.actionGroup1.set_sensitive(self.window.get_active_document() != None)
AttributeError: 'MarkdownPreviewPlugin' object has no attribute 'actionGroup1'
Traceback (most recent call last):
File "/home/vladius/.local/share/gedit/plugins/markdown-preview/__init__.py", line 128, in do_update_state
self.actionGroup1.set_sensitive(self.window.get_active_document() != None)
AttributeError: 'MarkdownPreviewPlugin' object has no attribute 'actionGroup1'
Traceback (most recent call last):
File "/home/vladius/.local/share/gedit/plugins/markdown-preview/__init__.py", line 128, in do_update_state
self.actionGroup1.set_sensitive(self.window.get_active_document() != None)
AttributeError: 'MarkdownPreviewPlugin' object has no attribute 'actionGroup1'
Traceback (most recent call last):
File "/home/vladius/.local/share/gedit/plugins/markdown-preview/__init__.py", line 119, in do_deactivate
manager = self.window.get_ui_manager()
AttributeError: 'Window' object has no attribute 'get_ui_manager'
Would it be possible to support other implementation and flavours? Most useful would be (I think) GFM and kramdown.
After update Plugin stops working. New install also not helps.
I have /usr/share/gir-1.0/WebKit2-4.0.gir
and python-markdown (Python 3.8.2)
Error after trying to activate gedit-markdown:
** (gedit:15023): WARNING **: 19:35:34.301: Error importing plugin 'markdown-preview': Traceback (most recent call last): File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 783, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/ths/.local/share/gedit/plugins/markdown-preview/__init__.py", line 21, in <module> from gi.repository import Gdk, Gtk, Gedit, GObject, WebKit File "/usr/lib/python3.8/site-packages/gi/importer.py", line 132, in load_module raise ImportError('cannot import name %s, ' ImportError: cannot import name WebKit, introspection typelib not found (gedit:15023): libpeas-WARNING **: 19:35:34.302: Error loading plugin 'markdown-preview'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.