diff --git a/verto/processors/GlossaryLinkPattern.py b/verto/processors/GlossaryLinkPattern.py
index b9b25b5..502a632 100644
--- a/verto/processors/GlossaryLinkPattern.py
+++ b/verto/processors/GlossaryLinkPattern.py
@@ -51,9 +51,10 @@ class GlossaryLinkPattern(Pattern):
             'text': text
         }
 
+        glossary_reference = self.ext_glossary_terms[term]
         if reference is not None:
             identifier = self.unique_slugify('glossary-' + term)
-            self.ext_glossary_terms[term].append((reference, identifier))
+            glossary_reference.append((reference, identifier))
             context['id'] = identifier
 
         html_string = self.template.render(context)

Fix 'required-glossary-terms' in documentation
In the documentation the key `required-glossary-terms` does not exist in the result object, the correct value is `required_glossary_terms`.
diff --git a/verto/tests/ConfigurationTest.py b/verto/tests/ConfigurationTest.py
index 8d26a45..f4405d2 100644
--- a/verto/tests/ConfigurationTest.py
+++ b/verto/tests/ConfigurationTest.py
@@ -64,7 +64,9 @@ class ConfigurationTest(BaseTest):
                             children=()
                         ),
                     ),
-                    required_glossary_terms=defaultdict(list)
+                    required_glossary_terms={
+                        'algorithm': []
+                    }
                 )
             ),
             ('some_processors.md',
@@ -116,6 +118,7 @@ class ConfigurationTest(BaseTest):
                         children=(),
                     ),),
                     required_glossary_terms={
+                        'hello': [],
                         'algorithm':
                             [('computer program', 'glossary-algorithm'),
                              ('algorithm cost', 'glossary-algorithm-2'),
@@ -126,15 +129,15 @@ class ConfigurationTest(BaseTest):
             )
         ]
 
-        for test in test_cases:
+        for filename, expected_result in test_cases:
             verto = Verto()
-            test_string = self.read_test_file(self.test_name, test[0])
+            test_string = self.read_test_file(self.test_name, filename)
             verto_result = verto.convert(test_string)
 
