Sha256: 96fabdace2c79a881d368283860505ae315705f1d858d0ad314d9c556056b01e

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

Feature: sort
  As a CSL cite processor hacker
  I want the test sort_StripMarkup to pass

  @citation @sort
  Scenario: Strip Markup
    Given the following style:
    """
    <style 
          xmlns="http://purl.org/net/xbiblio/csl"
          class="note"
          version="1.0">
      <info>
        <id />
        <title />
        <updated>2009-08-10T04:49:00+09:00</updated>
      </info>
      <citation>
        <sort>
          <key variable="title"/>
          <key variable="author"/>
        </sort>
        <layout delimiter=", ">
          <names variable="author">
            <name form="short"/>
          </names>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Doe","given":"John"}],"id":"ITEM-1","title":"A Full Anonymous Life","type":"book"},{"author":[{"family":"Roe","given":"Jane"}],"id":"ITEM-2","title":"A Full <i>Anonymous</i> Life","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    Doe, Roe
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/sort/StripMarkup.feature
citeproc-1.0.6 features/sort/StripMarkup.feature
citeproc-1.0.5 features/sort/StripMarkup.feature
citeproc-1.0.4 features/sort/StripMarkup.feature