Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace bootstrap alert-info/warning <div>s with custom admonitions #47

Merged
merged 4 commits into from
Apr 27, 2016

Conversation

mgeier
Copy link
Member

@mgeier mgeier commented Apr 26, 2016

This is an experimental work-around feature!

See also #46.

for node in self.document.traverse(docutils.nodes.raw):
if node['format'] != 'html':
continue
start_match = self._start_re.fullmatch(node.astext())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fullmatch doesn't work for python < 3.4

@kmuehlbauer
Copy link
Contributor

@mgeier
Copy link
Member Author

mgeier commented Apr 27, 2016

Thanks for the hint, I've added the suggested work-around using \Z.

@mgeier mgeier merged commit db86484 into master Apr 27, 2016
@mgeier mgeier deleted the div-alerts branch April 27, 2016 14:11
@kmuehlbauer
Copy link
Contributor

I just wanted to say: It work's. Thanks for taking the time @mgeier!

mgeier added a commit that referenced this pull request Feb 3, 2019
)

This is an experimental work-around feature!

See also #46.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants