Package Details: vim-instant-markdown 0.3.0-2

Git Clone URL: https://aur.archlinux.org/vim-instant-markdown.git (read-only, click to copy)
Package Base: vim-instant-markdown
Description: Instant Markdown previews from vim in a browser
Upstream URL: https://github.com/instant-markdown/vim-instant-markdown
Keywords: ftplugin markdown vim
Licenses: Apache
Submitter: tmplt
Maintainer: knedl1k
Last Packager: knedl1k
Votes: 12
Popularity: 0.000447
First Submitted: 2016-03-04 14:52 (UTC)
Last Updated: 2023-11-01 13:03 (UTC)

Latest Comments

1 2 Next › Last »

knedl1k commented on 2023-11-01 12:38 (UTC)

Version updated, added dependencies according to https://github.com/instant-markdown/vim-instant-markdown#installation instructions and fixed path. Plugin should be good to go! :)

jadelord commented on 2019-07-05 10:39 (UTC)

Please use the tagged version on github which contains some much needed bugfixes: https://github.com/suan/instant-markdown-d/archive/0.1.1.tar.gz

l3nn4rt commented on 2019-05-30 20:05 (UTC)

jq is called in the PKGBUILD, but it's not named as dependency for this package

cameel commented on 2019-05-26 18:38 (UTC) (edited on 2019-05-26 18:38 (UTC) by cameel)

Looking at the recent commits for both instant-markdown-d and vim-instant-markdown I don't see anything that looks like a fix but indeed instant-markdown-d does not crash for me with the new PKGBUILD so it must have been fixed somehow. Maybe it was actually a problem in socket.io itself and it got fixed there?

nytpu commented on 2019-05-26 17:00 (UTC)

Hi, I sincerely apologize for not catching that sooner, it is updated now. I also removed the socket.io patch as it seems to be no longer needed. If it still errors on build for anyone, comment, I'll replace the socket.io patch.

breitj commented on 2019-05-26 12:33 (UTC)

Hi, it seems that the checksum for the file 'instant-markdown.vim' is outdated.

cameel commented on 2019-04-19 07:36 (UTC)

Great, thanks.

By the way, the project has new maintainers now (Future of instant-markdown-d and vim-instant-markdown? #540) so hopefully this patch won't be necessary for long.

nytpu commented on 2019-04-18 18:00 (UTC) (edited on 2019-04-18 18:02 (UTC) by nytpu)

cameel I've added your changes to the PKGBUILD and the patch file. It seems to install fine with your changes.

cameel commented on 2019-03-25 00:24 (UTC) (edited on 2019-03-25 00:31 (UTC) by cameel)

instant-markdown-d installed by this package crashes for me with the following error message:

Option log level is not valid. Please refer to the README.

This seems to be an upstream bug. Patching it to use an older version of socket.io (as suggested in Fails on OS X #13) fixes the problem.

Here is an updated PKGBUILD if anyone is interested. I have also tweaked it to actually install instant-markdown-d from the tarball it downloads - it was just ignoring the tarball and redownloading it with npm.

PKGBUILD
# Maintainer: Tmplt <tmplt[at]dragons[dot]rocks>

_npmname=instant-markdown-d
_npmver=0.1.0
pkgname=vim-instant-markdown
pkgver=0.1.0
pkgrel=5
pkgdesc="Instant Markdown previews from vim in a browser"
arch=(any)
license=(unknown)
url="https://github.com/suan/vim-instant-markdown#readme"
depends=('nodejs' 'npm' 'wget')
optdepends=('neovim: neovim support' 'vim: vim support')
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz
        https://raw.githubusercontent.com/suan/vim-instant-markdown/master/after/ftplugin/markdown/instant-markdown.vim
        pin-socket-io-version-at-0.9.patch)
noextract=($_npmname-$_npmver.tgz)
sha256sums=('457cda23129183b01a97e96de9e598680fa0cee6c7c9a40db0f830cd7031fa81'
            '2dc1f0e3af2e9641b554f7ed1d32457918542e95f601d552202b362b1779c2d0'
            '2436f68340f7463efc8bbc3987a9344ebab2d8cb0bca1e3b690b64e2694f0060')
install=install.sh

package() {
  mkdir -p "$pkgdir/usr/lib/node_modules/"
  mkdir -p "$pkgdir/usr/share/vim/vimfiles/autoload/"
  mkdir -p "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"

  cd "$srcdir"
  tar --extract --file "$_npmname-$_npmver.tgz"
  patch "package/package.json" "pin-socket-io-version-at-0.9.patch"
  tar --create --file "$_npmname-$_npmver-patched.tar" package/

  npm install                    \
    --global                     \
    --no-save                    \
    --production                 \
    --user   root                \
    --cache  "$srcdir/npm-cache" \
    --prefix "$pkgdir/usr"       \
    "$_npmname-$_npmver-patched.tar"

  cp "$srcdir/instant-markdown.vim" "$pkgdir/usr/share/vim/vimfiles/after/ftplugin/markdown"
}

# vim: set ts=2 sw=2
pin-socket-io-version-at-0.9.patch
--- package.json    2015-01-18 04:14:05.000000000 +0100
+++ package.json    2019-03-24 20:27:57.818719661 +0100
@@ -13,6 +13,6 @@
     "highlight.js": "^8.4.0",
     "markdown-it": "^3.0.3",
     "send": "~0.1.0",
-    "socket.io": ""
+    "socket.io": "~0.9"
   }
 }

tmplt commented on 2018-11-12 21:41 (UTC)

vim has been made optional.

Please note that I don't use this package anymore; feel free to contact me if you wish to maintain it. I will eventually disown it.