Coder Social home page Coder Social logo

pfalcon / zim-desktop-wiki-markdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zim-desktop-wiki/zim-desktop-wiki

30.0 6.0 3.0 67.19 MB

pfalcon's fork of Zim desktop wiki project - quick Markdown format support for notebooks, usability improvements, etc. Everything WIP.

Home Page: http://zim-wiki.org

License: GNU General Public License v2.0

Makefile 0.04% Python 95.77% R 0.02% Gnuplot 0.01% LilyPond 0.05% HTML 2.25% CSS 0.23% JavaScript 0.58% TeX 0.30% Shell 0.42% NSIS 0.34%

zim-desktop-wiki-markdown's Introduction

Zim-markdown Branch

This is Zim Wiki branch/fork with Markdown format support for page content. Note that both the Markdown format and the original Zim-wiki format are supported (original format at least for reading, page templates, etc. may be already updated for Markdown). Which format to use is a per-notebook setting. The default format remains Zim-wiki. To switch a particular notebook to Markdown format, settings in notebook's notebook.zim config file should be updated. Below are detailed instructions on doing so.

To create a Markdown notebook:

  1. Clone this repository: git clone https://github.com/pfalcon/zim-desktop-wiki zim-markdown (this will clone into zim-markdown directory).
  2. Change into zim-markdown and run ./zim-debug.sh (Linux assumed). Alternatively, run python3 zim.py --standalone --debug.
  3. In menu, choose File -> Open another notebook...
  4. In the "Open Notebook" dialog, press "Add" button.
  5. Enter name "MarkdownNotes" for the notebook. Note the filesystem folder for the notebook (e.g. ~/Notebooks/MarkdownNotes).
  6. Quit Zim.
  7. Go to the notebook folder noted above using any file manager.
  8. In the folder, there should be file named notebook.zim.
  9. Open it in any editor.
  10. In the file, there should be lines:
default_file_format=zim-wiki
default_file_extension=.txt

replace them with the following lines:

default_file_format=zim_markdown
default_file_extension=.md
  1. Restart Zim. Open the notebook you modified.
  2. For each newly created page, you need to press Ctrl+R for Markdown formatting to go into effect (a known issue, or a feature, depending on how you look into it).
  3. Type some text, apply some formatting. Go to the notebook folder and behold that you have e.g. Home.md file, which contains Markdown formatting inside.
  4. If you have existing Markdown files, you can just drop them into the notebook folder, and press Ctrl+R in Zim for it to pick up them
  5. Note that not all Markdown formatting is supported as of now, visit the bugtracker to stay in loop of the known issues.

Below is the original Zim README.


Zim - A Desktop Wiki Editor

zim banner

Zim is a graphical text editor used to maintain a collection of wiki pages. Each page can contain links to other pages, simple formatting, and images. Pages are stored in a folder structure, like in an outliner, and can have attachments. Creating a new page is as easy as linking to a nonexistent page. All data is stored in plain text files with wiki formatting. Various plugins provide additional functionality, like a task list manager, an equation editor, a tray icon, and support for version control.

Screenshot

Zim can be used to:

  • Keep an archive of notes
  • Keep a daily or weekly journal
  • Take notes during meetings or lectures
  • Organize task lists
  • Draft blog entries and emails
  • Do brainstorming

Installing from a Package

Most Linux distributions include zim in their package repository. On Debian and Ubuntu, the package is simply called "zim".

Debian/Ubuntu packages and a Windows installer can be found via https://zim-wiki.org/downloads.html

On Mac OS X, zim can be installed from Homebrew using,

brew install zim

Optionally, you can create a .app wrapper for convenience.

Installing from Source

NOTE: You don't need to install zim in order to test it. You should be able to run it directly from the source directory by calling ./zim.py. (To run a translated version from the source, run ./setup.py build_trans.)

First, you should verify you have the dependencies zim needs. To list all dependencies check ./setup.py --requires.

