Sha256: 63d312b02d20d75843a06ab50f2d27664ff1a951b9727e56ea16b51273514d61

Contents?: true

Size: 1.39 KB

Versions: 2

Compression:

Stored size: 1.39 KB

Contents

block:
  - title: table
    html: 
      start_mark: "<table class=\"\\1\">\n"
      end_mark: </table>
    after: html_comment
    match: |-
      / (?:\[([\w]*)[|!](?:.*?)\|\])
        (?:\s*)
        (?:(?:\[[|!](?:.*?)\|\])(?:\s*))*/mx
    subparse: table
table: 
  - title: spanrow
    match: "/\[(?:[\w]*)([|!]\s*.*?\s*\|)\](?:\s*)/"
    subparse: 
      match_group: 1
      context: span_table_row
    html: 
      start_mark: <tr>
      end_mark: "</tr>\n"
  - title: blockrow
    match: "/\[(?:[\w]*)([|!]\s*.*?\s*\|)\](?:\s*)/m"
    subparse: 
      match_group: 1
      context: block_table_row
    html: 
      start_mark: <tr>
      end_mark: "</tr>\n"
span_table_row: 
  - title: span_th
    match: "/\! \s* (.*?) \s* \|(?=[|!]|\z)/mx"
    subparse: 
      match_group: 1
      context: span
    html: 
      start_mark: <th>
      end_mark: </th>
  - title: span_td
    match: "/\| \s* (.*?) \s* \|(?=[|!]|\z)/mx"
    subparse: 
      match_group: 1
      context: span
    html: 
      start_mark: <td>
      end_mark: </td>
block_table_row: 
  - title: block_th
    match: "/\! \s* (.*?) \s* \|(?=[|!]|\z)/mx"
    subparse: 
      match_group: 1
      context: block
    html: 
      start_mark: <th>
      end_mark: </th>
  - title: block_td
    match: "/\| \s* (.*?) \s* \|(?=[|!]|\z)/mx"
    subparse: 
      match_group: 1
      context: block
    html: 
      start_mark: <td>
      end_mark: </td>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tartan-0.1.0 lib/table.yml
tartan-0.1.1 lib/table.yml