<commit_before>import { expect } from 'chai'
import * as Up from '../../../index'


context('Except for footnotes and internal topic links, every inline convention is supported in inline documents.', () => {
  context('Supported conventions:', () => {
    specify('Audio', () => {
      expect(Up.parseInline('Listen to this: [audio: cricket meowing] (example.com/meow.ogg)')).to.deep.equal(
        new Up.InlineDocument([
          new Up.Text('Listen to this: '),
          new Up.Audio('cricket meowing', 'https://example.com/meow.ogg')
        ]))
    })

    specify('Bold', () => {
      expect(Up.parseInline('I loved my __Game Boy__, though I never took it with me when I left home.')).to.deep.equal(
        new Up.InlineDocument([
          new Up.Text('I loved my '),
          new Up.Bold([
            new Up.Text('Game Boy'),
          ]),
          new Up.Text(', though I never took it with me when I left home.')
        ]))
    })

    specify('Emphasis', () => {
      expect(Up.parseInline('I loved my *Game Boy*, though I never took it with me when I left home.')).to.deep.equal(<commit_msg>Update references from topic link to section link<commit_after>import { expect } from 'chai'
import * as Up from '../../../index'


context('Except for footnotes and section links, every inline convention is supported in inline documents.', () => {
  context('Supported conventions:', () => {
    specify('Audio', () => {
      expect(Up.parseInline('Listen to this: [audio: cricket meowing] (example.com/meow.ogg)')).to.deep.equal(
        new Up.InlineDocument([
          new Up.Text('Listen to this: '),
          new Up.Audio('cricket meowing', 'https://example.com/meow.ogg')
        ]))
    })

    specify('Bold', () => {
      expect(Up.parseInline('I loved my __Game Boy__, though I never took it with me when I left home.')).to.deep.equal(
        new Up.InlineDocument([
          new Up.Text('I loved my '),
          new Up.Bold([
            new Up.Text('Game Boy'),
          ]),
          new Up.Text(', though I never took it with me when I left home.')
        ]))
    })

    specify('Emphasis', () => {
      expect(Up.parseInline('I loved my *Game Boy*, though I never took it with me when I left home.')).to.deep.equal(
{'fraction_non_alphanumeric': 0.15698447893569845, 'fraction_numerical': 0.0, 'mean_word_length': 2.5416012558869703, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4327906', 'n_tokens_mistral': 661, 'n_tokens_neox': 661, 'n_words': 209}