You will at least need the following:

  • Gtk+ >= 3.18
  • python3 >= 3.2
  • python3-gi (also known as pygobject, but make sure to have the "gi" based version)
  • python3-xdg (optional, but recommended)
  • xdg-utils (optional, but recommended)

To verify that zim is working properly on your system, you can run the test suite using ./test.py. Failures do not have to be critical, but in principle, all tests should pass.

Zim can be installed from source using:

./setup.py install

If you are installing Zim from source in a Python virtual environment, you need to tell Zim where to load necessary data files by export XDG_DATA_DIRS=<where-your-virtual-environment-root-folder-is>/share:$XDG_DATA_DIRS. Please refer to the Install Paths section for more details about the XDG paths.

Most plugins have additional requirements. These are listed in the plugin descriptions.

Ubuntu

On Ubuntu or other Debian derived systems, the following packages should be installed:

  • python3
  • gir1.2-gtk-3.0
  • python3-gi
  • python3-xdg

Windows

Download, install and update MSYS2 64-bit by following the instructions on their website.

Open "MSYS2 MSYS" terminal from the Start Menu and install GTK3, Python3 and Python bindings for GTK:

pacman -S mingw-w64-x86_64-gtk3 mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-gobject

The Windows drive is mounted on /c, browse your Windows user folder using:

cd "/c/Users/$USERNAME"

You can now run Zim from the MSYS terminal using:

/mingw64/bin/python3 zim.py

Or from any Windows terminal using:

C:\msys64\mingw64\bin\python3.exe zim.py

For more details see https://www.gtk.org/docs/installations/windows/ and https://pygobject.readthedocs.io/en/latest/getting_started.html.

Note: installation of the "msys" environment offers a "32" and a "64" bit shell. When you installed the "64" packages for Gtk, they will only run from the "64" shell.

Mac OS X

You can run zim on Mac if you have the proper dependencies installed.

If you are using Mac Ports packages installing the following ports should work:

TODO: new instructions for Gtk3 / Python3

If you are using Homebrew package manager, the proper dependencies can be installed using

brew install python gtk+3 pygobject3

Once done, install

brew install zim

Then run from terminal

zim

Or make a wrapper app for Zim so that you can keep it in the launcher and open it as a native Mac OSX app.

Install Paths

If you install zim in a non-default location, you may need to set the PYTHONPATH environment variable in order for zim to find its python modules. For example, if you installed the modules below "/home/user/lib/zim" you need to set:

PYTHONPATH=/home/user/lib

Also, zim uses the XDG paths to locate data and config files. If you get an error that zim can not find its data files, for example, if you installed the zim data files to "/home/user/share/zim", you will need to set the data path like this:

XDG_DATA_DIRS=/home/user/share:/usr/local/share:/usr/share

Contributing

See CONTRIBUTING and PLUGIN_WRITING for information on contributing to the zim source code, translations and documentation.

Copyright and License

Zim is an open-source program. This means it can be used and distributed freely under the conditions of the license.

All files in this package, except for those mentioned below, are copyrighted by Jaap Karssenberg [email protected]

Translations are copyrighted by their respective translators. All translations that are entered through the launchpad website are distributed under the BSD license. See the translation files for detailed translator credits.

The following files were included from other sources:

  • zim/inc/xdot.py - Copyright 2008 Jose Fonseca
  • zim/inc/arithmetic.py - Copyright 2010, 2011 Patricio Paez
  • From the default Gnome icon theme:
    • pixmaps/task-list.png (was: stock_todo.png)
    • pixmaps/attachment.png (was: mail-attachment.png)
  • From Gtk+ 2.8
    • pixmaps/link.png (was: stock_connect_24.png)
  • pixmaps/calendar.png (was: stock_calendar-view-month.png) Copyright 2007 by Jakub Steiner, released under GPL modifications copyright 2009 by Gabriel Hurley

zim-desktop-wiki-markdown's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

zim-desktop-wiki-markdown's Issues