-            self.assertEqual(verto_result.title, test[1].title)
-            self.assertEqual(verto_result.required_files, test[1].required_files)
-            self.assertTupleEqual(verto_result.heading_tree, test[1].heading_tree)
-            self.assertDictEqual(verto_result.required_glossary_terms, test[1].required_glossary_terms)
+            self.assertEqual(verto_result.title, expected_result.title)
+            self.assertEqual(verto_result.required_files, expected_result.required_files)
+            self.assertTupleEqual(verto_result.heading_tree, expected_result.heading_tree)
+            self.assertDictEqual(verto_result.required_glossary_terms, expected_result.required_glossary_terms)
 
     def test_custom_processors_and_custom_templates_on_creation(self):
         '''Checks if custom processors and custom templates work
diff --git a/verto/tests/GlossaryLinkTest.py b/verto/tests/GlossaryLinkTest.py
index f019f5d..c1a9267 100644
--- a/verto/tests/GlossaryLinkTest.py
+++ b/verto/tests/GlossaryLinkTest.py
@@ -35,7 +35,9 @@ class GlossaryLinkTest(ProcessorTest):
         self.assertEqual(expected_string, converted_test_string)
 
         glossary_terms = self.verto_extension.glossary_terms
-        expected_glossary_terms = dict()
+        expected_glossary_terms = {
+            'quicksort': []
+        }
         self.assertDictEqual(expected_glossary_terms, glossary_terms)
 
     def test_multiple_word_term(self):
@@ -51,7 +53,9 @@ class GlossaryLinkTest(ProcessorTest):
         self.assertEqual(expected_string, converted_test_string)
 
         glossary_terms = self.verto_extension.glossary_terms
-        expected_glossary_terms = dict()
+        expected_glossary_terms = {
+            'digital-signature': []
+        }
         self.assertDictEqual(expected_glossary_terms, glossary_terms)
 
     def test_reference_text_given(self):
@@ -88,7 +92,9 @@ class GlossaryLinkTest(ProcessorTest):
         self.assertEqual(expected_string, converted_test_string)
 
         glossary_terms = self.verto_extension.glossary_terms
-        expected_glossary_terms = dict()
+        expected_glossary_terms = {
+            'grammar': []
+        }
         self.assertDictEqual(expected_glossary_terms, glossary_terms)
 
     def test_trailing_inline_text(self):
@@ -105,7 +111,9 @@ class GlossaryLinkTest(ProcessorTest):
         self.assertEqual(expected_string, converted_test_string)
 
         glossary_terms = self.verto_extension.glossary_terms
-        expected_glossary_terms = dict()
+        expected_glossary_terms = {
+            'finite state automaton': []
+        }
         self.assertDictEqual(expected_glossary_terms, glossary_terms)
 
     def test_leading_and_trailing_inline_text(self):
@@ -122,7 +130,9 @@ class GlossaryLinkTest(ProcessorTest):
         self.assertEqual(expected_string, converted_test_string)
 
         glossary_terms = self.verto_extension.glossary_terms
-        expected_glossary_terms = dict()
+        expected_glossary_terms = {
+            'Regular expression': []
+        }
         self.assertDictEqual(expected_glossary_terms, glossary_terms)
 
     def test_multiple_terms(self):
@@ -141,6 +151,8 @@ class GlossaryLinkTest(ProcessorTest):
 
         glossary_terms = self.verto_extension.glossary_terms
         expected_glossary_terms = {
+            'grammar': [],
+            'regular-expression': [],
             'finite-state-automaton':
                 [('Formal languages', 'glossary-finite-state-automaton')]
         }
@@ -162,6 +174,7 @@ class GlossaryLinkTest(ProcessorTest):
 
         glossary_terms = self.verto_extension.glossary_terms
         expected_glossary_terms = {
+            'hello': [],
             'algorithm':
                 [('computer program', 'glossary-algorithm'),
                  ('algorithm cost', 'glossary-algorithm-2'),
@@ -187,7 +200,9 @@ class GlossaryLinkTest(ProcessorTest):
         self.assertEqual(expected_string, converted_test_string)
 
         glossary_terms = self.verto_extension.glossary_terms
-        expected_glossary_terms = dict()
+        expected_glossary_terms = {
+            'algorithm': []
+        }
         self.assertDictEqual(expected_glossary_terms, glossary_terms)
 
     def test_doc_example_override_html(self):

pip install -e .
parse_log_pytest
requirements.txt
pytest
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
appdirs==1.4.4
attrs==22.2.0
Babel==2.11.0
beautifulsoup4==4.5.3
certifi==2021.5.30
charset-normalizer==2.0.12
docutils==0.18.1
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
iniconfig==1.1.1
Jinja2==2.9.6
Markdown==2.6.8
MarkupSafe==2.0.1
packaging==21.3
pluggy==1.0.0
py==1.11.0
Pygments==2.14.0
pyparsing==3.1.4
pytest==7.0.1
python-slugify==1.2.3
pytz==2025.2
requests==2.27.1
six==1.17.0
snowballstemmer==2.2.0
Sphinx==1.5.5
sphinx-rtd-theme==0.2.4
tomli==1.2.3
typing_extensions==4.1.1
Unidecode==1.3.8
urllib3==1.26.20
-e git+https://github.com/uccser/verto.git@cdb3a1980c8da9fcc8bda839cb130c2975c46c50#egg=verto
zipp==3.6.0

name: verto
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.13
      - appdirs==1.4.4
      - attrs==22.2.0
      - babel==2.11.0
      - beautifulsoup4==4.5.3
      - charset-normalizer==2.0.12
      - docutils==0.18.1
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - jinja2==2.9.6
      - markdown==2.6.8
      - markupsafe==2.0.1
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - python-slugify==1.2.3
      - pytz==2025.2
      - requests==2.27.1
      - setuptools==35.0.2
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==1.5.5
      - sphinx-rtd-theme==0.2.4
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - unidecode==1.3.8
      - urllib3==1.26.20
      - zipp==3.6.0
prefix: /opt/conda/envs/verto

verto/tests/ConfigurationTest.py::ConfigurationTest::test_multiple_calls verto/tests/GlossaryLinkTest.py::GlossaryLinkTest::test_doc_example_basic verto/tests/GlossaryLinkTest.py::GlossaryLinkTest::test_leading_and_trailing_inline_text verto/tests/GlossaryLinkTest.py::GlossaryLinkTest::test_leading_inline_text verto/tests/GlossaryLinkTest.py::GlossaryLinkTest::test_multiple_reference_text verto/tests/GlossaryLinkTest.py::GlossaryLinkTest::test_multiple_terms verto/tests/GlossaryLinkTest.py::GlossaryLinkTest::test_multiple_word_term verto/tests/GlossaryLinkTest.py::GlossaryLinkTest::test_single_word_term verto/tests/GlossaryLinkTest.py::GlossaryLinkTest::test_trailing_inline_text
verto/tests/ConfigurationTest.py::ConfigurationTest::test_custom_processors_after_creation verto/tests/ConfigurationTest.py::ConfigurationTest::test_custom_processors_and_custom_templates_after_creation verto/tests/ConfigurationTest.py::ConfigurationTest::test_custom_processors_and_custom_templates_on_creation verto/tests/ConfigurationTest.py::ConfigurationTest::test_custom_processors_on_creation verto/tests/ConfigurationTest.py::ConfigurationTest::test_custom_templates_after_creation verto/tests/ConfigurationTest.py::ConfigurationTest::test_custom_templates_on_creation verto/tests/ConfigurationTest.py::ConfigurationTest::test_default_processors_on_creation verto/tests/ConfigurationTest.py::ConfigurationTest::test_multiline_custom_templates verto/tests/ConfigurationTest.py::ConfigurationTest::test_reset_templates_after_custom verto/tests/ConfigurationTest.py::ConfigurationTest::test_unique_custom_processors verto/tests/GlossaryLinkTest.py::GlossaryLinkTest::test_doc_example_override_html verto/tests/GlossaryLinkTest.py::GlossaryLinkTest::test_reference_text_given
verto/processors/GlossaryLinkPattern.py
verto/processors/GlossaryLinkPattern.py