Skip to content

Releases: pubpub/prosemirror-pandoc

v1.1.5

20 Jul 17:36
Compare
Choose a tag to compare

v1.1.4

20 Jul 17:21
Compare
Choose a tag to compare
  • Fix: Don't generate Pandoc Str nodes with empty string content.

v1.1.3

25 May 18:22
Compare
Choose a tag to compare

What's Changed

  • fix: Pass --wrap=none to Pandoc for more predictable HTML output by @idreyn in #19

Full Changelog: 1.1.2...1.1.3

v1.1.2

18 May 16:45
Compare
Choose a tag to compare

Fixes an issue where ProseMirror table rows with empty (undefined) content fail to transform.

v1.1.1

25 Jan 15:56
Compare
Choose a tag to compare

Fixes an issue where Prosemirror nodes like Code that have string content are improperly transformed into marks.

v1.1.0

05 Oct 21:43
Compare
Choose a tag to compare

fromProsemirror/fromPandoc configuration now takes an arbitrary resources object, instead of an arbitrary resource function. This turns out to be much more ergonomic when dealing with many different kinds of transformable resources.

Old usage:

// ruleset
rules.toProsemirrorNode("Image", (node, { resource }) => {
    return {
        type: "image",
        attrs: {
            url: resource(node.target.url),
        },
    };
});

// invocation
fromPandoc(ast, rules, { resource: imageTransformFn });

New usage:

// ruleset
rules.toProsemirrorNode("Image", (node, { resources }) => {
    return {
        type: "image",
        attrs: {
            url: resources.image(node.target.url),
        },
    };
});

// invocation
fromPandoc(ast, rules, { resources: { image: imageTransformFn } });

v1.0.0

04 Oct 16:57
Compare
Choose a tag to compare
  • fromProsemirror and attendant Pandoc export features
  • Full import-export capabilities for Pandoc metadata

0.7.0 Beta 0

23 Aug 19:55
f820a69
Compare
Choose a tag to compare
0.7.0 Beta 0 Pre-release
Pre-release

pandoc-types 1.22 update