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

Add support for different quotation styles. #10

Open
netcarver opened this issue Jan 10, 2011 · 1 comment
Open

Add support for different quotation styles. #10

netcarver opened this issue Jan 10, 2011 · 1 comment

Comments

@netcarver
Copy link
Contributor

Although you can edit classTextile.php and set the kind of quotes you need, this isn't always convenient -- especially for multi-lingual documents where the quote marks used can change within either a set of documents or even within the same document.

Would be nice to be able to automatically select the correct open/close quote marks for the language currently being used.

@gocom
Copy link
Member

gocom commented Jun 15, 2019

Quotes can now days be configured with the Parser::setSymbol method:

$parser = new \Netcarver\Textile\Parser();
$parser
    ->setSymbol('quote_single_open', '‘')
    ->setSymbol('quote_single_close', '’')
    ->setSymbol('quote_double_open', '“')
    ->setSymbol('quote_double_close', '”');

echo $parser->parse('Hello "there".');

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

No branches or pull requests

2 participants