Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
shaedrich authored Jun 5, 2024
1 parent 505d1f5 commit b1e9d7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/superfences_ponylang/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
from pymdownx.superfences import _escape

from mkdocs.exceptions import PluginError
from mkdocs.config import base
from mkdocs.config import config_options as c
from mkdocs.structure.pages import Page, _AbsoluteLinksValidationValue
from mkdocs.utils.yaml import get_yaml_loader, yaml_load

import os

Expand All @@ -32,7 +36,7 @@ def format(source, language, css_class, options, md, classes=None, id_value='',
lines.append(line)
#source = str(lines)
source = '\n'.join(lines)
source = str(md.preprocessors) + str(md.parser) + str(md.registeredExtensions) + str(options) + str(attrs) + str(classes) + str(kwargs)
source = str(base.Config) + str(options) + str(attrs) + str(classes) + str(kwargs)
else:
with open(os.getcwd() + "/code-samples/" + snippetPath, 'r') as f:
source = f.read()
Expand Down

0 comments on commit b1e9d7f

Please sign in to comment.