All Projects → kefirfromperm → Kefirbb

kefirfromperm / Kefirbb

Licence: lgpl-3.0
A flexible Java text processor. BB, BBCode, BB-code, HTML, Textile, Markdown, parser, translator, converter.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Kefirbb

Word To Markdown
A ruby gem to liberate content from Microsoft Word documents
Stars: ✭ 1,216 (+1365.06%)
Mutual labels:  markdown, converter
Breakdance
It's time for your markup to get down! HTML to markdown converter. Breakdance is a highly pluggable, flexible and easy to use.
Stars: ✭ 418 (+403.61%)
Mutual labels:  markdown, converter
Yarle
Yarle - The ultimate converter of Evernote notes to Markdown
Stars: ✭ 170 (+104.82%)
Mutual labels:  markdown, converter
Europa
Pure JavaScript library for converting HTML into valid Markdown
Stars: ✭ 143 (+72.29%)
Mutual labels:  markdown, converter
Online Markdown
A online markdown converter specially for Wechat Public formatting.
Stars: ✭ 812 (+878.31%)
Mutual labels:  markdown, converter
Html To Markdown
⚙️ Convert HTML to Markdown. Even works with entire websites and can be extended through rules.
Stars: ✭ 155 (+86.75%)
Mutual labels:  markdown, converter
Evernote2md
Convert Evernote .enex files to Markdown
Stars: ✭ 193 (+132.53%)
Mutual labels:  markdown, converter
Markdown Pdf
📄 Markdown to PDF converter
Stars: ✭ 2,365 (+2749.4%)
Mutual labels:  markdown, converter
Ox Hugo
A carefully crafted Org exporter back-end for Hugo
Stars: ✭ 591 (+612.05%)
Mutual labels:  markdown, converter
Pandoc
Universal markup converter
Stars: ✭ 24,250 (+29116.87%)
Mutual labels:  markdown, converter
Kramdown Asciidoc
A kramdown extension for converting Markdown documents to AsciiDoc.
Stars: ✭ 97 (+16.87%)
Mutual labels:  markdown, converter
Gulp Markdown Pdf
Markdown to PDF
Stars: ✭ 56 (-32.53%)
Mutual labels:  markdown, converter
Html To Markdown
Convert HTML to Markdown with PHP
Stars: ✭ 1,293 (+1457.83%)
Mutual labels:  markdown, converter
Showdown
A bidirectional Markdown to HTML to Markdown converter written in Javascript
Stars: ✭ 12,137 (+14522.89%)
Mutual labels:  markdown, converter
Mdpdf
Markdown to PDF command line app with support for stylesheets
Stars: ✭ 512 (+516.87%)
Mutual labels:  markdown, converter
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (-45.78%)
Mutual labels:  markdown, converter
Linkify Markdown
🚀 A cli tool which automatically add references to issues, pull requests, user mentions and forks to a markdown file.
Stars: ✭ 67 (-19.28%)
Mutual labels:  markdown, converter
Gotenberg Php Client
PHP client for the Gotenberg API
Stars: ✭ 80 (-3.61%)
Mutual labels:  markdown
Markr
Minimalistic markdown editor for MacOS with live preview
Stars: ✭ 82 (-1.2%)
Mutual labels:  markdown
Jokecamp.com
personal blog and website
Stars: ✭ 79 (-4.82%)
Mutual labels:  markdown

KefirBB

Build Status Download Maven Central javadoc.io OpenHUB

About

KefirBB is a Java-library for text processing. Initially it was developed for BBCode (Bulletin Board Code) to HTML translation. But flexible configuration allows to use it in different cases. For example XML-to-HTML translation or for HTML filtration. Now it supports Textile and Markdown markup languages. Actually it's the most powerfull and flexible Java-library for BBCode parsing.

Maven dependency

<dependency>
    <groupId>org.kefirsf</groupId>
    <artifactId>kefirbb</artifactId>
    <version>1.5</version>
</dependency>

Usage

Convert BBCode

KefirBB fully supports converting from BBCode markup language to HTML. The syntax of BBCode is described at BBCode - Wikipedia.

TextProcessor processor = BBProcessorFactory.getInstance().create();
assert "<b>text</b>".equals(processor.process("[b]text[/b]"));

HTML Filtration

If you don't want to use special markup languages in your site but you have to safe your users from XSS-attacks you can use KefirBB configuration for HTMl filtration. It prevents using of javascript, styles etc.

TextProcessor processor = BBProcessorFactory.getInstance()
    .createFromResource(ConfigurationFactory.SAFE_HTML_CONFIGURATION_FILE);
assert "<b>text</b>".equals(processor.process("<b onclick=\"javascript:alert('Fail!');\">test</B>"));

Convert Textile

KefirBB fully supports Textile markup language. It's described at TxStyle

TextProcessor processor = BBProcessorFactory.getInstance()
    .createFromResource(ConfigurationFactory.TEXTILE_CONFIGURATION_FILE);
assert "<p><b>text</b></p>".equals(processor.process("**text**"));

Convert Markdown

KefirBB supports Markdown markup language partially described at Markdown Syntax. It doesn't support fully blockquotes and lists.

TextProcessor processor = BBProcessorFactory.getInstance()
    .createFromResource(ConfigurationFactory.MARKDOWN_CONFIGURATION_FILE);
assert "<p><strong>text</strong></p>".equals(processor.process("**text**"));

Your custom configuration

Also you can use your own configuration or customize existing. Just put your own configuration to classpath:kefirbb.xml.

Documentation

You can find full documentation in the wiki of the project.

Support

You can report bugs at GitHub Issues. Also you can ask me questions by email [email protected].

Donation

If you want to give me a beer just send some money to https://www.paypal.me/kefir

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].