Comments (4)
Original comment by RogerHaase (Bitbucket: RogerHaase, GitHub: RogerHaase).
step 1 addressed by d8f3bd9 (bb)
alias_mimetypes = {'text/x.moin.wiki': 'text/x-trac-wiki',
'text/x.moin.creole': 'text/x-trac-wiki',
'application/docbook+xml': 'application/xml'}
mimetype = alias_mimetypes[mimetype] if mimetype in alias_mimetypes else mimetype
from moin.
Original comment by RogerHaase (Bitbucket: RogerHaase, GitHub: RogerHaase).
#!highlight moin and {{{#!highlight xml "work" for moin and docbook. But as noted above http://localhost:8080/+highlight/moin and ...+highlight/docbook and ...+highlight/creole default to the plain text lexer within pygments.
The existing moin lexer is in <env>.../pygments/lexers/markup.py. The ReST and Markdown lexers are included in this same file. The MoinWikiLexer may have been created by the Trac Wiki folks, as its only mimetype is 'text/x-trac-wiki'.
Nothing found for creole.
Perhaps a 3 step process:
1. As temporary workaround, add a bit of code to transform 'text/x.moin.wiki' to 'text/x-trac-wiki' and 'application/docbook+xml' to 'application/xml-dtd'. This can be done in moin only, no changes to pygments code.
2. Update pygments markup.py. Perhaps split trac and moin into separate classes. Add a class for creole.
3. Add a pygments lexer for 'application/docbook+xml' or add same as a mimetype to an existing lexer.
from moin.
Original comment by Aviral Dasgupta (Bitbucket: aviraldg, GitHub: aviraldg).
This is something we'd want to fix in Pygments itself, right? I've got basic moin and creole lexers done.
from moin.
Original comment by PRABHJYOT SODHI (Bitbucket: psdh, GitHub: psdh).
I would like to work on this :)
from moin.
Related Issues (20)
- Switch to Sygil-Dev/whoosh-reloaded HOT 14
- Add option to TableOfContents to not show leading H1 HOT 3
- wikiconfig.py: "trailing / below causes foo to be stored in default backend"
- Create application docs with moin, publish by loading to readthedocs HOT 11
- updated emeraldtree library HOT 4
- upgrade to latest Flask and Werkzeug
- problematic tests HOT 1
- update moin.storage.stores.sqla to use sqlalchemy 2.0+
- consider using the black code auto-formatter
- moin.wiki site HOT 2
- check feedgen >= 1.0
- increase transifex bus factor: add maintainers HOT 3
- datetime.utcfromtimestamp() and .utcnow() are deprecated HOT 1
- do a global review of timestamps, migrate to tz-aware timestamps
- Some ReStructuredText links broken in moin2.
- maint-validate-metadata reports missing rev_number for items in userprofiles.
- XMPP: Post to PubSub HOT 12
- macros with editing errors should not fill the log with tracebacks HOT 3
- Wrong sequence of revisions in item history with duplicate MTIME HOT 1
- CI workflow fails with Python 3.9 on macos-latest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moin.