Links in markdown syntax ending in ".md" kill the parser

Add a new page to your wiki, immediately choose Edit sourcecode and add the following link to the page:

[www.dell.com/support/drivers](https://www.dell.com/support/home?app=drivers.md)

Saving the document and then confirming the Zim dialog asking me to tell it when I'm done editing results in the error message below and Zim displaying an empty page whenever I try to access it. The culprit is the ".md" extension at the end of the given URL - remove that and Zim has no problem displaying the page.

This is zim 0.73.5
Platform: posix
Locale: de_DE UTF-8
FS encoding: utf-8
Python: (3, 9, 2, 'final', 0)
PyGObject: (3, 38, 0)

======= Traceback =======
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/actions.py", line 115, in do_activate
    self.__get__(instance, instance.__class__)()
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/actions.py", line 98, in func
    return self.func(instance, *args, **kwargs)
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/gui/uiactions.py", line 357, in edit_page_source
    page.check_source_changed()
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/notebook/page.py", line 516, in check_source_changed
    return self._check_source_etag()
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/notebook/page.py", line 534, in _check_source_etag
    parsetree = self.get_parsetree()
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/notebook/page.py", line 586, in get_parsetree
    self._parsetree = parser.parse(text, file_input=True)
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/formats/zim_markdown.py", line 712, in parse
    mywikiparser(builder, input)
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/formats/zim_markdown.py", line 195, in __call__
    self.block_parser(builder, text)
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/parser.py", line 447, in __call__
    self._raise_exception(error, text, iter, end, builder)
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/parser.py", line 445, in __call__
    self.process_unmatched(builder, text[iter:])
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/formats/zim_markdown.py", line 473, in parse_para
    self.list_and_indent_parser(builder, block)
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/parser.py", line 447, in __call__
    self._raise_exception(error, text, iter, end, builder)
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/parser.py", line 445, in __call__
    self.process_unmatched(builder, text[iter:])
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/parser.py", line 437, in __call__
    self._raise_exception(error, text, mstart, mend, builder, self.rules[i])
  File "/home/christoph/Temp/zim-desktop-wiki-markdown-pfalcon/zim/parser.py", line 459, in _raise_exception
    error = ParserError(error.message)
AttributeError: 'AssertionError' object has no attribute 'message'

Unsupported/not yet supported Markdow features

Things to support (checked - supported, unchecked - unsupported):

  • Checkbox lists
  • Multilevel lists with arbitrary indentation (seems that Zim requires a tab as indentation for each level of a multilevel list).
  • Unordered bullet lists with - as a bullet (* is supported so far)
  • Superscript/subscript (Zim native syntax should be recognized)

Out-of-sync (collation?) issue in TreeView

ce7fd4f

On real-world notebooks (containing Unicode filenames among everything) the "Index" tree view is totally unusable (out-of-sync, visual glitches, possible crash), the debug window may show numerous Gtk-CRITICAL errors.

(zim.py:414295): Gtk-CRITICAL **: 10:45:04.033: ../gtk/gtk/gtktreeview.c:5573 (gtk_tree_view_bin_draw): assertion `has_child' failed.
There is a disparity between the internal view of the GtkTreeView,
and the GtkTreeModel. This generally means that the model has changed
without letting the view know. Any display from now on is likely to
be incorrect.

Re-indexing the notebook doesn't help (and possibly leaves the index inconsistent — after deleting the files the tree continues to display deleted pages!)

The minimal notebook causing the problem (not yet Gtk-CRITICAL, but all the weird behavior) seems to be this:

a.md
B.md

(Latin letters a and B, notebook.zim has default_file_format=zim_markdown and default_file_extension=.md. Note that both 'Ba' and 'aB' sorting orders are both "alphabetical", one case-sensitive, the other not.)

Although… zim-wiki notebooks seem to be affected, too.

how to begin with md

Hi,

I'm following the original issue zim-desktop-wiki#26 with great interest,
but didn't want to overload the already quite long discussions there.

First things first : thank you for the effort around this !

I've just cloned your repo to give MD a quick try. (disclaimer : I understand this is WIP, I'm just playing around with not-important data)

When start zim.py, it works fine, just ... like the regular zim. No idea how to start to write with md format.

Creating a new note does a weird mixup : note the "# test" title, but the file is saved as test.txt

Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.6
Creation-Date: 2021-02-01T15:12:51+01:00

# test
Created lundi 01 février 2021

I probably did miss an obvious thing, sorry about that.

Any clue will be welcome :)

Index sidebar breaks showing only parts of the notes, and repeating some

image
This is an example.

Not sure how I triggered it. I tried to Jump using ctrl J to a page. This page didn't show in the index (weird) so I tried to scroll manually to find it alphabetically. Then the index sidebar got glitchy.

This is on .73.5, which is the current one in this repo as of 04.02.2022

Images don't show in .md notes

After getting the index to show images for new md files, they seem to render without images.
What I've tested...

  1. The images are in the folder.
  2. The link to the image is correct
  3. dragging and dropping the image will render it

It just doesn't render them 'off the bat'

Object has no a ttribute 'message' error, rendering zim not operational

Hmm, I may have found a serious one:

INFO: Open page: What do I want and goals (What do I want and goals)
DEBUG: parse_md_link: page: <Page: What do I want and goals>, text: 'alpha20', href: '../../alpha20.md'
DEBUG: linked page full path: <UnixPath: /home/q/alpha20.md>
DEBUG: Running ErrorDialog
ERROR: Looks like you found a bug
Traceback (most recent call last):
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/parser.py", line 435, in __call__
    self.rules[i].process(builder, *groups)
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/formats/zim_markdown.py", line 599, in parse_md_link
    linked_page = layout.map_file(linked_path)[0]
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/notebook/layout.py", line 110, in map_file
    path = file.relpath(self.root)
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/fs.py", line 550, in relpath
    raise AssertionError('Not a parent folder')
AssertionError: Not a parent folder

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/gui/pageview.py", line 5653, in set_page
    tree = page.get_parsetree()
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/notebook/page.py", line 586, in get_parsetree
    self._parsetree = parser.parse(text, file_input=True)
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/formats/zim_markdown.py", line 712, in parse
    mywikiparser(builder, input)
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/formats/zim_markdown.py", line 195, in __call__
    self.block_parser(builder, text)
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/parser.py", line 447, in __call__
    self._raise_exception(error, text, iter, end, builder)
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/parser.py", line 445, in __call__
    self.process_unmatched(builder, text[iter:])
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/formats/zim_markdown.py", line 473, in parse_para
    self.list_and_indent_parser(builder, block)
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/parser.py", line 437, in __call__
    self._raise_exception(error, text, mstart, mend, builder, self.rules[i])
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/parser.py", line 435, in __call__
    self.rules[i].process(builder, *groups)
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/formats/zim_markdown.py", line 487, in parse_list
    self.parse_list_lines(builder, lines, 0, attrib)
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/formats/zim_markdown.py", line 541, in parse_list_lines
    self.inline_parser(builder, text)
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/parser.py", line 437, in __call__
    self._raise_exception(error, text, mstart, mend, builder, self.rules[i])
  File "/home/q/prj/zim-desktop-wiki-markdown/zim/parser.py", line 459, in _raise_exception
    error = ParserError(error.message)
AttributeError: 'AssertionError' object has no attribute 'message'
DEBUG: BackgroundCheck started
DEBUG: BackgroundCheck finished


When this happens, restarting zim will give you an empty page that doesn't work. If you visit that page it will trigger this error :(
This was a simple, existing, known-to-work page, no fancy formatting or images or anything.

Following the install instructions, even when notebook.zim has the md extension, md files are ignored

First, thanks for maintaining this fork. It's truly a godsent.

I've followed the instruction on the readme.

I have:

default_file_format=zim_markdown
default_file_extension=.md

On notebook.zim.

I still don't get to see md files indexed.

Since I read you have been using this in production for a while, it might well be that I'm doing something wrong. Do you have any ideas about what I should try?

On step 6, quit zim: do we want to do this before the indexing is complete?

I tried tool > update index and nothing really changes.

sqlite3 thread access rules violation error

Originally posted as zim-desktop-wiki#1285


I've just got such an error (git master, e5cadf3):

ERROR: Error in background save
Traceback (most recent call last):
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/notebook/notebook.py", line 532, in _store_page_async_thread_main
    page._store_tree(parsetree)
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/notebook/page.py", line 507, in _store_tree
    lines = dumper.dump(tree, file_output=True)
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/formats/zim_markdown.py", line 733, in dump
    return TextDumper.dump(self, tree)
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/formats/__init__.py", line 1180, in dump
    tree.visit(self)
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/formats/__init__.py", line 560, in visit
    self._visit(visitor, self._etree.getroot())
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/formats/__init__.py", line 571, in _visit
    self._visit(visitor, child) # recurs
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/formats/__init__.py", line 571, in _visit
    self._visit(visitor, child) # recurs
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/formats/__init__.py", line 576, in _visit
    visitor.append(node.tag, node.attrib, node.text)
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/formats/__init__.py", line 1254, in append
    strings = method(tag, attrib, [self.encode_text(tag, text)])
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/formats/zim_markdown.py", line 765, in dump_link
    linked_path = self.notebook.pages.resolve_link(self.page, HRef.new_from_wiki_link(href))
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/notebook/index/pages.py", line 753, in resolve_link
    id, pagename = self._pages.resolve_link(source, href)
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/notebook/index/pages.py", line 366, in resolve_link
    parent, parent_id, names = self._resolve_link(source, href, ignore_link_placeholders, source_id)
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/notebook/index/pages.py", line 377, in _resolve_link
    start_id = self.get_page_id(start)
  File "/mnt/hdd/projects-3rdparty/PIM/zim-desktop-wiki/zim/notebook/index/pages.py", line 359, in get_page_id
    'SELECT id FROM pages WHERE name=?', (pagename.name,)
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 140627211577152 and this is thread id 140626983110400.

What I've being doing is a pretty common and natural action sequence:

  1. Created a new subpage of a page.
  2. Switched to parent page and cut a subsection of it to a clipboard.
  3. Was about to switch to new subpage and paste it.

I couldn't do p.3 at this time, switching to any other page but the current page didn't work. I then pasted the content back to the original page and pressed Ctrl+S (the key combo I use the most with Zim). Then it all recovered and I retried the operation.

But this all indeed sounds scary, a random user could lose data in such a way.

Zim crashing hard when accessing this messed up page

My main Zim-Wiki is pretty big (1800 files and directories, some 175 MB). I created an empty markdown wiki following the instructions you provided, copied my entire wiki into that directory and converted all *.txt files to markdown using zim2markdown.py and a bash script, then opened the result in your Zim version to check the results.

zim2markdown doesn't do a perfect job - some things it just doesn't handle at all, like preformatted text. This page (located at PC:Anleitungen:Büro:Markdown:Syntax in my Wiki) is one of the half-converted ones:

http://gutjahr.hallenradsport-forum.de/files/Syntax.md

Trying to access it from inside your Zim fork completely kills Zim (segfault).

ModuleNotFoundError: No module named 'zim.formats.zim-markdown'

Hello,
Just got the following issue:

`This is zim 0.73.5
Platform: posix
Locale: pt_PT UTF-8
FS encoding: utf-8
Python: (3, 8, 12, 'final', 0)
PyGObject: (3, 38, 0)

======= Traceback =======
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/gui/widgets.py", line 3075, in do_response
destroy = self.do_response_ok()
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/gui/notebookdialog.py", line 368, in do_response_ok
self.callback(self.result)
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/gui/uiactions.py", line 140, in open_notebook
ZIM_APPLICATION.run('--gui', uri)
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/main/init.py", line 687, in run
self._run_cmd(cmd, args) # test seam
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/main/init.py", line 698, in _run_cmd
w = cmd.run()
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/main/init.py", line 268, in run
notebook, page = self.build_notebook()
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/main/init.py", line 240, in build_notebook
notebook, uripage = build_notebook(notebookinfo) # can raise FileNotFound
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/notebook/init.py", line 115, in build_notebook
notebook = Notebook.new_from_dir(dir)
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/notebook/notebook.py", line 254, in new_from_dir
layout = FilesLayout(
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/notebook/layout.py", line 86, in init
self.default_format = get_format(default_format)
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/formats/init.py", line 211, in get_format
return get_format_module(name)
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/formats/init.py", line 221, in get_format_module
return zim.plugins.get_module('zim.formats.' + canonical_name(name))
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/utils.py", line 35, in get_module
mod = import(name)
ModuleNotFoundError: No module named 'zim.formats.zim-markdown'`

Am I doing something wrong?

Making this text italic adds a superfluous slash at the end

Copy/Paste the following text to a page:

(Quelle: https://www.dell.com/support/kbdoc/de-de/000131486/aktualisieren-des-dell-bios-in-einer-linux-oder-ubuntu-umgebung#UpdateBIOS)

Now select that line and make the text italic. The page's sourcecode now looks like this:

*(Quelle: https://www.dell.com/support/kbdoc/de-de/000131486/aktualisieren-des-dell-bios-in-einer-linux-oder-ubuntu-umgebung#UpdateBIOS)*/

That slash at the end shouldn't be there.

Revert formatted page to Markdown

Am I missing something, or is there no way once a page has been formatted to return to editing the Markdown code directly? I mean of course one can edit the .md file in an external text editor, but is there no way to do it within Zim?

Creating new MarkdownNotes produces bug report

This is zim 0.74.2
Platform: posix
Locale: en_NZ UTF-8
FS encoding: utf-8
Python: (3, 8, 10, 'final', 0)
PyGObject: (3, 36, 0)

======= Traceback =======
File "/usr/lib/python3/dist-packages/zim/main/init.py", line 936, in main
ZIM_APPLICATION.run(*argv[1:])
File "/usr/lib/python3/dist-packages/zim/main/init.py", line 707, in run
self._run_cmd(cmd, args) # test seam
File "/usr/lib/python3/dist-packages/zim/main/init.py", line 738, in _run_cmd
self._run_main_loop(cmd)
File "/usr/lib/python3/dist-packages/zim/main/init.py", line 780, in _run_main_loop
w = cmd.run()
File "/usr/lib/python3/dist-packages/zim/main/init.py", line 268, in run
notebook, page = self.build_notebook()
File "/usr/lib/python3/dist-packages/zim/main/init.py", line 240, in build_notebook
notebook, uripage = build_notebook(notebookinfo) # can raise FileNotFound
File "/usr/lib/python3/dist-packages/zim/notebook/init.py", line 118, in build_notebook
notebook = Notebook.new_from_dir(dir)
File "/usr/lib/python3/dist-packages/zim/notebook/notebook.py", line 264, in new_from_dir
layout = FilesLayout(
File "/usr/lib/python3/dist-packages/zim/notebook/layout.py", line 86, in init
self.default_format = get_format(default_format)
File "/usr/lib/python3/dist-packages/zim/formats/init.py", line 231, in get_format
return get_format_module(name)
File "/usr/lib/python3/dist-packages/zim/formats/init.py", line 241, in get_format_module
return zim.plugins.get_module('zim.formats.' + canonical_name(name))
File "/usr/lib/python3/dist-packages/zim/utils.py", line 36, in get_module
mod = import(name)
ModuleNotFoundError: No module named 'zim.formats.zim_markdown'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.